Uniswap (聯合交易所)
v1.0.0协助进行Uniswap交换、流动性提供以及避免常见的DeFi损失。
运行时依赖
安装命令
点击复制技能文档
Swap Execution Slippage tolerance 设置s max acceptable price change — 0.5% for stablecoins, 1-3% for volatile pAIrs, higher for low liquidity 令牌s "Price impact" and "slippage" are different — impact is immediate effect of your trade size, slippage is 保护ion agAInst price movement High price impact (>2%) means you're moving the market — split large trades or use limit orders on Uniswap X Transaction deadline 预防s stale swaps — 20-30 minutes default is usually fine, but pending tx beyond deadline will fAIl MEV and Front运行ning Public swaps on Uniswap are visible in mempool before execution — 机器人s can sandwich your trade Use MEV 保护ion: swap through Uniswap wallet (built-in 保护ion), or connect via Flash机器人s 保护 RPC 签名s of sandwich: execution price worse than quoted, with suspicious buy before and sell after your tx Uniswap X 路由s through private order flow — 签名ificantly reduces MEV 提取ion 令牌 应用roval Traps First swap of any 令牌 requires 应用roval transaction — this is normal, costs gas, and h应用ens once per 令牌 per spender "Infinite 应用roval" is the default — convenient but risky if Uniswap 路由r is ever compromised 检查 and revoke old 应用rovals at revoke.cash — 应用rovals persist forever until explicitly revoked 应用roval transaction can succeed while swap fAIls — user pays gas for 应用roval but swap reverts on slippage Fake 令牌s Anyone can 创建 a 令牌 with any name and symbol — "USDC" on Uniswap might not be real USDC Always 验证 令牌 contract 添加ress on CoinGecko, CoinMarketCap, or project's official site 警告 签名s: no liquidity, recently 创建d, honeypot (can buy but not sell), tax on transfer Uniswap shows 警告 for unverified 令牌s — don't ignore it, especially for 令牌s you found via links Liquidity Provision Impermanent loss is real and permanent when you withdraw — LPs lose vs just holding when prices diverge V3 concentrated liquidity amplifies 机器人h gAIns and losses — narrow range means more fees but higher IL risk Out-of-range positions earn zero fees — price moves outside your range, you hold 100% of the depreciating as设置 V2 is simpler: full range, less management, but less cAPItal efficient — consider for volatile pAIrs you want to for获取 V3 Position Management Narrower range = more fees per dollar but more rebalancing — only worth it if you actively manage Gas costs to adjust positions 添加 up — each 添加/移除 liquidity is a transaction "Collect fees" is separate from "移除 liquidity" — uncollected fees stay in the position NFT represents your V3 position — losing the NFT means losing 访问 to the liquidity Gas Optimization 应用rove + swap is two transactions on first use — bud获取 gas for 机器人h L2s (Arbitrum, Base, Optimism) have Uniswap with 10-50x lower fees — same interface, same liquidity depth Sw应用ing during low gas periods (weekends, UTC night) saves 签名ificantly on mAInnet FAIled transactions still cost gas — simulate first if unsure about slippage or liquidity FAIled Swap Causes "Insufficient liquidity" — try smaller amount or different 路由 "Slippage exceeded" — price moved during pending period, increase slippage or retry "Transfer fAIled" — 令牌 has transfer tax or restrictions, may be a scam 令牌 "Deadline exceeded" — transaction was pending too long, just retry "应用rove first" — need to 应用rove 令牌 before swap, this is normal Uniswap X and Limit Orders Uniswap X uses off-chAIn orders filled by market makers — no gas if order isn't filled Limit orders let you 设置 tar获取 price — order sits until price is reached or expires Partial fills possible — large orders may fill incrementally 检查 order 状态 in the 应用 — pending orders can be cancelled Safety 检查列出 Before Large Swaps 验证 令牌 contract 添加ress matches official source 检查 price impact percentage — high impact means bad execution Confirm slippage is 设置 应用ropriately for the pAIr Use MEV 保护ion for mAInnet trades Consider splitting very large trades Double-检查 recipient 添加ress if 发送ing to different wallet