BSD | Based
  • Intro
  • Protocol
    • Borrow
    • Redeem
    • Interest rates
    • Collateral
    • Stability Pool
    • Redistribution
    • Protocol Modes
    • Fees
    • Oracles
    • Keeper
    • Risks
  • Resources
    • Contracts
    • Beta
    • Audits
  • Product comparisons
  • Telegram Bot
Powered by GitBook
On this page
  • DIA
  • Arkadiko
  • Staleness Check
  1. Protocol

Oracles

PreviousFeesNextKeeper

Last updated 28 days ago

The protocol needs accurate, real-time price information for BTC and/or sBTC relative to USD to calculate collateral ratios, manage liquidations, and process redemptions. Based is currently configured to use one of these two oracles:

DIA

  • Contract:

  • Price source:

Arkadiko

  • Contract:

  • Github:

Staleness Check

The protocol always checks if the price data received from the oracle is recent. If the price feed is older than a predefined threshold (currently 9 Bitcoin blocks), the protocol will reject the price and halt operations that depend on it (like borrowing, withdrawing, redeeming, or liquidating) until a fresh price is available. This prevents actions based on outdated, potentially inaccurate information.

https://explorer.hiro.so/txid/SP1G48FZ4Y7JY8G2Z0N51QTCYGBQ6F4J43J77BQC0.dia-oracle?chain=mainnet
https://www.diadata.org/app/price/asset/Bitcoin/0x0000000000000000000000000000000000000000/
https://explorer.hiro.so/txid/SP2C2YFP12AJZB4MABJBAJ55XECVS7E4PMMZ89YZR.arkadiko-oracle-v2-3?chain=mainnet
https://github.com/arkadiko-dao/oracle-node?tab=readme-ov-file