collateralTokenAddress is used instead of pointsTokenAddress while adding points tokenBalance to buyer in deliveryPlace::closeBidTaker()
When a buyer/user calls deliveryPlace::closeBidTaker() then it calculates the pointsTokenAmount and adds it to msg.sender address. Now the problem is while adding pointsToken, it passes makerInfo.tokenAddress(which is collateralTokenAddress) instead of pointsTokenAddress
//Here is PoC which shows the pointTokenAmount of buyer is 0, after closing the bid taker
Collateral token balance of user will be updated instead of points tokenBalance
Manual Review
Use pointsTokenAddress from marketPlaceInfo instead of using makerInfo.tokenAddress(which is collateralToken)
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.