Cast Vote By Signature

Users can vote on a governance proposal (source code) using a signed transaction. This allows users to sign a transaction locally (no gas fee) with their private key, and anyone can post it to the blockchain later.

For a single proposal, the user will need to sign a "for" and an "against" vote in order to give a 3rd party full control of their vote on that proposal. Once the proposal vote signatures are created, they can be sent to another user. That other user can vote ("for" or "against") on behalf of the signatory for the single proposal.

Jun 18, 2021, 9:49 AM
https://github.com/compound-finance/compound-protocol/blob/master/contracts/Governance/Comp.sol#L145 here is compound contract, here only 5 DAO functions that make it fully complitable for governance
But simple is just add some reflection to it if you wanna make DAO-Safemoon
it will be lit, and also you can fork compound and create real borrow/lending protocol with redesign, and because all is same for snapshot dao, it too fully complitable with Cake so you can make farms/pools/borrow/lending proto
Jun 18, 2021, 9:54 AM
This is great. Knowledgable as you are, are you experienced with these?
OZ mentioned they would implement their version of Governance Alpha or Beta by Compound, but I have not had them understood by heart.
Definitely would appreciate it if anyone could explain them in a layman language.
Jun 18, 2021, 10:33 AM
That's cream
What would you like to know?
Jun 18, 2021, 11:02 AM
What is it? What does it do? Can any DApp implement it or not? and why?
Jun 18, 2021, 12:08 PM
It just executes calls on contracts based on voting, very easy to implement:

GovernorAlpha.sol is the core, timelock -> timelock.sol, and voting token -> comp.sol

There's propose function in GovernorAlpha, which will propose timelock to execute the call on your target address after compToken.getPriorVotes() voting -> queue to timelock on success -> public function execute() during grace period.

You can have a guardian address to cancel any proposal.
Jun 18, 2021, 12:16 PM
Thanks for this high-level overview.
Jun 19, 2021, 3:07 AM

© 2024 Draquery.com All rights reserved.