发现和使用优秀的技能扩展
在Uniswap V4(Base、以太坊)上交换代币和读取池状态。当代理需要执行以下操作时使用:(1)通过Uniswap V4交换ERC20代币或ETH,(2)获取池信息(价格、刻度、流动性、费用),(3)为代币对找到最佳池,(4)通过链上V4Quoter获取预期交换输出报价,(5)为通用路由器设置Permit2授权,或(6)执行具有适当滑点保护的精确输入交换。支持Base和以太坊主网,以及Base Sepolia测试网。采用具有严格类型的TypeScript。写入操作需要通过环境变量提供私钥。
Swap tokens and read pool state on Uniswap V4 (Base, Ethereum). Use when the agent needs to: (1) swap ERC20 tokens or ETH via Uniswap V4, (2) get pool info (price, tick, liquidity, fees), (3) find the best pool for a token pair, (4) quote expected swap output via the on-chain V4Quoter, (5) set up Permit2 approvals for the Universal Router, or (6) execute exact-input swaps with proper slippage protection. Supports Base and Ethereum mainnet, plus Base Sepolia testnet. TypeScript with strict types. Write operations need a private key via env var.