According to documentation, When CR >= minimumCR, the shorter will get back some of their collateral, with 1 CR worth of collateral being burned to cover the position's debt. When CR < minimumCR, the shorter doesn't get anything back, and the remaining collateral goes to the TAPP. If the CR < 1, then the TAPP is getting less collateral back in paying off the under-collateralized debt.
In the _performForcedBid() function, if the loseCollateral is true, the shorter will lose his collateral. But the problem is, according to the docs, the shorter only needs to lose his collateral when cRatio < minimunCR , the current implementation could lead to the loss of collateral even in states where it should be secure.
This might lead to unexpected loss of collateral for users who should have been within safe limits.
Manual Review
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.