From bd496b8520424a4e75dfde39232875abaa309a36 Mon Sep 17 00:00:00 2001 From: javiersuweijie Date: Thu, 23 Mar 2023 13:20:14 +0800 Subject: [PATCH] fix: use a reasonable take rate for simulation --- x/alliance/tests/simulation/genesis.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/x/alliance/tests/simulation/genesis.go b/x/alliance/tests/simulation/genesis.go index 3089c81f..a94a78a4 100644 --- a/x/alliance/tests/simulation/genesis.go +++ b/x/alliance/tests/simulation/genesis.go @@ -40,7 +40,7 @@ func RandomizedGenesisState(simState *module.SimulationState) { var allianceAssets []types.AllianceAsset for i := 0; i < numOfAllianceAssets; i++ { rewardRate := simulation.RandomDecAmount(r, sdk.NewDec(5)) - takeRate := simulation.RandomDecAmount(r, sdk.MustNewDecFromStr("0.5")) + takeRate := simulation.RandomDecAmount(r, sdk.MustNewDecFromStr("0.0005")) startTime := time.Now().Add(time.Duration(simulation.RandIntBetween(r, 60, 60*60*24*3*2)) * time.Second) allianceAssets = append(allianceAssets, types.NewAllianceAsset(fmt.Sprintf("ASSET%d", i), rewardRate, sdk.NewDec(0), sdk.NewDec(15), takeRate, startTime)) }