-
Notifications
You must be signed in to change notification settings - Fork 0
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
Contract delegate #5
Comments
I started working on this, I have a very rudimentary version that can serve as an MVP |
Updates: 1. Successful DelegatableZero trial launchThe
contract DelegatableZero is Ownable {
address public delegate;
constructor() Ownable(msg.sender) {}
function setDelegate(address delegate_) public onlyOwner {
delegate = delegate_;
}
function castVote(
address governorAddress,
uint256 proposalId,
uint8 support,
string calldata reason) public {
require(msg.sender == delegate, "Only delegate can cast votes");
IGovernor(governorAddress).castVoteWithReason(proposalId, support, reason);
}
} 2. We need a name for this projectWe need a name that:
Having a good name would help to explain more efficiently what we're doing 3. The Alligator@yitongzhang , who helped us maiking the dummy proposal for the DelegatableZero contract, also recommended to us to checkout the Alligator contract, although the Alligator contract purpose is serve as a better alternative to liquid delegation, it has the codebase for making that a contract interacts with the Governor as a Proxy. It would be nice to use the same codebase as a library or abstract contract that we can extend and have all different available 4. Moving onNext steps are:
|
Abstract
Devs, delegates and researchers are needed for creating a system where token holders delegate to a Smart Contract instead of a single delegate EOA.
Context
What if instead of delegating to a specific delegate we delegate to a more complex organization? At present time, SEED Latam is a complex organization composed of many researchers and a delegate that executes votes on chain and delegators choose to delegate to the delegator that SEED Latam proposes because they trust SEED Latam judgement. I think other organizations like this are to come so we need contracts that help expressing what really happens in such organizations.
Delegating to a Smart Contract can unlock stuff such as a delegate retiring gracefully, taking vacations or a community bypassing a delegate vote.
What is needed
I think a first MVP can be a Smart Contract where people delegate to, and where a multisig can choose a Delegate. Only the delegate should be able to execute
castVote
functionon on that Smart Contract.The text was updated successfully, but these errors were encountered: