Meteora
Search
K

# Dynamic AMM APY Calculation

In order to enhance transparency for our LPs concerning the APY associated with their deposited assets, we have decided to compute and exhibit three vital pieces of information on the UI: the base APY, the 1-year fee/TVL, and the LM rewards APY.

### Base APY:

The base APY offered is subject to variation and is based on the prevailing trading activity and yield obtained from lending platforms. The calculation of APY is contingent on the increase in virtual price over a specific time period.
$\text{base APY} = \left(\left(\frac{\text{Virtual Price }2}{\text{Virtual Price }1}\right)^{\frac{\text{1 year}}{\text{timeframe}}}-1\right) \times 100$
Virtual Price 2: Latest Virtual Price value
Virtual Price 1: Previous Virtual Price value in the last 24 Hours
Timeframe: Time difference between Virtual Price 1 and 2 (in seconds)
Note: The Virtual Price represents the value of your pool share and is determined by dividing the pool's total value by the number of LP tokens (VP = pool_value / LP token). The pool's value rises as a result of a swap fee being charged on each trade or when assets deposited in lending pools generate lending yield. This increase in pool value corresponds to a rise in the Virtual Price.

### 1 year Fee/TVL:

The ratio of the aggregate swap fees accrued over a 1-year period to the total liquidity available in the pool represents the efficiency metric that informs LPs which pool generates the most trading fees. This data empowers LPs with valuable insights into pool performance.
$\text{1 year fee/TVL} = \frac{\text{24 hour fee} \times 365}{\text{Total Liquidity of pool}}$
24 hour fee: Swap fee generated in the last 24 hour in $Total Liquidity of pool: Total value of the assets stored in the AMM pool in$

### LM APY:

This refers to the APY that is calculated based on the rewards provided by the team or partner protocols through Liquidity Mining (LM), such as ABR, LDO rewards, etc.
$\text{LM APY} = \left(\left(1 + \frac{\text{Farm Reward per day}}{\text{Farm TVL}}\right)^{365} - 1\right) \times 100$
Farm reward per day: Token reward per day x token reward USD rate
Farm TVL: Pool LP staked/Pool LP supply x PoolTVL
Pool TVL: Pool token A x token A USD rate + Pool token B x token B USD rate