-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: supporting unlocked with withdrawal period (#6)
The underlying codebase requires the user to decide at lockup the Date of withdrawal. The intended behaviour, is that the user can decide to lock the tokens in an "unlocked with withdrawal period" mode, in which it would require the user to first "initiate the withdrawal", to be able to actually withdraw the tokens (e.g.) 7 days later. This is achieved by: - reverting on withdrawal when locking Date is 0 - adding a new method, identical in arguments to "unlock", that would revert if Date != 0 - when user calls this method, the locking Date should be `now() + 7 days`
- Loading branch information
1 parent
abec526
commit f387724
Showing
9 changed files
with
553 additions
and
187 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -7,4 +7,5 @@ js/lib | |
|
||
/node_modules | ||
|
||
js/dist | ||
js/dist | ||
**/wallet.json |
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
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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
Oops, something went wrong.