deliveryPlace:settleAskTaker()
adds pointsToken at collateralToken address instead of pointsToken address
A user can settle his askTaker
using deliveryPlace:settleAskTaker()
, which transfers the pointsToken
from msg.sender to capitalPool. Also it adds those pointsToken to offerInfo.authority
, but the problem is instead of using pointsToken
address it uses collateralToken
address
In the above code we can see it passes makerInfo.tokenAddress
(which is collateralToken address) to add pointsToken to offerInfo.authority
PointsToken will be added at collateralToken address. As result user will not be able to withdraw pointsToken
Manual Review
Use pointsToken address(marketPlaceInfo.tokenAddress) instead of collateralToken address in deliveryPlace:settleAskTaker()
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.