The distributeAssets()
of LiquidationPool.sol contract may revert due to out of gas error.
There is a unique holder per position which is added when pendingStakes are consolidated here. The issues lies if there are too many positions open at once which resutls in too many holders. Then the distributeAssets()
of LiquidationPool.sol has to iterate through all the holders one by one and in doing so, The transcation cost may exceed the block gas limit.
The rewards can never be added and runLiquidation
of LiquidationPoolManager.sol will revert if distributeAssets()
of LiquidationPool.sol reverts.
Manual Review
Add a limit on number of positions that can be opened or be active at once which will limit number of unique holders.
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.