@cetusprotocol/sui-clmm-sdk 1.2.2 → 1.2.4
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/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +1 -1
- package/dist/index.mjs.map +1 -1
- package/docs/create_clmm_pool.md +2 -2
- package/package.json +1 -1
package/docs/create_clmm_pool.md
CHANGED
|
@@ -105,8 +105,8 @@ const amount_b = fix_amount_a ? res.coin_amount_b.toNumber() : fix_coin_amount.t
|
|
|
105
105
|
const coin_type_a = '0x3cfe7b9f6106808a8178ebd2d5ae6656cd0ccec15d33e63fd857c180bde8da75::coin:CetusUSDT'
|
|
106
106
|
const coin_type_b = '0x3cfe7b9f6106808a8178ebd2d5ae6656cd0ccec15d33e63fd857c180bde8da75::coin::CetusUSDC'
|
|
107
107
|
|
|
108
|
-
const coin_metadata_a_id = await suiClient.
|
|
109
|
-
const coin_metadata_b_id = await suiClient.
|
|
108
|
+
const coin_metadata_a_id = await suiClient.fetchCoinMetadataId({coinType: coin_type_a})
|
|
109
|
+
const coin_metadata_b_id = await suiClient.fetchCoinMetadataId({coinType: coin_type_b})
|
|
110
110
|
|
|
111
111
|
// Build createPoolPayload
|
|
112
112
|
const create_pool_payload = sdk.Pool.createPoolPayload({
|