Skip to content

Commit

Permalink
Update InvariantBridge.t.sol
Browse files Browse the repository at this point in the history
  • Loading branch information
wcgcyx committed Feb 27, 2024
1 parent cc7342f commit 2348071
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions test/invariant/InvariantBridge.t.sol
Original file line number Diff line number Diff line change
Expand Up @@ -343,4 +343,22 @@ contract InvariantBridge is Test {
}
vm.selectFork(resetId);
}

/// forge-config: default.invariant.runs = 256
/// forge-config: default.invariant.depth = 15
/// forge-config: default.invariant.fail-on-revert = true
function invariant_NoRemainingWETH() external {
vm.selectFork(rootId);
assertEq(rootBridge.rootWETHToken().balance, 0);
vm.selectFork(resetId);
}

/// forge-config: default.invariant.runs = 256
/// forge-config: default.invariant.depth = 15
/// forge-config: default.invariant.fail-on-revert = true
function invariant_NoRemainingWIMX() external {
vm.selectFork(childId);
assertEq(childBridge.wIMXToken().balance, 0);
vm.selectFork(resetId);
}
}

0 comments on commit 2348071

Please sign in to comment.