Skip to content

Commit

Permalink
feat: make weth and pool public for easier validation (aave-dao#85)
Browse files Browse the repository at this point in the history
  • Loading branch information
sakulstra authored Oct 21, 2024
1 parent 07c1da7 commit f910b01
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/contracts/helpers/WrappedTokenGatewayV3.sol
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,8 @@ contract WrappedTokenGatewayV3 is IWrappedTokenGatewayV3, Ownable {
using UserConfiguration for DataTypes.UserConfigurationMap;
using GPv2SafeERC20 for IERC20;

IWETH internal immutable WETH;
IPool internal immutable POOL;
IWETH public immutable WETH;
IPool public immutable POOL;

/**
* @dev Sets the WETH address and the PoolAddressesProvider address. Infinite approves pool.
Expand Down
6 changes: 6 additions & 0 deletions src/contracts/helpers/interfaces/IWrappedTokenGatewayV3.sol
Original file line number Diff line number Diff line change
@@ -1,7 +1,13 @@
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.10;
import {IWETH} from '../interfaces/IWETH.sol';
import {IPool} from '../../interfaces/IPool.sol';

interface IWrappedTokenGatewayV3 {
function WETH() external view returns (IWETH);

function POOL() external view returns (IPool);

function depositETH(address pool, address onBehalfOf, uint16 referralCode) external payable;

function withdrawETH(address pool, uint256 amount, address onBehalfOf) external;
Expand Down

0 comments on commit f910b01

Please sign in to comment.