/** * @file Price Feed * @desc These methods facilitate interactions with the Open Price Feed smart * contracts. */ /** * Gets an asset's price from the Rifi Protocol open price feed. The price * of the asset can be returned in any other supported asset value, including * all rTokens and underlyings. * * @param {string} asset A string of a supported asset in which to find the * current price. * @param {string} [inAsset] A string of a supported asset in which to express * the `asset` parameter's price. This defaults to USD. * * @returns {string} Returns a string of the numeric value of the asset. * * @example * ``` * const rifi = new Rifi(window.ethereum); * let price; * * (async function () { * * price = await rifi.getPrice(Rifi.WBTC); * console.log('WBTC in USD', price); // 6 decimals, see Open Price Feed docs * * price = await rifi.getPrice(Rifi.BAT, Rifi.USDC); // supports rTokens too * console.log('BAT in USDC', price); * * })().catch(console.error); * ``` */ export declare function getPrice(asset: string, inAsset?: string): Promise; export declare function getUnderlyingPrice(asset: string): Promise;