Commit 8d532f0 1 parent 7eb8e40 commit 8d532f0 Copy full SHA for 8d532f0
File tree 2 files changed +9
-1
lines changed
protocol-units/settlement/mcr/contracts
2 files changed +9
-1
lines changed Original file line number Diff line number Diff line change @@ -12,7 +12,7 @@ contract MOVEFaucet {
12
12
IERC20 public move;
13
13
uint256 public rateLimit = 1 days ;
14
14
uint256 public amount = 10 ;
15
- address owner;
15
+ address public owner;
16
16
mapping (address => uint256 ) public lastFaucetClaim;
17
17
18
18
constructor (IERC20 _move ) {
Original file line number Diff line number Diff line change @@ -45,5 +45,13 @@ contract MOVEFaucetTest is Test {
45
45
46
46
vm.warp (block .timestamp + 1 days);
47
47
faucet.faucet {value: 10 ** 17 }();
48
+ vm.stopPrank ();
49
+ vm.prank (address (this ));
50
+ uint256 balance = address (this ).balance;
51
+ faucet.withdraw ();
52
+ assertEq (address (faucet).balance, 0 );
53
+ assertEq (address (this ).balance, balance + 2 * 10 ** 17 );
48
54
}
55
+
56
+
49
57
}
You can’t perform that action at this time.
0 commit comments