Liquidity Mining

Open
#17 14 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
5/5
Estimated time
Over a week
Newbie friendliness
25/100
Issue type
Feature
Clarity
Needs clarification
Activity status
Stale
Domain
blockchain

Research direction

No files or tests are named. Start with the issue's Technically flow, then clarify how the new Liquidity contract, reward calculation, and 24-hour price batch script map to the repository. The issue does not define acceptance criteria or a verifiable done state, so confirm scope with maintainers before coding.

Written by the indexing model from the issue text.

Description

layers priority - high

Liquidity mining is a mechanism to help with market-making by providing liquidity and earning liquidity incentives in return.

Overview

  • Liquidity incentives provide more stronger incentives than staking incentives because a lock-up of paired assets accompanies the provision of liquidity.
  • Liquidity providers get DEVs as liquidity incentives based on the number of DEVs provided.
  • The liquidity incentives are equal to the sum of the staking rewards and holder rewards. This spec means that the liquidity incentives are equal to "the reward for staking to Property owned by itself."
  • As noted above, liquidity provision is a new method of staking and does not accompany new inflation.
  • However, if a liquidity provider performs Property staking, the liquidity incentive is increased. This spec is tentatively named the Conjunction Incentives.

Conjunction Incentives (tentative name)

  • Since liquidity incentives are stronger than staking incentives, the Conjunction Incentives works to reinforce the incentive for staking.
  • Earns incentive of 0.000000003 per block for a liquidity pool price of $1 and Property staking of 1.
  • Example: Liquidity pool price is $12, staking is 200 DEV, for the incentive is 15.13728 per year. 12 * 200 * (1 year in seconds / 15) * 0.000000003
  • Example: Liquidity pool price is $1000, staking is 200 DEV, for the incentive is 1261.44 per year. 1000 * 200 * (1 year in seconds / 15) * 0.000000003

Technically flow

  1. Staking UNI tokens into the (newly developed)Liquidity contract.
  2. Retrieve the number of DEVs associated with the UNI tokens and treat the same number as stake.
  3. The APY is recalculated. (Incentive budgets are allocated from the existing balance and therefore do not affect APY)
  4. The liquidity provider's reward is taken directly from the Allocator.calculateMaxRewardsPerBlock() calculation. (no proration for stakers and holders)
  5. Run a batch script to get the price of the liquidity pool once every 24 hours.
Dominant language
No language data
Stars
11
Forks
7
PR merge metrics
No merged PRs in 30d

Contributor guide

No contributing guide indexed for this repository

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.

More from dev-protocol/DIPs

All issues in dev-protocol/DIPs

Similar issues

More Blockchain issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.