The transferAccruedDust
function in LendingPool.sol
is intended to allow the contract owner to transfer accrued dust (small remaining token balances) to a specified recipient. However, the function lacks validation checks on the amount being transferred, which could result in fund mismanagement or unintended behaviour.
The function implementation is as below:
The function does not check whether parameter amount
exceeds the contract’s actual accrued dust balance. This could result in unexpected failures or transfers of nonexistent funds.
It can result to potential fund mismanagement if an invalid amount
is passed.
Manual code review
Ensure amount
does not exceed the contract’s actual accrued dust balance before making the transfer
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.