-
Notifications
You must be signed in to change notification settings - Fork 1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: public-pools-strategy-manager Dead Man's Switch #55
base: mainnet
Are you sure you want to change the base?
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good.
Unit tests would be nice
And a lip
@@ -2,9 +2,13 @@ | |||
;; SPDX-License-Identifier: BUSL-1.1 | |||
|
|||
(define-constant err-unauthorised (err u3000)) | |||
(define-constant err-still-alive (err u3001)) | |||
|
|||
(define-constant dms-activation-period u12960) ;; ~90 days |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
one cycle is already bad. So 2100 bitcoin blocks?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sure we can do that, but then a manager must be sure to send a keep-alive
each cycle if there are no changes. The theory of the DMS was so that people can always get the underlying STX of their LiSTX back into the vault in case the managers go missing.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pool manager has to extend if nobody else does it for us
|
||
;; Dead Man's switch | ||
|
||
(define-read-only (dms-active) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
dms-active sounds like the dms was pressed. Better "dms-inactive"?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Perhaps dms-available
? I called it "active" because it indicates the DMS "can be pressed".
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Probably, I don't understandthe term DMS not properly. It indicates that the manager was not active, correct?
Go with whatever you like.
@@ -27,3 +28,7 @@ requirements = [ | |||
[contracts.lip007] | |||
path = "contracts/proposals/lip007.clar" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should be a requirement.
Ok if you think this method is the way to go then I can add tests and a LIP to activate it. I do not think a frontend is needed for the DMS at this time. It is just to ensure tokens can never get stuck in the public pool members. |
No description provided.