@frakt-protocol/frakt-sdk
Version:
Frakt SDK for interacting with frakt.xyz protocols
20 lines (19 loc) • 624 B
TypeScript
import { LiquidityPoolInfo, LiquidityPoolKeysV4, Percent } from '@raydium-io/raydium-sdk';
import { TokenInfo } from '../common/types';
export declare type RaydiumPoolInfoMap = Map<string, LiquidityPoolInfo>;
export interface GetInputAmount {
poolKeys: LiquidityPoolKeysV4;
poolInfo: LiquidityPoolInfo;
receiveToken: TokenInfo;
receiveAmount: number;
payToken: TokenInfo;
slippage?: Percent;
}
export interface GetOutputAmount {
poolKeys: LiquidityPoolKeysV4;
poolInfo: LiquidityPoolInfo;
payToken: TokenInfo;
payAmount: number;
receiveToken: TokenInfo;
slippage?: Percent;
}