OpenZeppelin / OpenZeppelin/openzeppelin-contracts
claimandDelegate function for compound-style delegation upon token claim
Nobody has claimed this yet.
- Dominant language
- Solidity
- Stars
- 27.2k
- Forks
- 12.4k
- Avg merge
- 2d 19h
- Merged PRs (30d)
- 33
Description
🧐 Motivation
GTC is a UNI fork.
During the GTC drop, we enabled people to delegate upon claim which was a really effective way of setting the initial distribution of governance to have high consent of the governed.
Upon conversation at Martin at ETHDenver, we realized that since the ENS drop did the same thing, this is a common functionality that future drops may want to use, and that therefore it would be a good idea to have a claimandDelegate() function in an upstream OpenZeppelin repo, so that people have this in the future.
📝 Details
I believe that this would be what would have to happen in the repo.
- Write a
claimandDelegate()function into the repo. - Done
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reviewing the referenced governance/contracts/TokenDistributor.sol implementation and the OpenZeppelin contributor guidelines. The issue does not identify a target contract, tests, or agreed API, so first establish where this functionality belongs and what behavior is required; done means an approved scope, implementation, and corresponding validation.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- solidity
- Domain
- blockchain
- Issue type
- Feature
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 28/100