Users call buyMartenitsa() to buy Martenitsa via ether. If msg.value is larger than actual price, left dust ether needs to be refunded to the user.
In MartenitsaMarketplace::buyMartenitsa(), users can buy buyMartenitsa via paying related ether. Function checks msg.value need to be larger or equal to buyMartenitsa. When user's msg.value is a little bit larger than price, there will be some dust ether. There ether should be refunded to the user.
The result logs shows as below:
User's dust ether will be left in the smart contract and locked in the smart contract. Because there is not any withdraw function.
Manual & Foundry
Refund the left dust ether to the buyer if there is any.
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.