Users who want to buy points must transfer points first
when the bid-makers want to buy points in exchange for their token, they have to transfer them to the capitalPool to receive points. this is unintended and leads to loss of funds or the DeliveryPlace::settleAskTaker
function not working properly.
only the owner of the offer can call the settleAskTaker
function and this function forces the owner of the offer to transfer points to the capitalPool in the amount of settledPointTokenAmount
. this is unintended cause bid-makers provide and inject erc20 tokens to capitalPool to receive points.
if they have any points before the trade process, they will lose them. if they do not, it will get reverted.
This test demonstrates the scenario by adding it to the PreMarkets.t.sol
:
simply run:
bid-makers Must pay points to buy points, which leads to loss of funds or revert if they don't have any
manual review, unit tests
remove the whole tillIn
external call from the `DeliveryPlace::settleAskTaker because the bid-maker shouldn't inject points to the capitalPool
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.