D-12 · Earn: pool fees
[D-12]Layers
Earn: pool fees
What an LP kept in each pool over the last 30 days, after the price move took its share back, and a page for every pool.
The pools table#
| Column | Meaning |
|---|---|
| Last 30 days after fees | A curve of what an LP kept, day after day: fees earned minus what the price move took back. |
| Paid | Days that ended ahead after fees, out of the days recorded, with a bar per day. |
| Fees back | How many days of average fees pay back the window's whole price-move loss. |
| Now | The fee yield of the last day, as a yearly rate. |
| Avg APR | The average daily fee yield over the window, as a yearly rate. |
Three ways to sort#
Highest APR puts the pools that paid most first. Steadiest puts first the pools whose days varied least. Fees back soonest puts first the pools that recover a price move fastest.
A pool's own page#
Click a pool's name, or Day by day in the side panel. The page shows the record (kept, days paid, average APR, fees in the window, fees back, steadiness), the curve with fee bars and a red mark on days the price move took more than the fees, and a table of every day: swaps, volume, fees, fee yield, price-move cost and what was kept.
The calculator on the right replays the window for an amount you pick: fees earned, what the move took, what was left, and your share of the pool.
The math#
fees = volume × pool fee (V2: 0.3%, before any protocol cut)
yearly = fees × (24 / hours in window) × 365 / liquidity
IL(r) = 2·√r / (1 + r) − 1 (r = price now / price then)
net, window = fees / liquidity + IL(r)
your share = deposit / (liquidity + deposit)Where the days come from#
Each pool's swaps and reserve updates are read from the chain and summed per day. A day with no swap leaves no event, so its reserves are carried from the day before and its fees are zero; that is what happened in the pool.
