UNPKG

web3agent-aof

Version:

AI Framework for Onchain Operations and DeFi Interactions

10 lines (9 loc) 265 B
import { ethers } from 'ethers'; export type SwapParams = { tokenIn: string; tokenOut: string; amountIn: string; slippage: number; routerAddress: string; }; export declare const swap: (params: SwapParams, wallet: ethers.Wallet) => Promise<any>;