-
Notifications
You must be signed in to change notification settings - Fork 53
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: check the start time in SablierV2LockupLinear._calculateStreamed…
…Amount (#941) test: test streamedAmountOf when cliff time is zero and the stream is PENDING test: correct tree branches in streamedAmountOf
- Loading branch information
1 parent
5e93adb
commit 02c1477
Showing
3 changed files
with
34 additions
and
7 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
7 changes: 5 additions & 2 deletions
7
test/integration/concrete/lockup-linear/streamed-amount-of/streamedAmountOf.tree
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,8 +1,11 @@ | ||
streamedAmountOf.t.sol | ||
├── given the stream's status is "PENDING" | ||
│ └── given the cliff time is zero | ||
│ └── it should return zero | ||
└── given the stream's status is "STREAMING" | ||
├── given the cliff time is in the past | ||
├── given the cliff time is in the future | ||
│ └── it should return zero | ||
├── given the cliff time is in the present | ||
│ └── it should return the correct streamed amount | ||
└── given the cliff time is in the future | ||
└── given the cliff time is in the past | ||
└── it should return the correct streamed amount |