Skip to content

Commit

Permalink
Merge pull request #143 from realiotech/revert-142-add-default-genesis
Browse files Browse the repository at this point in the history
Revert "Feat: Add default multistaking coin info to default genesis"
  • Loading branch information
GNaD13 authored Jul 17, 2024
2 parents 93b62cd + df34bb6 commit 0c741a9
Showing 1 changed file with 1 addition and 13 deletions.
14 changes: 1 addition & 13 deletions x/multi-staking/types/genesis.go
Original file line number Diff line number Diff line change
@@ -1,30 +1,18 @@
package types

import (
"cosmossdk.io/math"

"cosmossdk.io/errors"

codectypes "github.com/cosmos/cosmos-sdk/codec/types"
"github.com/cosmos/cosmos-sdk/x/staking"
stakingtypes "github.com/cosmos/cosmos-sdk/x/staking/types"
)

const (
mainStakingDenom = "ario"
)

func DefaultGenesis() *GenesisState {
stakingGenesis := stakingtypes.DefaultGenesisState()

defaultMultiStakingCoinInfo := MultiStakingCoinInfo{
Denom: mainStakingDenom,
BondWeight: math.LegacyOneDec(),
}

return &GenesisState{
StakingGenesisState: *stakingGenesis,
MultiStakingCoinInfo: []MultiStakingCoinInfo{defaultMultiStakingCoinInfo},
StakingGenesisState: *stakingGenesis,
}
}

Expand Down

0 comments on commit 0c741a9

Please sign in to comment.