Lower level call will fails for tokens that do not return bool value on transfer
.call
cannot detect failure of transfer of tokens like USDT that does not have return bool value.
Failing on basis of requiring return value for tokens that does not have any value on transfer and will make it impossible to carry out crucial operations that related to transfer of tokens in functions of liquidateNative
, removeCollateralNative
and executeNativeSwapAndFee
.
Manual Code Review
The recommendation is made to use safeTransfer
instead of call for transferring tokens.
The contest is live. Earn rewards by submitting a finding.
This is your time to appeal against judgements on your submissions.
Appeals are being carefully reviewed by our judges.