WikiGit
WikiGit copied to clipboard
Functions should limit what types of voting can call it
Currently, a DAO voting can call any function in the DASP, regardless of its votingType, which makes it a difficult task to introduce any new voting type without opening a door for attackers. For instance, if you want to use a new type of voting for sanctioning new member requests that has a short timespan and a small quorum, you can't prevent anyone from using this type of voting to call, say, the function that withdraws ether. A mapping from a function to the voting types that can call it should be implemented.