Skip to content

feat: public-pools-strategy-manager Dead Man's Switch#55

Open
MarvinJanssen wants to merge 2 commits intomainnetfrom
feat/public-pools-deadmans-switch
Open

feat: public-pools-strategy-manager Dead Man's Switch#55
MarvinJanssen wants to merge 2 commits intomainnetfrom
feat/public-pools-deadmans-switch

Conversation

@MarvinJanssen
Copy link
Copy Markdown
Member

No description provided.

Copy link
Copy Markdown
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

(define-constant err-unauthorised (err u3000))
(define-constant err-still-alive (err u3001))

(define-constant dms-activation-period u12960) ;; ~90 days
Copy link
Copy Markdown
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
Copy Markdown
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
Copy Markdown
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
Copy Markdown
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
Copy Markdown
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
Copy Markdown
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.

Comment thread Clarinet.toml
@@ -27,3 +28,7 @@ requirements = [
[contracts.lip007]
path = "contracts/proposals/lip007.clar"
Copy link
Copy Markdown
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
Copy Markdown
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