FV-SOL-6-C2 Unchecked Transfer Return
TLDR
Failing to check the return value of calls to transferFrom
or transfer
functions on ERC20 tokens can lead to unexpected behavior.
For certain tokens, these functions may return false
instead of reverting when there are insufficient tokens or if the transfer is unsuccessful. If the return value is ignored, the transaction might continue even if the transfer failed.
Game
What in this token transfer contract can be risky?
Last updated
Was this helpful?