Merge pull request #40 from propeller-heads/router/dc/return-eth

fix: transfer ETH if tokenOut is ETH
This commit is contained in:
Tamara
2025-01-31 12:20:34 -05:00
committed by GitHub

View File

@@ -177,6 +177,8 @@ contract TychoRouter is
if (unwrapEth) {
_unwrapETH(amountOut);
}
if (tokenOut == address(0)) {
// slither-disable-next-line arbitrary-send-eth
payable(receiver).transfer(amountOut);
} else {