-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add first wave of morpho base vaults (#14)
* add first wave of morpho base vaults * troubleshoot block numbers and underlyingDonors * fix failing tests * Fix CI variables --------- Co-authored-by: João Bruno <[email protected]>
- Loading branch information
1 parent
c1bd94c
commit b2e180f
Showing
7 changed files
with
108 additions
and
1 deletion.
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
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,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 ERC4626BaseMorphSparkUSDCTest is ERC4626WrapperBaseTest { | ||
function setUp() public override { | ||
ERC4626WrapperBaseTest.setUp(); | ||
} | ||
|
||
function setUpForkTestVariables() internal override { | ||
network = "base"; | ||
|
||
// Morpho Spark USDC | ||
wrapper = IERC4626(0x7BfA7C4f149E7415b73bdeDfe609237e29CBF34A); | ||
// Donor of USDC tokens | ||
underlyingDonor = 0xee81B5Afc73Cf528778E0ED98622e434E5eFADb4; | ||
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 ERC4626BaseMorphoIonicUSDCTest is ERC4626WrapperBaseTest { | ||
function setUp() public override { | ||
ERC4626WrapperBaseTest.setUp(); | ||
} | ||
|
||
function setUpForkTestVariables() internal override { | ||
network = "base"; | ||
|
||
// Morpho Ionic USDC | ||
wrapper = IERC4626(0x23479229e52Ab6aaD312D0B03DF9F33B46753B5e); | ||
// Donor of USDC tokens | ||
underlyingDonor = 0x425fc782110110e2aFD2677e3C91EA77Fd7e0A47; | ||
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 ERC4626BaseMorphoIonicWETHTest is ERC4626WrapperBaseTest { | ||
function setUp() public override { | ||
ERC4626WrapperBaseTest.setUp(); | ||
} | ||
|
||
function setUpForkTestVariables() internal override { | ||
network = "base"; | ||
|
||
// Morpho Ionic Ecosystem WETH | ||
wrapper = IERC4626(0x5A32099837D89E3a794a44fb131CBbAD41f87a8C); | ||
// Donor of WETH tokens | ||
underlyingDonor = 0xBBBBBbbBBb9cC5e90e3b3Af64bdAF62C37EEFFCb; | ||
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,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 ERC4626BaseMorphoSeamlessUSDCTest is ERC4626WrapperBaseTest { | ||
function setUp() public override { | ||
ERC4626WrapperBaseTest.setUp(); | ||
} | ||
|
||
function setUpForkTestVariables() internal override { | ||
network = "base"; | ||
|
||
// Morpho Seamless USDC | ||
wrapper = IERC4626(0x616a4E1db48e22028f6bbf20444Cd3b8e3273738); | ||
// Donor of USDC tokens | ||
underlyingDonor = 0xee81B5Afc73Cf528778E0ED98622e434E5eFADb4; | ||
amountToDonate = 1e6 * 1e6; | ||
} | ||
} |