Skip to content

Commit

Permalink
small checks
Browse files Browse the repository at this point in the history
  • Loading branch information
filipviz committed Feb 9, 2024
1 parent fc08d4c commit c4e350f
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion test/MigrationIntegrationTest.t.sol
Original file line number Diff line number Diff line change
Expand Up @@ -52,8 +52,11 @@ contract MigrationIntegrationTest is Test {
vm.prank(rene);
ethTerminal.migrate(projectId, artizenTerminal);

// Ensure the funds have been moved out.
// Ensure the funds have been moved out of the ETH terminal.
assertEq(ethTerminalStore.balanceOf(ethTerminal, projectId), 0);

// Ensure the funds have been moved into the recovery terminal.
assertEq(address(artizenTerminal).balance, ethTerminalBalance);

// Distribute the payouts.
vm.prank(jbMultisig);
Expand All @@ -65,5 +68,8 @@ contract MigrationIntegrationTest is Test {
// Ensure the funds have been distributed to the Artizen multisig.
uint256 multisigBalanceAfter = address(multisig).balance;
assertEq(multisigBalanceAfter, multisigBalanceBefore + ethTerminalBalance - feeAmount);

// Ensure no funds are left in the recovery terminal.
assertEq(address(artizenTerminal).balance, 0);
}
}

0 comments on commit c4e350f

Please sign in to comment.