Skip to content
Back to skills

Token Swap

ASecurity

Execute token swaps on Uniswap/PancakeSwap across multiple EVM chains.

  • 101 stars
  • 0 votes
  • 0 copies
  • 1 view
  • Added May 27, 2026
blockchaingosecurity

Security analysis

A100/100

Scanned May 27, 2026

npx -y skills add TermiX-official/cryptoclaw --skill token-swap --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Token Swap?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Token Swap
[![Security: A β€” Skills Directory](https://www.skillsdirectory.com/api/skills/termix-official-token-swap/badge)](https://www.skillsdirectory.com/skills/termix-official-token-swap)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: token-swap
description: Execute token swaps on Uniswap/PancakeSwap across multiple EVM chains.
metadata: { "cryptoclaw": { "emoji": "πŸ”„", "always": true } }
---

# Token Swap Skill

Execute token swaps on Uniswap (V2/V3) and PancakeSwap (V2/V3) across multiple EVM chains.

## Overview

Swap tokens using dedicated DEX tools that automatically compare V2 and V3 quotes to find the best price. Uses the active wallet for signing transactions.

## Supported DEXes

- **BSC**: PancakeSwap V2 + V3
- **Ethereum**: Uniswap V2 + V3
- **Polygon**: QuickSwap V2 + Uniswap V3
- **Arbitrum**: Uniswap V2 + V3
- **Optimism**: Uniswap V3
- **Base**: Uniswap V3

## Tools Used

- `swap_get_quote` - Get best swap quote across V2/V3 with estimated output and price impact
- `swap_execute` - Execute the swap (auto-approves token spending if needed)
- `swap_check_allowance` - Check if token is already approved for the router
- `swap_supported_dexes` - List available DEXes and fee tiers for a network
- `get_erc20_token_info` - Look up token name, symbol, decimals by contract address

## Workflow

1. User requests a swap β†’ call `swap_get_quote` with tokenIn, tokenOut, amountIn
2. Present quote: input amount, estimated output, minimum output, slippage, DEX name, version
3. If price impact is high or slippage > 1%, warn the user
4. Ask user for explicit confirmation before proceeding
5. Call `swap_execute` with same parameters

## Security Rules

- ALWAYS show the swap quote before executing
- ALWAYS warn if estimated output seems low (possible low liquidity)
- NEVER execute swaps without explicit user confirmation
- Default slippage: 0.5% β€” warn if user sets above 3%
- For large swaps, suggest splitting into multiple smaller trades
- Run `security-check` on the target token before executing a swap to detect honeypots and high taxes

## V3 Fee Tiers

When using V3, the fee tier affects which liquidity pool is used:

- 0.01% (100) β€” stablecoin pairs
- 0.05% (500) β€” stable/common pairs
- 0.3% (3000) β€” most common, default
- 1% (10000) β€” exotic pairs

The tool auto-selects the best fee tier by default.

## Example Interactions

User: "Swap 1 BNB for USDT on BSC"
β†’ Call `swap_get_quote` with tokenIn="native", tokenOut="[REDACTED]", amountIn="1"
β†’ Show: "PancakeSwap V3: 1 BNB β†’ ~590.23 USDT (min: 587.28 USDT, 0.5% slippage)"
β†’ After confirmation: call `swap_execute`

User: "What would I get for swapping 100 USDT to ETH on Ethereum?"
β†’ Call `swap_get_quote` only, display result without executing

User: "What DEXes work on Arbitrum?"
β†’ Call `swap_supported_dexes` with network="arbitrum"

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.