Some check needs to be regulated
https://github.com/Cyfrin/2023-09-ditto/blob/a93b4276420a092913f43169a353a6198d3c21b9/contracts/facets/ShortOrdersFacet.sol#L46-L48
1.this needs to be: Asset.initialMargin > initialCR || cr > Constants.CRATIO_MAX
because the cr it should be possible to be the maximum value;
2.this needs to be: value >= 100
because the error said it will be below 100, but if you set it to 100 it will revert too
3.this needs to be: LibAsset.initialMargin(asset) <= Constants.CRATIO_MAX
because the initial margin should be able to be equal to collateral ration max
wrong check
manual
fix the check that I write
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.