@meteora-ag/dynamic-bonding-curve-sdk 1.4.10 → 1.5.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -37,7 +37,7 @@ The generic flow of how Dynamic Bonding Curve works is as follows:
37
37
  1. The partner creates a config key for the pool.
38
38
  2. The creator creates a pool.
39
39
  3. The pool is tradeable on the Dynamic Bonding Curve.
40
- 4. Meteora's migrator service migrates the pool to either DAMM V1 or DAMM V2 based on the config key once the migration quote threshold is met.
40
+ 4. Meteora's migrator service migrates the pool to either DAMM V1 or DAMM V2 based on the config key once the quote reserve is more than or equals to the migration quote threshold.
41
41
  5. The graduated pool is tradeable on either DAMM V1 or DAMM V2.
42
42
 
43
43
  ## Flow of migration
@@ -47,8 +47,8 @@ The generic flow of how Dynamic Bonding Curve works is as follows:
47
47
  1. `createDammV1MigrationMetadata`
48
48
  2. `createLocker` (if the token has locked vesting)
49
49
  3. `migrateToDammV1`
50
- 4. `lockDammV1LpToken` (if `creatorLockedLpPercentage` or `partnerLockedLpPercentage` is >0)
51
- 5. `claimDammV1LpToken` (if `creatorLpPercentage` or `partnerLpPercentage` is >0)
50
+ 4. `lockDammV1LpToken` (if `creatorPermanentLockedLiquidityPercentage` or `partnerPermanentLockedLiquidityPercentage` is >0)
51
+ 5. `claimDammV1LpToken` (if `creatorLiquidityPercentage` or `partnerLiquidityPercentage` is >0)
52
52
 
53
53
  ### DAMM V2
54
54
 
@@ -57,9 +57,17 @@ The generic flow of how Dynamic Bonding Curve works is as follows:
57
57
 
58
58
  ### Test
59
59
 
60
+ 1. Run solana localnet validator
61
+
62
+ ```bash
63
+ cd packages/dynamic-bonding-curve
64
+ pnpm start-validator
65
+ ```
66
+
67
+ 2. Run the tests
68
+
60
69
  ```bash
61
- bun install
62
- bun test
70
+ pnpm test
63
71
  ```
64
72
 
65
73
  ### Manual Migrator