Documentation
    Preparing search index...

    Function filterPriceFeeds

    • Filter price feeds based on lending state and pools

      This function filters price feeds to only include those that are relevant to the current lending state or available pools.

      A composite asset (e.g. vSUI priced at SUI/USD x VSUI/SUI.RR) lists its ratio feed under the asset's own oracle id, so the ratio feed is kept whenever the asset is: the contract reads the asset's price as valid only while both feeds are fresh.

      Parameters

      Returns OraclePriceFeed[]

      Filtered array of price feeds