Skip to content

Commit

Permalink
Merge pull request #197 from 1inch/feature/add-sENA-wrapper
Browse files Browse the repository at this point in the history
[SC-1282] Add sENA wrapper
  • Loading branch information
zZoMROT authored Nov 22, 2024
2 parents e84952c + 7722554 commit 9c75da9
Show file tree
Hide file tree
Showing 4 changed files with 254 additions and 501 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ If no direct liquidity pair exists between two tokens, the spot price aggregator
* wstETH - [0x37eB78fE793E89353e46AEe73E299985C3B8d334](https://etherscan.io/address/0x37eB78fE793E89353e46AEe73E299985C3B8d334)
* CHAI - [0x6fE4926a0fCc78ab764b39f2738e1Dea145d7AC0](https://etherscan.io/address/0x6fE4926a0fCc78ab764b39f2738e1Dea145d7AC0)
* Erc4626 - [0xE2B06CDBB6128347B11DE676DA8b51e1e1f7F76E](https://etherscan.io/address/0xE2B06CDBB6128347B11DE676DA8b51e1e1f7F76E)
* [sUSDe](https://etherscan.io/address/0x9D39A5DE30e57443BfF2A8307A4256c8797A3497), [sDAI](https://etherscan.io/address/0x83F20F44975D03b1b09e64809B757c47f942BEeA), [xrETH](https://etherscan.io/address/0xBB22d59B73D7a6F3A8a83A214BECc67Eb3b511fE), [scrvUSD](https://etherscan.io/address/0x0655977FEb2f289A4aB78af67BAB0d17aAb84367)
* [sUSDe](https://etherscan.io/address/0x9D39A5DE30e57443BfF2A8307A4256c8797A3497), [sDAI](https://etherscan.io/address/0x83F20F44975D03b1b09e64809B757c47f942BEeA), [xrETH](https://etherscan.io/address/0xBB22d59B73D7a6F3A8a83A214BECc67Eb3b511fE), [scrvUSD](https://etherscan.io/address/0x0655977FEb2f289A4aB78af67BAB0d17aAb84367), [sENA](https://etherscan.io/address/0x8bE3460A480c80728a8C4D7a5D5303c85ba7B3b9)

</details>

Expand Down
6 changes: 2 additions & 4 deletions contracts/wrappers/Erc4626Wrapper.sol
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,11 @@ import "@openzeppelin/contracts/interfaces/IERC4626.sol";
import "@openzeppelin/contracts/access/Ownable.sol";

contract Erc4626Wrapper is IWrapper, Ownable {
mapping(IERC20 => IERC20) public assosiatedToken;

constructor(address _owner) Ownable(_owner) {} // solhint-disable-line no-empty-blocks

mapping(IERC20 => IERC20) public baseToWbase;
mapping(IERC20 => IERC20) public wbaseToBase;

constructor(address _owner) Ownable(_owner) {} // solhint-disable-line no-empty-blocks

function addMarkets(address[] memory tokens) external onlyOwner {
for (uint256 i = 0; i < tokens.length; i++) {
IERC20 baseToken = IERC20(IERC4626(tokens[i]).asset());
Expand Down
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,11 +29,11 @@
"eslint-plugin-n": "17.13.0",
"eslint-plugin-promise": "7.1.0",
"ethers": "6.13.4",
"hardhat": "2.19.5",
"hardhat": "2.22.16",
"hardhat-dependency-compiler": "1.2.1",
"hardhat-deploy": "0.12.4",
"hardhat-gas-reporter": "1.0.10",
"hardhat-tracer": "2.7.0",
"hardhat-tracer": "3.1.0",
"rimraf": "6.0.1",
"solhint": "5.0.3",
"solidity-coverage": "0.8.13",
Expand Down
Loading

0 comments on commit 9c75da9

Please sign in to comment.