User can create a huge amount of addresses and with LiquidationPool::increasePosition()
push an enormous amount of stakes in the storage pendingStakes
variable.
LiquidationPool
contract heavily depends on pendingStakes.length
since pendingStakes
storage variable iterates over it will lead to the DoS of the entire protocol.
Even though the protocol has functionality to remove pendingStake
it also depends on the loop and there may not be enough gas in the transaction to remove it from the storage variable either.
VsCode
Add length limitation to pendingStakes
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.