Open code423n4 opened 2 years ago
0x1f8b
Unsafe approve was done.
In the method sYETIToken.buyBack it's made an approve 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.
sYETIToken.buyBack
Manual review
Use safeApprove or check the boolean result
@LilYeti: Duplicate issue #19 and is severity level 0
Not a duplicate
Low severity is warranted, as the lack of return check can lead to incorrect state handling.
Handle
0x1f8b
Vulnerability details
Impact
Unsafe approve was done.
Proof of Concept
In the method
sYETIToken.buyBack
it's made an approve 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 safeApprove or check the boolean result