Documentation
    Preparing search index...

    Function updateOraclePricesPTB

    • Update oracle prices in the PTB (Programmable Transaction Block)

      This function updates price feeds for the lending protocol. It can optionally update Pyth price feeds first if they are stale, then updates individual price feeds in the oracle contract.

      Parameters

      • tx: Transaction

        The transaction block to add price update operations to

      • priceFeeds: OraclePriceFeed[]

        Array of oracle price feeds to update

      • Optionaloptions: Partial<EnvOption & { updatePythPriceFeeds?: boolean }>

        Optional configuration including whether to update Pyth feeds

      Returns Promise<Transaction>

      The updated transaction block