Checking the value of transfer and transferFrom is a good practice because most of the tokens implement it differently.
we might assume that they revert on failure but they might not.
transfer and transferFrom are expected to return a boolean. But in the code , we assumed that the call
to these functions will either succeed or revert.
But this might not be the case
Some tokens return a boolean for these functions on success( True ) and Failure ( False).
Total instances:24
-> Funds loss for contract and users
-> Incorrect Accounting inside the platform
Manual Review, Perpetual Trading Tutorial
Carefully check the return values of these functions and also check the balances of contract or users to ensure that tokens are transferred successfully!
The contest is live. Earn rewards by submitting a finding.
This is your time to appeal against judgements on your submissions.
Appeals are being carefully reviewed by our judges.