@cetusprotocol/dlmm-sdk 0.0.7 → 0.0.9

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
@@ -281,6 +281,109 @@ console.log('Variable fee:', variableFee)
281
281
  console.log('Variable fee percentage:', d(variableFee).div(d(FEE_PRECISION)).toString())
282
282
  ```
283
283
 
284
+ **getTotalFeeRate Return Value**
285
+
286
+ The `getTotalFeeRate` method returns a `FeeRate` object containing the following fields:
287
+
288
+ ```typescript
289
+ type FeeRate = {
290
+ base_fee_rate: string // Base fee rate
291
+ var_fee_rate: string // Variable fee rate
292
+ total_fee_rate: string // Total fee rate
293
+ }
294
+ ```
295
+
296
+ **Field Descriptions:**
297
+
298
+ - **`base_fee_rate`**: Base fee rate, calculated from the pool's `bin_step` and `base_factor`, is a fixed value
299
+ - **`var_fee_rate`**: Variable fee rate, dynamically calculated based on the pool's volatility accumulator (`volatility_accumulator`), changes with market volatility
300
+ - **`total_fee_rate`**: Total fee rate, equals `base_fee_rate + var_fee_rate`, but will not exceed the maximum fee rate limit (`MAX_FEE_RATE = 100,000,000`)
301
+
302
+ **Fee Rate Precision:**
303
+ - All fee rate values use `FEE_PRECISION = 1,000,000,000` as the precision unit
304
+ - To get the actual percentage, divide the fee rate value by `FEE_PRECISION`
305
+ - Example: If `total_fee_rate` is `3000000`, the actual fee rate is `3000000 / 1000000000 = 0.003 = 0.3%`
306
+
307
+ **Usage Example:**
308
+ ```typescript
309
+ const feeRate = await sdk.Pool.getTotalFeeRate({
310
+ pool_id: "0x...",
311
+ coin_type_a: "0x...",
312
+ coin_type_b: "0x..."
313
+ })
314
+
315
+ // Calculate actual percentages
316
+ const baseFeePercentage = d(feeRate.base_fee_rate).div(d(FEE_PRECISION)).mul(100).toString()
317
+ const varFeePercentage = d(feeRate.var_fee_rate).div(d(FEE_PRECISION)).mul(100).toString()
318
+ const totalFeePercentage = d(feeRate.total_fee_rate).div(d(FEE_PRECISION)).mul(100).toString()
319
+
320
+ console.log(`Base fee rate: ${baseFeePercentage}%`)
321
+ console.log(`Variable fee rate: ${varFeePercentage}%`)
322
+ console.log(`Total fee rate: ${totalFeePercentage}%`)
323
+ ```
324
+
325
+ #### FeeUtils Utility Methods
326
+
327
+ The `FeeUtils` class provides several utility methods for fee calculations:
328
+
329
+ **1. `getVariableFee(variableParameters: VariableParameters): string`**
330
+
331
+ Calculates the variable fee based on pool parameters and market volatility.
332
+
333
+ ```typescript
334
+ import { FeeUtils } from '@cetusprotocol/dlmm-sdk'
335
+
336
+ const variableFee = FeeUtils.getVariableFee(pool.variable_parameters)
337
+ console.log('Variable fee:', variableFee)
338
+ console.log('Variable fee percentage:', d(variableFee).div(d(FEE_PRECISION)).toString())
339
+ ```
340
+
341
+ **2. `calculateCompositionFee(amount: string, total_fee_rate: string): string`**
342
+
343
+ Calculates composition fees for liquidity operations.
344
+
345
+ ```typescript
346
+ const compositionFee = FeeUtils.calculateCompositionFee(amount, total_fee_rate)
347
+ ```
348
+
349
+ **3. `calculateProtocolFee(fee_amount: string, protocol_fee_rate: string): string`**
350
+
351
+ Calculates protocol fees based on fee amount and protocol fee rate.
352
+
353
+ ```typescript
354
+ const protocolFee = FeeUtils.calculateProtocolFee(fee_amount, protocol_fee_rate)
355
+ ```
356
+
357
+ **4. `getProtocolFees(fee_a: string, fee_b: string, protocol_fee_rate: string)`**
358
+
359
+ Calculates protocol fees for both tokens in a pair.
360
+
361
+ ```typescript
362
+ const { protocol_fee_a, protocol_fee_b } = FeeUtils.getProtocolFees(fee_a, fee_b, protocol_fee_rate)
363
+ console.log('Protocol fee A:', protocol_fee_a)
364
+ console.log('Protocol fee B:', protocol_fee_b)
365
+ ```
366
+
367
+ **5. `getCompositionFees(active_bin: BinAmount, used_bin: BinAmount, variableParameters: VariableParameters)`**
368
+
369
+ Calculates composition fees for active and used bins, considering variable parameters.
370
+
371
+ ```typescript
372
+ const { fees_a, fees_b } = FeeUtils.getCompositionFees(active_bin, used_bin, variableParameters)
373
+ console.log('Composition fees A:', fees_a)
374
+ console.log('Composition fees B:', fees_b)
375
+ ```
376
+
377
+ **FeeUtils Methods Summary:**
378
+
379
+ | Method | Description | Parameters | Returns |
380
+ | ------------------------- | ------------------------------------------- | ---------------------------------------------- | ---------------------------------- |
381
+ | `getVariableFee` | Calculate variable fee from pool parameters | `variableParameters` | `string` |
382
+ | `calculateCompositionFee` | Calculate composition fee for an amount | `amount`, `total_fee_rate` | `string` |
383
+ | `calculateProtocolFee` | Calculate protocol fee | `fee_amount`, `protocol_fee_rate` | `string` |
384
+ | `getProtocolFees` | Calculate protocol fees for both tokens | `fee_a`, `fee_b`, `protocol_fee_rate` | `{protocol_fee_a, protocol_fee_b}` |
385
+ | `getCompositionFees` | Calculate composition fees for bins | `active_bin`, `used_bin`, `variableParameters` | `{fees_a, fees_b}` |
386
+
284
387
  #### Fee and Reward Collection
285
388
 
286
389
  You can collect fees from your positions in several ways:
@@ -296,18 +399,6 @@ const tx = await sdk.Position.collectRewardAndFeePayload([{
296
399
  coin_type_b
297
400
  }])
298
401
 
299
- // Simulate or send the transaction
300
- const sim_result = await sdk.FullClient.sendSimulationTransaction(tx, wallet)
301
- ```
302
- 2. **Collect Partner ref fee**:
303
- ```typescript
304
- // Build collect fee and reward transaction
305
- const tx = await sdk.Position.claimRefFeePayload({
306
- partner_id: "0x..",
307
- partner_cap_id: "0x..", // Optional parameter
308
- fee_coin_types: [coin_type]
309
- })
310
-
311
402
  // Simulate or send the transaction
312
403
  const sim_result = await sdk.FullClient.sendSimulationTransaction(tx, wallet)
313
404
  ```
@@ -759,17 +850,28 @@ const tx = sdk.Partner.createPartnerPayload({
759
850
 
760
851
  // Update referral fee rate
761
852
  const updateFeeTx = await sdk.Partner.updateRefFeeRatePayload({
762
- partner_id: '0x9d171399393e3cbedffc24269eb606e735fb56fee17c15153eb5e2d5274a3677',
853
+ partner_id: '0x..',
763
854
  ref_fee_rate: 0.02,
764
855
  })
765
856
 
766
857
  // Update time range
767
858
  const start_time = Math.floor(Date.now() / 1000)
768
859
  const updateTimeTx = await sdk.Partner.updateTimeRangePayload({
769
- partner_id: '0x9d171399393e3cbedffc24269eb606e735fb56fee17c15153eb5e2d5274a3677',
860
+ partner_id: '0x..',
770
861
  start_time,
771
862
  end_time: start_time + 10 * 7 * 24 * 3600,
772
863
  })
864
+
865
+ // claim ref fee
866
+ const tx = await sdk.Position.claimRefFeePayload({
867
+ partner_id: "0x..",
868
+ partner_cap_id: "0x..", // Optional parameter
869
+ fee_coin_types: [coin_type]
870
+ })
871
+
872
+ // Simulate or send the transaction
873
+ const sim_result = await sdk.FullClient.sendSimulationTransaction(tx, wallet)
874
+
773
875
  ```
774
876
 
775
877
  ### 7. Reward Operations
package/dist/index.d.mts CHANGED
@@ -474,13 +474,13 @@ declare class PoolModule implements IModule<CetusDlmmSDK> {
474
474
  * @param tx - The transaction object
475
475
  * @returns The transaction object
476
476
  */
477
- createPoolPayload(option: CreatePoolOption, tx: Transaction): Promise<TransactionObjectArgument>;
477
+ createPoolPayload(option: CreatePoolOption, tx: Transaction): TransactionObjectArgument;
478
478
  /**
479
479
  * Create a pool and add liquidity
480
480
  * @param option - The option for creating a pool and adding liquidity
481
481
  * @returns The transaction for creating a pool and adding liquidity
482
482
  */
483
- createPoolAndAddLiquidityPayload(option: CreatePoolAndAddOption): Promise<Transaction>;
483
+ createPoolAndAddLiquidityPayload(option: CreatePoolAndAddOption): Transaction;
484
484
  }
485
485
 
486
486
  declare class PositionModule implements IModule<CetusDlmmSDK> {
@@ -1023,6 +1023,44 @@ declare class FeeUtils {
1023
1023
  };
1024
1024
  }
1025
1025
 
1026
+ type IlmInputOptions = {
1027
+ curvature: number;
1028
+ initial_price: string;
1029
+ max_price: string;
1030
+ bin_step: number;
1031
+ total_supply: string;
1032
+ pool_share_percentage: number;
1033
+ config: {
1034
+ price_curve_points_num: number;
1035
+ liquidity_distribution_num: number;
1036
+ tokens_table_num: number;
1037
+ price_table_num: number;
1038
+ };
1039
+ };
1040
+ type Axis = {
1041
+ x: string;
1042
+ y: string;
1043
+ };
1044
+ type TokenTable = {
1045
+ withdrawn: string;
1046
+ price: string;
1047
+ usdc_in_pool: string;
1048
+ };
1049
+ type IlmInputResult = {
1050
+ price_curve: Axis[];
1051
+ liquidity_curve: Axis[];
1052
+ dlmm_bins: Axis[];
1053
+ tokens_table: TokenTable[];
1054
+ price_table: TokenTable[];
1055
+ initial_fdv: string;
1056
+ final_fdv: string;
1057
+ usdc_in_pool: string;
1058
+ };
1059
+
1060
+ declare class IlmUtils {
1061
+ static calculateIlm(options: IlmInputOptions): IlmInputResult;
1062
+ }
1063
+
1026
1064
  declare const MAX_BIN_PER_POSITION = 1000;
1027
1065
  declare const MIN_BIN_ID = -443636;
1028
1066
  declare const MAX_BIN_ID = 443636;
@@ -1040,4 +1078,4 @@ declare const dlmmMainnet: SdkOptions;
1040
1078
 
1041
1079
  declare const dlmmTestnet: SdkOptions;
1042
1080
 
1043
- export { type AddLiquidityOption, type AddRewardOption, BASIS_POINT, BASIS_POINT_MAX, BIN_BOUND, type BaseAddLiquidityOption, type BaseCalculateAddLiquidityOption, type BaseCreatePoolAndAddOption, type BaseCreatePoolOption, type BinAmount, type BinLiquidityInfo, type BinManager, type BinStepConfig, type BinSwap, BinUtils, type BinWeight, type CalculateAddLiquidityAutoFillOption, type CalculateAddLiquidityOption, type CalculateRemoveLiquidityBothOption, type CalculateRemoveLiquidityOnlyOption, CetusDlmmSDK, type ClaimRefFeeOption, type ClosePositionOption, type CollectFeeOption, type CollectRewardAndFeeOption, type CollectRewardOption, type CreatePartnerOption, type CreatePoolAndAddOption, type CreatePoolAndAddWithPriceOption, type CreatePoolOption, DEFAULT_MAX_WEIGHT, DEFAULT_MIN_WEIGHT, type DlmmBasePool, type DlmmConfigs, type DlmmGlobalConfig, type DlmmPool, type DlmmPosition, FEE_PRECISION, type FeeRate, FeeUtils, type GetPoolBinInfoOption, type GetTotalFeeRateOption, type InitRewardOption, MAX_BIN_ID, MAX_BIN_PER_POSITION, MAX_FEE_RATE, MIN_BIN_ID, ONE, type OpenAndAddLiquidityOption, type OpenAndAddLiquidityWithPriceOption, type OpenPositionOption, type Partner, PoolModule, type PoolPermissions, type PoolTransactionInfo, type PositionFee, type PositionManager, type PositionReward, type PreSwapOption, type PreSwapQuote, REWARD_PERIOD, REWARD_PERIOD_START_AT, type RemoveLiquidityOption, type Reward, type RewardAccessOption, type RewardInfo, type RewardManager, type RewardPeriodEmission, type RewardPeriodEmissionFormat, type RewardWhiteListOption, SCALE_OFFSET, type SdkOptions, StrategyType, StrategyUtils, type SwapOption, type UpdatePositionFeeAndRewardsOption, type UpdateRefFeeRateOption, type UpdateTimeRangeOption, type ValidateActiveIdSlippageOption, type VariableParameters, WeightUtils, type WeightsInfo, type WeightsOptions, buildPoolKey, CetusDlmmSDK as default, dlmmMainnet, dlmmTestnet, generateRewardSchedule, getRouterModule, parseBinInfo, parseBinInfoList, parseCurrentRewardPeriodEmission, parseDlmmBasePool, parseDlmmPool, parseDlmmPosition, parseLiquidityShares, parsePartner, parsePoolTransactionInfo, parseRewardPeriodEmission, parseStrategyType, parsedDlmmPosFeeData, parsedDlmmPosRewardData, parsedSwapQuoteData, poolFilterEvenTypes, safeAmount, safeMulAmount };
1081
+ export { type AddLiquidityOption, type AddRewardOption, type Axis, BASIS_POINT, BASIS_POINT_MAX, BIN_BOUND, type BaseAddLiquidityOption, type BaseCalculateAddLiquidityOption, type BaseCreatePoolAndAddOption, type BaseCreatePoolOption, type BinAmount, type BinLiquidityInfo, type BinManager, type BinStepConfig, type BinSwap, BinUtils, type BinWeight, type CalculateAddLiquidityAutoFillOption, type CalculateAddLiquidityOption, type CalculateRemoveLiquidityBothOption, type CalculateRemoveLiquidityOnlyOption, CetusDlmmSDK, type ClaimRefFeeOption, type ClosePositionOption, type CollectFeeOption, type CollectRewardAndFeeOption, type CollectRewardOption, type CreatePartnerOption, type CreatePoolAndAddOption, type CreatePoolAndAddWithPriceOption, type CreatePoolOption, DEFAULT_MAX_WEIGHT, DEFAULT_MIN_WEIGHT, type DlmmBasePool, type DlmmConfigs, type DlmmGlobalConfig, type DlmmPool, type DlmmPosition, FEE_PRECISION, type FeeRate, FeeUtils, type GetPoolBinInfoOption, type GetTotalFeeRateOption, type IlmInputOptions, type IlmInputResult, IlmUtils, type InitRewardOption, MAX_BIN_ID, MAX_BIN_PER_POSITION, MAX_FEE_RATE, MIN_BIN_ID, ONE, type OpenAndAddLiquidityOption, type OpenAndAddLiquidityWithPriceOption, type OpenPositionOption, type Partner, PoolModule, type PoolPermissions, type PoolTransactionInfo, type PositionFee, type PositionManager, type PositionReward, type PreSwapOption, type PreSwapQuote, REWARD_PERIOD, REWARD_PERIOD_START_AT, type RemoveLiquidityOption, type Reward, type RewardAccessOption, type RewardInfo, type RewardManager, type RewardPeriodEmission, type RewardPeriodEmissionFormat, type RewardWhiteListOption, SCALE_OFFSET, type SdkOptions, StrategyType, StrategyUtils, type SwapOption, type TokenTable, type UpdatePositionFeeAndRewardsOption, type UpdateRefFeeRateOption, type UpdateTimeRangeOption, type ValidateActiveIdSlippageOption, type VariableParameters, WeightUtils, type WeightsInfo, type WeightsOptions, buildPoolKey, CetusDlmmSDK as default, dlmmMainnet, dlmmTestnet, generateRewardSchedule, getRouterModule, parseBinInfo, parseBinInfoList, parseCurrentRewardPeriodEmission, parseDlmmBasePool, parseDlmmPool, parseDlmmPosition, parseLiquidityShares, parsePartner, parsePoolTransactionInfo, parseRewardPeriodEmission, parseStrategyType, parsedDlmmPosFeeData, parsedDlmmPosRewardData, parsedSwapQuoteData, poolFilterEvenTypes, safeAmount, safeMulAmount };
package/dist/index.d.ts CHANGED
@@ -474,13 +474,13 @@ declare class PoolModule implements IModule<CetusDlmmSDK> {
474
474
  * @param tx - The transaction object
475
475
  * @returns The transaction object
476
476
  */
477
- createPoolPayload(option: CreatePoolOption, tx: Transaction): Promise<TransactionObjectArgument>;
477
+ createPoolPayload(option: CreatePoolOption, tx: Transaction): TransactionObjectArgument;
478
478
  /**
479
479
  * Create a pool and add liquidity
480
480
  * @param option - The option for creating a pool and adding liquidity
481
481
  * @returns The transaction for creating a pool and adding liquidity
482
482
  */
483
- createPoolAndAddLiquidityPayload(option: CreatePoolAndAddOption): Promise<Transaction>;
483
+ createPoolAndAddLiquidityPayload(option: CreatePoolAndAddOption): Transaction;
484
484
  }
485
485
 
486
486
  declare class PositionModule implements IModule<CetusDlmmSDK> {
@@ -1023,6 +1023,44 @@ declare class FeeUtils {
1023
1023
  };
1024
1024
  }
1025
1025
 
1026
+ type IlmInputOptions = {
1027
+ curvature: number;
1028
+ initial_price: string;
1029
+ max_price: string;
1030
+ bin_step: number;
1031
+ total_supply: string;
1032
+ pool_share_percentage: number;
1033
+ config: {
1034
+ price_curve_points_num: number;
1035
+ liquidity_distribution_num: number;
1036
+ tokens_table_num: number;
1037
+ price_table_num: number;
1038
+ };
1039
+ };
1040
+ type Axis = {
1041
+ x: string;
1042
+ y: string;
1043
+ };
1044
+ type TokenTable = {
1045
+ withdrawn: string;
1046
+ price: string;
1047
+ usdc_in_pool: string;
1048
+ };
1049
+ type IlmInputResult = {
1050
+ price_curve: Axis[];
1051
+ liquidity_curve: Axis[];
1052
+ dlmm_bins: Axis[];
1053
+ tokens_table: TokenTable[];
1054
+ price_table: TokenTable[];
1055
+ initial_fdv: string;
1056
+ final_fdv: string;
1057
+ usdc_in_pool: string;
1058
+ };
1059
+
1060
+ declare class IlmUtils {
1061
+ static calculateIlm(options: IlmInputOptions): IlmInputResult;
1062
+ }
1063
+
1026
1064
  declare const MAX_BIN_PER_POSITION = 1000;
1027
1065
  declare const MIN_BIN_ID = -443636;
1028
1066
  declare const MAX_BIN_ID = 443636;
@@ -1040,4 +1078,4 @@ declare const dlmmMainnet: SdkOptions;
1040
1078
 
1041
1079
  declare const dlmmTestnet: SdkOptions;
1042
1080
 
1043
- export { type AddLiquidityOption, type AddRewardOption, BASIS_POINT, BASIS_POINT_MAX, BIN_BOUND, type BaseAddLiquidityOption, type BaseCalculateAddLiquidityOption, type BaseCreatePoolAndAddOption, type BaseCreatePoolOption, type BinAmount, type BinLiquidityInfo, type BinManager, type BinStepConfig, type BinSwap, BinUtils, type BinWeight, type CalculateAddLiquidityAutoFillOption, type CalculateAddLiquidityOption, type CalculateRemoveLiquidityBothOption, type CalculateRemoveLiquidityOnlyOption, CetusDlmmSDK, type ClaimRefFeeOption, type ClosePositionOption, type CollectFeeOption, type CollectRewardAndFeeOption, type CollectRewardOption, type CreatePartnerOption, type CreatePoolAndAddOption, type CreatePoolAndAddWithPriceOption, type CreatePoolOption, DEFAULT_MAX_WEIGHT, DEFAULT_MIN_WEIGHT, type DlmmBasePool, type DlmmConfigs, type DlmmGlobalConfig, type DlmmPool, type DlmmPosition, FEE_PRECISION, type FeeRate, FeeUtils, type GetPoolBinInfoOption, type GetTotalFeeRateOption, type InitRewardOption, MAX_BIN_ID, MAX_BIN_PER_POSITION, MAX_FEE_RATE, MIN_BIN_ID, ONE, type OpenAndAddLiquidityOption, type OpenAndAddLiquidityWithPriceOption, type OpenPositionOption, type Partner, PoolModule, type PoolPermissions, type PoolTransactionInfo, type PositionFee, type PositionManager, type PositionReward, type PreSwapOption, type PreSwapQuote, REWARD_PERIOD, REWARD_PERIOD_START_AT, type RemoveLiquidityOption, type Reward, type RewardAccessOption, type RewardInfo, type RewardManager, type RewardPeriodEmission, type RewardPeriodEmissionFormat, type RewardWhiteListOption, SCALE_OFFSET, type SdkOptions, StrategyType, StrategyUtils, type SwapOption, type UpdatePositionFeeAndRewardsOption, type UpdateRefFeeRateOption, type UpdateTimeRangeOption, type ValidateActiveIdSlippageOption, type VariableParameters, WeightUtils, type WeightsInfo, type WeightsOptions, buildPoolKey, CetusDlmmSDK as default, dlmmMainnet, dlmmTestnet, generateRewardSchedule, getRouterModule, parseBinInfo, parseBinInfoList, parseCurrentRewardPeriodEmission, parseDlmmBasePool, parseDlmmPool, parseDlmmPosition, parseLiquidityShares, parsePartner, parsePoolTransactionInfo, parseRewardPeriodEmission, parseStrategyType, parsedDlmmPosFeeData, parsedDlmmPosRewardData, parsedSwapQuoteData, poolFilterEvenTypes, safeAmount, safeMulAmount };
1081
+ export { type AddLiquidityOption, type AddRewardOption, type Axis, BASIS_POINT, BASIS_POINT_MAX, BIN_BOUND, type BaseAddLiquidityOption, type BaseCalculateAddLiquidityOption, type BaseCreatePoolAndAddOption, type BaseCreatePoolOption, type BinAmount, type BinLiquidityInfo, type BinManager, type BinStepConfig, type BinSwap, BinUtils, type BinWeight, type CalculateAddLiquidityAutoFillOption, type CalculateAddLiquidityOption, type CalculateRemoveLiquidityBothOption, type CalculateRemoveLiquidityOnlyOption, CetusDlmmSDK, type ClaimRefFeeOption, type ClosePositionOption, type CollectFeeOption, type CollectRewardAndFeeOption, type CollectRewardOption, type CreatePartnerOption, type CreatePoolAndAddOption, type CreatePoolAndAddWithPriceOption, type CreatePoolOption, DEFAULT_MAX_WEIGHT, DEFAULT_MIN_WEIGHT, type DlmmBasePool, type DlmmConfigs, type DlmmGlobalConfig, type DlmmPool, type DlmmPosition, FEE_PRECISION, type FeeRate, FeeUtils, type GetPoolBinInfoOption, type GetTotalFeeRateOption, type IlmInputOptions, type IlmInputResult, IlmUtils, type InitRewardOption, MAX_BIN_ID, MAX_BIN_PER_POSITION, MAX_FEE_RATE, MIN_BIN_ID, ONE, type OpenAndAddLiquidityOption, type OpenAndAddLiquidityWithPriceOption, type OpenPositionOption, type Partner, PoolModule, type PoolPermissions, type PoolTransactionInfo, type PositionFee, type PositionManager, type PositionReward, type PreSwapOption, type PreSwapQuote, REWARD_PERIOD, REWARD_PERIOD_START_AT, type RemoveLiquidityOption, type Reward, type RewardAccessOption, type RewardInfo, type RewardManager, type RewardPeriodEmission, type RewardPeriodEmissionFormat, type RewardWhiteListOption, SCALE_OFFSET, type SdkOptions, StrategyType, StrategyUtils, type SwapOption, type TokenTable, type UpdatePositionFeeAndRewardsOption, type UpdateRefFeeRateOption, type UpdateTimeRangeOption, type ValidateActiveIdSlippageOption, type VariableParameters, WeightUtils, type WeightsInfo, type WeightsOptions, buildPoolKey, CetusDlmmSDK as default, dlmmMainnet, dlmmTestnet, generateRewardSchedule, getRouterModule, parseBinInfo, parseBinInfoList, parseCurrentRewardPeriodEmission, parseDlmmBasePool, parseDlmmPool, parseDlmmPosition, parseLiquidityShares, parsePartner, parsePoolTransactionInfo, parseRewardPeriodEmission, parseStrategyType, parsedDlmmPosFeeData, parsedDlmmPosRewardData, parsedSwapQuoteData, poolFilterEvenTypes, safeAmount, safeMulAmount };