Tarot
  • Introduction
  • User Guide
  • Deployed Contracts
  • Addresses
  • FAQ
  • Security Audits
  • Risks
  • Token Migration
    • Bridging TAROT v2
    • TAROT v1 Migration
  • Tarot Protocol
    • Protocol Overview
    • Lending Pools
    • Collateralization Model
    • Liquidation
    • Tarot Vaults
    • Price Oracle
    • Fees
    • Interest Rate Model
  • Supply Vaults
    • Supply Vaults
    • tTokens
  • Spirit Boosted
    • tinSPIRIT
  • BoostMaxx
    • BoostMaxx
  • Tokenomics
    • The TAROT Token
    • xTAROT
    • Governance
    • Tokenomics
    • Emissions
    • Farming
  • Resources
    • Media Assets
  • Links
    • Website
    • Discord
    • GitHub
    • Medium
    • Snapshot
    • Twitter
  • Deprecated
    • Bridging TAROT (Multichain)
Powered by GitBook
On this page
  1. Tarot Protocol

Price Oracle

PreviousTarot VaultsNextFees

Last updated 3 years ago

Tarot uses the Tarot Price Oracle to reliably calculate the value of LP tokens and determine how much collateral is necessary for borrowing and leverage.

Tarot Price Oracle works with any Uniswap V2-compatible token pair, commonly supported by DEXs. It calculates the time-weighted average price (TWAP) by using the pair’s built-in price accumulators, over a period of at least 1,200 seconds (20 minutes). This is accomplished using the pair’s current price and a previously-observed price (stored within the oracle’s contract) from at least 20 minutes prior.

More information on the Tarot Price Oracle and pricing LP tokens can be found on Medium:

Tarot Price Oracle: On-Chain & Manipulation-Resistant
Tarot Deep Dive: Part Two