When extra ETH are sent while calling the tillIn function, such extra ETH can be locked in the token manager unless the token manager's owner calls the rescue function to transfer such extra ETH out from the token manager. However, there is no guarantee that such owner would perform such action.
When calling the tillIn function below with the _tokenAddress input being wrappedNativeToken, if msg.value is more than _amount, the extra ETH that equals msg.value minus _amount is not used so such extra ETH would remain in the token manager.
Similarly, when the _tokenAddress input is not wrappedNativeToken, the tillIn function would not use msg.value in any way. Thus, if some ETH are sent when calling the tillIn function with the _tokenAddress input not being wrappedNativeToken, such sent ETH would remain in the token manager.
The extra ETH sent to the token manager would be locked in the token manager unless the token manager's owner calls the rescue function to transfer such extra ETH out from the token manager. Yet, there is no guarantee that the token manager's owner would perform such action.
Manual Review
The tillIn function can be updated to revert if msg.value != _amount is true when the _tokenAddress input is wrappedNativeToken and if msg.value is bigger than 0 when the _tokenAddress input is not wrappedNativeToken.
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.