Closed MarkInc3 closed 4 months ago
Because there is a caveat, we applied the safeTransfer format, which is widely used, rather than the safeTransfer format, which has not been tested much. https://github.com/tokamak-network/crossTrade/blob/ApplyFirstAudit/contracts/libraries/SafeERC20.sol
Okay, I think we can close this issue.
Configuration
Description
Contracts need to support tokens that do not use the ERC20 token standard
Recommendation
Check the return value in the contract and handle it, or use the SafeTransfer library. Additionally, there are implementations that perform the same functionality but save gas.
Exploit Scenario
Lines of Codes
Code to check
Demo
Below is a SafeTransfer with the assembly applied.