@cetusprotocol/sui-clmm-sdk 1.1.3 → 1.2.0

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/docs/utils.md CHANGED
@@ -42,7 +42,7 @@ const price = TickMath.tickIndexToPrice(tick_index, decimals_a, decimals_b)
42
42
  ```typescript
43
43
  import { TickMath } from '@cetusprotocol/common-sdk'
44
44
  // decimalsA and decimalsB means the decimal of coinA and coinB
45
- const price = TickMath.priceToTickIndex(tick_index, decimals_a, decimals_b)
45
+ const index = TickMath.priceToTickIndex(price, decimals_a, decimals_b)
46
46
  ```
47
47
 
48
48
  ## 3.Tick index to sqrt price x64
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cetusprotocol/sui-clmm-sdk",
3
- "version": "1.1.3",
3
+ "version": "1.2.0",
4
4
  "description": "SDK for cetus clmm",
5
5
  "typings": "dist/index.d.ts",
6
6
  "main": "dist/index.js",
@@ -31,6 +31,6 @@
31
31
  },
32
32
  "peerDependencies": {
33
33
  "@cetusprotocol/common-sdk": "*",
34
- "@mysten/sui": ">=1.29.1"
34
+ "@mysten/sui": "*"
35
35
  }
36
36
  }