-
Notifications
You must be signed in to change notification settings - Fork 349
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Use SpendableCoins
Interface instead of GetBalance
#1562
Comments
Hi @Hellobloc The not sure there's a scenario where the |
Thank you very much for your reply. Sorry for the lack info in this issue, I initially thought that the claim of On the other hand, I thought that replacing the |
Hi @Hellobloc not sure how it's relates If u can share reproduction steps it will be very helpful |
dymension/x/iro/keeper/claim.go
Lines 37 to 46 in f3252be
In the
Claim
method the user can burnFU
tokens, this is done based onSendCoinsFromAccountToModule
, which can be risky, specifically because the program supports thevestingAccount
feature in GenesisAccount, which means that the balance returned by theGetBalance
method may not always be spendable.The vesting accounts may also contain Locked Coins, making it impossible to execute the claim method normally.
To avoid the potential risks that may exist, it is may more appropriate to use
SpendableCoins
.The text was updated successfully, but these errors were encountered: