Merge branch 'feat/weeth-connector' of github.com:Instadapp/dsa-connectors-2.0 into feat/weeth-connector

This commit is contained in:
Samarendra Gouda 2024-04-15 15:26:04 +05:30
commit 29d6772fa0
4 changed files with 19 additions and 7 deletions

View File

@ -2,6 +2,16 @@
pragma solidity 0.8.19; pragma solidity 0.8.19;
contract Events { contract Events {
event LogDeposit(uint256 eETHAmount, uint256 weETHAmount, uint256 getId, uint256 setId); event LogDeposit(
event LogWithdraw(uint256 weETHAmount, uint256 eETHAmount, uint256 getId, uint256 setId); uint256 eETHAmount,
uint256 weETHAmount,
uint256 getId,
uint256 setId
);
event LogWithdraw(
uint256 weETHAmount,
uint256 eETHAmount,
uint256 getId,
uint256 setId
);
} }

View File

@ -4,7 +4,10 @@ pragma solidity 0.8.19;
import "./interfaces.sol"; import "./interfaces.sol";
import {TokenInterface} from "../../common/interfaces.sol"; import {TokenInterface} from "../../common/interfaces.sol";
contract Helpers{ contract Helpers {
IWEETH internal constant WEETH_CONTRACT = IWEETH(0xCd5fE23C85820F7B72D0926FC9b05b43E359b7ee); IWEETH internal constant WEETH_CONTRACT =
TokenInterface internal constant EETH_CONTRACT = TokenInterface(0x35fA164735182de50811E8e2E824cFb9B6118ac2); IWEETH(0xCd5fE23C85820F7B72D0926FC9b05b43E359b7ee);
TokenInterface internal constant EETH_CONTRACT =
TokenInterface(0x35fA164735182de50811E8e2E824cFb9B6118ac2);
} }

View File

@ -1,7 +1,7 @@
//SPDX-License-Identifier: MIT //SPDX-License-Identifier: MIT
pragma solidity 0.8.19; pragma solidity 0.8.19;
interface IWEETH{ interface IWEETH {
function balanceOf(address account) external view returns (uint256); function balanceOf(address account) external view returns (uint256);
function wrap(uint256 _eETHAmount) external returns (uint256); function wrap(uint256 _eETHAmount) external returns (uint256);
function unwrap(uint256 _weETHAmount) external returns (uint256); function unwrap(uint256 _weETHAmount) external returns (uint256);

View File

@ -6,7 +6,6 @@ import "./events.sol";
import {Basic} from "../../common/basic.sol"; import {Basic} from "../../common/basic.sol";
contract WEETHContract is Helpers, Basic, Events { contract WEETHContract is Helpers, Basic, Events {
/** /**
* @dev Deposit eETH into weETH. * @dev Deposit eETH into weETH.
* @notice Wrap eETH into weETH * @notice Wrap eETH into weETH