the closeBidTaker()
and settleAskTaker()
wrongly sets makerInfo.tokenAddress
(collateral token) instead of marketPlaceInfo.tokenAddress
(point token)
in the contract Deliveryplace.sol
the closeBidTaker()
function adds the colaterall token instead of point token
as you know the makerinfo.tokenAddress
is collateral token address, which is given in create offer by offer creator but the marketPlaceInfo.tokenAddress
is address of point token which should be set instead of makerinfo.tokenAddress
for adding balance of point token
add this poc to PreMarkets.t.sol
contract
run with forge test --mt test_wrong_PointToken_poc -vvv
user will not receive point tokens causing loss of point tokens for user
vs code / manually
consider changing the makerinfo.tokenAddress
to actual point token address which is marketPlaceInfo.tokenAddress
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.