Skip to content

feat: add Curve Finance LP position adapter#9

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

feat: add Curve Finance LP position adapter#9
linuxninja39 merged 1 commit into
mainfrom
merge/ev-k7qhe

Conversation

@linuxninja39

Copy link
Copy Markdown
Contributor

Summary

  • Adds CurveAdapter to defi/protocols following BeefyAdapter/AaveAdapter pattern
  • Supports stable pools, crypto pools, factory pools across Ethereum, Polygon, Arbitrum
  • Calculates underlying token amounts from LP balance and virtual price
  • Tracks gauge-staked LP tokens and CRV rewards
  • 15 new unit tests (1000 total, all passing)

Merge Request

  • Source: polecat/quartz (ev-ndtl)
  • MQ Entry: ev-k7qhe

Test plan

  • All 1000 tests pass (47 test files)
  • Clean rebase on main (fast-forward)
  • New CurveAdapter tests cover stable/crypto/factory pools, error handling, multi-chain support

Implements IDeFiProtocol for Curve Finance liquidity pool positions using
the Curve API and on-chain LP token reads. Supports 7 chains with pool
share calculation, proportional token balances, and graceful error handling.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@linuxninja39 linuxninja39 merged commit 785b4ea 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