trading-on-uniswap

Installation
SKILL.md

Trading on Uniswap

Uniswap V2 and V3 are both deployed on Abstract mainnet and testnet. This skill covers swaps, quotes, and basic LP operations using AGW CLI commands.

ABI Format

The AGW CLI requires full JSON ABI objects, not human-readable strings. Every abi array element must be an object with type, name, inputs, outputs, and stateMutability fields. Human-readable signatures in the references are for documentation — expand them to full JSON when constructing CLI commands.

Operating Rules

  • Check wallet balances with agw wallet balances or agw wallet tokens list before proposing any swap that depends on holdings.
  • Default to V2 for simple swaps between common pairs. Prefer V3 when the user wants better pricing on deep-liquidity pairs or specifies a fee tier.
  • Preview every swap, approval, and LP action with --dry-run before execution.
  • Never hardcode amountOutMin to "0" — always derive from a quote minus slippage tolerance.
  • Set deadlines to current time + 300-1200 seconds (5-20 minutes). Do not omit deadlines.
  • Route generic session, wallet, and transaction safety questions back to authenticating-with-agw, reading-agw-wallet, and executing-agw-transactions.
  • Read references/contracts.md for all deployed addresses.
  • Read references/v2-entrypoints.md for V2 router function signatures and swap examples.
  • Read references/v3-entrypoints.md for V3 router, quoter, and position manager signatures.
Related skills

More from abstract-foundation/agw-cli

Installs
21
GitHub Stars
1
First Seen
Mar 24, 2026