QA Report #51
Labels
bug
Something isn't working
QA (Quality Assurance)
Assets are not at risk. State handling, function incorrect as to spec, issues with clarity, syntax
[L] Tokens with fee on transfer are not supported
There are ERC20 tokens that charge fee for every
transfer()
ortransferFrom()
.In the current implementation,
CrossAnchorBridge.sol#handleToken()
assumes that the received amount is the same as the transfer amount. This means tokens with fee on transfer are not supported.https://github.com/code-423n4/2022-02-anchor/blob/7af353e3234837979a19ddc8093dc9ad3c63ab6b/contracts/cross-chain-contracts/ethereum/CrossAnchorBridge.sol#L177-L212
Recommendation
Make sure tokens with fee-on-transfer do not get whitelisted.
The text was updated successfully, but these errors were encountered: