use safeApprove, instead of approve #146
Labels
bug
Something isn't working
disagree with severity
Sponsor confirms validity, but disagrees with warden’s risk assessment (sponsor explain in comments)
invalid
This doesn't seem right
Handle
Randyyy
Vulnerability details
Impact
The owner of this contract can set the approval of a token to the assetproxy, however if the approval is not unlimited, and the owner want to gave the approval again for USDT token, this would revert, this can happen because it is required the set the approval to 0 first before making a new approval in the for USDT
Proof of Concept
https://github.com/code-423n4/2022-01-notional/blob/main/contracts/TreasuryManager.sol#L79
The text was updated successfully, but these errors were encountered: