Execute multiple token swaps in sequence with independent safety validation per swap.
Use this skill when the user says any of:
| Parameter | Required | Default | Source |
|---|---|---|---|
| ----------- | ---------- | --------- | -------- |
swaps | Yes | — | List of {tokenIn, tokenOut, amount} |
chain | No | ethereum | Default chain for all swaps |
stopOnFailure | No | true | Whether to halt on first failure |
check_safety_status and get_agent_balance.Task(subagent_type:trade-executor) with swap parametersstopOnFailure=true and swap fails, halt remaining swapsBatch 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 | User Message | Suggested 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 个版本