Skip to content

Extension token locking - #922

Merged
area merged 8 commits into
developfrom
feat/extension-locking
Feb 11, 2021
Merged

area merged 8 commits into
developfrom
feat/extension-locking

Conversation

@kronosapiens

@kronosapiens kronosapiens commented Feb 2, 2021

Copy link
Copy Markdown
Contributor

Closes #921

Supports #915, allowing extensions (here, VotingToken) to lock & unlock user's tokens.

@kronosapiens kronosapiens changed the title Allow network-managed extensions to lock & unlock tokens Extension token locking Feb 2, 2021
@kronosapiens
kronosapiens force-pushed the feat/extension-locking branch from 9b3c01f to 288ab75 Compare February 2, 2021 02:13
@kronosapiens kronosapiens self-assigned this Feb 2, 2021
@kronosapiens
kronosapiens force-pushed the feat/extension-locking branch 2 times, most recently from 93bd554 to d515877 Compare February 5, 2021 19:05
@kronosapiens

kronosapiens commented Feb 8, 2021

Copy link
Copy Markdown
Contributor Author

Ah! You're so right. I think the fix here is to add a mapping of [extension][lockId] => bool so you can only unlock the locks you've created.

@kronosapiens

Copy link
Copy Markdown
Contributor Author

@area I don't think that's a major concern. A lot of things "cannot be trusted" because of recovery mode, but by definition it's a highly trusted mode so I'm not worried. If anything we could call it a feature -- a bug was found in an extension, we need to remove the lock so we "give" the lock to another voting contract, etc. Using recovery mode as part of an attack on a token lock seems like much more trouble than it's worth.

@kronosapiens
kronosapiens force-pushed the feat/extension-locking branch from fd93293 to e66862c Compare February 9, 2021 19:01
@kronosapiens
kronosapiens force-pushed the feat/extension-locking branch from e66862c to 671ece6 Compare February 9, 2021 20:23
@area
area merged commit d2723d7 into develop Feb 11, 2021
@kronosapiens

Copy link
Copy Markdown
Contributor Author

Definitely :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Allow network-managed extensions to lock tokens

1 participant