Skip to content

Commit ff46bb9

Browse files
committed
fix(test): correct fuzz parameter in streamedAmountOf tests
1 parent d72f4d3 commit ff46bb9

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

tests/integration/fuzz/lockup-linear/streamedAmountOf.t.sol

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ contract StreamedAmountOf_Lockup_Linear_Integration_Fuzz_Test is Lockup_Linear_I
2020

2121
// Bound the unlock amounts.
2222
unlockAmounts.start = boundUint128(unlockAmounts.start, 0, depositAmount);
23-
unlockAmounts.cliff = boundUint128(unlockAmounts.start, 0, depositAmount - unlockAmounts.start);
23+
unlockAmounts.cliff = boundUint128(unlockAmounts.cliff, 0, depositAmount - unlockAmounts.start);
2424

2525
// Mint enough tokens to the Sender.
2626
deal({ token: address(dai), to: users.sender, give: depositAmount });
@@ -62,7 +62,7 @@ contract StreamedAmountOf_Lockup_Linear_Integration_Fuzz_Test is Lockup_Linear_I
6262

6363
// Bound the unlock amounts.
6464
unlockAmounts.start = boundUint128(unlockAmounts.start, 0, depositAmount);
65-
unlockAmounts.cliff = boundUint128(unlockAmounts.start, 0, depositAmount - unlockAmounts.start);
65+
unlockAmounts.cliff = boundUint128(unlockAmounts.cliff, 0, depositAmount - unlockAmounts.start);
6666

6767
// Mint enough tokens to the Sender.
6868
deal({ token: address(dai), to: users.sender, give: depositAmount });
@@ -104,7 +104,7 @@ contract StreamedAmountOf_Lockup_Linear_Integration_Fuzz_Test is Lockup_Linear_I
104104

105105
// Bound the unlock amounts.
106106
unlockAmounts.start = boundUint128(unlockAmounts.start, 0, depositAmount);
107-
unlockAmounts.cliff = boundUint128(unlockAmounts.start, 0, depositAmount - unlockAmounts.start);
107+
unlockAmounts.cliff = boundUint128(unlockAmounts.cliff, 0, depositAmount - unlockAmounts.start);
108108

109109
// Mint enough tokens to the Sender.
110110
deal({ token: address(dai), to: users.sender, give: depositAmount });

0 commit comments

Comments
 (0)