Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

First set of Aave wrappers on Base #18

Open
wants to merge 6 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
26 changes: 26 additions & 0 deletions test/base/ERC4626BaseAaveCbBTC.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 ERC4626BaseAaveCbBTCTest is ERC4626WrapperBaseTest {
function setUp() public override {
ERC4626WrapperBaseTest.setUp();
}

function setUpForkTestVariables() internal override {
network = "base";
overrideBlockNumber = 25630845;

// Aave's acbBTC
wrapper = IERC4626(0xFA2A03b6f4A65fB1Af64f7d935fDBf78693df9aF);
// Donor of cbBTC tokens
underlyingDonor = 0xF877ACaFA28c19b96727966690b2f44d35aD5976;
amountToDonate = 1e2 * 1e8;
}
}
26 changes: 26 additions & 0 deletions test/base/ERC4626BaseAaveCbETH.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 ERC4626BaseAaveCbETHTest is ERC4626WrapperBaseTest {
function setUp() public override {
ERC4626WrapperBaseTest.setUp();
}

function setUpForkTestVariables() internal override {
network = "base";
overrideBlockNumber = 25630845;

// Aave's acbETH
wrapper = IERC4626(0x5e8B674127B321DC344c078e58BBACc3f3008962);
// Donor of cbETH tokens
underlyingDonor = 0x3bf93770f2d4a794c3d9EBEfBAeBAE2a8f09A5E5;
amountToDonate = 1e3 * 1e18;
}
}
26 changes: 26 additions & 0 deletions test/base/ERC4626BaseAaveEzETH.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 ERC4626BaseAaveEzETHTest is ERC4626WrapperBaseTest {
function setUp() public override {
ERC4626WrapperBaseTest.setUp();
}

function setUpForkTestVariables() internal override {
network = "base";
overrideBlockNumber = 25630845;

// Aave's aezETH
wrapper = IERC4626(0xF8F10f39116716e89498c1c5E94137ADa11b2BC7);
// Donor of ezETH tokens
underlyingDonor = 0xBBBBBbbBBb9cC5e90e3b3Af64bdAF62C37EEFFCb;
amountToDonate = 200 * 1e18;
}
}
26 changes: 26 additions & 0 deletions test/base/ERC4626BaseAaveUSDC.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 ERC4626BaseAaveUSDCTest is ERC4626WrapperBaseTest {
function setUp() public override {
ERC4626WrapperBaseTest.setUp();
}

function setUpForkTestVariables() internal override {
network = "base";
overrideBlockNumber = 25630845;

// Aave's aUSDC
wrapper = IERC4626(0xC768c589647798a6EE01A91FdE98EF2ed046DBD6);
// Donor of USDC tokens
underlyingDonor = 0x0B0A5886664376F59C351ba3f598C8A8B4D0A6f3;
amountToDonate = 1e6 * 1e6;
}
}
26 changes: 26 additions & 0 deletions test/base/ERC4626BaseAaveUSDbC.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 ERC4626BaseAaveUSDbCTest is ERC4626WrapperBaseTest {
function setUp() public override {
ERC4626WrapperBaseTest.setUp();
}

function setUpForkTestVariables() internal override {
network = "base";
overrideBlockNumber = 25630845;

// Aave's aUSDbC
wrapper = IERC4626(0x74D4D1D440c9679b1013999Bd91507eAa2fff651);
// Donor of USDbC tokens
underlyingDonor = 0xB4885Bc63399BF5518b994c1d0C153334Ee579D0;
amountToDonate = 1e5 * 1e6;
}
}
26 changes: 26 additions & 0 deletions test/base/ERC4626BaseAaveWeETH.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 ERC4626BaseAaveWeETHTest is ERC4626WrapperBaseTest {
function setUp() public override {
ERC4626WrapperBaseTest.setUp();
}

function setUpForkTestVariables() internal override {
network = "base";
overrideBlockNumber = 25630845;

// Aave's awstETH
wrapper = IERC4626(0x6acD0a165fD70A84b6b50d955ff3628700bAAf4b);
// Donor of wstETH tokens
underlyingDonor = 0x52Aa899454998Be5b000Ad077a46Bbe360F4e497;
amountToDonate = 1e3 * 1e18;
}
}
26 changes: 26 additions & 0 deletions test/base/ERC4626BaseAaveWeth.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 ERC4626BaseAaveWethTest is ERC4626WrapperBaseTest {
function setUp() public override {
ERC4626WrapperBaseTest.setUp();
}

function setUpForkTestVariables() internal override {
network = "base";
overrideBlockNumber = 25630845;

// Aave's Weth
wrapper = IERC4626(0xe298b938631f750DD409fB18227C4a23dCdaab9b);
// Donor of Weth tokens
underlyingDonor = 0xb2cc224c1c9feE385f8ad6a55b4d94E92359DC59;
amountToDonate = 1e2 * 1e8;
}
}
26 changes: 26 additions & 0 deletions test/base/ERC4626BaseAaveWstETH.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 ERC4626BaseAaveWstETHTest is ERC4626WrapperBaseTest {
function setUp() public override {
ERC4626WrapperBaseTest.setUp();
}

function setUpForkTestVariables() internal override {
network = "base";
overrideBlockNumber = 25630845;

// Aave's awstETH
wrapper = IERC4626(0x0830820D1A9aa1554364752d6D8F55C836871B74);
// Donor of wstETH tokens
underlyingDonor = 0xBBBBBbbBBb9cC5e90e3b3Af64bdAF62C37EEFFCb;
amountToDonate = 1e3 * 1e18;
}
}