@yoroi/types
Version:
The Yoroi Types package of Yoroi SDK
25 lines (23 loc) • 685 B
Flow
/**
* 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,
...
}>;