fix routeProxy && add avax
This commit is contained in:
@@ -516,6 +516,7 @@ contract DODOV2Proxy02 is IDODOV2Proxy01, ReentrancyGuard, InitializableOwnable
|
||||
) internal {
|
||||
if (isETH) {
|
||||
if (amount > 0) {
|
||||
require(msg.value == amount, "ETH_VALUE_WRONG");
|
||||
IWETH(_WETH_).deposit{value: amount}();
|
||||
if (to != address(this)) SafeERC20.safeTransfer(IERC20(_WETH_), to, amount);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user