UNPKG

equation-sdk

Version:

🛠 An SDK for building applications on top of Equation.

14 lines (13 loc) • 438 B
/** * Multiply the exchange rate by a factor of 10000 for contract-related calculations * @param value * @returns */ export declare const parseRate: (value?: string | number) => string; /** * When thegraph returns parameters such as the rate, * it needs to be divided by the base 10000 format conversion for display. * @param value * @returns */ export declare const formatRate: (value?: string | number) => string;