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

Implement automatic selfdestruct on VoteProposal and its VoteOptions #4

Open
Tomasvrba opened this issue Mar 6, 2020 · 0 comments
Open
Assignees
Labels
enhancement New feature or request help wanted Extra attention is needed

Comments

@Tomasvrba
Copy link
Contributor

When the deadline for a proposal passes, call selfdestruct on the VoteProposal contract which in turns calls selfdestruct on each of its VoteOption children.

  • One option to do this would be to schedule this with the Ethereum Alarm Clock scheduler on VoteProposal creation. Anyone got experience with EAC?

  • Another option would be to call selfdestruct when a vote is received after the deadline, but this would be unreliable for contracts that never receive any votes and unnecessarily complex since selfdestruct would now have to be called from one of the VoteOption children, which would have to call it on the the other VoteOption as well as the VoteProposal parent

Any other ideas? @auryn-macmillan @SamGos?

@Tomasvrba Tomasvrba added P1 Highest priority enhancement New feature or request help wanted Extra attention is needed labels Mar 6, 2020
@Tomasvrba Tomasvrba self-assigned this Mar 6, 2020
@Tomasvrba Tomasvrba removed the P1 Highest priority label Mar 24, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

1 participant