Skip to content
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

Open
wants to merge 2 commits into
base: mainnet
Choose a base branch
from

Conversation

MarvinJanssen
Copy link
Member

No description provided.

Copy link
Collaborator

@friedger friedger left a 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
Copy link
Collaborator

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?

Copy link
Member Author

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.

Copy link
Collaborator

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)
Copy link
Collaborator

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"?

Copy link
Member Author

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".

Copy link
Collaborator

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"
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should be a requirement.

@MarvinJanssen
Copy link
Member Author

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants