Skip to content

Feat: DAMM v2 concentrated liquidity migration#91

Open
codewithgun wants to merge 2 commits intorelease_0.1.3from
feat/concentrated-liquidity-migration
Open

Feat: DAMM v2 concentrated liquidity migration#91
codewithgun wants to merge 2 commits intorelease_0.1.3from
feat/concentrated-liquidity-migration

Conversation

@codewithgun
Copy link
Copy Markdown
Contributor

@codewithgun codewithgun commented Jun 9, 2025

Context

  • Allow migration to DAMM v2 with customizable price range.

Prerequisite

  • Create dynamic config for DBC's pool authority PDA

Steps

  1. Partner initialize DammV2MigrationPredefinedParameters account which hold the price range.
  2. Initialize PoolConfig account with MigrationOption::DammV2WithDynamicConfig with DammV2MigrationPredefinedParameters passed into remaining account.
  3. Migrate by invoking migration_damm_v2 with Config (damm v2 dynamic config) + DammV2MigrationPredefinedParameters passed into remaining account.

Artifacts

damm_v2.so

Bulit on: MeteoraAg/damm-v2@4f96950
Command: anchor b -- --feature local

@codewithgun codewithgun force-pushed the feat/concentrated-liquidity-migration branch from 38fe40c to 52e72d6 Compare June 9, 2025 16:40
@codewithgun codewithgun marked this pull request as draft June 10, 2025 03:36
@codewithgun codewithgun force-pushed the feat/concentrated-liquidity-migration branch from 24c7c0e to 82c1090 Compare June 10, 2025 04:11
@codewithgun codewithgun marked this pull request as ready for review June 10, 2025 04:11
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