Demo: sample data. Contracts aren't deployed yet, so no transactions can be sent.

How depth is measured

Depth is the dollar value of liquidity a pool holds close to its price. DEPTH measures it the same way everywhere: in the pool’s own data, so anyone can check it.

In short

  • Depth = the pool’s total liquidity within ±2% of its 30-minute average price, in US dollars.
  • The average price comes from Uniswap V3’s built-in price history. No outside oracle.
  • Bribes are judged on staked depth: the same measure, counting only liquidity staked in the pool’s DEPTH gauge, averaged over snapshots taken at least 10 minutes apart.
  • The Depth page shows it live for every stock/USDG pool, gauged or not.

Why ±2%

Most trades in these pools move the price by less than 2%. Liquidity far from the price rarely gets used, so counting it would reward positions that do little for traders. A ±2% band counts what matters: how much you could buy or sell before the price moves 2%.

Why the 30-minute average

Gauges can only be listed on pools that keep at least 1,800 price records, enough for a trade every second. If a burst of trading still leaves a pool with less than 30 minutes of price history, DEPTH uses the longest history the pool still has, as long as it’s at least 10 minutes. Below that, measurements pause until the history refills; staking out, collecting fees and claiming never depend on it.

If the band followed the live price, someone could push the price for a few seconds and shift the band away from where liquidity sits. Centring on the average of the last 30 minutes makes that expensive: the price would have to be held off for a long time, against arbitrage, to move the centre much.

Uniswap V3 pools record their price history onchain. DEPTH raises each gauge pool’s history length when it lists the pool, so the 30-minute average is always available.

How the number is built

  1. Find the centreRead the pool’s 30-minute average price from its own history.
  2. Mark the bandTake every price from 2% below to 2% above that centre.
  3. Add up the liquidityWalk the pool’s liquidity across the band, using Uniswap’s tick data.
  4. Convert to dollarsValue the stock side at the centre price and add the USDG side. The result is depth in USD.

Converting to dollars before comparing matters. Raw liquidity numbers mean different things in pools with different prices, so DEPTH never compares them across pools.

How bribes use it

A bribe with a target pays in proportion to the staked depth delivered: liquidity staked in the gauge within ±2% of the 30-minute average price. Each gauge keeps its own record of staked liquidity by price, so a snapshot reads it directly and liquidity added and removed around a snapshot never counts. Delivered depth is the average of all snapshots in the bribe’s window. Snapshots are permissionless: anyone can take one, at most every 10 minutes per pool, and a small bounty pays for it. Keepers take them on schedule, and anyone can recompute every result from chain data. See bribes.

Band±2% around the centre (198 ticks each side)
CentreThe pool’s 30-minute time-weighted average price
UnitUS dollars, USDG at $1
Snapshot spacingAt least 10 minutes per pool
SourceUniswap V3 onchain tick data only