-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
9015e75
commit 3be38aa
Showing
6 changed files
with
145 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
// 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 ERC4626MainnetFluidGhoTest is ERC4626WrapperBaseTest { | ||
function setUp() public override { | ||
ERC4626WrapperBaseTest.setUp(); | ||
|
||
// This token has specific minimum deposit and mint requirements, so we need to override the default here. | ||
minDeposit = 1e9; | ||
} | ||
|
||
function setUpForkTestVariables() internal override { | ||
network = "mainnet"; | ||
|
||
// Fluid's GHO | ||
wrapper = IERC4626(0x6A29A46E21C730DcA1d8b23d637c101cec605C5B); | ||
// Donor of GHO tokens | ||
underlyingDonor = 0x1a88Df1cFe15Af22B3c4c783D4e6F7F9e0C1885d; | ||
amountToDonate = 1e6 * 1e18; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
// 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 ERC4626MainnetFluidUsdcTest is ERC4626WrapperBaseTest { | ||
function setUp() public override { | ||
ERC4626WrapperBaseTest.setUp(); | ||
} | ||
|
||
function setUpForkTestVariables() internal override { | ||
network = "mainnet"; | ||
|
||
// Fluid's USDC | ||
wrapper = IERC4626(0x9Fb7b4477576Fe5B32be4C1843aFB1e55F251B33); | ||
// Donor of USDC tokens | ||
underlyingDonor = 0x4B16c5dE96EB2117bBE5fd171E4d203624B014aa; | ||
amountToDonate = 1e6 * 1e6; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
// 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 ERC4626MainnetFluidUsdtTest is ERC4626WrapperBaseTest { | ||
function setUp() public override { | ||
ERC4626WrapperBaseTest.setUp(); | ||
} | ||
|
||
function setUpForkTestVariables() internal override { | ||
network = "mainnet"; | ||
|
||
// Fluid's USDT | ||
wrapper = IERC4626(0x5C20B550819128074FD538Edf79791733ccEdd18); | ||
// Donor of USDT | ||
underlyingDonor = 0xF977814e90dA44bFA03b6295A0616a897441aceC; | ||
amountToDonate = 1e6 * 1e6; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
// 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 ERC4626MainnetFluidWethTest is ERC4626WrapperBaseTest { | ||
function setUp() public override { | ||
ERC4626WrapperBaseTest.setUp(); | ||
|
||
// This token has specific minimum deposit and mint requirements, so we need to override the default here. | ||
minDeposit = 2e6; | ||
} | ||
|
||
function setUpForkTestVariables() internal override { | ||
network = "mainnet"; | ||
|
||
// Fluid's WETH | ||
wrapper = IERC4626(0x90551c1795392094FE6D29B758EcCD233cFAa260); | ||
// Donor of WETH tokens | ||
underlyingDonor = 0xF04a5cC80B1E94C69B48f5ee68a08CD2F09A7c3E; | ||
// The wrapper has a maximum amount to deposit and withdraw, or else it fails. | ||
amountToDonate = 1e3 * 1e18; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
// 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 ERC4626MainnetFluidWstEthTest is ERC4626WrapperBaseTest { | ||
function setUp() public override { | ||
ERC4626WrapperBaseTest.setUp(); | ||
|
||
// This token has specific minimum deposit and mint requirements, so we need to override the default here. | ||
minDeposit = 1.1e6; | ||
} | ||
|
||
function setUpForkTestVariables() internal override { | ||
network = "mainnet"; | ||
|
||
// Fluid's WstETH | ||
wrapper = IERC4626(0x2411802D8BEA09be0aF8fD8D08314a63e706b29C); | ||
// Donor of WstETH tokens | ||
underlyingDonor = 0x12B54025C112Aa61fAce2CDB7118740875A566E9; | ||
// The wrapper has a maximum amount to deposit and withdraw, or else it fails. | ||
amountToDonate = 1e3 * 1e18; | ||
} | ||
} |