LogoLogo
UMA HomeProjectsVoter DappOO Dapp
  • Welcome to UMA
  • What's New!
  • FAQs
  • Developers
    • Optimistic Oracle v2
      • Quick Start
      • Deposit Box
      • Event-Based Prediction Market
      • Insurance Claim Arbitration
    • Optimistic Oracle v3
      • Quick start
      • Data Asserter
      • Escalation Managers
      • Sandboxed Oracle Environment
    • oSnap
      • oSnap Quick Start
      • oSnap Deployment Tutorial
      • Snapshot Proposal + Transaction Tutorial
      • oSnap Proposal Verification
      • oSnap Configuration Parameters
      • Migrate to oSnap Safe App
      • Monitoring Bot Setup
    • Setting Custom Bond and Liveness Parameters
  • Protocol Overview
    • How does UMA's Oracle work?
    • Example Projects
    • DVM 2.0
    • DVM 2.0 FAQ
  • Community
    • Governance
      • The UMIP Process
      • DAO Proposals
  • Using UMA
    • Voting Walkthrough
      • Voter Guide
      • Voting Gas Rebates
    • Proposing Oracle Data
    • Disputing Oracle Data
    • Resolving Disputes
  • Verification Guide
    • Verification System
    • Polymarket
    • Across
    • oSnap
    • Y2K
    • Index
  • Resources
    • Network Information
      • New Network Requests
    • Audit & Bug Bounty Programs
    • Approved Price Identifiers
    • Approved Collateral Types
    • Subgraphs
      • Mainnet Voting Entities
      • Queries
    • Voting with a 2-Key Contract
    • Unsupported Contracts
    • Additional Resources
    • Glossary
    • Links
    • UMA TVS Methodology
Powered by GitBook
On this page
  • Methodology
  • Dashboards

Was this helpful?

Edit on GitHub
Export as PDF
  1. Resources

UMA TVS Methodology

This page outlines UMA’s approach to calculating Total Value Secure or TVS. Calculating TVS is done slightly differently by many projects and popular decentralized statistics projects. At UMA, we pride ourselves on transparency and will always be open about our data calculation methodologies. We are always happy to share the detailed logic for specific queries upon request.

Methodology

The UMA TVS calculation follows one major principle: UMA TVS = the total value secured by UMA’s optimistic oracle.

UMA’s TVS consists of various sub components for which we can calculate aggregated USD values at a point in time. We use the DeBank Cloud API and the Web3 Package on Python to achieve this.

We divide this into four subcategories: Optimistic Oracle integrations, oSnap integrations, LSP contracts, and EMP contracts.

Optimistic Oracle

The UMA Optimistic Oracle and dispute arbitration system securely allows for arbitrary types of data to be brought on-chain. UMA’s oracle system provides data for projects including a cross-chain bridge, insurance protocols, custom derivatives and prediction markets.

Each protocol integration requires bespoke logic to calculate the total value secured (TVS). We use one of the following sub-methods to calculate TVS:

  • Use the DeBank API to return the total protocol TVL for that protocol’s address

    • Across, Cozy Finance, Sherlock, Polymarket

  • Find all the markets and/or subcontracts for which collateral tokens are used for security. Use DeBank to get the USD value for each subcontract at the time of the call

    • FORE Protocol, Index COOP, Y2K Finance

  • Each protocol’s TVS data is then uploaded daily to Dune via the dune.risk_labs.dataset_uma_oo_tvs dataset.

oSnap

oSnap is a governance tool that integrates with SAFE and Snapshot, allowing DAOs to vote on transactions to be executed onchain. The Optimistic Oracle plays a crucial role by determining whether transactions proposed to the SAFE can be executed.

The methodology for calculating oSnap TVS is straightforward. When a DAO integrates their SAFE with oSnap, we use the Debank Pro API to fetch the total balance of the SAFE to attribute to the oSnap TVS. In the event the Safe has control over another contract’s mint function we count the total supply of the tokens that Safe controls.

We calculate the USD value for a collection of Safe’s on which oSnap has been deployed:

Long/Short Pairs (LSP)

Expiring Multi Party (EMP)

Dashboards

PreviousLinks

Last updated 1 year ago

Was this helpful?

Some statistics projects, such as , do not count funds in smart contract wallets, such as Gnosis Safe. However, UMA is securing these funds as we determine the validity of a proposed transaction. For oSnap, protocol native tokens are included in TVS.

We use a very similar process to the following for calculating the total value locked (TVL) of LSP contracts. We fetch the USD values for the collateral for each LSP contract. This data is made available on Dune via the dune.risk_labs.dataset_uma_oo_tvs dataset.

We use a very similar process to the following for calculating the total value locked (TVL) of EMP contracts. We fetch the USD values for the collateral for each EMP contract. This data is made available on Dune via the dune.risk_labs.dataset_uma_oo_tvs dataset.

The UMA team has created two dashboards to showcase our TVS for oSnap and the OO. The wallet balances for this dashboard and retrieved from the and data is refreshed everyday by 7AM UTC.

DeFi Llama
methodology
methodology
DeBank Cloud API
https://dune.com/risk_labs/osnap-total-value-secured
https://dune.com/risk_labs/uma-total-value-secured