Skip to content
Draft
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
2 changes: 1 addition & 1 deletion test/fork/ParaswapAdapterForkTest.sol
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ contract ParaswapAdapterForkTest is ForkTest {
address internal WETH = getAddress("WETH");

function setUp() public override {
// block.chainid is only available after super.setUp
// block.chainid is only reliable after super.setUp
if (config.chainid != 1) return;

config.blockNumber = 20842056;
Expand Down
2 changes: 0 additions & 2 deletions test/fork/helpers/NetworkConfig.sol
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,6 @@ abstract contract NetworkConfig is CommonBase {

if (config.chainid == 1) {
config.network = "ethereum";
config.blockNumber = 21230000;
config.markets.push(ConfigMarket({collateralToken: "WETH", loanToken: "DAI", lltv: 800000000000000000}));

setAddress("DAI", 0x6B175474E89094C44Da98b954EedeAC495271d0F);
Expand Down Expand Up @@ -60,7 +59,6 @@ abstract contract NetworkConfig is CommonBase {
/* BASE NETWORK */
} else if (config.chainid == 8453) {
config.network = "base";
config.blockNumber = 25641890;
config.markets.push(ConfigMarket({collateralToken: "WETH", loanToken: "WETH", lltv: 800000000000000000}));

setAddress("DAI", 0x50c5725949A6F0c72E6C4a641F24049A917DB0Cb);
Expand Down
3 changes: 1 addition & 2 deletions test/fork/migration/AaveV3MigrationAdapterForkTest.sol
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,7 @@ contract AaveV3MigrationAdapterForkTest is MigrationForkTest {
if (block.chainid == 1) {
_initMarket(WST_ETH, WETH);
collateralSupplied = 10_000 ether;
}
if (block.chainid == 8453) {
} else if (block.chainid == 8453) {
_initMarket(CB_ETH, WETH);
// To avoid getting above the Aave supply cap.
collateralSupplied = 2 ether;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,12 @@ contract AaveV3OptimizerMigrationAdapterForkTest is MigrationForkTest {
AaveV3OptimizerMigrationAdapter internal migrationAdapter;

function setUp() public override {
// block.chainid is only reliable after super.setUp
if (config.chainid == 1) {
config.blockNumber = 21230000;
} else if (config.chainid == 8453) {
config.blockNumber = 25641890;
}
super.setUp();

if (block.chainid != 1) return;
Expand Down