Slipstream Router & Quoter

Explain SwapRouter and QuoterV2 for single-hop and multi-hop on-chain swaps.

Updated Jan 28, 2026
One-click install
npx skills add https://github.com/cyotee/aerodrome-V2-slipstream-skill --skill slipstream-router-quoter
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: Slipstream Router & Quoter
Source: https://github.com/cyotee/aerodrome-V2-slipstream-skill/tree/main/.opencode/skills/slipstream-router
Command: npx skills add https://github.com/cyotee/aerodrome-V2-slipstream-skill --skill slipstream-router-quoter

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This skill explains how to use Slipstream Router and Quoter to perform and simulate on-chain swaps, including single-hop and multi-hop paths, quotes, and path encoding, so users can understand how to execute and estimate swaps in the Slipstream ecosystem.

Core Features & Use Cases

  • Swap execution guidance: Learn how the SwapRouter handles exactInput and exactOutput flows for on-chain swaps.
  • Quote and simulation: Understand how QuoterV2 provides simulated results, including gas estimates and post-swap state.
  • Path encoding mastery: Grasp the path format for multi-hop swaps and how to progress through successive pools.

Quick Start

Use this skill to review a simple SwapRouter flow for a single-hop swap and then explore a multi-hop path encoding example to see how QuoterV2 can predict outcomes.

Frequently Asked Questions about Slipstream Router & Quoter

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

FAQPage Schema
How does path encoding work for multi-hop swaps in Slipstream?

Path encoding for multi-hop swaps in Slipstream packs token addresses and pool fees into a single byte string, allowing the SwapRouter to route liquidity through successive pools in one transaction.

What is the difference between exactInput and exactOutput swap methods?

The exactInput swap method specifies an exact amount of tokens to send, while exactOutput specifies the exact amount to receive, changing how the SwapRouter calculates slippage and routes the transaction.

How do I get a swap price estimate before executing an on-chain transaction?

You can simulate swap outcomes and get price estimates by using QuoterV2, which calculates expected output amounts, gas estimates, and post-swap state without actually executing the transaction on-chain.

Can I simulate multi-hop swap quotes before execution?

Yes, QuoterV2 supports multi-hop path encoding to simulate quotes for complex routes, returning the expected output amount and gas cost for the entire swap path before execution.

Does the Slipstream SwapRouter support single-hop and multi-hop paths?

Yes, the Slipstream SwapRouter handles both single-hop and multi-hop swaps, using path encoding to define the routing sequence through multiple pools for exactInput and exactOutput flows.