The buyOrder
function allows users to send Ether to the contract for purchasing tokens. However, in scenarios where there is an overpayment (due to user error or miscalculations in the function), the excess Ether sent to the contract remains stuck, as there is no mechanism for withdrawing the trapped funds.
Any Ether accidentally overpaid by the buyer is permanently stuck in the contract.
Ether left in the contract as a result of a calculation error in buyerOrder is stuck in the contract
Manual Review
Add a withdrawEther
function to allow the contract owner to recover stuck Ether in the contract.
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.