Skip to content

Commit

Permalink
fix sims with a hack
Browse files Browse the repository at this point in the history
  • Loading branch information
facundomedica committed Oct 31, 2023
1 parent 63c003d commit 8f3d1b5
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions x/gov/simulation/operations.go
Original file line number Diff line number Diff line change
Expand Up @@ -592,6 +592,7 @@ func randomDeposit(
return nil, false, err
}
amount = amount.Add(minAmount)
amount = amount.MulRaw(3) // 3x what's required // TODO: this is a hack, we need to be able to calculate the correct amount using params

if amount.GT(spendableBalance) || amount.LT(threshold) {
return nil, true, nil
Expand Down

0 comments on commit 8f3d1b5

Please sign in to comment.