DefiLlama

A DeFi data dashboard that computes TVL and other metrics with open-source adapters.

Visit websiteOfficial site: defillama.com

Facts checked · Tools

DefiLlama is a dashboard and API for DeFi data, including TVL, fees, revenue and volume. Each listed protocol has an open-source adapter that computes its numbers, and the documentation sets out what is and is not counted as TVL.

Key facts

Kind
Data dashboard
Custody
Not applicable. A read-only data service.
Who it is for
Readers, Researchers, Protocol teams, Adapter contributors
What it is
A dashboard and API for DeFi metrics
How numbers are computed
One open-source adapter per protocol and metric
Token pricing
Mostly CoinGecko's API, with onchain methods as a fallback
Excluded from core TVL
Borrowed coins, a protocol's own tokens, vesting tokens, native token staking
Optional dashboard toggles
Staking, Pool2, Borrowed, Vesting, Offers, Double counting

What it is

DefiLlama is a dashboard and API for DeFi data. Its documentation describes the aim as community-driven statistics for the DeFi industry. It tracks TVL, fees, revenue, volume and other metrics for protocols and chains.

How it works

Adapters. Each metric has its own open-source adapter repository, and anyone can contribute. TVL adapters live in the DefiLlama-Adapters repository. An adapter queries contracts, subgraphs or APIs and returns the protocol’s numbers.

Pricing. Most tokens are priced with CoinGecko’s API. Where that is not possible, onchain methods are used, often based on a liquid Uniswap V2 market.

What counts as TVL. The methodology page and the TVL inclusion page say core TVL excludes borrowed coins, a protocol’s own tokens, non-circulating tokens and native token staking. Staking, Pool2, borrows, vesting and offers are tracked separately and can be switched on as toggles.

Data access. The FAQ describes an open API and CSV downloads.

What to check

  • The definition of the metric you are reading, on the data definitions page.
  • Which toggles were on when you read a figure.
  • The adapter code for the protocol, in the open-source adapter repositories linked from the methodology page.
  • A primary source for any figure you plan to repeat. Our guide to TVL explains why.

Risks to understand

  • DefiLlama is a secondary source. Its figures are computed by adapters, not reported by the protocols, and can differ from a protocol's own numbers.
  • Two dashboards can label different things as TVL. DefiLlama's documentation explains what it excludes, such as borrowed assets and native staking.
  • Turning toggles on or off changes the totals shown. Note which toggles were active when you copy a figure.

Questions

Where does DefiLlama's TVL come from?
The FAQ says each listed project has an open-source adapter that returns its TVL. Adapters prefer onchain calls, though some use subgraphs or APIs.
Does DefiLlama count borrowed assets in TVL?
Not in core TVL. The data definitions page lists Borrowed as an optional toggle, kept out of TVL to prevent inflation from cycled lending.
Can I download DefiLlama data?
The FAQ says CSV download buttons appear on protocol pages, chain pages, the overview and the side menu, and that the API is open and free to use with attribution requested.

Sources

  1. DefiLlama and our methodology, DefiLlama Docsaccessed
  2. What to include as TVL?, DefiLlama Docsaccessed
  3. Data definitions, DefiLlama Docsaccessed
  4. Frequently asked questions, DefiLlama Docsaccessed

How this page works

“Visit website” always goes to the project’s official site and is never a referral link. Listings are not paid for. Facts come from the sources above and were last checked on the date at the top. If a figure could not be confirmed it is shown as “Not verified”, with no number. This page is educational and is not financial advice. Read the methodology.