You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Current module balance is calculated by k.bankKeeper.GetBalance(ctx, authtypes.NewModuleAddress(types.ModuleName), denom).Amount
This would be inaccurate if ModuleAccount was also a VestingAccount. This situation is probably impossible, but to be sure we can replace GetBalance with SpendableCoins.
The text was updated successfully, but these errors were encountered:
toteki
changed the title
x/leverage: switch ModuleBalance function to use SpendableCoins
x/leverage: switch ModuleBalance function to use SpendableCoins ( RV #25 )
May 12, 2022
Runtime Verification Audit Item 25
Current module balance is calculated by
k.bankKeeper.GetBalance(ctx, authtypes.NewModuleAddress(types.ModuleName), denom).Amount
This would be inaccurate if
ModuleAccount
was also aVestingAccount
. This situation is probably impossible, but to be sure we can replaceGetBalance
withSpendableCoins
.The text was updated successfully, but these errors were encountered: