In the DeliveryPlace.closeBidTaker
function, all of collaterals for settled offer are liquidated by the bid taker.
If offer is settled partially, collaterals only for unsettled points should be liquidated.
As a result, bid taker can receive unexpected collaterals and this causes the protocol's loss of funds.
In the DeliveryPlace.closeBidTaker
function, if preOffer
is settled, the portion of settledPointTokenAmount
point tokens are added to bid taker from L195
Thus, the collateral only for unsettled points should be liquidated.
But, collaterals for settled points are also liquidated from L184.
The bid taker can receive unexpected collaterals and this causes the protocol's loss of funds.
Manual Review
In the DeliveryPlace.closeBidTaker
function, if the preOffer
is settled, liquidate the collaterals for unsettled points.
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.