https://github.com/Cyfrin/2024-07-zaros/blob/main/src/perpetuals/branches/LiquidationBranch.sol#L105-L223
Processing multiple accounts in liquidateAccounts
can exceed the gas limit, causing transactions to revert.
The function liquidateAccounts
does not have a mechanism to limit the number of accounts processed in a single transaction. If the number of accounts is too large, the transaction can exceed the gas limit and revert, leading to potential denial of service.
Transaction Reversion: Exceeding the gas limit causes the transaction to revert.
Denial of Service: Legitimate liquidation operations might be delayed or prevented due to reverted transactions.
Manual
Limit Account Processing: Implement a mechanism to limit the number of accounts processed in a single transaction.
Break Tasks into Smaller Chunks: Split the liquidation process into multiple smaller transactions to stay within gas limits.
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.