Outcome
  • Outcome
  • KPI Options
    • What are KPI Options?
    • Designing your own KPI options program
    • KPI Option Configuration
      • Common Ancillary Data Parameters
      • DefiLlama TVL
      • Subgraph Query
      • Metric Operations
    • Supported Payout Functions
    • Deployment Tutorial
    • Examples
  • Success Tokens
    • What are Success Tokens?
    • Deployment Tutorial
    • Examples
  • Optimistic Governance
    • What is the Optimistic Governor?
  • Other Outcome Products
    • Other Outcome Products
  • Resources
    • LSP Prerequisites
    • Network Addresses
    • Audit & Bug Bounty Programs
    • Glossary
    • Links
Powered by GitBook
On this page
  • Endpoint
  • Metric Selector
  1. KPI Options
  2. KPI Option Configuration

DefiLlama TVL

PreviousCommon Ancillary Data ParametersNextSubgraph Query

Last updated 2 years ago

Any project that has implemented a functioning can configure KPI options to track its TVL measured in USD. In addition to the deployer should configure DefiLlama TVL specific settings as documented below. Full specification of DefiLlama TVL data source is available in its to be referenced by verifiers.

Endpoint

Endpoint string value should be set to project's DefiLlama TVL API endpoint in the format "https://api.llama.fi/protocol/<PROJECT_SLUG>" where <PROJECT_SLUG> should be replaced with project slug name used in DefiLlama TVL adapter.

Metric Selector

In order to instruct verifiers on the location of TVL value within returned Endpoint response Key string parameter should be set to tvl[i].totalLiquidityUSD where tvl[i].date is the latest daily timestamp before the evaluated timestamp.

By default TVL across all chains would be tracked. If however the KPI metric was to track TVL on a particular chain additional optional ChainName string parameter should be set to the selected chain name. Names of supported chains can be observed as key names under the returned chainTvls object when querying the Endpoint.

DefiLlama adapter
common ancillary data parameters
implementation document