TokenManager.tillIn
keeps dust ETH left in the contract instead of returning to the user
in TokenManager.tillIn, when native token is used in TokenManager.sol#L78-L91, the function checks if msg.value < _amount
and then deposit _amount
native token for wrapped token.
It's possible that a user transfer more native token than _amount
, in such case, the dust token will be left in the contract.
dust native token will be left in the contract
VS code
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.