Rewards Calculation
Etherex Pools
For Etherex pools, the displayed APR on the UI is just an estimate using last week rewards and current TVL. The actual APR of your LP position depends on the swap volume your liquidity absorbs and the corresponding swap slippage.
Rewards for each LP are allocated based on the swap volume generated by their liquidity and the slippage of each swap. The detailed reward formula is as follows.
For each pool and each epoch (1 epoch = 1 week), suppose there are swaps and LPs.
Then LP 's reward for the pool and the epoch can be calculated as
is the total amount of LINEA rewards allocated to the pool during the epoch.
is the volume absorbed by LP in swap .
is the actual slippage of swap . For example, means that the execution of swap moves the price by 0.3% (either price up or price down).
is a function of where parameter and are decided by the Linea team.
Note: The reward reward formula and parameters might be updated on a weekly basis by the Linea team.
Lending Pools
Looping or leveraged lending may be penalized. Please see reward details below.
For lending pools (Aave and Euler), the following reward calculation rules are applied.
Step 1: Compute Reward Allocation for Each Pool
For each epoch, there is a total reward amount for all the lending pools.
For each pool , its weight during the epoch can be calculated as
is a per-pool constant (defined by the Linea team).
is the actual effective TVL TWA (Time-Weighted Average) during the epoch in pool .
is the target TVL for pool (defined by the Linea team).
, where is the min ratio (e.g., 0.02) and is the max ratio (e.g., 0.15). is a sensitivity parameter (e.g., ).
Then the reward allocated to pool during the epoch can be calculated as
Note: Each "pool" as mentioned above corresponds to an asset (e.g., USDC). If there are multiple lending protocols that support the same asset (e.g., Aave USDC and Euler USDC), the above formula can be used to calculate the reward allocation for each asset (where is the sum of actual TVLs from these protocols). Then the rewards are further split to different lending protocols proportional to their actual TVLs.
Step 2: Compute Each Users' Rewards in a Lending Pool
For each pool and each epoch, the reward for LP can be calculated as
is the reward allocated to the pool (computed according to the formulas in Step 1).
is the eligible holding by LP in pool , calculated as , where
is the supplied collateral (aToken/eToken) TWA by LP in pool
is the debt (dToken) TWA by LP in pool
is the liquidation threshold for pool (e.g., 78% for Aave USDC/USDT pool, 83% for Aave ETH pool). For all Euler pools, the liquidation threshold is hardcoded to 92%.
With the above formula of eligible holding, users who loop the collateral with the debt of the same asset will be penalized.
Note: The reward reward formula and parameters might be updated on a weekly basis by the Linea team.
Last updated