Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

PriceOracle: Price Oracle (XLS-47d) #4789

Merged
merged 1 commit into from
Feb 26, 2024

Commits on Feb 25, 2024

  1. Price Oracle (XLS-47d): (XRPLF#4789)

     Implement native support for Price Oracles.
    
     A Price Oracle is used to bring real-world data, such as market prices,
     onto the blockchain, enabling dApps to access and utilize information
     that resides outside the blockchain.
    
     Add Price Oracle functionality:
     - OracleSet: create or update the Oracle object
     - OracleDelete: delete the Oracle object
    
     To support this functionality add:
     - New RPC method, `get_aggregate_price`, to calculate aggregate price for a token pair of the specified oracles
     - `ltOracle` object
    
     The `ltOracle` object maintains:
     - Oracle Owner's account
     - Oracle's metadata
     - Up to ten token pairs with the scaled price
     - The last update time the token pairs were updated
    
     Add Oracle unit-tests
    gregtatcam committed Feb 25, 2024
    Configuration menu
    Copy the full SHA
    f839070 View commit details
    Browse the repository at this point in the history