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.
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
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.
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.
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.
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
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.
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.
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.
Other connectors that pair with this one.
Connect Uniswap in minutes
Free during Alpha. No credit card. Native sync, audit trail, no spreadsheets.