Skip to content

Commit

Permalink
update genesis
Browse files Browse the repository at this point in the history
  • Loading branch information
avery committed Nov 26, 2024
1 parent adda8ca commit 787a577
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions modules/farm/simulation/genesis.go
Original file line number Diff line number Diff line change
Expand Up @@ -30,16 +30,12 @@ func RandomizedGenState(simState *module.SimulationState) {
func(r *rand.Rand) { createPoolFee = math.NewInt(5000) },
)

simState.AppParams.GetOrGenerate(
PoolCreationFee, &createPoolFee, simState.Rand,
func(r *rand.Rand) { taxRate = math.LegacyNewDecWithPrec(4, 1) },
)

simState.AppParams.GetOrGenerate(
MaxRewardCategoryN, &maxRewardCategoryN, simState.Rand,
func(r *rand.Rand) { maxRewardCategoryN = 2 },
)

taxRate = math.LegacyNewDecWithPrec(4, 1)
farmPoolGenesis := types.NewGenesisState(
types.NewParams(sdk.NewCoin(sdk.DefaultBondDenom, createPoolFee), maxRewardCategoryN, taxRate),
nil, nil, 0, nil,
Expand Down

0 comments on commit 787a577

Please sign in to comment.