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?
When the deadline for a proposal passes, call selfdestruct on the
VoteProposalcontract which in turns calls selfdestruct on each of itsVoteOptionchildren.One option to do this would be to schedule this with the Ethereum Alarm Clock scheduler on
VoteProposalcreation. 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?