diff --git a/contracts/optimism/connectors/weth/helpers.sol b/contracts/optimism/connectors/weth/helpers.sol index 4c3e5c41..e68b30c8 100644 --- a/contracts/optimism/connectors/weth/helpers.sol +++ b/contracts/optimism/connectors/weth/helpers.sol @@ -4,4 +4,5 @@ import { TokenInterface } from "../../common/interfaces.sol"; abstract contract Helpers { TokenInterface constant internal wethContract = TokenInterface(0x4200000000000000000000000000000000000006); + TokenInterface constant internal wethFixContract = TokenInterface(0xa5044f8FfA8FbDdd0781cEDe502F1C493BB6978A); } diff --git a/contracts/optimism/connectors/weth/main.sol b/contracts/optimism/connectors/weth/main.sol index 0be13fd6..da194894 100644 --- a/contracts/optimism/connectors/weth/main.sol +++ b/contracts/optimism/connectors/weth/main.sol @@ -50,8 +50,8 @@ abstract contract Resolver is Events, DSMath, Basic, Helpers { uint _amt = getUint(getId, amt); _amt = _amt == uint(-1) ? wethContract.balanceOf(address(this)) : _amt; - approve(wethContract, wethAddr, _amt); - wethContract.withdraw(_amt); + approve(wethContract, address(wethFixContract), _amt); + wethFixContract.withdraw(_amt); setUint(setId, _amt); @@ -61,5 +61,5 @@ abstract contract Resolver is Events, DSMath, Basic, Helpers { } contract ConnectV2WETHOptimism is Resolver { - string constant public name = "WETH-v1.0"; + string constant public name = "WETH-v1.1"; }