LiquidationPoolManager::runLiquidation
can cause DOS as it has unbounded loop on holders
length in distributeAsset
function
When liquidating a vault, runLiquidation
is called which calls distributeAsset
in LiquidationPool, which has an unbounded loop over holders
length. As the number of holders increases gas cost will also increase, which eventually gets out of block gas limit
Read this for more https://github.com/wissalHaji/solidity-coding-advices/blob/master/best-practices/be-careful-with-loops.md
As this happens, undercollateralized vaults will be not liquidated
Manual Review
Possible option is include the loop functionality in clam reward function, where portion of staker will be calculated at the time of withdrawal
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.