Using uniswap adapter

From WayfinderFoundation/wayfinder-paths-sdk · View interactive version

Using uniswap adapter is an AI agent skill from the GitHub repository WayfinderFoundation/wayfinder-paths-sdk. How to use Uniswap V3 and V4 swaps and concentrated liquidity, including Arc V4 explicit-position management.

How to use this skill

Skill file

When to use

Use this skill when you are:

How to use

Arc V4

Arc (5042) has V4, not V3. Use UniswapAdapter({"chain_id": 5042}, ...) and v4_*

methods; V3 NFT/pool calls fail instead of selecting another chain.

v4_mint_position accepts a PoolKey, ticks, liquidity and raw amount maxima;

v4_increase_liquidity / v4_decrease_liquidity take explicit IDs and limits.

v4_collect_fees uses zero-liquidity decrease; v4_close_position burns and

returns both currencies to the owner. Persist minted token_ids from receipts.

v4_get_positions(ids) reads only those IDs (max 100), with no history scans.

New liquidity supports hookless pools only. Use canonical currency order,

aligned ticks and deliberate slippage limits. Native USDC (zero address, 18

decimals) and ERC-20 USDC (0x3600…0000, 6 decimals) are different pool keys but

share a wallet balance. Do not normalize one pool into the other. Native input

uses msg.value and refunds excess; ERC-20 input uses Permit2.

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.