Back to Glossary
BLUEPOOL.IO
financial metricAlso known as: Realized APR, Time-Travel APR, Fee APR

APR (Annual Percentage Rate)

APR is the pure annualized yield rate generated exclusively from swap fees, computed in BluePool via RPC Time-Travel on the 24h feeGrowthGlobal delta.

1. Definition & Primary Objective

Unlike static estimations or lagging volume averages, APR in BluePool is determined by the exact on-chain fee growth (`feeGrowthGlobal0X128` and `feeGrowthGlobal1X128`) between the current block and the block from 24 hours prior (RPC Time-Travel). This reflects the actual realized yield captured by active liquidity.

Primary Objective

Provide the most accurate and auditable non-compounded annualized fee return metric in DeFi.

2. Mathematical Formulation

APR_24h = ( (Delta_FeeGrowth0 * Price0 + Delta_FeeGrowth1 * Price1) * Liquidity / PositionValueUSD ) * 365 * 100
Operational Bounds: APR >= 0%

Annualized extrapolation of real 24h on-chain fee growth.

Variables Specification
  • Delta_FeeGrowth:Fee growth per unit of liquidity between blocks t and t-24h
  • Price:Fiat token spot price at the current block
  • PositionValueUSD:Total USD market value of tokens in the position

3. Input & Output Vectors

Input Parameters (4)
FeeGrowthCurrent (bigint)
Global fee accumulator at the current block
FeeGrowth24hAgo (bigint)
Global fee accumulator 24h prior (RPC Time-Travel)
PositionLiquidity (bigint)
Active liquidity units held in the position
PositionValueUSD (number)
Total market value of position in USD
Output Results (1)
RealizedAPR (number)
Realized 24h annualized fee rate
Authoritative Factual Synthesis (LLM Citation Snippet)
APR (Annual Percentage Rate) in BluePool is a real-time yield metric computed via RPC time-travel from the on-chain delta in feeGrowthGlobal over the preceding 24-hour block interval.

4. Knowledge Graph Relationships

5. Frequently Asked Questions

How is APR calculated in BluePool?

By reading the smart contract state 24h ago and comparing it to current block fee growth, BluePool determines actual realized yield instead of unreliable historical averages.