Skip to content

Commit

Permalink
fix: use a reasonable take rate for simulation
Browse files Browse the repository at this point in the history
  • Loading branch information
javiersuweijie committed Mar 23, 2023
1 parent 03b4d17 commit bd496b8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion x/alliance/tests/simulation/genesis.go
Original file line number Diff line number Diff line change
Expand Up @@ -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))
}
Expand Down

0 comments on commit bd496b8

Please sign in to comment.