- addLiquidity(__namedParameters): Promise<{
transaction: undefined | Transaction;
result: {
currencyA: CurrencyFlow;
currencyB: CurrencyFlow;
lpCurrency: Currency6909Flow;
quoteRequest: undefined | {
tokenIn: Currency;
tokenOut: Currency;
amountIn: bigint;
slippageLimitPercent: number;
gasPrice: bigint;
userAddress: `0x${string}`;
timeout: number;
};
quoteResponse: undefined | {
amountOut: bigint;
aggregator: string;
exchangeRate: number;
};
};
}> Parameters
- __namedParameters: {
chainId: CHAIN_IDS;
userAddress: `0x${string}`;
token0: `0x${string}`;
token1: `0x${string}`;
salt: `0x${string}`;
amount0?: string;
amount1?: string;
quotes?: ((inputCurrency, amountIn, outputCurrency, slippageLimitPercent, gasPrice, userAddress) => Promise<{
amountOut: bigint;
transaction: undefined | Transaction;
}>)[];
options?: {
slippage?: number;
disableSwap?: boolean;
timeoutForQuotes?: number;
token0PermitParams?: ERC20PermitParam;
token1PermitParams?: ERC20PermitParam;
useSubgraph?: boolean;
} & DefaultOptions & {
gasLimit?: bigint;
gasPriceLimit?: bigint;
};
}userAddress: `0x${string}`
token0: `0x${string}`
token1: `0x${string}`
salt: `0x${string}`
Optional
amount0?: string
Optional
amount1?: string
Optional
quotes?: ((inputCurrency, amountIn, outputCurrency, slippageLimitPercent, gasPrice, userAddress) => Promise<{
amountOut: bigint;
transaction: undefined | Transaction;
}>)[]
Optional
options?: {
slippage?: number;
disableSwap?: boolean;
timeoutForQuotes?: number;
token0PermitParams?: ERC20PermitParam;
token1PermitParams?: ERC20PermitParam;
useSubgraph?: boolean;
} & DefaultOptions & {
gasLimit?: bigint;
gasPriceLimit?: bigint;
}
Returns Promise<{
transaction: undefined | Transaction;
result: {
currencyA: CurrencyFlow;
currencyB: CurrencyFlow;
lpCurrency: Currency6909Flow;
quoteRequest: undefined | {
tokenIn: Currency;
tokenOut: Currency;
amountIn: bigint;
slippageLimitPercent: number;
gasPrice: bigint;
userAddress: `0x${string}`;
timeout: number;
};
quoteResponse: undefined | {
amountOut: bigint;
aggregator: string;
exchangeRate: number;
};
};
}>