https://github.com/code-423n4/2024-11-nibiru/blob/8ed91a036f664b421182e183f19f6cef1a4e28ea/x/evm/keeper/erc20.go#L124-L132
This function is used in multiple instances across scope where there is a need to query the balance of a contract for that specific token.
Now from the readme for the protocol, we conclude that protocol supports multiple tokens, issue however is that some tokens do not support for example the external call to query the balanceof().
The call is made to the balanceOf method via call_contract. However, this would then fail for tokens like Auras stash tokens which do not implement the balanceOf() functionality.
DOS to most of the erc_20 logic for these tokens if they get supported, considering during transfers and some other transactions we expect to call the balance of to get the amount of tokens the user has in their account.
Considering the functionality is being directly queried here:
Consider implementing a method to query the balanceOf method on a low level.
