Function DeliveryPlace.closeBidTaker
is supposed to close a buy take, and the amount of pointToken
is supposed to be updated at the end of the function instead of makerInfo.tokenAddress
in DeliveryPlace.sol#L198
In DeliveryPlace.closeBidTaker, the function is used to close bid taker, and in DeliveryPlace.sol#L190-L194, the pointTokenAmount
is calculated, thus in DeliveryPlace.sol#L195-L200, the balance should be updated is marketPlaceInfo.tokenAddress instead of makerInfo.tokenAddress, because makerInfo.tokenAddress
stands for collateral token, and marketPlaceInfo.tokenAddress
stands for pointToken
Buyer can't receive the correct pointToken
VS
Valid high severity, In `settleAskTaker/closeBidTaker`, by assigning collateral token to user balance instead of point token, if collateral token is worth more than point, this can cause stealing of other users collateral tokens within the CapitalPool contract, If the opposite occurs, user loses funds based on the points they are supposed to receive
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.