There are 3 instances of unsafe use of the ERC20 transfer
function that could have dangerous consequences.
At the lines of code indicated above, there are 3 instances where the IERC20 transfer
function is used to transfer ERC20 tokens. This is dangerous as some tokens don't revert on an unsuccessful transfer and these instances don't even check if the transfer has a returned a true
boolean indicating a successful transfer.
Incomplete transfers will affect the claimRewards
function in the LiquidationPool.sol
contract and the distributeFees
and forwardRemainingRewards
function in the LiquidationPoolManager.sol
contract
Manual review.
Use OpenZeppelin's safeTransfer
function instead as used throughout the SmartVaultV5.sol
contract.
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.