The protocol has not considered allowing shorters to use their escrowed ETH to protect their positions. This failure exposes shorters to undue liquidations and the protocol to imbalance that might discourage trade.
During liquidations, the protocol takes away the shorters position collateral and creates a forced bid. This is a loss that can be prevented by allowing the shorter to use their escrowed ETH.
Shorters risk losing their position collateral.
Manual review
We recommend allowing the shorter to use up their escrowed ETH, if available, to protect against liquidations. This can be implemented following these steps:-
Under DataTypes.sol --> ShortRecord, add a storage variable that will be set during short creation:-
Under createShortOrder function, add a boolean parameter that allows the shorter to state whether their escrowed ETH can be used to forestall liquidation.
At Ln 69, set the storage variable
The liquidate function should first use up available ETH escrowed before proceeding to force a bid.
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.