token-swap-best-practices

Guide DEX token swaps with slippage, aggregator, and chain recommendations.

5|Updated May 2, 2026
One-click install
npx skills add https://github.com/nirholas/three-ui --skill token-swap-best-practices-nirholas
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: token-swap-best-practices
Source: https://github.com/nirholas/three-ui/tree/main/data/skills/trading/token-swap-best-practices
Command: npx skills add https://github.com/nirholas/three-ui --skill token-swap-best-practices-nirholas

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill helps users avoid failed or inefficient token swaps by guiding safer DEX-aggregator selection, slippage choices, gas optimization, and common failure modes.

Core Features & Use Cases

  • DEX aggregator comparison: Chooses between routing providers (e.g., 1inch, 0x/Matcha, Paraswap, Jupiter) to improve price by using multiple liquidity sources.
  • Slippage and failure troubleshooting: Recommends slippage ranges by token/liquidity conditions and provides steps for errors like insufficient output.
  • Gas and chain strategy: Suggests L2s for cost efficiency and compares typical costs/speeds across major chains.
  • Cross-chain best practices: Covers stablecoin bridging, destination-chain verification, and bridge timing considerations.
  • Pitfall prevention checklist: Flags tax tokens, low-liquidity impact, MEV/front-running risks, and approval issues before executing.

Quick Start

Use this Skill to advise an agent on the safest and most cost-effective way to execute a token swap, including the recommended slippage, aggregator(s), chain choice, and what to do if the transaction fails.

Frequently Asked Questions about token-swap-best-practices

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I configure slippage for token swaps to avoid transaction failures?

To configure slippage for token swaps safely, set ranges based on token liquidity risk and pool conditions. Proper slippage tolerance prevents insufficient output errors during volatile periods or when trading low-liquidity assets.

What is the best way to compare DEX aggregators for token swaps?

Comparing DEX aggregators for token swaps involves evaluating routing providers like 1inch, 0x, Paraswap, and Jupiter by their chain support and liquidity sources. This ensures improved pricing by sourcing from multiple pools simultaneously.

How do I optimize gas costs when executing cross-chain token swaps?

To optimize gas costs for token swaps, select Layer 2 networks for cost efficiency and compare typical costs and speeds across major chains. For cross-chain bridging, use stablecoin transfers and verify destination-chain details.

Why does my token swap fail with an approval error and how do I fix it?

Token swaps fail with approval errors when smart contracts lack permission to spend the token. Fix this by executing a token approval transaction beforehand, and check a pitfall prevention checklist for tax tokens or MEV risks.

How do I protect my token swaps from MEV and front-running?

Protecting token swaps from MEV and front-running involves using DEX aggregators with built-in MEV protection and checking a pitfall prevention checklist. This flags low-liquidity price impact and front-running risks before execution.