LP Leaderboard

A reflection of how much value an LP added to Jediswap AMM relative to others LPs.

Note: this leaderboard is only for Jediswap v2 right now. We will soon publish a formula to calculate Jediswap v1 points and retroactively assign points for past LPs.

Users need to earn LP points to get into the Jediswap LP leaderboard.

In short, Jediswap LP points are designed to reflect the value added by different users as a liquidity provider relative to other liquidity providers. The LP points formula is designed to give more points to authentic and loyal users in the most effective way possible. It takes into account the productivity and loyalty of a liquidity provider.

LP points formula

n = total number of LP positions of user address "u"

The points calculation for a day is broken into periods from " the previous day 00:00 UTC to any "increase/decrease liquidity event" until the current day's 00:00 UTC and then summed together.

For example, if Alice had a $100 position at 00:00 UTC the previous day, she removed $50 at 01:00 UTC, added $50 again at 02:00 UTC, and kept it until 00:00 UTC the next day. We will calculate her points in 3 periods.

  1. 00:00 UTC of the previous day till 01:00 UTC

  2. 01:00 UTC till 02:00 UTC

  3. 02:00 UTC till 00:00 UTC of the next day

For a period, here is how the Points calculation happens.

As you see, three factors play a part in measuring LP points for a liquidity position.

We do this computation at 00:00 UTC every day.

Fees earned by the position in USD:

Including fees earned as a factor helps Jediswap become more efficient for traders. Since only active positions earn fees, it incentivises liquidity providers to add liquidity within a range that can reduce traders' slippage. Fees accrued by all positions are computed for different periods every day.

Time vested multiplier

FVP(Full vesting period) = 1296000 (15 days in seconds)

s = time in seconds for a period

Pool boost

The pool boost helps the Jediswap community align its focus towards the pools that add the most value during a given time period. For example, if, at some point in time, the Jediswap community wants to gain market share in a new token pool, the pool boost helps with that. The Jediswap problem-solving guild decides the pool boost for different pools for a time. Pool boost can range from 1 to 3. The default value of pool boost is 1 for eligible pools.

Current pool boost for different pools

Eligible pools - Any pools with one of the tokens from ETH, WBTC, USDC, USDT, DAI

  • ETH - USDC - 2

  • USDC - USDT - 2

  • STRK - ETH - 3

  • STRK - USDC - 3

  • All other pools - 1

Example

Lets say, Alice had a time-vested multiplier value from the previous day, 3/15

Pool boost = 1

The next day, she decreased liquidity by 50% at 01:00 UTC and then increased liquidity by 100% at 02:00 UTC.

We will calculate her points in 3 periods and then sum them together.

  1. From 00:00 UTC the previous day until 01:00 UTC. Let's say during this period, she earned $1 in fees.

  2. 01:00 UTC till 02:00 UTC. Let's say in this period, she earns $0.5 in fees.

  3. 02:00 UTC until 00:00 UTC the next day. Let's say she earns $4 in fees during this period.

1st-period calculation

Time vested multiplier = min(1, 3/15+10000/1296000) = 3/15+10000/1296000 =

2nd-period calculation

The time vested multiplier will first reset to 0 and then increase.

Time vested multiplier = min (1, 0+40000/1296000) = 40000/1296000 = 0.20771604938

3rd-period calculation

r = 2 since liquidity was increased by 100%

Time left 22 hours(from 02:00 UTC till 23:59 UTC) = 79200

Time vested multiplier = min(1, 0.20771604938 + 79200/1296000) = 0.26882716049

Now, for the next day, the value of the Time vested multiplier will start from 0.26882716049.

Last updated