@alphafi/alphafi-sdk 0.0.57 → 0.0.59
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/cjs/common/constants.d.ts +31 -0
- package/dist/cjs/common/constants.d.ts.map +1 -1
- package/dist/cjs/common/constants.js +38 -5
- package/dist/cjs/common/constants.js.map +1 -1
- package/dist/cjs/getAprs.d.ts +2 -0
- package/dist/cjs/getAprs.d.ts.map +1 -1
- package/dist/cjs/getAprs.js +251 -1
- package/dist/cjs/getAprs.js.map +1 -1
- package/dist/cjs/transactions/bluefin.d.ts.map +1 -1
- package/dist/cjs/transactions/bluefin.js +84 -28
- package/dist/cjs/transactions/bluefin.js.map +1 -1
- package/dist/esm/common/constants.d.ts +31 -0
- package/dist/esm/common/constants.d.ts.map +1 -1
- package/dist/esm/common/constants.js +38 -5
- package/dist/esm/common/constants.js.map +1 -1
- package/dist/esm/getAprs.d.ts +2 -0
- package/dist/esm/getAprs.d.ts.map +1 -1
- package/dist/esm/getAprs.js +249 -2
- package/dist/esm/getAprs.js.map +1 -1
- package/dist/esm/transactions/bluefin.d.ts.map +1 -1
- package/dist/esm/transactions/bluefin.js +84 -28
- package/dist/esm/transactions/bluefin.js.map +1 -1
- package/docs/assets/highlight.css +51 -74
- package/docs/assets/icons.js +17 -20
- package/docs/assets/main.js +5 -2163
- package/docs/assets/navigation.js +1 -2
- package/docs/assets/search.js +1 -2
- package/docs/assets/style.css +850 -846
- package/docs/functions/alphaLpBreakdown.html +1 -253
- package/docs/functions/cetusLpBreakdown.html +1 -253
- package/docs/functions/claimBlueRewardTxb.html +1 -258
- package/docs/functions/claimRewardTxb.html +1 -243
- package/docs/functions/coinAmountToXTokensDoubleAsset.html +1 -267
- package/docs/functions/coinAmountToXTokensSingleAsset.html +1 -260
- package/docs/functions/coinsInPool.html +1 -438
- package/docs/functions/collectRewards.html +1 -242
- package/docs/functions/deposit.html +1 -246
- package/docs/functions/depositDoubleAssetTxb.html +1 -270
- package/docs/functions/depositSingleAssetTxb.html +1 -263
- package/docs/functions/fetchAfterTransactionEvents.html +1 -328
- package/docs/functions/fetchAutoCompoundingEvents.html +1 -257
- package/docs/functions/fetchAutoCompoundingEventsGql.html +1 -251
- package/docs/functions/fetchCetusPools.html +1 -231
- package/docs/functions/fetchChainIdentifier.html +1 -233
- package/docs/functions/fetchCheckRatioEvents.html +1 -249
- package/docs/functions/fetchLiquidityChangeEvents.html +1 -257
- package/docs/functions/fetchMultiCategoryEvents.html +1 -348
- package/docs/functions/fetchMultiReceipts.html +1 -261
- package/docs/functions/fetchNftHolders.html +1 -233
- package/docs/functions/fetchPools.html +1 -230
- package/docs/functions/fetchPortfolioData.html +1 -243
- package/docs/functions/fetchProtocolData.html +1 -231
- package/docs/functions/fetchTVL.html +1 -253
- package/docs/functions/fetchUserVaultBalances.html +1 -245
- package/docs/functions/fetchUserVaults.html +1 -243
- package/docs/functions/fetchUserWalletData.html +1 -243
- package/docs/functions/fetchVoloExchangeRate.html +1 -251
- package/docs/functions/fetchWithdrawV2Events.html +1 -255
- package/docs/functions/getAirdropShare.html +1 -243
- package/docs/functions/getAllDoubleAssetVaults.html +1 -235
- package/docs/functions/getAllSingleAssetVaults.html +1 -235
- package/docs/functions/getAllVaultBalances.html +1 -265
- package/docs/functions/getAllVaults.html +1 -233
- package/docs/functions/getAlphaUnlocks.html +1 -245
- package/docs/functions/getAlphaVaultBalance.html +1 -255
- package/docs/functions/getAmounts.html +1 -272
- package/docs/functions/getApr.html +1 -243
- package/docs/functions/getAprs.html +1 -255
- package/docs/functions/getApy.html +1 -243
- package/docs/functions/getApys.html +1 -255
- package/docs/functions/getCetusInvestorTicksMap.html +1 -284
- package/docs/functions/getCetusPool.html +1 -270
- package/docs/functions/getCetusSqrtPriceMap.html +1 -249
- package/docs/functions/getCoinAmountsFromLiquidity.html +1 -273
- package/docs/functions/getConf.html +1 -13163
- package/docs/functions/getCurrentTick.html +1 -247
- package/docs/functions/getDistributor.html +1 -252
- package/docs/functions/getDoubleAssetVaultBalance.html +1 -268
- package/docs/functions/getDoubleAssetVaults.html +1 -253
- package/docs/functions/getHoldersFromTransactions.html +1 -299
- package/docs/functions/getInvestor.html +1 -259
- package/docs/functions/getInvestorPoolMap.html +1 -241
- package/docs/functions/getLastAutoCompoundTime.html +1 -249
- package/docs/functions/getLatestPrices.html +1 -253
- package/docs/functions/getLiquidity.html +1 -260
- package/docs/functions/getMultiCetusPool.html +1 -231
- package/docs/functions/getMultiInvestor.html +1 -231
- package/docs/functions/getMultiLatestPrices.html +1 -233
- package/docs/functions/getMultiParentPool.html +1 -231
- package/docs/functions/getMultiPool.html +1 -231
- package/docs/functions/getMultiReceipts.html +1 -243
- package/docs/functions/getParentPool.html +1 -266
- package/docs/functions/getPool.html +1 -262
- package/docs/functions/getPoolExchangeRate.html +1 -254
- package/docs/functions/getPoolExchangeRateMap.html +1 -249
- package/docs/functions/getPoolsWeightDistribution.html +1 -266
- package/docs/functions/getPositionRange.html +1 -283
- package/docs/functions/getPositionRanges.html +1 -289
- package/docs/functions/getPositionTicks.html +1 -249
- package/docs/functions/getPriceToTick.html +1 -264
- package/docs/functions/getRebalanceHistories.html +1 -269
- package/docs/functions/getRebalanceHistory.html +1 -255
- package/docs/functions/getReceipts.html +1 -268
- package/docs/functions/getSingleAssetVaultBalance.html +1 -268
- package/docs/functions/getSingleAssetVaults.html +1 -253
- package/docs/functions/getSuiClient.html +3 -247
- package/docs/functions/getSuiNodeUrl.html +3 -232
- package/docs/functions/getTVLs-1.html +1 -243
- package/docs/functions/getTickSpacing.html +1 -247
- package/docs/functions/getTickToPrice.html +1 -248
- package/docs/functions/getTvls.html +1 -259
- package/docs/functions/getUserTokensFromTransactions.html +1 -269
- package/docs/functions/getUserTokensInUsdFromTransactions.html +1 -263
- package/docs/functions/getVaultBalance.html +1 -277
- package/docs/functions/getVaultBalanceForActiveUsers.html +1 -261
- package/docs/functions/getVaults.html +1 -250
- package/docs/functions/getXTokenVaultBalanceForActiveUsers.html +1 -261
- package/docs/functions/getZapAmounts.html +1 -323
- package/docs/functions/lastAutocompoundTime.html +1 -249
- package/docs/functions/liquidityToTokens.html +1 -253
- package/docs/functions/multiLiquidityToTokens.html +1 -271
- package/docs/functions/multiTokensToUsd.html +1 -262
- package/docs/functions/multiXTokensToLiquidity.html +1 -257
- package/docs/functions/parseUserWalletData.html +1 -243
- package/docs/functions/pendingBlueRewardAmount.html +1 -256
- package/docs/functions/setCustomSuiClient.html +5 -251
- package/docs/functions/setSuiClient.html +7 -255
- package/docs/functions/setSuiNodeUrl.html +5 -249
- package/docs/functions/setWeights.html +1 -270
- package/docs/functions/withdraw.html +1 -249
- package/docs/functions/withdrawAlphaTxb.html +1 -257
- package/docs/functions/withdrawTxb.html +1 -260
- package/docs/functions/zapDepositTxb.html +1 -300
- package/docs/index.html +41 -587
- package/docs/interfaces/Coin.html +12 -474
- package/docs/interfaces/CoinPair.html +3 -358
- package/docs/interfaces/NaviVoloData.html +3 -514
- package/docs/interfaces/PoolData.html +8 -579
- package/docs/interfaces/PoolWeightDistribution.html +4 -414
- package/docs/interfaces/RebalanceHistoryType.html +9 -652
- package/docs/modules.html +198 -1430
- package/docs/types/AfterTransactionEventNode.html +1 -305
- package/docs/types/Allocator.html +1 -321
- package/docs/types/AlphaFiDoubleAssetVault.html +1 -258
- package/docs/types/AlphaFiMultiVaultBalance.html +1 -219
- package/docs/types/AlphaFiSingleAssetVault.html +1 -244
- package/docs/types/AlphaFiVault.html +1 -214
- package/docs/types/AlphaFiVaultBalance.html +1 -220
- package/docs/types/AlphaPoolType.html +1 -383
- package/docs/types/AlphaReceipt.html +1 -220
- package/docs/types/AlphaReceiptFields.html +1 -421
- package/docs/types/AlphaVaultBalance.html +1 -245
- package/docs/types/AutoBalancePoolNames.html +1 -226
- package/docs/types/AutoCompoundingEventNode.html +1 -230
- package/docs/types/BluefinInvestor.html +1 -209
- package/docs/types/BluefinPoolType.html +1 -440
- package/docs/types/BucketInvestor.html +1 -249
- package/docs/types/CetusInvestor.html +1 -240
- package/docs/types/CetusPoolType.html +1 -433
- package/docs/types/CetusSwapOptions.html +1 -209
- package/docs/types/CoinAmounts.html +1 -216
- package/docs/types/CoinName.html +1 -293
- package/docs/types/CoinType.html +1 -294
- package/docs/types/CommonInvestorFields.html +1 -276
- package/docs/types/CreatePoolOptions.html +1 -246
- package/docs/types/Distributor.html +1 -341
- package/docs/types/DoubleAssetMultiVaultBalance.html +1 -236
- package/docs/types/DoubleAssetPoolNames.html +1 -297
- package/docs/types/DoubleAssetTokenHoldings.html +1 -232
- package/docs/types/DoubleAssetVaultBalance.html +1 -229
- package/docs/types/EventCategory.html +1 -209
- package/docs/types/EventNode.html +1 -229
- package/docs/types/GetHoldersParams.html +1 -221
- package/docs/types/GetTokenHoldingsParams.html +1 -227
- package/docs/types/GetUserTokensFromTransactionsParams.html +1 -233
- package/docs/types/GetUserTokensInUsdFromTransactionsParams.html +1 -244
- package/docs/types/GetVaultBalanceForActiveUsersParams.html +1 -231
- package/docs/types/GetVaultBalanceParams.html +1 -217
- package/docs/types/HoldingsObj.html +1 -223
- package/docs/types/Icon.html +1 -266
- package/docs/types/Investor.html +1 -245
- package/docs/types/LiquidityChangeEventNode.html +1 -220
- package/docs/types/LiquidityToTokensParams.html +1 -255
- package/docs/types/LiquidityToUsdParams.html +1 -267
- package/docs/types/LoopingDebt.html +1 -258
- package/docs/types/LoopingPoolNames.html +1 -216
- package/docs/types/LpBreakdownType.html +1 -238
- package/docs/types/MemberPoolDataType.html +1 -276
- package/docs/types/MemberType.html +1 -269
- package/docs/types/MultiGetVaultBalancesParams.html +1 -229
- package/docs/types/NaviInvestor.html +1 -235
- package/docs/types/OtherReceiptFields.html +1 -373
- package/docs/types/PoolName.html +1 -214
- package/docs/types/PoolReceipt.html +1 -253
- package/docs/types/PoolType.html +1 -388
- package/docs/types/Receipt.html +1 -475
- package/docs/types/ReceiptGQL.html +1 -374
- package/docs/types/SingleAssetMultiVaultBalance.html +1 -232
- package/docs/types/SingleAssetPoolNames.html +1 -244
- package/docs/types/SingleAssetTokenHoldings.html +1 -228
- package/docs/types/SingleAssetVaultBalance.html +1 -223
- package/docs/types/SingleGetVaultBalancesParams.html +1 -224
- package/docs/types/StrategyType.html +1 -221
- package/docs/types/SuiNetwork.html +1 -213
- package/docs/types/SwapOptions.html +1 -248
- package/docs/types/TickSpacing.html +1 -212
- package/docs/types/TotalWeightType.html +1 -246
- package/docs/types/TransactionBlockType.html +1 -358
- package/docs/types/UserPoolLiquidity.html +1 -221
- package/docs/types/UserPoolTokenHoldings.html +1 -217
- package/docs/types/UserUsdHoldings.html +1 -223
- package/docs/types/VaultBalance.html +1 -216
- package/docs/types/WithdrawV2EventNode.html +1 -208
- package/docs/variables/bluefinPoolMap.html +1 -214
- package/docs/variables/cetusPoolMap.html +1 -214
- package/docs/variables/coinsList.html +1 -220
- package/docs/variables/defunctPoolsSet.html +1 -209
- package/docs/variables/doubleAssetPoolCoinMap.html +1 -237
- package/docs/variables/eventCategories.html +1 -210
- package/docs/variables/ignoredWalletsForDailyRevenue.html +1 -218
- package/docs/variables/loopingAccountAddresses.html +1 -219
- package/docs/variables/loopingPoolCoinMap.html +1 -233
- package/docs/variables/naviAssetMap.html +1 -215
- package/docs/variables/poolIdPoolNameMap.html +1 -218
- package/docs/variables/poolInfo.html +1 -319
- package/docs/variables/singleAssetPoolCoinMap.html +1 -229
- package/docs/variables/stableCoins.html +1 -207
- package/package.json +1 -1
|
@@ -69,7 +69,7 @@ const depositBluefinSuiFirstTxb = async (amount, poolName, isAmountA, options, t
|
|
|
69
69
|
}
|
|
70
70
|
if (poolName === "BLUEFIN-SUI-USDC") {
|
|
71
71
|
txb.moveCall({
|
|
72
|
-
target: `${poolinfo.packageId}::alphafi_bluefin_sui_first_pool::
|
|
72
|
+
target: `${poolinfo.packageId}::alphafi_bluefin_sui_first_pool::user_deposit_v2`,
|
|
73
73
|
typeArguments: [
|
|
74
74
|
coins_js_1.coinsList[pool1].type,
|
|
75
75
|
coins_js_1.coinsList[pool2].type,
|
|
@@ -90,13 +90,15 @@ const depositBluefinSuiFirstTxb = async (amount, poolName, isAmountA, options, t
|
|
|
90
90
|
txb.object((0, constants_js_1.getConf)().BLUEFIN_SUI_USDC_POOL),
|
|
91
91
|
txb.object((0, constants_js_1.getConf)().BLUEFIN_BLUE_SUI_POOL),
|
|
92
92
|
txb.object(maps_js_1.cetusPoolMap["USDC-SUI"]),
|
|
93
|
+
txb.object((0, constants_js_1.getConf)().LST_INFO),
|
|
94
|
+
txb.object((0, constants_js_1.getConf)().SUI_SYSTEM_STATE),
|
|
93
95
|
txb.object((0, constants_js_1.getConf)().CLOCK_PACKAGE_ID),
|
|
94
96
|
],
|
|
95
97
|
});
|
|
96
98
|
}
|
|
97
99
|
else if (poolName === "BLUEFIN-SUI-BUCK") {
|
|
98
100
|
txb.moveCall({
|
|
99
|
-
target: `${poolinfo.packageId}::alphafi_bluefin_sui_first_pool::
|
|
101
|
+
target: `${poolinfo.packageId}::alphafi_bluefin_sui_first_pool::user_deposit_v2`,
|
|
100
102
|
typeArguments: [
|
|
101
103
|
coins_js_1.coinsList[pool1].type,
|
|
102
104
|
coins_js_1.coinsList[pool2].type,
|
|
@@ -117,13 +119,15 @@ const depositBluefinSuiFirstTxb = async (amount, poolName, isAmountA, options, t
|
|
|
117
119
|
txb.object((0, constants_js_1.getConf)().BLUEFIN_SUI_BUCK_POOL),
|
|
118
120
|
txb.object((0, constants_js_1.getConf)().BLUEFIN_BLUE_SUI_POOL),
|
|
119
121
|
txb.object(maps_js_1.cetusPoolMap["BUCK-SUI"]),
|
|
122
|
+
txb.object((0, constants_js_1.getConf)().LST_INFO),
|
|
123
|
+
txb.object((0, constants_js_1.getConf)().SUI_SYSTEM_STATE),
|
|
120
124
|
txb.object((0, constants_js_1.getConf)().CLOCK_PACKAGE_ID),
|
|
121
125
|
],
|
|
122
126
|
});
|
|
123
127
|
}
|
|
124
128
|
else if (poolName === "BLUEFIN-SUI-AUSD") {
|
|
125
129
|
txb.moveCall({
|
|
126
|
-
target: `${poolinfo.packageId}::alphafi_bluefin_sui_first_pool::
|
|
130
|
+
target: `${poolinfo.packageId}::alphafi_bluefin_sui_first_pool::user_deposit_v2`,
|
|
127
131
|
typeArguments: [
|
|
128
132
|
coins_js_1.coinsList[pool1].type,
|
|
129
133
|
coins_js_1.coinsList[pool2].type,
|
|
@@ -144,6 +148,8 @@ const depositBluefinSuiFirstTxb = async (amount, poolName, isAmountA, options, t
|
|
|
144
148
|
txb.object((0, constants_js_1.getConf)().BLUEFIN_SUI_AUSD_POOL),
|
|
145
149
|
txb.object((0, constants_js_1.getConf)().BLUEFIN_BLUE_SUI_POOL),
|
|
146
150
|
txb.object(maps_js_1.cetusPoolMap["AUSD-SUI"]),
|
|
151
|
+
txb.object((0, constants_js_1.getConf)().LST_INFO),
|
|
152
|
+
txb.object((0, constants_js_1.getConf)().SUI_SYSTEM_STATE),
|
|
147
153
|
txb.object((0, constants_js_1.getConf)().CLOCK_PACKAGE_ID),
|
|
148
154
|
],
|
|
149
155
|
});
|
|
@@ -246,7 +252,7 @@ const depositBluefinSuiSecondTxb = async (amount, poolName, isAmountA, options,
|
|
|
246
252
|
}
|
|
247
253
|
if (poolName === "BLUEFIN-BLUE-SUI") {
|
|
248
254
|
txb.moveCall({
|
|
249
|
-
target: `${poolinfo.packageId}::alphafi_bluefin_sui_second_pool::
|
|
255
|
+
target: `${poolinfo.packageId}::alphafi_bluefin_sui_second_pool::user_deposit_v2`,
|
|
250
256
|
typeArguments: [
|
|
251
257
|
coins_js_1.coinsList[pool1].type,
|
|
252
258
|
coins_js_1.coinsList[pool2].type,
|
|
@@ -267,13 +273,15 @@ const depositBluefinSuiSecondTxb = async (amount, poolName, isAmountA, options,
|
|
|
267
273
|
txb.object((0, constants_js_1.getConf)().BLUEFIN_BLUE_SUI_POOL),
|
|
268
274
|
txb.object((0, constants_js_1.getConf)().BLUEFIN_DEEP_SUI_POOL),
|
|
269
275
|
txb.object(maps_js_1.cetusPoolMap["BLUE-SUI"]),
|
|
276
|
+
txb.object((0, constants_js_1.getConf)().LST_INFO),
|
|
277
|
+
txb.object((0, constants_js_1.getConf)().SUI_SYSTEM_STATE),
|
|
270
278
|
txb.object((0, constants_js_1.getConf)().CLOCK_PACKAGE_ID),
|
|
271
279
|
],
|
|
272
280
|
});
|
|
273
281
|
}
|
|
274
282
|
else if (poolName === "BLUEFIN-WBTC-SUI") {
|
|
275
283
|
txb.moveCall({
|
|
276
|
-
target: `${poolinfo.packageId}::alphafi_bluefin_sui_second_pool::
|
|
284
|
+
target: `${poolinfo.packageId}::alphafi_bluefin_sui_second_pool::user_deposit_v2`,
|
|
277
285
|
typeArguments: [
|
|
278
286
|
coins_js_1.coinsList[pool1].type,
|
|
279
287
|
coins_js_1.coinsList[pool2].type,
|
|
@@ -294,13 +302,15 @@ const depositBluefinSuiSecondTxb = async (amount, poolName, isAmountA, options,
|
|
|
294
302
|
txb.object((0, constants_js_1.getConf)().BLUEFIN_WBTC_SUI_POOL),
|
|
295
303
|
txb.object((0, constants_js_1.getConf)().BLUEFIN_BLUE_SUI_POOL),
|
|
296
304
|
txb.object(maps_js_1.cetusPoolMap["WBTC-SUI"]),
|
|
305
|
+
txb.object((0, constants_js_1.getConf)().LST_INFO),
|
|
306
|
+
txb.object((0, constants_js_1.getConf)().SUI_SYSTEM_STATE),
|
|
297
307
|
txb.object((0, constants_js_1.getConf)().CLOCK_PACKAGE_ID),
|
|
298
308
|
],
|
|
299
309
|
});
|
|
300
310
|
}
|
|
301
311
|
else if (poolName === "BLUEFIN-DEEP-SUI") {
|
|
302
312
|
txb.moveCall({
|
|
303
|
-
target: `${poolinfo.packageId}::alphafi_bluefin_sui_second_pool::
|
|
313
|
+
target: `${poolinfo.packageId}::alphafi_bluefin_sui_second_pool::user_deposit_v2`,
|
|
304
314
|
typeArguments: [
|
|
305
315
|
coins_js_1.coinsList[pool1].type,
|
|
306
316
|
coins_js_1.coinsList[pool2].type,
|
|
@@ -321,6 +331,8 @@ const depositBluefinSuiSecondTxb = async (amount, poolName, isAmountA, options,
|
|
|
321
331
|
txb.object((0, constants_js_1.getConf)().BLUEFIN_DEEP_SUI_POOL),
|
|
322
332
|
txb.object((0, constants_js_1.getConf)().BLUEFIN_BLUE_SUI_POOL),
|
|
323
333
|
txb.object(maps_js_1.cetusPoolMap["DEEP-SUI"]),
|
|
334
|
+
txb.object((0, constants_js_1.getConf)().LST_INFO),
|
|
335
|
+
txb.object((0, constants_js_1.getConf)().SUI_SYSTEM_STATE),
|
|
324
336
|
txb.object((0, constants_js_1.getConf)().CLOCK_PACKAGE_ID),
|
|
325
337
|
],
|
|
326
338
|
});
|
|
@@ -497,7 +509,7 @@ const depositBluefinType1Txb = async (amount, poolName, isAmountA, options, tran
|
|
|
497
509
|
}
|
|
498
510
|
if (poolName === "BLUEFIN-USDT-USDC") {
|
|
499
511
|
txb.moveCall({
|
|
500
|
-
target: `${poolinfo.packageId}::alphafi_bluefin_type_1_pool::
|
|
512
|
+
target: `${poolinfo.packageId}::alphafi_bluefin_type_1_pool::user_deposit_v2`,
|
|
501
513
|
typeArguments: [
|
|
502
514
|
coins_js_1.coinsList[pool1].type,
|
|
503
515
|
coins_js_1.coinsList[pool2].type,
|
|
@@ -519,13 +531,15 @@ const depositBluefinType1Txb = async (amount, poolName, isAmountA, options, tran
|
|
|
519
531
|
txb.object((0, constants_js_1.getConf)().BLUEFIN_BLUE_SUI_POOL),
|
|
520
532
|
txb.object(maps_js_1.cetusPoolMap["USDC-USDT"]),
|
|
521
533
|
txb.object(maps_js_1.cetusPoolMap["USDC-SUI"]),
|
|
534
|
+
txb.object((0, constants_js_1.getConf)().LST_INFO),
|
|
535
|
+
txb.object((0, constants_js_1.getConf)().SUI_SYSTEM_STATE),
|
|
522
536
|
txb.object((0, constants_js_1.getConf)().CLOCK_PACKAGE_ID),
|
|
523
537
|
],
|
|
524
538
|
});
|
|
525
539
|
}
|
|
526
540
|
else if (poolName === "BLUEFIN-AUSD-USDC") {
|
|
527
541
|
txb.moveCall({
|
|
528
|
-
target: `${poolinfo.packageId}::alphafi_bluefin_type_1_pool::
|
|
542
|
+
target: `${poolinfo.packageId}::alphafi_bluefin_type_1_pool::user_deposit_v2`,
|
|
529
543
|
typeArguments: [
|
|
530
544
|
coins_js_1.coinsList[pool1].type,
|
|
531
545
|
coins_js_1.coinsList[pool2].type,
|
|
@@ -547,13 +561,15 @@ const depositBluefinType1Txb = async (amount, poolName, isAmountA, options, tran
|
|
|
547
561
|
txb.object((0, constants_js_1.getConf)().BLUEFIN_BLUE_SUI_POOL),
|
|
548
562
|
txb.object(maps_js_1.cetusPoolMap["USDC-AUSD"]),
|
|
549
563
|
txb.object(maps_js_1.cetusPoolMap["USDC-SUI"]),
|
|
564
|
+
txb.object((0, constants_js_1.getConf)().LST_INFO),
|
|
565
|
+
txb.object((0, constants_js_1.getConf)().SUI_SYSTEM_STATE),
|
|
550
566
|
txb.object((0, constants_js_1.getConf)().CLOCK_PACKAGE_ID),
|
|
551
567
|
],
|
|
552
568
|
});
|
|
553
569
|
}
|
|
554
570
|
else if (poolName === "BLUEFIN-WBTC-USDC") {
|
|
555
571
|
txb.moveCall({
|
|
556
|
-
target: `${poolinfo.packageId}::alphafi_bluefin_type_1_pool::
|
|
572
|
+
target: `${poolinfo.packageId}::alphafi_bluefin_type_1_pool::user_deposit_v2`,
|
|
557
573
|
typeArguments: [
|
|
558
574
|
coins_js_1.coinsList[pool1].type,
|
|
559
575
|
coins_js_1.coinsList[pool2].type,
|
|
@@ -575,13 +591,15 @@ const depositBluefinType1Txb = async (amount, poolName, isAmountA, options, tran
|
|
|
575
591
|
txb.object((0, constants_js_1.getConf)().BLUEFIN_BLUE_SUI_POOL),
|
|
576
592
|
txb.object(maps_js_1.cetusPoolMap["USDC-WBTC"]),
|
|
577
593
|
txb.object(maps_js_1.cetusPoolMap["USDC-SUI"]),
|
|
594
|
+
txb.object((0, constants_js_1.getConf)().LST_INFO),
|
|
595
|
+
txb.object((0, constants_js_1.getConf)().SUI_SYSTEM_STATE),
|
|
578
596
|
txb.object((0, constants_js_1.getConf)().CLOCK_PACKAGE_ID),
|
|
579
597
|
],
|
|
580
598
|
});
|
|
581
599
|
}
|
|
582
600
|
else if (poolName === "BLUEFIN-SEND-USDC") {
|
|
583
601
|
txb.moveCall({
|
|
584
|
-
target: `${poolinfo.packageId}::alphafi_bluefin_type_1_pool::
|
|
602
|
+
target: `${poolinfo.packageId}::alphafi_bluefin_type_1_pool::user_deposit_v2`,
|
|
585
603
|
typeArguments: [
|
|
586
604
|
coins_js_1.coinsList[pool1].type,
|
|
587
605
|
coins_js_1.coinsList[pool2].type,
|
|
@@ -603,6 +621,8 @@ const depositBluefinType1Txb = async (amount, poolName, isAmountA, options, tran
|
|
|
603
621
|
txb.object((0, constants_js_1.getConf)().BLUEFIN_BLUE_SUI_POOL),
|
|
604
622
|
txb.object(maps_js_1.cetusPoolMap["USDC-SEND"]),
|
|
605
623
|
txb.object(maps_js_1.cetusPoolMap["USDC-SUI"]),
|
|
624
|
+
txb.object((0, constants_js_1.getConf)().LST_INFO),
|
|
625
|
+
txb.object((0, constants_js_1.getConf)().SUI_SYSTEM_STATE),
|
|
606
626
|
txb.object((0, constants_js_1.getConf)().CLOCK_PACKAGE_ID),
|
|
607
627
|
],
|
|
608
628
|
});
|
|
@@ -666,7 +686,7 @@ const depositBluefinType1Txb = async (amount, poolName, isAmountA, options, tran
|
|
|
666
686
|
}
|
|
667
687
|
else if (poolName === "BLUEFIN-SUIUSDT-USDC") {
|
|
668
688
|
txb.moveCall({
|
|
669
|
-
target: `${poolinfo.packageId}::alphafi_bluefin_type_1_pool::
|
|
689
|
+
target: `${poolinfo.packageId}::alphafi_bluefin_type_1_pool::user_deposit_v2`,
|
|
670
690
|
typeArguments: [
|
|
671
691
|
coins_js_1.coinsList[pool1].type,
|
|
672
692
|
coins_js_1.coinsList[pool2].type,
|
|
@@ -688,6 +708,8 @@ const depositBluefinType1Txb = async (amount, poolName, isAmountA, options, tran
|
|
|
688
708
|
txb.object((0, constants_js_1.getConf)().BLUEFIN_BLUE_SUI_POOL),
|
|
689
709
|
txb.object(maps_js_1.cetusPoolMap["USDC-SUIUSDT"]),
|
|
690
710
|
txb.object(maps_js_1.cetusPoolMap["USDC-SUI"]),
|
|
711
|
+
txb.object((0, constants_js_1.getConf)().LST_INFO),
|
|
712
|
+
txb.object((0, constants_js_1.getConf)().SUI_SYSTEM_STATE),
|
|
691
713
|
txb.object((0, constants_js_1.getConf)().CLOCK_PACKAGE_ID),
|
|
692
714
|
],
|
|
693
715
|
});
|
|
@@ -843,7 +865,7 @@ const depositBluefinType2Txb = async (amount, poolName, isAmountA, options, tran
|
|
|
843
865
|
}
|
|
844
866
|
if (poolName === "BLUEFIN-ALPHA-USDC") {
|
|
845
867
|
txb.moveCall({
|
|
846
|
-
target: `${poolinfo.packageId}::alphafi_bluefin_type_2_pool::
|
|
868
|
+
target: `${poolinfo.packageId}::alphafi_bluefin_type_2_pool::user_deposit_v2`,
|
|
847
869
|
typeArguments: [
|
|
848
870
|
coins_js_1.coinsList[pool1].type,
|
|
849
871
|
coins_js_1.coinsList[pool2].type,
|
|
@@ -865,13 +887,15 @@ const depositBluefinType2Txb = async (amount, poolName, isAmountA, options, tran
|
|
|
865
887
|
txb.object((0, constants_js_1.getConf)().BLUEFIN_BLUE_SUI_POOL),
|
|
866
888
|
txb.object(maps_js_1.cetusPoolMap["ALPHA-USDC"]),
|
|
867
889
|
txb.object(maps_js_1.cetusPoolMap["USDC-SUI"]),
|
|
890
|
+
txb.object((0, constants_js_1.getConf)().LST_INFO),
|
|
891
|
+
txb.object((0, constants_js_1.getConf)().SUI_SYSTEM_STATE),
|
|
868
892
|
txb.object((0, constants_js_1.getConf)().CLOCK_PACKAGE_ID),
|
|
869
893
|
],
|
|
870
894
|
});
|
|
871
895
|
}
|
|
872
896
|
else if (poolName === "BLUEFIN-NAVX-VSUI") {
|
|
873
897
|
txb.moveCall({
|
|
874
|
-
target: `${poolinfo.packageId}::alphafi_bluefin_type_2_pool::
|
|
898
|
+
target: `${poolinfo.packageId}::alphafi_bluefin_type_2_pool::user_deposit_v2`,
|
|
875
899
|
typeArguments: [
|
|
876
900
|
coins_js_1.coinsList[pool1].type,
|
|
877
901
|
coins_js_1.coinsList[pool2].type,
|
|
@@ -893,13 +917,15 @@ const depositBluefinType2Txb = async (amount, poolName, isAmountA, options, tran
|
|
|
893
917
|
txb.object((0, constants_js_1.getConf)().BLUEFIN_BLUE_SUI_POOL),
|
|
894
918
|
txb.object(maps_js_1.cetusPoolMap["NAVX-VSUI"]),
|
|
895
919
|
txb.object(maps_js_1.cetusPoolMap["VSUI-SUI"]),
|
|
920
|
+
txb.object((0, constants_js_1.getConf)().LST_INFO),
|
|
921
|
+
txb.object((0, constants_js_1.getConf)().SUI_SYSTEM_STATE),
|
|
896
922
|
txb.object((0, constants_js_1.getConf)().CLOCK_PACKAGE_ID),
|
|
897
923
|
],
|
|
898
924
|
});
|
|
899
925
|
}
|
|
900
926
|
else if (poolName === "BLUEFIN-BLUE-USDC") {
|
|
901
927
|
txb.moveCall({
|
|
902
|
-
target: `${poolinfo.packageId}::alphafi_bluefin_type_2_pool::
|
|
928
|
+
target: `${poolinfo.packageId}::alphafi_bluefin_type_2_pool::user_deposit_v2`,
|
|
903
929
|
typeArguments: [
|
|
904
930
|
coins_js_1.coinsList[pool1].type,
|
|
905
931
|
coins_js_1.coinsList[pool2].type,
|
|
@@ -921,6 +947,8 @@ const depositBluefinType2Txb = async (amount, poolName, isAmountA, options, tran
|
|
|
921
947
|
txb.object((0, constants_js_1.getConf)().BLUEFIN_DEEP_SUI_POOL),
|
|
922
948
|
txb.object(maps_js_1.cetusPoolMap["BLUE-USDC"]),
|
|
923
949
|
txb.object(maps_js_1.cetusPoolMap["USDC-SUI"]),
|
|
950
|
+
txb.object((0, constants_js_1.getConf)().LST_INFO),
|
|
951
|
+
txb.object((0, constants_js_1.getConf)().SUI_SYSTEM_STATE),
|
|
924
952
|
txb.object((0, constants_js_1.getConf)().CLOCK_PACKAGE_ID),
|
|
925
953
|
],
|
|
926
954
|
});
|
|
@@ -1319,7 +1347,7 @@ const withdrawBluefinSuiFirstTxb = async (xTokens, poolName, options) => {
|
|
|
1319
1347
|
}
|
|
1320
1348
|
if (poolName === "BLUEFIN-SUI-USDC") {
|
|
1321
1349
|
txb.moveCall({
|
|
1322
|
-
target: `${poolinfo.packageId}::alphafi_bluefin_sui_first_pool::
|
|
1350
|
+
target: `${poolinfo.packageId}::alphafi_bluefin_sui_first_pool::user_withdraw_v2`,
|
|
1323
1351
|
typeArguments: [
|
|
1324
1352
|
coins_js_1.coinsList[pool1].type,
|
|
1325
1353
|
coins_js_1.coinsList[pool2].type,
|
|
@@ -1341,13 +1369,15 @@ const withdrawBluefinSuiFirstTxb = async (xTokens, poolName, options) => {
|
|
|
1341
1369
|
txb.object((0, constants_js_1.getConf)().BLUEFIN_SUI_USDC_POOL),
|
|
1342
1370
|
txb.object((0, constants_js_1.getConf)().BLUEFIN_BLUE_SUI_POOL),
|
|
1343
1371
|
txb.object(maps_js_1.cetusPoolMap["USDC-SUI"]),
|
|
1372
|
+
txb.object((0, constants_js_1.getConf)().LST_INFO),
|
|
1373
|
+
txb.object((0, constants_js_1.getConf)().SUI_SYSTEM_STATE),
|
|
1344
1374
|
txb.object((0, constants_js_1.getConf)().CLOCK_PACKAGE_ID),
|
|
1345
1375
|
],
|
|
1346
1376
|
});
|
|
1347
1377
|
}
|
|
1348
1378
|
else if (poolName === "BLUEFIN-SUI-BUCK") {
|
|
1349
1379
|
txb.moveCall({
|
|
1350
|
-
target: `${poolinfo.packageId}::alphafi_bluefin_sui_first_pool::
|
|
1380
|
+
target: `${poolinfo.packageId}::alphafi_bluefin_sui_first_pool::user_withdraw_v2`,
|
|
1351
1381
|
typeArguments: [
|
|
1352
1382
|
coins_js_1.coinsList[pool1].type,
|
|
1353
1383
|
coins_js_1.coinsList[pool2].type,
|
|
@@ -1369,13 +1399,15 @@ const withdrawBluefinSuiFirstTxb = async (xTokens, poolName, options) => {
|
|
|
1369
1399
|
txb.object((0, constants_js_1.getConf)().BLUEFIN_SUI_BUCK_POOL),
|
|
1370
1400
|
txb.object((0, constants_js_1.getConf)().BLUEFIN_BLUE_SUI_POOL),
|
|
1371
1401
|
txb.object(maps_js_1.cetusPoolMap["BUCK-SUI"]),
|
|
1402
|
+
txb.object((0, constants_js_1.getConf)().LST_INFO),
|
|
1403
|
+
txb.object((0, constants_js_1.getConf)().SUI_SYSTEM_STATE),
|
|
1372
1404
|
txb.object((0, constants_js_1.getConf)().CLOCK_PACKAGE_ID),
|
|
1373
1405
|
],
|
|
1374
1406
|
});
|
|
1375
1407
|
}
|
|
1376
1408
|
else if (poolName === "BLUEFIN-SUI-AUSD") {
|
|
1377
1409
|
txb.moveCall({
|
|
1378
|
-
target: `${poolinfo.packageId}::alphafi_bluefin_sui_first_pool::
|
|
1410
|
+
target: `${poolinfo.packageId}::alphafi_bluefin_sui_first_pool::user_withdraw_v2`,
|
|
1379
1411
|
typeArguments: [
|
|
1380
1412
|
coins_js_1.coinsList[pool1].type,
|
|
1381
1413
|
coins_js_1.coinsList[pool2].type,
|
|
@@ -1397,6 +1429,8 @@ const withdrawBluefinSuiFirstTxb = async (xTokens, poolName, options) => {
|
|
|
1397
1429
|
txb.object((0, constants_js_1.getConf)().BLUEFIN_SUI_AUSD_POOL),
|
|
1398
1430
|
txb.object((0, constants_js_1.getConf)().BLUEFIN_BLUE_SUI_POOL),
|
|
1399
1431
|
txb.object(maps_js_1.cetusPoolMap["AUSD-SUI"]),
|
|
1432
|
+
txb.object((0, constants_js_1.getConf)().LST_INFO),
|
|
1433
|
+
txb.object((0, constants_js_1.getConf)().SUI_SYSTEM_STATE),
|
|
1400
1434
|
txb.object((0, constants_js_1.getConf)().CLOCK_PACKAGE_ID),
|
|
1401
1435
|
],
|
|
1402
1436
|
});
|
|
@@ -1490,7 +1524,7 @@ const withdrawBluefinSuiSecondTxb = async (xTokens, poolName, options) => {
|
|
|
1490
1524
|
}
|
|
1491
1525
|
if (poolName === "BLUEFIN-BLUE-SUI") {
|
|
1492
1526
|
txb.moveCall({
|
|
1493
|
-
target: `${poolinfo.packageId}::alphafi_bluefin_sui_second_pool::
|
|
1527
|
+
target: `${poolinfo.packageId}::alphafi_bluefin_sui_second_pool::user_withdraw_v2`,
|
|
1494
1528
|
typeArguments: [
|
|
1495
1529
|
coins_js_1.coinsList[pool1].type,
|
|
1496
1530
|
coins_js_1.coinsList[pool2].type,
|
|
@@ -1512,13 +1546,15 @@ const withdrawBluefinSuiSecondTxb = async (xTokens, poolName, options) => {
|
|
|
1512
1546
|
txb.object((0, constants_js_1.getConf)().BLUEFIN_BLUE_SUI_POOL),
|
|
1513
1547
|
txb.object((0, constants_js_1.getConf)().BLUEFIN_DEEP_SUI_POOL),
|
|
1514
1548
|
txb.object(maps_js_1.cetusPoolMap["BLUE-SUI"]),
|
|
1549
|
+
txb.object((0, constants_js_1.getConf)().LST_INFO),
|
|
1550
|
+
txb.object((0, constants_js_1.getConf)().SUI_SYSTEM_STATE),
|
|
1515
1551
|
txb.object((0, constants_js_1.getConf)().CLOCK_PACKAGE_ID),
|
|
1516
1552
|
],
|
|
1517
1553
|
});
|
|
1518
1554
|
}
|
|
1519
1555
|
else if (poolName === "BLUEFIN-WBTC-SUI") {
|
|
1520
1556
|
txb.moveCall({
|
|
1521
|
-
target: `${poolinfo.packageId}::alphafi_bluefin_sui_second_pool::
|
|
1557
|
+
target: `${poolinfo.packageId}::alphafi_bluefin_sui_second_pool::user_withdraw_v2`,
|
|
1522
1558
|
typeArguments: [
|
|
1523
1559
|
coins_js_1.coinsList[pool1].type,
|
|
1524
1560
|
coins_js_1.coinsList[pool2].type,
|
|
@@ -1540,13 +1576,15 @@ const withdrawBluefinSuiSecondTxb = async (xTokens, poolName, options) => {
|
|
|
1540
1576
|
txb.object((0, constants_js_1.getConf)().BLUEFIN_WBTC_SUI_POOL),
|
|
1541
1577
|
txb.object((0, constants_js_1.getConf)().BLUEFIN_BLUE_SUI_POOL),
|
|
1542
1578
|
txb.object(maps_js_1.cetusPoolMap["WBTC-SUI"]),
|
|
1579
|
+
txb.object((0, constants_js_1.getConf)().LST_INFO),
|
|
1580
|
+
txb.object((0, constants_js_1.getConf)().SUI_SYSTEM_STATE),
|
|
1543
1581
|
txb.object((0, constants_js_1.getConf)().CLOCK_PACKAGE_ID),
|
|
1544
1582
|
],
|
|
1545
1583
|
});
|
|
1546
1584
|
}
|
|
1547
1585
|
else if (poolName === "BLUEFIN-DEEP-SUI") {
|
|
1548
1586
|
txb.moveCall({
|
|
1549
|
-
target: `${poolinfo.packageId}::alphafi_bluefin_sui_second_pool::
|
|
1587
|
+
target: `${poolinfo.packageId}::alphafi_bluefin_sui_second_pool::user_withdraw_v2`,
|
|
1550
1588
|
typeArguments: [
|
|
1551
1589
|
coins_js_1.coinsList[pool1].type,
|
|
1552
1590
|
coins_js_1.coinsList[pool2].type,
|
|
@@ -1568,6 +1606,8 @@ const withdrawBluefinSuiSecondTxb = async (xTokens, poolName, options) => {
|
|
|
1568
1606
|
txb.object((0, constants_js_1.getConf)().BLUEFIN_DEEP_SUI_POOL),
|
|
1569
1607
|
txb.object((0, constants_js_1.getConf)().BLUEFIN_BLUE_SUI_POOL),
|
|
1570
1608
|
txb.object(maps_js_1.cetusPoolMap["DEEP-SUI"]),
|
|
1609
|
+
txb.object((0, constants_js_1.getConf)().LST_INFO),
|
|
1610
|
+
txb.object((0, constants_js_1.getConf)().SUI_SYSTEM_STATE),
|
|
1571
1611
|
txb.object((0, constants_js_1.getConf)().CLOCK_PACKAGE_ID),
|
|
1572
1612
|
],
|
|
1573
1613
|
});
|
|
@@ -1720,7 +1760,7 @@ const withdrawBluefinType1Txb = async (xTokens, poolName, options) => {
|
|
|
1720
1760
|
}
|
|
1721
1761
|
if (poolName === "BLUEFIN-USDT-USDC") {
|
|
1722
1762
|
txb.moveCall({
|
|
1723
|
-
target: `${poolinfo.packageId}::alphafi_bluefin_type_1_pool::
|
|
1763
|
+
target: `${poolinfo.packageId}::alphafi_bluefin_type_1_pool::user_withdraw_v2`,
|
|
1724
1764
|
typeArguments: [
|
|
1725
1765
|
coins_js_1.coinsList[pool1].type,
|
|
1726
1766
|
coins_js_1.coinsList[pool2].type,
|
|
@@ -1743,13 +1783,15 @@ const withdrawBluefinType1Txb = async (xTokens, poolName, options) => {
|
|
|
1743
1783
|
txb.object((0, constants_js_1.getConf)().BLUEFIN_BLUE_SUI_POOL),
|
|
1744
1784
|
txb.object(maps_js_1.cetusPoolMap["USDC-USDT"]),
|
|
1745
1785
|
txb.object(maps_js_1.cetusPoolMap["USDC-SUI"]),
|
|
1786
|
+
txb.object((0, constants_js_1.getConf)().LST_INFO),
|
|
1787
|
+
txb.object((0, constants_js_1.getConf)().SUI_SYSTEM_STATE),
|
|
1746
1788
|
txb.object((0, constants_js_1.getConf)().CLOCK_PACKAGE_ID),
|
|
1747
1789
|
],
|
|
1748
1790
|
});
|
|
1749
1791
|
}
|
|
1750
1792
|
else if (poolName === "BLUEFIN-AUSD-USDC") {
|
|
1751
1793
|
txb.moveCall({
|
|
1752
|
-
target: `${poolinfo.packageId}::alphafi_bluefin_type_1_pool::
|
|
1794
|
+
target: `${poolinfo.packageId}::alphafi_bluefin_type_1_pool::user_withdraw_v2`,
|
|
1753
1795
|
typeArguments: [
|
|
1754
1796
|
coins_js_1.coinsList[pool1].type,
|
|
1755
1797
|
coins_js_1.coinsList[pool2].type,
|
|
@@ -1772,13 +1814,15 @@ const withdrawBluefinType1Txb = async (xTokens, poolName, options) => {
|
|
|
1772
1814
|
txb.object((0, constants_js_1.getConf)().BLUEFIN_BLUE_SUI_POOL),
|
|
1773
1815
|
txb.object(maps_js_1.cetusPoolMap["USDC-AUSD"]),
|
|
1774
1816
|
txb.object(maps_js_1.cetusPoolMap["USDC-SUI"]),
|
|
1817
|
+
txb.object((0, constants_js_1.getConf)().LST_INFO),
|
|
1818
|
+
txb.object((0, constants_js_1.getConf)().SUI_SYSTEM_STATE),
|
|
1775
1819
|
txb.object((0, constants_js_1.getConf)().CLOCK_PACKAGE_ID),
|
|
1776
1820
|
],
|
|
1777
1821
|
});
|
|
1778
1822
|
}
|
|
1779
1823
|
else if (poolName === "BLUEFIN-WBTC-USDC") {
|
|
1780
1824
|
txb.moveCall({
|
|
1781
|
-
target: `${poolinfo.packageId}::alphafi_bluefin_type_1_pool::
|
|
1825
|
+
target: `${poolinfo.packageId}::alphafi_bluefin_type_1_pool::user_withdraw_v2`,
|
|
1782
1826
|
typeArguments: [
|
|
1783
1827
|
coins_js_1.coinsList[pool1].type,
|
|
1784
1828
|
coins_js_1.coinsList[pool2].type,
|
|
@@ -1801,13 +1845,15 @@ const withdrawBluefinType1Txb = async (xTokens, poolName, options) => {
|
|
|
1801
1845
|
txb.object((0, constants_js_1.getConf)().BLUEFIN_BLUE_SUI_POOL),
|
|
1802
1846
|
txb.object(maps_js_1.cetusPoolMap["USDC-WBTC"]),
|
|
1803
1847
|
txb.object(maps_js_1.cetusPoolMap["USDC-SUI"]),
|
|
1848
|
+
txb.object((0, constants_js_1.getConf)().LST_INFO),
|
|
1849
|
+
txb.object((0, constants_js_1.getConf)().SUI_SYSTEM_STATE),
|
|
1804
1850
|
txb.object((0, constants_js_1.getConf)().CLOCK_PACKAGE_ID),
|
|
1805
1851
|
],
|
|
1806
1852
|
});
|
|
1807
1853
|
}
|
|
1808
1854
|
else if (poolName === "BLUEFIN-SEND-USDC") {
|
|
1809
1855
|
txb.moveCall({
|
|
1810
|
-
target: `${poolinfo.packageId}::alphafi_bluefin_type_1_pool::
|
|
1856
|
+
target: `${poolinfo.packageId}::alphafi_bluefin_type_1_pool::user_withdraw_v2`,
|
|
1811
1857
|
typeArguments: [
|
|
1812
1858
|
coins_js_1.coinsList[pool1].type,
|
|
1813
1859
|
coins_js_1.coinsList[pool2].type,
|
|
@@ -1830,6 +1876,8 @@ const withdrawBluefinType1Txb = async (xTokens, poolName, options) => {
|
|
|
1830
1876
|
txb.object((0, constants_js_1.getConf)().BLUEFIN_BLUE_SUI_POOL),
|
|
1831
1877
|
txb.object(maps_js_1.cetusPoolMap["USDC-SEND"]),
|
|
1832
1878
|
txb.object(maps_js_1.cetusPoolMap["USDC-SUI"]),
|
|
1879
|
+
txb.object((0, constants_js_1.getConf)().LST_INFO),
|
|
1880
|
+
txb.object((0, constants_js_1.getConf)().SUI_SYSTEM_STATE),
|
|
1833
1881
|
txb.object((0, constants_js_1.getConf)().CLOCK_PACKAGE_ID),
|
|
1834
1882
|
],
|
|
1835
1883
|
});
|
|
@@ -1865,7 +1913,7 @@ const withdrawBluefinType1Txb = async (xTokens, poolName, options) => {
|
|
|
1865
1913
|
}
|
|
1866
1914
|
else if (poolName === "BLUEFIN-SUIUSDT-USDC") {
|
|
1867
1915
|
txb.moveCall({
|
|
1868
|
-
target: `${poolinfo.packageId}::alphafi_bluefin_type_1_pool::
|
|
1916
|
+
target: `${poolinfo.packageId}::alphafi_bluefin_type_1_pool::user_withdraw_v2`,
|
|
1869
1917
|
typeArguments: [
|
|
1870
1918
|
coins_js_1.coinsList[pool1].type,
|
|
1871
1919
|
coins_js_1.coinsList[pool2].type,
|
|
@@ -1888,6 +1936,8 @@ const withdrawBluefinType1Txb = async (xTokens, poolName, options) => {
|
|
|
1888
1936
|
txb.object((0, constants_js_1.getConf)().BLUEFIN_BLUE_SUI_POOL),
|
|
1889
1937
|
txb.object(maps_js_1.cetusPoolMap["USDC-SUIUSDT"]),
|
|
1890
1938
|
txb.object(maps_js_1.cetusPoolMap["USDC-SUI"]),
|
|
1939
|
+
txb.object((0, constants_js_1.getConf)().LST_INFO),
|
|
1940
|
+
txb.object((0, constants_js_1.getConf)().SUI_SYSTEM_STATE),
|
|
1891
1941
|
txb.object((0, constants_js_1.getConf)().CLOCK_PACKAGE_ID),
|
|
1892
1942
|
],
|
|
1893
1943
|
});
|
|
@@ -1926,7 +1976,7 @@ const withdrawBluefinType2Txb = async (xTokens, poolName, options) => {
|
|
|
1926
1976
|
const poolinfo = maps_js_1.poolInfo[poolName];
|
|
1927
1977
|
if (poolName === "BLUEFIN-ALPHA-USDC") {
|
|
1928
1978
|
txb.moveCall({
|
|
1929
|
-
target: `${poolinfo.packageId}::alphafi_bluefin_type_2_pool::
|
|
1979
|
+
target: `${poolinfo.packageId}::alphafi_bluefin_type_2_pool::user_withdraw_v2`,
|
|
1930
1980
|
typeArguments: [
|
|
1931
1981
|
coins_js_1.coinsList[pool1].type,
|
|
1932
1982
|
coins_js_1.coinsList[pool2].type,
|
|
@@ -1949,13 +1999,15 @@ const withdrawBluefinType2Txb = async (xTokens, poolName, options) => {
|
|
|
1949
1999
|
txb.object((0, constants_js_1.getConf)().BLUEFIN_BLUE_SUI_POOL),
|
|
1950
2000
|
txb.object(maps_js_1.cetusPoolMap["ALPHA-USDC"]),
|
|
1951
2001
|
txb.object(maps_js_1.cetusPoolMap["USDC-SUI"]),
|
|
2002
|
+
txb.object((0, constants_js_1.getConf)().LST_INFO),
|
|
2003
|
+
txb.object((0, constants_js_1.getConf)().SUI_SYSTEM_STATE),
|
|
1952
2004
|
txb.object((0, constants_js_1.getConf)().CLOCK_PACKAGE_ID),
|
|
1953
2005
|
],
|
|
1954
2006
|
});
|
|
1955
2007
|
}
|
|
1956
2008
|
else if (poolName === "BLUEFIN-NAVX-VSUI") {
|
|
1957
2009
|
txb.moveCall({
|
|
1958
|
-
target: `${poolinfo.packageId}::alphafi_bluefin_type_2_pool::
|
|
2010
|
+
target: `${poolinfo.packageId}::alphafi_bluefin_type_2_pool::user_withdraw_v2`,
|
|
1959
2011
|
typeArguments: [
|
|
1960
2012
|
coins_js_1.coinsList[pool1].type,
|
|
1961
2013
|
coins_js_1.coinsList[pool2].type,
|
|
@@ -1978,13 +2030,15 @@ const withdrawBluefinType2Txb = async (xTokens, poolName, options) => {
|
|
|
1978
2030
|
txb.object((0, constants_js_1.getConf)().BLUEFIN_BLUE_SUI_POOL),
|
|
1979
2031
|
txb.object(maps_js_1.cetusPoolMap["NAVX-VSUI"]),
|
|
1980
2032
|
txb.object(maps_js_1.cetusPoolMap["VSUI-SUI"]),
|
|
2033
|
+
txb.object((0, constants_js_1.getConf)().LST_INFO),
|
|
2034
|
+
txb.object((0, constants_js_1.getConf)().SUI_SYSTEM_STATE),
|
|
1981
2035
|
txb.object((0, constants_js_1.getConf)().CLOCK_PACKAGE_ID),
|
|
1982
2036
|
],
|
|
1983
2037
|
});
|
|
1984
2038
|
}
|
|
1985
2039
|
else if (poolName === "BLUEFIN-BLUE-USDC") {
|
|
1986
2040
|
txb.moveCall({
|
|
1987
|
-
target: `${poolinfo.packageId}::alphafi_bluefin_type_2_pool::
|
|
2041
|
+
target: `${poolinfo.packageId}::alphafi_bluefin_type_2_pool::user_withdraw_v2`,
|
|
1988
2042
|
typeArguments: [
|
|
1989
2043
|
coins_js_1.coinsList[pool1].type,
|
|
1990
2044
|
coins_js_1.coinsList[pool2].type,
|
|
@@ -2007,6 +2061,8 @@ const withdrawBluefinType2Txb = async (xTokens, poolName, options) => {
|
|
|
2007
2061
|
txb.object((0, constants_js_1.getConf)().BLUEFIN_DEEP_SUI_POOL),
|
|
2008
2062
|
txb.object(maps_js_1.cetusPoolMap["BLUE-USDC"]),
|
|
2009
2063
|
txb.object(maps_js_1.cetusPoolMap["USDC-SUI"]),
|
|
2064
|
+
txb.object((0, constants_js_1.getConf)().LST_INFO),
|
|
2065
|
+
txb.object((0, constants_js_1.getConf)().SUI_SYSTEM_STATE),
|
|
2010
2066
|
txb.object((0, constants_js_1.getConf)().CLOCK_PACKAGE_ID),
|
|
2011
2067
|
],
|
|
2012
2068
|
});
|