@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/README.md +3 -3
- package/dist/index.d.mts +13 -3
- package/dist/index.d.ts +13 -3
- package/dist/index.js +2 -2
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +2 -2
- package/dist/index.mjs.map +1 -1
- package/docs/utils.md +1 -1
- package/package.json +2 -2
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
|
|
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.
|
|
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": "
|
|
34
|
+
"@mysten/sui": "*"
|
|
35
35
|
}
|
|
36
36
|
}
|