← 返回
效率工具 中文

Uniswap Batch Swap

Execute multiple token swaps in sequence. Use when user wants to rebalance, swap into multiple tokens, or execute a multi-step trading plan. Each swap goes through full safety validation independently.
按顺序执行多次代币交换。适用于用户希望再平衡、兑换多种代币或执行多步交易计划。每笔交换均独立通过完整的安全验证。
wpank
效率工具 clawhub v0.1.0 1 版本 100000 Key: 无需
★ 0
Stars
📥 1,303
下载
💾 22
安装
1
版本
#latest

概述

Batch Swap

Execute multiple token swaps in sequence with independent safety validation per swap.

Activation

Use this skill when the user says any of:

  • "Swap X for Y and Z"
  • "Rebalance to 50% ETH 50% USDC"
  • "Buy 3 different tokens"
  • "Execute these swaps: ..."

Input Extraction

ParameterRequiredDefaultSource
--------------------------------------
swapsYesList of {tokenIn, tokenOut, amount}
chainNoethereumDefault chain for all swaps
stopOnFailureNotrueWhether to halt on first failure

Workflow

  1. Parse all swaps from the user's message. Confirm token symbols resolve.
  1. Pre-flight check: Verify total spending within daily limits and sufficient balance for all swaps using check_safety_status and get_agent_balance.
  1. Sequential execution: For each swap:
    • Launch Task(subagent_type:trade-executor) with swap parameters
    • Wait for confirmation before starting next swap
    • Update running balance between swaps
    • If stopOnFailure=true and swap fails, halt remaining swaps
  1. Report summary:
Batch Swap Complete (3/3 succeeded)

  #  Swap              Amount In    Amount Out   Tx
  1  USDC → WETH      1,000 USDC   0.307 WETH   0xABC...
  2  USDC → WBTC      1,000 USDC   0.015 WBTC   0xDEF...
  3  USDC → UNI       1,000 USDC   142.3 UNI    0xGHI...

  Total gas: $1.26

Error Handling

ErrorUser MessageSuggested Action
-------------------------------------
BATCH_PARTIAL_FAILURE"Swap #N failed. Remaining halted."Review failed swap, re-run remaining
INSUFFICIENT_BALANCE"Insufficient balance for full batch."Reduce amounts
SAFETY_AGGREGATE_LIMIT"Total batch exceeds daily limit."Reduce total batch size

版本历史

共 1 个版本

  • v0.1.0 当前
    2026-03-29 03:09 安全 安全

安全检测

腾讯云安全 (Keen)

安全,无风险
查看报告

腾讯云安全 (Sanbu)

安全,无风险
查看报告

🔗 相关推荐

productivity

Word / DOCX

ivangdavila
创建、检查和编辑 Microsoft Word 文档及 DOCX 文件,支持样式、编号、修订记录、表格、分节符及兼容性检查等功能。
★ 438 📥 147,583
productivity

Nano Pdf

steipete
使用nano-pdf CLI通过自然语言指令编辑PDF
★ 275 📥 114,821
developer-tools

Code Review

wpank
涵盖安全、性能、可维护性、正确性和测试的系统化代码审查模式,包含严重等级、结构化反馈指南、审查流程及需避免的反模式。适用于审查 PR、建立审查标准或提升审查质量。
★ 31 📥 17,099