Properties of a LpTokenPriceTask.

interface ILpTokenPriceTask {
    mercurialPoolAddress?: string;
    orcaPoolAddress?: string;
    priceFeedAddresses?: string[];
    priceFeedJobs?: IOracleJob[];
    raydiumPoolAddress?: string;
    saberPoolAddress?: string;
    useFairPrice?: boolean;
}

Implemented by

Properties

mercurialPoolAddress?: string

Mercurial finance pool address. A full list can be found here: https://github.com/mercurial-finance/stable-swap-n-pool-js

orcaPoolAddress?: string

Orca pool address. A full list can be found here: https://www.orca.so/pools

priceFeedAddresses?: string[]

A list of Switchboard aggregator accounts used to calculate the fair LP price. This ensures the price is based on the previous round to mitigate flash loan price manipulation.

priceFeedJobs?: IOracleJob[]

A list of OracleJobs to execute in order to yield the price feed jobs to use for the fair price formula.

raydiumPoolAddress?: string

The Raydium liquidity pool ammId. A full list can be found here: https://raydium.io/pools

saberPoolAddress?: string

Saber pool address. A full list can be found here: https://github.com/saber-hq/saber-registry-dist

useFairPrice?: boolean

If enabled and price_feed_addresses provided, the oracle will calculate the fair LP price based on the liquidity pool reserves. See our blog post for more information: https://switchboardxyz.medium.com/fair-lp-token-oracles-94a457c50239

Generated using TypeDoc