TokenDivider::buyOrder()
calculates the sellerFee
based on order information. A user is expected to send this amount + order price to complete purchase. The function reverts properly when the amount sent is less that the expected:
However, this function has no proper handling for when a user sends more eth than required.
When a user sends more eth using this function call, they might loose the extra eth.
User could loose Eth
Manual review
In buyOrder
function, add a mechanism to check for when the amount transfered is more.
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.