Lack of Safe calls #12
Labels
1 (Low Risk)
Assets are not at risk. State handling, function incorrect as to spec, issues with comments
bug
Something isn't working
duplicate
This issue or pull request already exists
sponsor disputed
Sponsor cannot duplicate the issue, or otherwise disagrees this is an issue
Handle
0x1f8b
Vulnerability details
Impact
In some cases, they may not make the transfers or approvals.
Proof of Concept
The definition of the ERC-20 standard states that the transfer and transferFrom methods must return a boolean value that determines whether the result was successful or not.
Throughout the audited contracts there are calls to the transfer methods that do not verify this result, leaving the open possibility that the execution is not as expected by the developer.
We recommend that you check the returned value using the require clause or to unify these calls by using the safeTransfer and safeTransferFrom wrappers of OpenZeppelin.
Source reference:
Tools Used
Manual review
Recommended Mitigation Steps
Use
safeTransfer
,safeApprove
andsafeTransferFrom
The text was updated successfully, but these errors were encountered: