Javsphere Docs
Open AppJoin Trading Competition
  • Open Javsphere App
  • Welcome to Javsphere
  • Javsphere Stats
  • Fundamentals
    • Javsphere Set Up
      • Base Chain
      • Connect Wallet
      • Add Tokens
      • New to Crypto
    • Buy & add JAV
  • Products
    • LeverageX
      • Assets
        • Cryptocurrencies
        • Stocks
        • Forex
        • Commodities
      • Fees & Spread
      • Trader
        • Open Trade
        • Edit & Close Trade
      • Earn LLP Pool
        • Buy LLP
        • LLP Price & APY
      • xJAV Vault
        • FAQ
      • Limitations
      • Testing
      • Trading Competitions
      • Referral
    • StakeX
    • CryoVault
  • Trading Competitions
    • Current Competition
      • Create Profile
      • Create Community
      • Old competitions
        • Competition Vol. 3
        • Competition Vol. 2
        • Competition Vol. 1
        • Tournament
    • Zealy Campaign
      • Old Airdrops
        • Infinity Pass
        • CFR
        • UPT
        • DTL
        • RNG
        • DPM & Baby Dana
        • GRWV
    • Become a Sponsor
  • JAV Token
    • Utility
    • Whitepaper
      • Javsphere and JAV Token
        • JAV Token
          • Javsphere Fee Structure
          • Tokenomics
        • Added Value for Holders
        • Javsphere Technology
          • StakeX
          • CryoVault
          • LeverageX
      • Disclaimer
    • Governance
      • Onchain Proposals
      • Migration to Base
      • Offchain Proposals
      • Submit a Proposal
    • Base Migration
    • JAV Burn
  • JAVLIS
    • The Ultimate AI Agent
      • Ecosystem
      • USPs
      • Boost for LeverageX
      • Business Model
      • Roadmap
      • Virtuals as Infrastructure
      • More than a hype
      • Hiring
    • Buy JAVLIS
  • Engineering
    • Oracle System
    • Smart Contracts
      • LeverageX
        • JavBorrowingFees
        • JavFeeTiers
        • JavPairsStorage
        • JavPriceAggregator
        • JavPriceImpact
        • JavReferrals
        • JavTradingInteractions
        • JavTradingProcessing
        • JavTradingStorage
        • JavBorrowingProvider
        • LLPToken
        • Feeds
      • JavPriceAggregator
      • JavFreezer
      • JavStakeX
    • Github
    • Bug Bounty Program
  • Community & More
    • Content Library
      • Logos
      • UI Mockups
    • Social Content
    • Socials
      • Telegram Guidelines
  • LEGAL
    • Privacy Policy
    • Terms of Use
      • Excluded Jurisdictions
    • Migration Terms
    • Cookie Policy
    • Trading Competition Terms
    • Bug Bounty Terms
Powered by GitBook
On this page
  • General Description
  • Features
  • Functions

Was this helpful?

  1. Engineering
  2. Smart Contracts

JavPriceAggregator

General Description

The JavPriceAggregator is a smart contract designed to manage and update price feeds securely and efficiently on the blockchain. It supports price validation using cryptographic signatures from authorized signers, ensuring data integrity and authenticity. This contract was created for the purpose of deploying a price feed oracle on a network where a traditional path is not available. It is especially suitable for decentralized applications requiring accurate and tamper-proof price data, such as DeFi platforms, derivatives trading systems, oracles, and more.

Key features include:

  • Secure handling of price updates.

  • Support for multiple authorized signers.

  • Fee-based system for managing price updates.

  • Admin control for managing signers and configuration parameters.

Features

User Features

  • Retrieve Latest Prices: Users can query the most recent price information by ID.

  • Query Fees: Users can calculate the total fees required for a set of price updates.

Integration Capabilities

  • Secure Price Updates: Integrators can submit price updates signed by authorized signers, ensuring trustworthiness.

  • Admin Configurations: Admins can manage authorized signers, update fees, and set parameters for price feed lifetimes.

  • The interface of this contract is fully consistent with the interface of the Pyth contract.

Functions

Price Update Functions

function updatePriceFeeds(bytes[] calldata updateData) external payable
  • Purpose: Submits and processes multiple price updates signed by authorized signers.

  • Access Control: Public payable.

  • Process:

    • Verifies signatures and timestamps.

    • Decodes and validates price update data.

    • Updates the stored price information.

  • Fee: Requires payment based on the number of updates submitted.

Last updated 5 months ago

Was this helpful?