Unsafe approve #33
Labels
0 (Non-critical)
Code style, clarity, syntax, versioning, off-chain monitoring (events etc), exclude gas optimisation
bug
Something isn't working
duplicate
This issue or pull request already exists
Handle
0x1f8b
Vulnerability details
Impact
Unsafe approve was done.
Proof of Concept
In the method
TreasuryManager.approveToken:79
it's calledapprove
without checking the boolean result, ERC20 standard specify that the token can return false if the approve was not made, so it's mandatory to check the result of approve methods.Tools Used
Manual review
Recommended Mitigation Steps
Use safe approve or check the boolean result
The text was updated successfully, but these errors were encountered: