TokenManager::tillIn is a payable function, which accepts WETH as depositing ERC20, the function takes msg.value and wraps them to WETH, but in the case of excessive values, those are not refunded to user.
tillIn accepts Ethers, and deposit required amount to WETH for further token transfer:
But in the case which msg.value > amount, the excessive amounts are not refunded back to user, causing loss of funds.
Potential loss of funds for users.
Manual review
Return the excessive funds, or require msg.value == amount
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.