@cetusprotocol/dlmm-sdk 0.0.6 → 0.0.7

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.
Files changed (2) hide show
  1. package/README.md +15 -1
  2. package/package.json +1 -1
package/README.md CHANGED
@@ -281,7 +281,7 @@ console.log('Variable fee:', variableFee)
281
281
  console.log('Variable fee percentage:', d(variableFee).div(d(FEE_PRECISION)).toString())
282
282
  ```
283
283
 
284
- #### Fee Collection
284
+ #### Fee and Reward Collection
285
285
 
286
286
  You can collect fees from your positions in several ways:
287
287
 
@@ -296,6 +296,18 @@ const tx = await sdk.Position.collectRewardAndFeePayload([{
296
296
  coin_type_b
297
297
  }])
298
298
 
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
+
299
311
  // Simulate or send the transaction
300
312
  const sim_result = await sdk.FullClient.sendSimulationTransaction(tx, wallet)
301
313
  ```
@@ -541,6 +553,8 @@ Note: The `amount_a_in_active_bin` and `amount_b_in_active_bin` parameters are u
541
553
  2. Returns the amounts of both tokens in the active bin if it is within range
542
554
  3. Returns undefined if the active bin is outside the range
543
555
 
556
+ ---
557
+
544
558
  2. **BidAsk Strategy**:
545
559
  ```typescript
546
560
  // Similar to Spot strategy but with different strategy_type
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cetusprotocol/dlmm-sdk",
3
- "version": "0.0.6",
3
+ "version": "0.0.7",
4
4
  "description": "SDK for cetus dlmm",
5
5
  "typings": "dist/index.d.ts",
6
6
  "main": "dist/index.js",