doc.gno
0.72 Kb ยท 17 lines
1// Package router provides swap routing and execution across GnoSwap liquidity pools.
2//
3// The router handles token swaps with multi-hop routing, slippage protection,
4// and automatic GNOT wrapping/unwrapping. It supports both exact input and
5// exact output swap modes with deadline validation.
6//
7// Key features:
8// - Multi-hop routing across up to 3 pools
9// - Quote distribution for optimal execution
10// - Native GNOT handling with automatic wrap/unwrap
11// - Slippage protection via min/max amounts
12// - Router fee (0.15%) on all swaps
13// - Deadline enforcement to prevent stale transactions
14//
15// The router acts as a proxy to version-specific implementations,
16// currently routing to v1 for all swap operations.
17package router