mirror of
https://github.com/Instadapp/dsa-connectors-2.0.git
synced 2024-07-29 21:57:39 +00:00
fix: events && add-newlines
This commit is contained in:
parent
a275049482
commit
edd17e6dae
|
|
@ -3,4 +3,4 @@ pragma solidity 0.8.19;
|
||||||
|
|
||||||
contract Events {
|
contract Events {
|
||||||
event LogDeposit(uint256 amount, uint256 getId, uint256 setId);
|
event LogDeposit(uint256 amount, uint256 getId, uint256 setId);
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -5,4 +5,4 @@ import "./interfaces.sol";
|
||||||
|
|
||||||
contract Helpers{
|
contract Helpers{
|
||||||
IEtherfiPool constant etherfiPool = IEtherfiPool(0x308861A430be4cce5502d0A12724771Fc6DaF216);
|
IEtherfiPool constant etherfiPool = IEtherfiPool(0x308861A430be4cce5502d0A12724771Fc6DaF216);
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -3,4 +3,4 @@ pragma solidity 0.8.19;
|
||||||
|
|
||||||
interface IEtherfiPool{
|
interface IEtherfiPool{
|
||||||
function deposit() external payable returns (uint256);
|
function deposit() external payable returns (uint256);
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -2,9 +2,10 @@
|
||||||
pragma solidity 0.8.19;
|
pragma solidity 0.8.19;
|
||||||
|
|
||||||
import "./helpers.sol";
|
import "./helpers.sol";
|
||||||
|
import "./events.sol";
|
||||||
import {Basic} from "../../common/basic.sol";
|
import {Basic} from "../../common/basic.sol";
|
||||||
|
|
||||||
contract EETHContract is Helpers, Basic {
|
contract EETHContract is Helpers, Basic, Events {
|
||||||
/**
|
/**
|
||||||
* @dev deposit ETH into Etherfi.
|
* @dev deposit ETH into Etherfi.
|
||||||
* @notice stake Eth in Etherfi, users receive eETH tokens on a 1:1 basis representing their staked ETH.
|
* @notice stake Eth in Etherfi, users receive eETH tokens on a 1:1 basis representing their staked ETH.
|
||||||
|
|
|
||||||
|
|
@ -4,4 +4,4 @@ pragma solidity 0.8.19;
|
||||||
contract Events {
|
contract Events {
|
||||||
event LogDeposit(uint256 eETHAmount, uint256 weETHAmount, uint256 getId, uint256 setId);
|
event LogDeposit(uint256 eETHAmount, uint256 weETHAmount, uint256 getId, uint256 setId);
|
||||||
event LogWithdraw(uint256 weETHAmount, uint256 eETHAmount, uint256 getId, uint256 setId);
|
event LogWithdraw(uint256 weETHAmount, uint256 eETHAmount, uint256 getId, uint256 setId);
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -5,4 +5,4 @@ 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);
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -2,9 +2,10 @@
|
||||||
pragma solidity 0.8.19;
|
pragma solidity 0.8.19;
|
||||||
|
|
||||||
import "./helpers.sol";
|
import "./helpers.sol";
|
||||||
|
import "./events.sol";
|
||||||
import {Basic} from "../../common/basic.sol";
|
import {Basic} from "../../common/basic.sol";
|
||||||
|
|
||||||
contract WEETHContract is Helpers, Basic {
|
contract WEETHContract is Helpers, Basic, Events {
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @dev Deposit eETH into weETH.
|
* @dev Deposit eETH into weETH.
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user