@yfi/sdk
Version:
Interaction framework for the yearn protocol
15 lines (14 loc) • 513 B
TypeScript
import { Service } from "../../common";
import { Address, Usdc } from "../../types/common";
export declare const PickleJars: string[];
export declare class PickleService extends Service {
private pickleJarUSDPrices;
private lastFetchedDate;
/**
* Fetches the USD price of a pickle jar token
* @param jar the address of the jar to fetch
* @returns the price of the jar token in USD
*/
getPriceUsdc(jar: Address): Promise<Usdc>;
private fetchPickleJarPrices;
}