UNPKG

@myclique/governance-sdk

Version:

The SDK is provides easy access to the high level interactions to be governance with an Clique DAO.

18 lines (17 loc) 845 B
import { Currency } from '../currency'; import { Fraction } from './fraction'; import { CurrencyAmount } from './currencyAmount'; import { BigintIsh, Rounding } from '../constants'; export declare class Price extends Fraction { readonly baseCurrency: Currency; readonly quoteCurrency: Currency; readonly scalar: Fraction; constructor(baseCurrency: Currency, quoteCurrency: Currency, denominator: BigintIsh, numerator: BigintIsh); get raw(): Fraction; get adjusted(): Fraction; invert(): Price; multiply(other: Price): Price; quote(currencyAmount: CurrencyAmount): CurrencyAmount; toSignificant(significantDigits?: number, format?: Record<string, unknown>, rounding?: Rounding): string; toFixed(decimalPlaces?: number, format?: Record<string, unknown>, rounding?: Rounding): string; }