PreMarktes.sol - Wnen a user calls createOffer
, createTaker
, listOffer
and relistOffer
and the pass in very excess ether to the amount required, it is gone.
The protocol has no functionality to transfer back excess of ether when a user calls any of the functions createOffer
, createTaker
, listOffer
and relistOffer
and passing msg.value
. In addition to this the protocol does not expose any external function to help the user to know in advance amount of ether required for the offer or order.
Loss of funds for user who mistakenly added excess especially for users who want to interact with the system using smart contracts instead of the UI offered by tadle.com
Manual Review
In the functions createOffer
, createTaker
, listOffer
and relistOffer
add a mechanism to send back to the user the difference in ether between the msg.value
and actual amount used
Invalid, these are by default, invalid based on codehawks [general guidelines](https://docs.codehawks.com/hawks-auditors/how-to-determine-a-finding-validity#findings-that-may-be-invalid). The check implemented is simply a sufficiency check, it is users responsibility to only send an appropriate amount of native tokens where amount == msg.value when native token is intended to be used as collateral (which will subsequently be deposited as wrapped token). All excess ETH can be rescued using the `Rescuable.sol` contract. > Users sending ETH/native tokens > If contracts allow users to send tokens acc111identally.
Invalid, these are by default, invalid based on codehawks [general guidelines](https://docs.codehawks.com/hawks-auditors/how-to-determine-a-finding-validity#findings-that-may-be-invalid). The check implemented is simply a sufficiency check, it is users responsibility to only send an appropriate amount of native tokens where amount == msg.value when native token is intended to be used as collateral (which will subsequently be deposited as wrapped token). All excess ETH can be rescued using the `Rescuable.sol` contract. > Users sending ETH/native tokens > If contracts allow users to send tokens acc111identally.
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.