Skip to content

Commit

Permalink
fix: correctly adjust min deposit
Browse files Browse the repository at this point in the history
  • Loading branch information
johnletey committed Jul 4, 2022
1 parent 88f0db3 commit fb2e546
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion x/gov/keeper/deposit.go
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@ func (keeper Keeper) AddDeposit(ctx sdk.Context, proposalID uint64, depositorAdd
adjustedMinDeposit := sdk.NewCoins()
for _, coin := range minDepositAmount {
amount := coin.Amount.ToDec().Mul(depositParams.MinDepositPercentage).RoundInt()
adjustedMinDeposit.Add(sdk.NewCoin(coin.Denom, amount))
adjustedMinDeposit = adjustedMinDeposit.Add(sdk.NewCoin(coin.Denom, amount))
}

if !depositAmount.IsAllGTE(adjustedMinDeposit) {
Expand Down

0 comments on commit fb2e546

Please sign in to comment.