Ether will be stuck in the contract if a user sends more in `MartentisaMarketPlace::buyMartenitsa"
The contract checks if msg.value >= listing.price, and later sends listing.price ether to the seller.
Bob wants to buy MartenitsaToken.sol
with listing.price 10 ether, however, he sends 11 ether as msg.value to buyMartenitsa
.
The listing.price is 10 ether, so 10 ether will be send to the seller, but, the one extra ether won't be returned to Bob, neither there is any way to be used by the contract, so it will stay stuck in the contract.
Ether will be stuck in the contract.
Manual review
Return the extra ether back to the user.
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.