{"id":26162477,"url":"https://github.com/balancer/erc20-redeemable","last_synced_at":"2025-03-11T13:54:38.188Z","repository":{"id":38160132,"uuid":"284900303","full_name":"balancer/erc20-redeemable","owner":"balancer","description":null,"archived":false,"fork":false,"pushed_at":"2023-04-04T13:52:07.000Z","size":4265,"stargazers_count":79,"open_issues_count":22,"forks_count":46,"subscribers_count":9,"default_branch":"master","last_synced_at":"2025-03-09T06:02:01.649Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"claims.vercel.app","language":"Vue","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/balancer.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2020-08-04T06:49:02.000Z","updated_at":"2024-05-01T20:50:20.000Z","dependencies_parsed_at":"2023-01-28T23:45:53.907Z","dependency_job_id":null,"html_url":"https://github.com/balancer/erc20-redeemable","commit_stats":null,"previous_names":["balancer-labs/erc20-redeemable"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/balancer%2Ferc20-redeemable","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/balancer%2Ferc20-redeemable/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/balancer%2Ferc20-redeemable/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/balancer%2Ferc20-redeemable/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/balancer","download_url":"https://codeload.github.com/balancer/erc20-redeemable/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243048125,"owners_count":20227592,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2025-03-11T13:54:37.521Z","updated_at":"2025-03-11T13:54:38.160Z","avatar_url":"https://github.com/balancer.png","language":"Vue","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003cp align=\"center\"\u003e\n  \u003ca href=\"https://circleci.com/gh/balancer-labs/erc20-redeemable\"\u003e\n    \u003cimg src=\"https://circleci.com/gh/balancer-labs/erc20-redeemable.svg?style=svg\u0026circle-token=9a37f7bd57941449ac54e9041a2693bdbc7ca40c\" /\u003e\n  \u003c/a\u003e\n\u003c/p\u003e\n\n\n## ERC20-Redeem\n\nThis implements an erc20 distribution scheme in which admin publish a merkle root of a token distribution and users can claim their tokens via merkle proofs.\n\n## Context\n\nBalancer has a weekly distribution of BAL tokens for liquidity providers. This process is called liquidity mining and its main objective is to distribute BAL governance tokens to stakeholders, achieving a healthy distribution in the space.  The calculation of rewards due to each liquidity provider in v1 is calculated off-chain using these scripts: [bal-mining-scripts](https://github.com/balancer-labs/bal-mining-scripts)\n\nInitially, these tokens were distributed actively by Balancer Labs (disperse.app was used to send them) every Tuesday evening.   Distributing BAL with an ERC-20 mass transfer was very gas intensive.\n\nAllowing users to retrieve their own BAL reduces the overhead of the transfer of BAL tokens.\n\n\n## Directory structure\n\nThis repo contains a `/merkle` directory with smart contracts and a merkle tree library that powers the distribution, and `/client` that provides an interface to claiming BAL.\n\n## User Stories\n\n__Liquidity Provider__: As a balancer liquidity provider I earn tokens based on my contribution to my liquidity pools - so I navigate to balancer.exchange and click redeem to retrieve the tokens that are owed to me.  This sends a transaction to a smart contract which sends the tokens I am owed to my account.\n\n__Balancer governance user__: As a balancer employee, I need to send users their accrued BAL based on the value of tokens in their pools.  I may want to restrict how long before a user can unlock their BAL\n\n## Balancer v2\n\nThis method for distributing BAL will eventually be replaced with an on-chain distribution calculation in v2.  [v2 distributors](https://github.com/balancer-labs/balancer-v2-monorepo/tree/master/pkg/distributors)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbalancer%2Ferc20-redeemable","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbalancer%2Ferc20-redeemable","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbalancer%2Ferc20-redeemable/lists"}