Skip to content

opynfinance/erc20-redeemable

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

90 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ERC20-Redeem

This project implements a smart contract that distributes token rewards to participants throughout a week-long interval. Admins add token allocations for each user to the contract, which then become claimable in the form of ERC20 tokens across the week, ensuring that a large distribution doesn't upset the market.

Context

This project was completed for Balancer as a a candidate assessment.

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 many meaningful stakeholders, achieving a healthy distribution in the space.

Today these tokens are distributed actively by Balancer Labs (disperse.app is used to send them) every Tuesday evening.

The community is discussing a lock-up mechanism for most of the tokens LPs receive. Having the code ready would speed up the governance process of implementing this change.

Currently BAL is distributed in a gas intensive ERC-20 mass transfer. Allowing users to retrieve their own BAL reduces the overhead of the transfer of BAL tokens and allows additional logic to be attached to the new tokens, such as when they can be released.

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

Future Requirements

In the future, a user's rewards may be vested over time. This would require adding an allocation more than 0-7 days in the future (most likely for a year).

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 30.6%
  • Vue 28.7%
  • TypeScript 23.7%
  • Solidity 8.7%
  • CSS 4.4%
  • SCSS 3.0%
  • Other 0.9%