-
Notifications
You must be signed in to change notification settings - Fork 0
Open
Labels
0 (Non-critical)bugSomething isn't workingSomething isn't workingdisagree with severityduplicateThis issue or pull request already existsThis issue or pull request already existsinvalidThis doesn't seem rightThis doesn't seem rightsponsor disputed
Description
Handle
shw
Vulnerability details
Impact
In the following lines of code, when transferring tokens, it is assumed that the token complies with the standard ERC20 interface (since the OpenZeppelin IERC20 is used). However, for tokens that do not have a return value of transfer or transferFrom (e.g., USDT and BNB) the function calls transfer and transferFrom reverts due to a return value decoding error.
Proof of Concept
Referenced code:
LongShort.sol#L791
YieldManagerAave.sol#L132
Recommended Mitigation Steps
Use the SafeERC20 library implementation from OpenZeppelin, which handles tokens that have no return values of transfer and transferFrom.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
0 (Non-critical)bugSomething isn't workingSomething isn't workingdisagree with severityduplicateThis issue or pull request already existsThis issue or pull request already existsinvalidThis doesn't seem rightThis doesn't seem rightsponsor disputed