TokenDivider::buyOrder
is called by users to purchase an order from a seller, and users must set a msg.value
according to the price of the sell order they wish to buy. However, there is no mechanism to reimburse any surplus ETH sent if msg.value > order.price + sellerFee
.
Loss of ETH for users, with the surplus ETH becoming stuck in the contract due to the absence of a withdrawal function.
Revert the transaction if msg.value > order.price + sellerFee
, or implement a mechanism to reimburse users in the event of a surplus msg.value
.
The extra eth sent by the user in the buy order will be locked in the contract forever
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.