Skip to content

Commit 1cfad2d

Browse files
authored
Merge pull request #70 from MeteoraAg/feat/dbc-0.1.9
feat: Update with DBC SDK 1.5.2
2 parents 32e30af + add9f2d commit 1cfad2d

11 files changed

Lines changed: 238 additions & 52 deletions

File tree

pnpm-lock.yaml

Lines changed: 75 additions & 17 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

scaffolds/fun-launch/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
"@iconify-json/solar": "^1.2.2",
2121
"@iconify/tailwind": "^1.2.0",
2222
"@jup-ag/wallet-adapter": "^0.2.3",
23-
"@meteora-ag/dynamic-bonding-curve-sdk": "^1.5.0",
23+
"@meteora-ag/dynamic-bonding-curve-sdk": "^1.5.2",
2424
"@solana/spl-token": "^0.4.14",
2525
"@solana/spl-token-registry": "^0.2.4574",
2626
"@solana/wallet-adapter-wallets": "^0.19.33",

studio/config/damm_v2_config.jsonc

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -66,8 +66,8 @@
6666
"maxPrice": null, // max price (in terms of quote/base price) - NOTE: null would use the MAX_SQRT_PRICE for the DAMM v2 balanced pool
6767
"poolFees": {
6868
"baseFee": {
69-
"baseFeeMode": 2, // 0 - Fee Scheduler: Linear | 1 - Fee Scheduler: Exponential | 2 - Rate Limiter
70-
// "feeSchedulerParam": {
69+
"baseFeeMode": 2, // 0 - Fee Scheduler: Linear | 1 - Fee Scheduler: Exponential | 2 - Rate Limiter | 3 - Fee Market Cap Scheduler: Linear | 4 - Fee Market Cap Scheduler: Exponential
70+
// "feeTimeSchedulerParam": {
7171
// "startingFeeBps": 120, // starting base fee (in basis points) (if you want a flat fee, set startingFeeBps and endingFeeBps to the same value)
7272
// "endingFeeBps": 120, // ending base fee (in basis points) (if you want a flat fee, set startingFeeBps and endingFeeBps to the same value)
7373
// "numberOfPeriod": 0, // number of periods
@@ -80,6 +80,13 @@
8080
"maxLimiterDuration": 3600, // if activationType is 0 (slots), maxLimiterDuration = duration / 0.4, if activationType is 1 (timestamp), maxLimiterDuration = duration)
8181
"maxFeeBps": 5000 // max 50% base fee can go to === 5000 bps
8282
}
83+
// "feeMarketCapSchedulerParam": {
84+
// "startingFeeBps": 500, // starting base fee (in basis points)
85+
// "endingFeeBps": 50, // ending base fee (in basis points)
86+
// "numberOfPeriod": 100, // number of fee reduction periods
87+
// "sqrtPriceStepBps": 100, // sqrt price increase (in bps) required to advance one period
88+
// "schedulerExpirationDuration": 86400 // maximum duration (seconds) after which scheduler expires and defaults to ending fee
89+
// }
8390
},
8491
"dynamicFeeEnabled": true // if dynamicFeeEnabled is true and dynamicFeeConfig is null, the default dynamic fee configuration will be 20% of the base fee
8592
/* Optional Configuration.
@@ -115,6 +122,7 @@
115122
"newPositionOwner": "YOUR_NEW_POSITION_OWNER_ADDRESS", // this is the address that will receive the new DAMM v2 NFT position
116123
"unlockedLiquidityPercentage": 50, // this is the percentage of unlocked liquidity that will be split and transferred to the newPositionOwner's position
117124
"permanentLockedLiquidityPercentage": 50, // this is the percentage of permanent locked liquidity that will be split and transferred to the newPositionOwner's position
125+
"innerVestingLiquidityPercentage": 50, // this is the percentage of inner vesting liquidity that will be split and transferred to the newPositionOwner's position
118126
"feeAPercentage": 50, // this is the percentage of unclaimed fee that will be transferred to the newPositionOwner's position
119127
"feeBPercentage": 50, // this is the percentage of unclaimed fee that will be transferred to the newPositionOwner's position
120128
"reward0Percentage": 50, // this is the percentage of unclaimed reward that will be transferred to the newPositionOwner's position

0 commit comments

Comments
 (0)