OpenZeppelin / OpenZeppelin/openzeppelin-contracts

claimandDelegate function for compound-style delegation upon token claim

Open
#3,231 4 comments 0 reactions 0 assignees View on GitHub

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.

  1. Write a claimandDelegate() function into the repo.
  2. Done

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.