Skip to content

Commit 16bcf95

Browse files
Zaki ManianZaki Manian
authored andcommitted
Other Bond Denom fixes
1 parent e199604 commit 16bcf95

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

x/staking/simulation/invariants.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -76,13 +76,13 @@ func SupplyInvariants(ck bank.Keeper, k staking.Keeper,
7676
feePool := d.GetFeePool(ctx)
7777

7878
// add outstanding fees
79-
loose = loose.Add(sdk.NewDecFromInt(f.GetCollectedFees(ctx).AmountOf(staking.DefaultBondDenom)))
79+
loose = loose.Add(sdk.NewDecFromInt(f.GetCollectedFees(ctx).AmountOf(k.BondDenom(ctx))))
8080

8181
// add community pool
82-
loose = loose.Add(feePool.CommunityPool.AmountOf(staking.DefaultBondDenom))
82+
loose = loose.Add(feePool.CommunityPool.AmountOf(k.BondDenom(ctx)))
8383

8484
// add yet-to-be-withdrawn
85-
loose = loose.Add(d.GetOutstandingRewards(ctx).AmountOf(staking.DefaultBondDenom))
85+
loose = loose.Add(d.GetOutstandingRewards(ctx).AmountOf(k.BondDenom(ctx)))
8686

8787
// Not-bonded tokens should equal coin supply plus unbonding delegations
8888
// plus tokens on unbonded validators

0 commit comments

Comments
 (0)