hermes-v2-sdk
Version:
⚒️ An SDK for building applications on top of Hermes V2
33 lines (32 loc) • 921 B
TypeScript
import { BigintIsh, Percent } from 'maia-core-sdk';
import { FeeOptions } from './payment';
import { PermitOptions } from './self-permit';
/**
* Options for producing the arguments to send calls to the router.
*/
export interface SwapOptions {
/**
* How much the execution price is allowed to move unfavorably from the trade execution price.
*/
slippageTolerance: Percent;
/**
* The account that should receive the output.
*/
recipient: string;
/**
* When the transaction expires, in epoch seconds.
*/
deadline: BigintIsh;
/**
* The optional permit parameters for spending the input.
*/
inputTokenPermit?: PermitOptions;
/**
* The optional price limit for the trade.
*/
sqrtPriceLimitX96?: BigintIsh;
/**
* Optional information for taking a fee on output.
*/
fee?: FeeOptions;
}