Coder Social home page Coder Social logo

hightouch67 / erc20-redeemable Goto Github PK

View Code? Open in Web Editor NEW

This project forked from balancer/erc20-redeemable

0.0 0.0 0.0 2.85 MB

Home Page: claims.vercel.app

Dockerfile 0.24% JavaScript 26.34% Solidity 8.58% HTML 0.60% TypeScript 27.53% Vue 29.34% CSS 4.36% SCSS 2.95% Shell 0.06%

erc20-redeemable's Introduction

ERC20-Redeem

This 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.

Context

Balancer 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

Initially, 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.

Allowing users to retrieve their own BAL reduces the overhead of the transfer of BAL tokens.

Directory structure

This 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.

User Stories

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.

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

Balancer v2

This method for distributing BAL will eventually be replaced with an on-chain distribution calculation in v2. v2 distributors

erc20-redeemable's People

Contributors

bonustrack avatar dependabot[bot] avatar gtaschuk avatar markusbkoch avatar mikemcdonald avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.