Collateral can be withdrawn while an order is pending. This will grief the keepers by having them attempt to execute orders that will fail due to insufficient collateral.
This also opens up the possibility for users to better time the settlement of an order by depositing the needed collateral right when they want an order to be settled.
Alice opens a long position with a size of 100; the collateral required is 20.
In one transaction, Alice first calls createMarketOrder to place the valid order. Then she calls withdrawMargin to withdraw the margin so that settlement fails.
Alice repeats this, griefing the keepers over and over.
Likelihood is low; impact is medium. I would rate this as low.
Griefing.
Manual analysis.
Check that there are no pending orders when depositing and withdrawing.
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.