@crypto-dex-sdk/amm
Version:
8 lines • 695 B
TypeScript
import type { Token } from '@crypto-dex-sdk/currency';
import type { MultiPath } from '../MultiRoute';
import type { StableSwap } from './StableSwap';
import { Amount } from '@crypto-dex-sdk/currency';
export declare function calculateSwapFromBase(pool: StableSwap, basePool: StableSwap, tokenIndexFrom: number, tokenIndexTo: number, amount: Amount<Token>): Amount<Token>;
export declare function calculateSwapToBase(pool: StableSwap, basePool: StableSwap, tokenIndexFrom: number, tokenIndexTo: number, amount: Amount<Token>): Amount<Token>;
export declare function getStableSwapOutputAmount(path: MultiPath, inputAmount: Amount<Token>): Amount<Token>;
//# sourceMappingURL=calculations.d.ts.map