Skip to content

Commit

Permalink
better string
Browse files Browse the repository at this point in the history
  • Loading branch information
danwt committed Nov 21, 2024
1 parent 85d6eb7 commit 5e75ec7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions x/iro/keeper/invariants.go
Original file line number Diff line number Diff line change
Expand Up @@ -97,13 +97,13 @@ func InvariantAccounting(k Keeper) uinv.Func {
// module should have no more IRO
iroBalance := k.BK.GetBalance(ctx, k.AK.GetModuleAddress(types.ModuleName), plan.GetIRODenom())
if !iroBalance.IsZero() {
errs = append(errs, fmt.Errorf("iro tokens left: planID: %d, balance: %s", plan.Id, iroBalance))
errs = append(errs, fmt.Errorf("iro tokens left in settled: planID: %d, balance: %s", plan.Id, iroBalance))
}

// plan should have no more dym
dymBalance := k.BK.GetBalance(ctx, plan.GetAddress(), appparams.BaseDenom)
if !dymBalance.IsZero() {
errs = append(errs, fmt.Errorf("dym tokens left: planID: %d, balance: %s", plan.Id, dymBalance))
errs = append(errs, fmt.Errorf("dym tokens left in settled: planID: %d, balance: %s", plan.Id, dymBalance))
}
}

Expand Down

0 comments on commit 5e75ec7

Please sign in to comment.