Skip to content

Commit

Permalink
test: add GHO & USDe (#6)
Browse files Browse the repository at this point in the history
* test: add GHO & USDe

* test: change block number to before buffer init
  • Loading branch information
mkflow27 authored Jan 9, 2025
1 parent fe8efd0 commit 11bc496
Show file tree
Hide file tree
Showing 2 changed files with 52 additions and 0 deletions.
26 changes: 26 additions & 0 deletions test/mainnet/ERC4626MainnetAaveLidoGho.t.sol
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
// SPDX-License-Identifier: GPL-3.0-or-later

pragma solidity ^0.8.24;

import "forge-std/Test.sol";

import { IERC4626 } from "@openzeppelin/contracts/interfaces/IERC4626.sol";

import { ERC4626WrapperBaseTest } from "../ERC4626WrapperBase.t.sol";

contract ERC4626MainnetAaveLidoGhoTest is ERC4626WrapperBaseTest {
function setUp() public override {
ERC4626WrapperBaseTest.setUp();
}

function setUpForkTestVariables() internal override {
network = "mainnet";
overrideBlockNumber = 21587513;

// Lido Aave's GHO
wrapper = IERC4626(0xC71Ea051a5F82c67ADcF634c36FFE6334793D24C);
// Donor of GHO tokens
underlyingDonor = 0x1a88Df1cFe15Af22B3c4c783D4e6F7F9e0C1885d;
amountToDonate = 1e6 * 1e18;
}
}
26 changes: 26 additions & 0 deletions test/mainnet/ERC4626MainnetAaveUSDe.t.sol
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
// SPDX-License-Identifier: GPL-3.0-or-later

pragma solidity ^0.8.24;

import "forge-std/Test.sol";

import { IERC4626 } from "@openzeppelin/contracts/interfaces/IERC4626.sol";

import { ERC4626WrapperBaseTest } from "../ERC4626WrapperBase.t.sol";

contract ERC4626MainnetAaveUsdeTest is ERC4626WrapperBaseTest {
function setUp() public override {
ERC4626WrapperBaseTest.setUp();
}

function setUpForkTestVariables() internal override {
network = "mainnet";
overrideBlockNumber = 21466061;

// Aave's USDe
wrapper = IERC4626(0x5F9D59db355b4A60501544637b00e94082cA575b);
// Donor of USDe tokens
underlyingDonor = 0x4dB99b79361F98865230f5702de024C69f629fEC;
amountToDonate = 1e6 * 1e18;
}
}

0 comments on commit 11bc496

Please sign in to comment.