UNPKG

@yoroi/types

Version:
25 lines (23 loc) 685 B
/** * Flowtype definitions for app * Generated by Flowgen from a Typescript Definition * Flowgen v1.21.0 */ import { BalanceQuantity } from "../balance/token"; import { SwapAggregator } from "../swap/aggregator"; export interface AppApi { getFrontendFees(): Promise<AppFrontendFeesResponse>; } export type AppFrontendFeesResponse = $ReadOnly< $ObjMapi< { [k: SwapAggregator]: any }, <aggregator>(aggregator) => $ReadOnlyArray<AppFrontendFeeTier> > >; export type AppFrontendFeeTier = $ReadOnly<{ primaryTokenValueThreshold: BalanceQuantity, secondaryTokenBalanceThreshold: BalanceQuantity, variableFeeMultiplier: number, fixedFee: BalanceQuantity, ... }>;