t2000-swap
Installation
SKILL.md
t2000: Swap Tokens
Purpose
Convert between tokens at the best available rate. Cetus Aggregator routes across 20+ DEXs and picks the lowest-price-impact path. Slippage defaults to 1%; configurable up to 5%.
Swaps are NOT gasless. Unlike t2 send USDC / t2 send USDsui, Cetus swap transactions require SUI for gas (typically < $0.01 per swap). Ensure the wallet holds a small SUI balance before swapping.
Rules
- Preview before signing. Always run
t2 swap <amount> <from> <to> --quote(or callt2000_swapin dry-run via the MCP) and surfacepriceImpact+toAmountto the user before broadcasting. - Decline obviously bad swaps. If
priceImpact > 0.5%(50 bps), warn the user and require explicit confirmation. IfpriceImpact > 5%, refuse — that's almost certainly a thin-liquidity trap. - One swap per intent. Cetus aggregator handles multi-hop internally; don't chain
swapcalls. - Don't auto-decide stables. If the user says "swap to USD", ASK whether USDC or USDsui — they're both Sui-native stables.
- Limits apply to every swap (CLI and MCP). Limits are on by default ($25/tx · $100/day); if the swap exceeds a cap (on the from-side USD value) the write throws
LIMIT_EXCEEDED. Use--force(CLI) to override one time.