-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
3 changed files
with
49 additions
and
4 deletions.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,23 @@ | ||
pragma solidity 0.8.10; | ||
|
||
import "forge-std/Test.sol"; | ||
import "forge-std/console.sol"; | ||
import {Base} from "./Base.sol"; | ||
|
||
contract Invariant_River is Base { | ||
Base private base; | ||
function setUp() public override { | ||
super.setUp(); | ||
} | ||
|
||
function invariant_test() public { | ||
assert(1 == 1); | ||
} | ||
|
||
function invariant_setBalanceToDeposit() public { | ||
uint256 balanceToDepositBefore = river.getBalanceToDeposit(); | ||
stakerService.action_stakeAmount(10 ether); | ||
uint256 balanceToDepositAfter = river.getBalanceToDeposit(); | ||
|
||
assertEq(balanceToDepositAfter, balanceToDepositBefore + 10 ether); | ||
} | ||
} |
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