How JLP Works
Liquidity Pool
The Jupiter Perpetuals exchange is a trader-to-LP exchange which means traders borrow tokens from the liquidity pool (the JLP pool) for leverage.
Instead of periodic funding payments between long and short traders, Jupiter Perpetuals implements an hourly borrow fee mechanism.
Traders pay these fees to the pool based on the amount of tokens they've borrowed. This mechanism helps secure the balance of the pool's assets and compensates liquidity providers for the use of their tokens.
Add/Remove Liquidity into JLP
When a user adds liquidity to the JLP pool, they increase the amount of TVL (Total Value Locked) which increases the liquidity available for perps trading. The pool is currently a collection of the following tokens: USDC, USDT, SOL, wBTC and ETH.
Adding Liquidity
Any Liquidity providers (LPs) can acquire JLP by swapping for it on Jupiter Swap. Jupiter Swap will find the best price to acquire JLP for you, automatically. This can either be purchasing it off the open market, or swapping it for a desired asset and depositing that into JLP directly. Use Jupiter Swap for a frictionless experience of getting JLP. While JLP is still being minted, your assets may be deposited into the relevant token pool increasing the current weightage. At the point of depositing assets into the JLP pool, the protocol will re-price the TVL in the USD value.
Removing Liquidity
JLP can also be sold via Jupiter Swap. Simply swap JLP for your desired asset. The JLP token could either be transferred to another trader or may be redeemed by the JLP pool, burning the JLP token, and releasing some of the currency contained in the pool.
The best way to purchase or exit JLP is always via Jupiter Swap.
Yield Generation
The exchange generates fees and yields in various ways:
- Opening and Closing Fees of Positions (consisting of the flat and variable price impact fee).
- Borrowing Fees of Positions
- Trading Fees of the Pool, for spot assets
- Minting and burning of JLP
75% of the fees generated by JLP go into the pool. The fees are compounded into the pool hourly.
It is essential to note that pool earnings and losses (index token appreciation/depreciation) are not factored in the overall yield calculation.
Fee Calculations
Action | Fee |
---|---|
Opening a Position | 6 BPS |
Closing a Position | 6 BPS |
Price Impact Fee | Variable (see reference) |
Swap Fee | Between 0 BPS to 150 BPS depending on pool weightage |
Borrow Rate | 0.8 / 1.0 BPS per hour (see below) x token utilization percentage |
Hourly Borrow Rate is set at 0.008% for SOL, ETH and BTC, while the rate for USDC and USDT is set at 0.01%.
Fee calculation for opening and closing positions involves the volume of these transactions, multiplied by the fee percentage of 0.06%.
The price impact fee from larger trades are then added. More analytics on this to follow.
The borrowing fee, often termed the hourly borrow fee, is computed as follows:
hourly borrow fee = (tokens borrowed / tokens in the pool) x 0.008% x position size
The swap fee for the pool typically ranges between 0% and 2%.
Estimating Yield
To provide an estimated perspective, you can calculate potential revenue by taking the Jupiter Perpetual Exchange's daily or weekly total volume and multiplying it by a fee percentage. For instance:
- Total Daily Volume: 50 million
- Fee Percentage: 0.06%
- Price Impact Fees: Minimum 0.01%
- Revenue Share Percentage: 75%
Using these values (excluding price impact and hourly borrow fees), the estimated calculation would be as follows:
Total estimated revenue to be deposited into JLP pool:
$50M x 0.06% x 75% = $22,500
To determine your specific share or weight in the total JLP pool, use the following formula:
your_pool_contributed_amount / total_pool_amount x 100 = your_pool_percentage
For example:
- Your contribution: $1,000
- Total pool amount: $4,000,000
- Your share percentage: 1,000 / 4,000,000 x 100 = 0.025%
Finally, you can calculate your estimated generated revenue share by multiplying the results of the first and second calculations:
estimated revenue share you generate = $22,500 x 0.025% = $5.625
Risks Associated with Holding JLP
- Bull Markets
During a bull market, JLP may not outperform SOL, ETH, or BTC. This is because the pool is made of a mix of stable and non-stable tokens.
- Profit and Loss (PnL) Dynamics
Traders' PnL from perpetual trading impacts the JLP pool. If a trader incurs a net positive PnL, the losses are sourced from the JLP pool to compensate the trader. Conversely, if a trader's PnL is a net negative, the gains are deposited into the JLP pool for LP holders.
Long Trade Scenario: If the trader profits on the long, the JLP pool will lose in token quantity but not in USD value because the underlying token value in the pool appreciates in value as well.
Short Trade Scenario: If the trader profits on the short, the JLP pool will lose some of the stablecoins but the shorted token will remain the same. This causes a net USD loss on the Pool.
This research article from LeeWay provides more detail on how this works.
- Token Price Fluctuations: The JLP pool consists of both stable and non-stable tokens. Fluctuations in token prices can affect the value of JLP. As a result, users may find that their withdrawn tokens can be worth less compared to their initial deposit. Additionally, deposit and withdrawal fees for the JLP Pool may further reduce the number of tokens withdrawn, particularly for shorter holding periods.
Can JLP go down? Yes. As shown in the trader profiting on a short trade, JLP in USD value will go down when the fees generated are lower than depreciation of assets and payout from traders' profit.
Pool Weightage
In the JLP pool, each asset is assigned a target weight, which is set by the team.
Jupiter works with Gauntlet and Chaos Labs to conduct regular risk assessments and market analyses in response to the evolving market conditions. These assessments are also discussed with the community before they are presented to the team for rollout.
The risk assessments can be accessed via Jupiter's research forum.
Maintaining Target Weight
The weightages of each asset in the JLP pool will differ based on market activity, particularly Spot Trading or Deposit & Withdrawal of assets into JLP.
To help maintain the Target Weight, JLP dynamically sets a Swap Fee or Mint/Redeem Fee.
Example: $USDC
- If the current weightage of USDC is higher than its advised target weightage, USDC deposits into the JLP Pool will incur additional fees, while USDC withdrawals will receive a fee discount.
- If the current weightage of USDC is lower than its advised target weightage, USDC deposits into the JLP Pool will receive a fee discount, while USDC withdrawals will incur additional fees.
Simply put: Transactions that shift an asset’s current weightage further away from the target weightage incur additional fees while transactions that shift it closer to the target weightage will receive a discount on fees. This is based on the fee incurred when minting or burning JLP during the swap.
This allows JLP to maintain its target weight as liquidity providers are incentivized to maintain the target weightage amid high volumes of spot trading or deposit/withdrawal activity.
Failsafe Mechanism
How far can the current weightage of an asset deviate from its target weightage?
An asset’s current weightage can deviate from its target weightage by a maximum of 20% of the target weightage value.
Example:
- If the advised target weightage of USDC in the JLP pool is 26%, the current weightage of the asset in the JLP pool can deviate between a range of 20.8% (-20%) and 31.2% (+20%).
- This means that USDC cannot be deposited into the pool if the current weightage goes above 31.2%, and USDC cannot be withdrawn from the pool if the current weightage goes below 20.8%.
This means that during a Black Swan event where a JLP asset depegs, the maximum loss is Target Weight * 1.2
.