handle.fi
💱convert💹application💭discord
中文
中文
  • 👋介绍
  • 🛠️handle.fi 使用案例和好处
  • FOREX
    • 💱FOREX 代币经济学
    • 🗳️治理质押 (veFOREX)
      • obtain fxUSD/FOREX BPT & lock for veFOREX
    • 👜如何购买FOREX
  • Platform Functions
    • 💱handle流动性池 (hLP)
    • ⭐入门
    • 💹交易
      • 资产
      • 📔如何交易
    • 💵convert
      • 📘how to convert
    • 🏧borrow
      • 🏛️CDP vaults and collateral
      • ⚠️CDP liquidations
      • 🛡️fxKeeper
      • 💲repay
      • 📗how to borrow
    • 💰earn
      • 📚how to earn
    • 🌉bridge
    • 🌊liquidity pools
      • 🌙curve handle3pool
      • 🌙curve handleFRAXBP
      • 🌊FOREX pools
        • Balancer (80/20) FOREX/fxUSD (arb)
        • UniV3 FOREX/WETH (main)
      • 🌊fxToken - FX liquidity pools
    • 💰fees & collateral parameters
      • protocol fee distributions
    • 📖definitions
  • protocol rewards
    • 🔭overview
    • 🤝referral program
    • 👨‍💻quests
      • 🥧Protocol Incentive Experiments (PIEs)
        • PIE #1 - retweets
        • PIE #2 - memes
        • PIE #3 - bonus rewards
        • PIE #4 - content production
        • PIE #5 - referrer program
        • PIE #6 - troop participation program
        • PIE #7_b - convert & win
    • 🖼️NFT series: t0-Troopers
    • 🪙founding trooper - FOREX coin
    • 🎡the FOREX flywheel
    • 🎁trader rewards
  • protocol SPECS
    • 📜contracts
    • 🔐protocol audit - Peckshield
    • 👁️oracles
    • 📊subgraph
  • How to guides
    • 🔩adjusting settings
    • 👨‍🎓how to open an account
    • 🌉bridge
    • 🏠dashboard
  • Socials
  • website
  • twitter
  • discord
  • github
  • substack
  • youtube
  • MARKETING
    • branding, assets, images & memes
  • $FOREX data
    • CoinGecko
    • CoinMarketCap
    • Arbiscan
    • Etherscan
Powered by GitBook
On this page
  • chainlink
  • h2SO

Was this helpful?

  1. protocol SPECS

oracles

an overview of oracles used on handle.fi

PreviouscontractsNextsubgraph

Was this helpful?

An Oracle refers to a smart contract that provides readable data on-chain.

handle.fi uses both chainlink oracles and our own high speed oracles. each meeting differing protocol requirements

the protocol uses the for pricing CDP collateral and mint value of fxTokens. (arbitrum oracles can be found ). For perpetual trading, handle uses the H2SO (handle high speed oracles) system which allows the end user to update the price directly on an oracle aggregator contract by submitting a trusted signature along with the quoted price.

chainlink

for pricing CDP collateral and mint value of fxTokens handle uses the

Chainlink is a popular protocol (and also product) that develops oracle smart contracts and workflows. The reason Chainlink is both a protocol and also a product/service, is that someone could use Chainlink's open source oracle smart contracts with a self-managed infrastructure, rather than relying on Chainlink's official feeds or operators.

aggregator contracts

The aggregator smart contract is one of Chainlink's oracle contracts. It is usually structured the following way:

  1. There is an , also called an Aggregator Proxy, which reads data from the Aggregator contract. DApps read the price from the Aggregator Interface, so that the Aggregator Interface could at any time change which Aggregator contract it points to without breaking the DApps.

  2. The is the actual contract with the oracle data submission logic. The example linked is the Flux Aggregator contract, which aggregates data from the oracle operators on-chain. There are newer oracle architectures which aggregate all oracle answers off-chain, submitting a single transaction on-chain and are therefore more gas efficient. The point is that this is the implementation contract, and different architectures are available, but they usually follow the same interface for interoperability.

  3. Oracle operators, which are either individuals or organisations, run software that checks the value of an asset, off-chain, using their own data sources, and submit to the Aggregator contract, either on a schedule or when requested by the oracle system.

h2SO

For perpetual trading, handle uses the H2SO (handle high speed oracles) system which allows the end user to update the price directly on an oracle aggregator contract by submitting a trusted signature along with the quoted price.

👁️
official Chainlink data feeds
here
official Chainlink data feeds.
Aggregator Interface contract
Aggregator contract