multi-swap

Installation
SKILL.md

Multi-Swap

Execute 2-3 independent token swaps in a single Starknet transaction via Fibrous (default). Other providers can be selected with --provider, or use --provider auto to race all providers per pair. All swaps are bundled into one multicall, saving gas compared to executing them individually.

Prerequisites

  • Active session required.
  • Sufficient balance for ALL source tokens + gas fees.

Rules

  1. BEFORE any multi-swap, you MUST run npx starkfi@latest status and npx starkfi@latest balance to verify connectivity and source token balances for ALL pairs.
  2. Minimum 2 and maximum 3 swap pairs per multi-swap. Single swaps should use the trade skill instead.
  3. The pairs string MUST be wrapped in double quotes and each pair separated by a comma.
  4. Each pair follows the format: <amount> <FROM>><TO> (no spaces around >).
  5. Default slippage is 1%. To change, use --slippage <percent>.
  6. Suggest using --simulate first so the user can confirm gas cost.
  7. AFTER a successful multi-swap, you MUST verify using npx starkfi@latest tx-status <hash>.
Related skills

More from ahmetenesdur/starkfi

Installs
9
GitHub Stars
2
First Seen
Mar 15, 2026