Skip to content

feat: add Uniswap V3 LP position adapter#10

Merged
linuxninja39 merged 1 commit into
mainfrom
merge/ev-ukgrb
Feb 19, 2026
Merged

feat: add Uniswap V3 LP position adapter#10
linuxninja39 merged 1 commit into
mainfrom
merge/ev-ukgrb

Conversation

@linuxninja39

Copy link
Copy Markdown
Contributor

Summary

  • Adds UniswapV3Adapter to defi/protocols following BeefyAdapter/AaveAdapter pattern
  • Fetches LP positions via NonfungiblePositionManager contract
  • Handles concentrated liquidity tick ranges, in-range/out-of-range status
  • Calculates underlying token amounts and uncollected fees
  • Supports Ethereum, Polygon, Arbitrum, Optimism, Base
  • 24 new unit tests (1024 total, all passing)
  • Resolved trivial barrel export conflict with Curve adapter in defi/index.ts

Merge Request

  • Source: polecat/obsidian (ev-dwjc)
  • MQ Entry: ev-ukgrb

Test plan

  • All 1024 tests pass (48 test files)
  • Rebased on main (post-Curve merge), conflict resolved cleanly
  • UniswapV3Adapter tests cover position management, fee calculation, multi-chain, error handling

Add UniswapV3Adapter implementing IDeFiProtocol for reading concentrated
liquidity positions via NonfungiblePositionManager. Supports Ethereum,
Polygon, Arbitrum, Optimism, and Base. Handles tick range math, in-range
detection, underlying token amount computation, and uncollected fees.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@linuxninja39 linuxninja39 merged commit c6a5de1 into main Feb 19, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant