Oracle Pallet
The Oracle pallet provides real-time cryptocurrency price feeds critical for accurate operations across Unit Network.
How Prices Are Used
| Function | How Oracle Data Is Used |
|---|---|
| Stablecoin Minting | Determines stablecoins minted when burning reserve assets |
| Deposits | Calculates wrapped tokens to mint |
| Withdrawals | Ensures accurate conversion |
| Treasury Redemption | Determines reserve assets to return |
| Price Display | Powers real-time UI pricing |
Price Update Process
- Off-chain workers fetch prices from external sources
- Consensus reached every 4 blocks among staking workers
- Verified prices submitted to on-chain oracle
- Platform modules query oracle for current data
Supported Assets
Price feeds for all 14+ reserve assets: BTC, ETH, DOT, SOL, BNB, ADA, ALGO, AVAX, NEAR, XLM, ATOM, TON, CRO, and stablecoins.
→ See: Staking Worker