Skip to content

Commit

Permalink
add warps on each fork select
Browse files Browse the repository at this point in the history
  • Loading branch information
hexonaut committed Feb 19, 2025
1 parent f0fbc55 commit 36783ec
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/proposals/20250220/SparkEthereum_20250220.t.sol
Original file line number Diff line number Diff line change
Expand Up @@ -296,6 +296,7 @@ contract SparkEthereum_20250220Test is SparkTestBase {
assertApproxEqAbs(arbSUsds.balanceOf(Arbitrum.PSM3), susdsDepositShares, 1); // $10m

chainSpellMetadata[ChainIdUtils.Ethereum()].domain.selectFork();
vm.warp(mainnetTimestamp);

// --- Step 2: Mint and bridge 10m USDC to Arbitrum ---

Expand All @@ -312,6 +313,7 @@ contract SparkEthereum_20250220Test is SparkTestBase {
vm.stopPrank();

chainSpellMetadata[ChainIdUtils.ArbitrumOne()].domain.selectFork();
vm.warp(mainnetTimestamp);

assertEq(arbUsdc.balanceOf(Arbitrum.ALM_PROXY), 0);
assertEq(arbUsdc.balanceOf(Arbitrum.PSM3), usdcSeed);
Expand Down Expand Up @@ -358,6 +360,7 @@ contract SparkEthereum_20250220Test is SparkTestBase {
assertEq(IERC20(Arbitrum.USDC).balanceOf(Arbitrum.ALM_PROXY), 0);

chainSpellMetadata[ChainIdUtils.Ethereum()].domain.selectFork();
vm.warp(mainnetTimestamp);

uint256 usdcPrevBalance = IERC20(Ethereum.USDC).balanceOf(Ethereum.ALM_PROXY);

Expand Down

0 comments on commit 36783ec

Please sign in to comment.