The ExitShort contract provides a mechanism for users to partially withdraw their shorts. However, it has been observed that under specific circumstances, such as a significant increase in the price of ETH, the contract inhibits users from executing partial withdrawals of legitimate amounts. This is due to the contract's classification of these amounts as 'dust' in response to the price surge. The subsequent Proof of Concept (POC) elaborates on this case:
This will restrict a significant number of users from utilizing the partial exit short feature if the price escalates.
Manual Review , Foundry
Please Remove the LibOracle.getPrice(asset)
from the line https://github.com/Cyfrin/2023-09-ditto/blob/main/contracts/facets/ExitShortFacet.sol#L110 and https://github.com/Cyfrin/2023-09-ditto/blob/main/contracts/facets/ExitShortFacet.sol#L110. as we are already checking for minBid value here.
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.