Uniswap — every swap, every LP position, decoded for accounting

V2 LPs, V3 ranged liquidity, V4 hooks. We classify each pattern correctly so the realized gain and the LP position state are both right.

otherread-only sync Real-time

Uniswap is the largest DEX in Web3 by total volume, deployed across every major EVM chain. The accounting depth needs to handle V2 (constant-product LPs), V3 (ranged liquidity), and V4 (hook-based custom logic). Swap events generate realized P&L; LP positions accrue fees and exhibit impermanent loss; range exits in V3 are realized gain or loss events. We decode all of it across every chain Uniswap is deployed on.

What the Uniswap integration does

V2 / V3 / V4 swap decoding

Realized P&L per swap, multi-hop routes flattened to underlying movements.

V2 LP positions

Add / remove liquidity tracked with fee accrual.

V3 ranged liquidity

Position-by-position cost basis, range-exit realized P&L, fee accrual.

V4 hooks

Hook-based custom logic decoded against the verified hook ABI.

The connection in 4 steps

01

Import wallet address holding Uniswap positions

Paste the public address of the wallet interacting with Uniswap. Wag3s automatically detects Uniswap V2, V3, and V4 activity across all supported EVM chains — no API key or Uniswap account required.

02

Backfill swap history and LP positions

Wag3s reconstructs the full Uniswap history from on-chain data — swap events, add/remove liquidity events, V3 position NFT mints and burns, and V4 hook interactions — across all chains where the wallet has activity.

03

Calculate realized P&L per swap and LP exit

Each swap generates a realized gain or loss entry based on the token's cost basis at the time of the swap. LP exits (V2 removes, V3 range burns) are treated as disposal events with realized P&L calculated per token leg.

04

Track fee accrual and impermanent loss per LP position

Fee income accrued by V2 and V3 LP positions is tracked per period and classified as DeFi yield income. Impermanent loss relative to a hold position is surfaced in the reporting view for management reference.

Common configurations

DeFi-active protocol treasury providing liquidity on Uniswap V3

The protocol treasury maintains concentrated liquidity positions on Uniswap V3 across three pools (ETH/USDC, WBTC/ETH, TOKEN/ETH). Wag3s tracks each position's cost basis, accrued fees, and range rebalances — posting fee income to the GL and realized P&L on each position adjustment for the monthly treasury report.

Individual DeFi participant with multi-chain Uniswap activity

A contributor swaps and provides liquidity across Uniswap V3 on Ethereum, Arbitrum, and Base. Wag3s aggregates the cross-chain activity, calculates realized gains per jurisdiction's tax methodology, and exports a transaction-by-transaction tax report for the annual filing.

Market-making team running V4 hook-enabled strategies

The team operates custom V4 hooks for dynamic fee strategies. Wag3s decodes each hook interaction against the verified ABI, classifies the resulting token flows correctly, and ensures the accounting output reflects the economic substance of the hook-modified swaps.

Uniswap integration questions

How does Wag3s handle multi-hop swaps on Uniswap?

Multi-hop Uniswap swaps (e.g. TOKEN → ETH → USDC in a single transaction) are flattened to the net economic movement — TOKEN in, USDC out — for accounting purposes. The intermediate hop through ETH is treated as a routing step, not a separate disposal event, in line with most tax guidance on DEX swaps.

How are Uniswap V3 LP positions treated for tax purposes?

Opening a V3 LP position is treated as a disposal of the two deposited tokens at fair value on the date of deposit, with a new LP position asset at cost. Closing a V3 position is treated as a disposal of the LP interest, with the received tokens acquired at fair value on the exit date. Accrued fees collected are income at the time of collection.

Is Uniswap V4 fully supported?

Yes. Wag3s decodes V4 PoolManager events and hook contract interactions using the verified hook ABI. Custom fee tiers and hook-modified swap logic are decoded correctly so the accounting output reflects the actual token movements regardless of the hook's economic model.

Connect Uniswap in minutes

Free during Alpha. No credit card. Native sync, audit trail, no spreadsheets.