Skip to content

Protect functions via voting-permission (ResolutionControlled-Mixin class) #332

@djudjuu

Description

@djudjuu

Certain functions on company related contracts should only be allowed to be executed if there has been a vote to approve it

This could be done with

ResolutionControlled.sol-Mixin class

... which would be

  • intialized with a certain voting-center/Token
  • provide a modifier such that functions can only be executed with a supporting vote that happened on the token
  • if there is no existing vote for the function parameters, modifier will automatically start vote to do so
  • if there is exisiting vote and it has passed function will execute

We can probably use ACLSyntacticSugar.sol and ConversionHelpers.sol from Aragon to convert parameters to bytes

This could be more paraterized by having a VotingInitializer-interface that can be used to interact with votingController

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions