feat: Change revert condition in _wrapETH

--- don't change below this line ---
ENG-4476 Took 1 minute
This commit is contained in:
Diana Carvalho
2025-05-02 12:48:03 +01:00
parent 8a7c39052d
commit 04000059e5

View File

@@ -757,7 +757,7 @@ contract TychoRouter is AccessControl, Dispatcher, Pausable, ReentrancyGuard {
* @param amount of native ETH to wrap.
*/
function _wrapETH(uint256 amount) internal {
if (msg.value > 0 && msg.value != amount) {
if (msg.value != amount) {
revert TychoRouter__MessageValueMismatch(msg.value, amount);
}
_weth.deposit{value: amount}();