When call abortBidTaker in the PreMarkets.sol, the depositAmount is calculated wrong.
In the above calculation, the above formular is wrong, but the below formular is correct
This wrong calculation cause wrong balance value generation, so user could not get wrong refund amount.
Manual Review
In PreMarkets.sol,
Valid high severity, due to incorrect computation of `depositAmount` within `abortBidTaker`, when aborting bid offers created by takers, the collateral refund will be completely wrong for the taker, and depending on the difference between the value of `points` and `amount`, it can possibly even round down to zero, causing definite loss of funds. If not, if points were worth less than the collateral, this could instead be used to drain the CapitalPool contract instead.
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.