import { NetworkIdType } from '@sonarwatch/portfolio-core'; import BigNumber from 'bignumber.js'; import { Cache } from '../../Cache'; export declare const minimumLiquidity: BigNumber; export type PoolData = { id: string; supply: BigNumber; lpDecimals: number; reserveTokenX: BigNumber; reserveTokenY: BigNumber; mintTokenX: string; decimalX?: number; mintTokenY: string; decimalY?: number; }; /** * @deprecated * This function has been deprecated. Use the getLpTokenSource or getLpTokenSourceRaw instead. * Add a price source for a pool in the cache. * If one of the token composing the pool doesn't have a price and can be safely calculated, add a new token price. * WARNING : check tokensToRelyOnByNetwork for further details on how the new token price is calculated. * * @param cache The cache on which the LP price will be stored * @param tokenMintX The address/mint of the first token * @param tokenMintY The address/mint of the second token * @param poolData An object with informmations about the pool * @param networkId The network for which the LP price source is stored * @param platformId The platform from which the price is calculated * */ export default function computeAndStoreLpPrice(cache: Cache, poolData: PoolData, networkId: NetworkIdType, platformId: string): Promise;