-
-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(contract): bug with ordering of operations (#100)
* refactor: remove unnecessary `min` and rename `claim_amount` * refactor(contracts): ensure cancel_stream reverts when empty/claimed * refactor(contracts,sdk): allow owner to cancel immediately NOTE: Needed to remove exception since it's not possible to tell anymore * refactor(sdk): change name to match contract * refactor(test): make `MIN_STREAM_LIFE` a fixture parameter * refactor(test): make `create_stream` fixture and use it more * refactor(test): add tests for stream cancelation
- Loading branch information
Showing
5 changed files
with
102 additions
and
53 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
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
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