@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
|
@@ -66,7 +66,7 @@ export const depositBluefinSuiFirstTxb = async (amount, poolName, isAmountA, opt
|
|
|
66
66
|
}
|
|
67
67
|
if (poolName === "BLUEFIN-SUI-USDC") {
|
|
68
68
|
txb.moveCall({
|
|
69
|
-
target: `${poolinfo.packageId}::alphafi_bluefin_sui_first_pool::
|
|
69
|
+
target: `${poolinfo.packageId}::alphafi_bluefin_sui_first_pool::user_deposit_v2`,
|
|
70
70
|
typeArguments: [
|
|
71
71
|
coinsList[pool1].type,
|
|
72
72
|
coinsList[pool2].type,
|
|
@@ -87,13 +87,15 @@ export const depositBluefinSuiFirstTxb = async (amount, poolName, isAmountA, opt
|
|
|
87
87
|
txb.object(getConf().BLUEFIN_SUI_USDC_POOL),
|
|
88
88
|
txb.object(getConf().BLUEFIN_BLUE_SUI_POOL),
|
|
89
89
|
txb.object(cetusPoolMap["USDC-SUI"]),
|
|
90
|
+
txb.object(getConf().LST_INFO),
|
|
91
|
+
txb.object(getConf().SUI_SYSTEM_STATE),
|
|
90
92
|
txb.object(getConf().CLOCK_PACKAGE_ID),
|
|
91
93
|
],
|
|
92
94
|
});
|
|
93
95
|
}
|
|
94
96
|
else if (poolName === "BLUEFIN-SUI-BUCK") {
|
|
95
97
|
txb.moveCall({
|
|
96
|
-
target: `${poolinfo.packageId}::alphafi_bluefin_sui_first_pool::
|
|
98
|
+
target: `${poolinfo.packageId}::alphafi_bluefin_sui_first_pool::user_deposit_v2`,
|
|
97
99
|
typeArguments: [
|
|
98
100
|
coinsList[pool1].type,
|
|
99
101
|
coinsList[pool2].type,
|
|
@@ -114,13 +116,15 @@ export const depositBluefinSuiFirstTxb = async (amount, poolName, isAmountA, opt
|
|
|
114
116
|
txb.object(getConf().BLUEFIN_SUI_BUCK_POOL),
|
|
115
117
|
txb.object(getConf().BLUEFIN_BLUE_SUI_POOL),
|
|
116
118
|
txb.object(cetusPoolMap["BUCK-SUI"]),
|
|
119
|
+
txb.object(getConf().LST_INFO),
|
|
120
|
+
txb.object(getConf().SUI_SYSTEM_STATE),
|
|
117
121
|
txb.object(getConf().CLOCK_PACKAGE_ID),
|
|
118
122
|
],
|
|
119
123
|
});
|
|
120
124
|
}
|
|
121
125
|
else if (poolName === "BLUEFIN-SUI-AUSD") {
|
|
122
126
|
txb.moveCall({
|
|
123
|
-
target: `${poolinfo.packageId}::alphafi_bluefin_sui_first_pool::
|
|
127
|
+
target: `${poolinfo.packageId}::alphafi_bluefin_sui_first_pool::user_deposit_v2`,
|
|
124
128
|
typeArguments: [
|
|
125
129
|
coinsList[pool1].type,
|
|
126
130
|
coinsList[pool2].type,
|
|
@@ -141,6 +145,8 @@ export const depositBluefinSuiFirstTxb = async (amount, poolName, isAmountA, opt
|
|
|
141
145
|
txb.object(getConf().BLUEFIN_SUI_AUSD_POOL),
|
|
142
146
|
txb.object(getConf().BLUEFIN_BLUE_SUI_POOL),
|
|
143
147
|
txb.object(cetusPoolMap["AUSD-SUI"]),
|
|
148
|
+
txb.object(getConf().LST_INFO),
|
|
149
|
+
txb.object(getConf().SUI_SYSTEM_STATE),
|
|
144
150
|
txb.object(getConf().CLOCK_PACKAGE_ID),
|
|
145
151
|
],
|
|
146
152
|
});
|
|
@@ -242,7 +248,7 @@ export const depositBluefinSuiSecondTxb = async (amount, poolName, isAmountA, op
|
|
|
242
248
|
}
|
|
243
249
|
if (poolName === "BLUEFIN-BLUE-SUI") {
|
|
244
250
|
txb.moveCall({
|
|
245
|
-
target: `${poolinfo.packageId}::alphafi_bluefin_sui_second_pool::
|
|
251
|
+
target: `${poolinfo.packageId}::alphafi_bluefin_sui_second_pool::user_deposit_v2`,
|
|
246
252
|
typeArguments: [
|
|
247
253
|
coinsList[pool1].type,
|
|
248
254
|
coinsList[pool2].type,
|
|
@@ -263,13 +269,15 @@ export const depositBluefinSuiSecondTxb = async (amount, poolName, isAmountA, op
|
|
|
263
269
|
txb.object(getConf().BLUEFIN_BLUE_SUI_POOL),
|
|
264
270
|
txb.object(getConf().BLUEFIN_DEEP_SUI_POOL),
|
|
265
271
|
txb.object(cetusPoolMap["BLUE-SUI"]),
|
|
272
|
+
txb.object(getConf().LST_INFO),
|
|
273
|
+
txb.object(getConf().SUI_SYSTEM_STATE),
|
|
266
274
|
txb.object(getConf().CLOCK_PACKAGE_ID),
|
|
267
275
|
],
|
|
268
276
|
});
|
|
269
277
|
}
|
|
270
278
|
else if (poolName === "BLUEFIN-WBTC-SUI") {
|
|
271
279
|
txb.moveCall({
|
|
272
|
-
target: `${poolinfo.packageId}::alphafi_bluefin_sui_second_pool::
|
|
280
|
+
target: `${poolinfo.packageId}::alphafi_bluefin_sui_second_pool::user_deposit_v2`,
|
|
273
281
|
typeArguments: [
|
|
274
282
|
coinsList[pool1].type,
|
|
275
283
|
coinsList[pool2].type,
|
|
@@ -290,13 +298,15 @@ export const depositBluefinSuiSecondTxb = async (amount, poolName, isAmountA, op
|
|
|
290
298
|
txb.object(getConf().BLUEFIN_WBTC_SUI_POOL),
|
|
291
299
|
txb.object(getConf().BLUEFIN_BLUE_SUI_POOL),
|
|
292
300
|
txb.object(cetusPoolMap["WBTC-SUI"]),
|
|
301
|
+
txb.object(getConf().LST_INFO),
|
|
302
|
+
txb.object(getConf().SUI_SYSTEM_STATE),
|
|
293
303
|
txb.object(getConf().CLOCK_PACKAGE_ID),
|
|
294
304
|
],
|
|
295
305
|
});
|
|
296
306
|
}
|
|
297
307
|
else if (poolName === "BLUEFIN-DEEP-SUI") {
|
|
298
308
|
txb.moveCall({
|
|
299
|
-
target: `${poolinfo.packageId}::alphafi_bluefin_sui_second_pool::
|
|
309
|
+
target: `${poolinfo.packageId}::alphafi_bluefin_sui_second_pool::user_deposit_v2`,
|
|
300
310
|
typeArguments: [
|
|
301
311
|
coinsList[pool1].type,
|
|
302
312
|
coinsList[pool2].type,
|
|
@@ -317,6 +327,8 @@ export const depositBluefinSuiSecondTxb = async (amount, poolName, isAmountA, op
|
|
|
317
327
|
txb.object(getConf().BLUEFIN_DEEP_SUI_POOL),
|
|
318
328
|
txb.object(getConf().BLUEFIN_BLUE_SUI_POOL),
|
|
319
329
|
txb.object(cetusPoolMap["DEEP-SUI"]),
|
|
330
|
+
txb.object(getConf().LST_INFO),
|
|
331
|
+
txb.object(getConf().SUI_SYSTEM_STATE),
|
|
320
332
|
txb.object(getConf().CLOCK_PACKAGE_ID),
|
|
321
333
|
],
|
|
322
334
|
});
|
|
@@ -492,7 +504,7 @@ export const depositBluefinType1Txb = async (amount, poolName, isAmountA, option
|
|
|
492
504
|
}
|
|
493
505
|
if (poolName === "BLUEFIN-USDT-USDC") {
|
|
494
506
|
txb.moveCall({
|
|
495
|
-
target: `${poolinfo.packageId}::alphafi_bluefin_type_1_pool::
|
|
507
|
+
target: `${poolinfo.packageId}::alphafi_bluefin_type_1_pool::user_deposit_v2`,
|
|
496
508
|
typeArguments: [
|
|
497
509
|
coinsList[pool1].type,
|
|
498
510
|
coinsList[pool2].type,
|
|
@@ -514,13 +526,15 @@ export const depositBluefinType1Txb = async (amount, poolName, isAmountA, option
|
|
|
514
526
|
txb.object(getConf().BLUEFIN_BLUE_SUI_POOL),
|
|
515
527
|
txb.object(cetusPoolMap["USDC-USDT"]),
|
|
516
528
|
txb.object(cetusPoolMap["USDC-SUI"]),
|
|
529
|
+
txb.object(getConf().LST_INFO),
|
|
530
|
+
txb.object(getConf().SUI_SYSTEM_STATE),
|
|
517
531
|
txb.object(getConf().CLOCK_PACKAGE_ID),
|
|
518
532
|
],
|
|
519
533
|
});
|
|
520
534
|
}
|
|
521
535
|
else if (poolName === "BLUEFIN-AUSD-USDC") {
|
|
522
536
|
txb.moveCall({
|
|
523
|
-
target: `${poolinfo.packageId}::alphafi_bluefin_type_1_pool::
|
|
537
|
+
target: `${poolinfo.packageId}::alphafi_bluefin_type_1_pool::user_deposit_v2`,
|
|
524
538
|
typeArguments: [
|
|
525
539
|
coinsList[pool1].type,
|
|
526
540
|
coinsList[pool2].type,
|
|
@@ -542,13 +556,15 @@ export const depositBluefinType1Txb = async (amount, poolName, isAmountA, option
|
|
|
542
556
|
txb.object(getConf().BLUEFIN_BLUE_SUI_POOL),
|
|
543
557
|
txb.object(cetusPoolMap["USDC-AUSD"]),
|
|
544
558
|
txb.object(cetusPoolMap["USDC-SUI"]),
|
|
559
|
+
txb.object(getConf().LST_INFO),
|
|
560
|
+
txb.object(getConf().SUI_SYSTEM_STATE),
|
|
545
561
|
txb.object(getConf().CLOCK_PACKAGE_ID),
|
|
546
562
|
],
|
|
547
563
|
});
|
|
548
564
|
}
|
|
549
565
|
else if (poolName === "BLUEFIN-WBTC-USDC") {
|
|
550
566
|
txb.moveCall({
|
|
551
|
-
target: `${poolinfo.packageId}::alphafi_bluefin_type_1_pool::
|
|
567
|
+
target: `${poolinfo.packageId}::alphafi_bluefin_type_1_pool::user_deposit_v2`,
|
|
552
568
|
typeArguments: [
|
|
553
569
|
coinsList[pool1].type,
|
|
554
570
|
coinsList[pool2].type,
|
|
@@ -570,13 +586,15 @@ export const depositBluefinType1Txb = async (amount, poolName, isAmountA, option
|
|
|
570
586
|
txb.object(getConf().BLUEFIN_BLUE_SUI_POOL),
|
|
571
587
|
txb.object(cetusPoolMap["USDC-WBTC"]),
|
|
572
588
|
txb.object(cetusPoolMap["USDC-SUI"]),
|
|
589
|
+
txb.object(getConf().LST_INFO),
|
|
590
|
+
txb.object(getConf().SUI_SYSTEM_STATE),
|
|
573
591
|
txb.object(getConf().CLOCK_PACKAGE_ID),
|
|
574
592
|
],
|
|
575
593
|
});
|
|
576
594
|
}
|
|
577
595
|
else if (poolName === "BLUEFIN-SEND-USDC") {
|
|
578
596
|
txb.moveCall({
|
|
579
|
-
target: `${poolinfo.packageId}::alphafi_bluefin_type_1_pool::
|
|
597
|
+
target: `${poolinfo.packageId}::alphafi_bluefin_type_1_pool::user_deposit_v2`,
|
|
580
598
|
typeArguments: [
|
|
581
599
|
coinsList[pool1].type,
|
|
582
600
|
coinsList[pool2].type,
|
|
@@ -598,6 +616,8 @@ export const depositBluefinType1Txb = async (amount, poolName, isAmountA, option
|
|
|
598
616
|
txb.object(getConf().BLUEFIN_BLUE_SUI_POOL),
|
|
599
617
|
txb.object(cetusPoolMap["USDC-SEND"]),
|
|
600
618
|
txb.object(cetusPoolMap["USDC-SUI"]),
|
|
619
|
+
txb.object(getConf().LST_INFO),
|
|
620
|
+
txb.object(getConf().SUI_SYSTEM_STATE),
|
|
601
621
|
txb.object(getConf().CLOCK_PACKAGE_ID),
|
|
602
622
|
],
|
|
603
623
|
});
|
|
@@ -661,7 +681,7 @@ export const depositBluefinType1Txb = async (amount, poolName, isAmountA, option
|
|
|
661
681
|
}
|
|
662
682
|
else if (poolName === "BLUEFIN-SUIUSDT-USDC") {
|
|
663
683
|
txb.moveCall({
|
|
664
|
-
target: `${poolinfo.packageId}::alphafi_bluefin_type_1_pool::
|
|
684
|
+
target: `${poolinfo.packageId}::alphafi_bluefin_type_1_pool::user_deposit_v2`,
|
|
665
685
|
typeArguments: [
|
|
666
686
|
coinsList[pool1].type,
|
|
667
687
|
coinsList[pool2].type,
|
|
@@ -683,6 +703,8 @@ export const depositBluefinType1Txb = async (amount, poolName, isAmountA, option
|
|
|
683
703
|
txb.object(getConf().BLUEFIN_BLUE_SUI_POOL),
|
|
684
704
|
txb.object(cetusPoolMap["USDC-SUIUSDT"]),
|
|
685
705
|
txb.object(cetusPoolMap["USDC-SUI"]),
|
|
706
|
+
txb.object(getConf().LST_INFO),
|
|
707
|
+
txb.object(getConf().SUI_SYSTEM_STATE),
|
|
686
708
|
txb.object(getConf().CLOCK_PACKAGE_ID),
|
|
687
709
|
],
|
|
688
710
|
});
|
|
@@ -837,7 +859,7 @@ export const depositBluefinType2Txb = async (amount, poolName, isAmountA, option
|
|
|
837
859
|
}
|
|
838
860
|
if (poolName === "BLUEFIN-ALPHA-USDC") {
|
|
839
861
|
txb.moveCall({
|
|
840
|
-
target: `${poolinfo.packageId}::alphafi_bluefin_type_2_pool::
|
|
862
|
+
target: `${poolinfo.packageId}::alphafi_bluefin_type_2_pool::user_deposit_v2`,
|
|
841
863
|
typeArguments: [
|
|
842
864
|
coinsList[pool1].type,
|
|
843
865
|
coinsList[pool2].type,
|
|
@@ -859,13 +881,15 @@ export const depositBluefinType2Txb = async (amount, poolName, isAmountA, option
|
|
|
859
881
|
txb.object(getConf().BLUEFIN_BLUE_SUI_POOL),
|
|
860
882
|
txb.object(cetusPoolMap["ALPHA-USDC"]),
|
|
861
883
|
txb.object(cetusPoolMap["USDC-SUI"]),
|
|
884
|
+
txb.object(getConf().LST_INFO),
|
|
885
|
+
txb.object(getConf().SUI_SYSTEM_STATE),
|
|
862
886
|
txb.object(getConf().CLOCK_PACKAGE_ID),
|
|
863
887
|
],
|
|
864
888
|
});
|
|
865
889
|
}
|
|
866
890
|
else if (poolName === "BLUEFIN-NAVX-VSUI") {
|
|
867
891
|
txb.moveCall({
|
|
868
|
-
target: `${poolinfo.packageId}::alphafi_bluefin_type_2_pool::
|
|
892
|
+
target: `${poolinfo.packageId}::alphafi_bluefin_type_2_pool::user_deposit_v2`,
|
|
869
893
|
typeArguments: [
|
|
870
894
|
coinsList[pool1].type,
|
|
871
895
|
coinsList[pool2].type,
|
|
@@ -887,13 +911,15 @@ export const depositBluefinType2Txb = async (amount, poolName, isAmountA, option
|
|
|
887
911
|
txb.object(getConf().BLUEFIN_BLUE_SUI_POOL),
|
|
888
912
|
txb.object(cetusPoolMap["NAVX-VSUI"]),
|
|
889
913
|
txb.object(cetusPoolMap["VSUI-SUI"]),
|
|
914
|
+
txb.object(getConf().LST_INFO),
|
|
915
|
+
txb.object(getConf().SUI_SYSTEM_STATE),
|
|
890
916
|
txb.object(getConf().CLOCK_PACKAGE_ID),
|
|
891
917
|
],
|
|
892
918
|
});
|
|
893
919
|
}
|
|
894
920
|
else if (poolName === "BLUEFIN-BLUE-USDC") {
|
|
895
921
|
txb.moveCall({
|
|
896
|
-
target: `${poolinfo.packageId}::alphafi_bluefin_type_2_pool::
|
|
922
|
+
target: `${poolinfo.packageId}::alphafi_bluefin_type_2_pool::user_deposit_v2`,
|
|
897
923
|
typeArguments: [
|
|
898
924
|
coinsList[pool1].type,
|
|
899
925
|
coinsList[pool2].type,
|
|
@@ -915,6 +941,8 @@ export const depositBluefinType2Txb = async (amount, poolName, isAmountA, option
|
|
|
915
941
|
txb.object(getConf().BLUEFIN_DEEP_SUI_POOL),
|
|
916
942
|
txb.object(cetusPoolMap["BLUE-USDC"]),
|
|
917
943
|
txb.object(cetusPoolMap["USDC-SUI"]),
|
|
944
|
+
txb.object(getConf().LST_INFO),
|
|
945
|
+
txb.object(getConf().SUI_SYSTEM_STATE),
|
|
918
946
|
txb.object(getConf().CLOCK_PACKAGE_ID),
|
|
919
947
|
],
|
|
920
948
|
});
|
|
@@ -1311,7 +1339,7 @@ export const withdrawBluefinSuiFirstTxb = async (xTokens, poolName, options) =>
|
|
|
1311
1339
|
}
|
|
1312
1340
|
if (poolName === "BLUEFIN-SUI-USDC") {
|
|
1313
1341
|
txb.moveCall({
|
|
1314
|
-
target: `${poolinfo.packageId}::alphafi_bluefin_sui_first_pool::
|
|
1342
|
+
target: `${poolinfo.packageId}::alphafi_bluefin_sui_first_pool::user_withdraw_v2`,
|
|
1315
1343
|
typeArguments: [
|
|
1316
1344
|
coinsList[pool1].type,
|
|
1317
1345
|
coinsList[pool2].type,
|
|
@@ -1333,13 +1361,15 @@ export const withdrawBluefinSuiFirstTxb = async (xTokens, poolName, options) =>
|
|
|
1333
1361
|
txb.object(getConf().BLUEFIN_SUI_USDC_POOL),
|
|
1334
1362
|
txb.object(getConf().BLUEFIN_BLUE_SUI_POOL),
|
|
1335
1363
|
txb.object(cetusPoolMap["USDC-SUI"]),
|
|
1364
|
+
txb.object(getConf().LST_INFO),
|
|
1365
|
+
txb.object(getConf().SUI_SYSTEM_STATE),
|
|
1336
1366
|
txb.object(getConf().CLOCK_PACKAGE_ID),
|
|
1337
1367
|
],
|
|
1338
1368
|
});
|
|
1339
1369
|
}
|
|
1340
1370
|
else if (poolName === "BLUEFIN-SUI-BUCK") {
|
|
1341
1371
|
txb.moveCall({
|
|
1342
|
-
target: `${poolinfo.packageId}::alphafi_bluefin_sui_first_pool::
|
|
1372
|
+
target: `${poolinfo.packageId}::alphafi_bluefin_sui_first_pool::user_withdraw_v2`,
|
|
1343
1373
|
typeArguments: [
|
|
1344
1374
|
coinsList[pool1].type,
|
|
1345
1375
|
coinsList[pool2].type,
|
|
@@ -1361,13 +1391,15 @@ export const withdrawBluefinSuiFirstTxb = async (xTokens, poolName, options) =>
|
|
|
1361
1391
|
txb.object(getConf().BLUEFIN_SUI_BUCK_POOL),
|
|
1362
1392
|
txb.object(getConf().BLUEFIN_BLUE_SUI_POOL),
|
|
1363
1393
|
txb.object(cetusPoolMap["BUCK-SUI"]),
|
|
1394
|
+
txb.object(getConf().LST_INFO),
|
|
1395
|
+
txb.object(getConf().SUI_SYSTEM_STATE),
|
|
1364
1396
|
txb.object(getConf().CLOCK_PACKAGE_ID),
|
|
1365
1397
|
],
|
|
1366
1398
|
});
|
|
1367
1399
|
}
|
|
1368
1400
|
else if (poolName === "BLUEFIN-SUI-AUSD") {
|
|
1369
1401
|
txb.moveCall({
|
|
1370
|
-
target: `${poolinfo.packageId}::alphafi_bluefin_sui_first_pool::
|
|
1402
|
+
target: `${poolinfo.packageId}::alphafi_bluefin_sui_first_pool::user_withdraw_v2`,
|
|
1371
1403
|
typeArguments: [
|
|
1372
1404
|
coinsList[pool1].type,
|
|
1373
1405
|
coinsList[pool2].type,
|
|
@@ -1389,6 +1421,8 @@ export const withdrawBluefinSuiFirstTxb = async (xTokens, poolName, options) =>
|
|
|
1389
1421
|
txb.object(getConf().BLUEFIN_SUI_AUSD_POOL),
|
|
1390
1422
|
txb.object(getConf().BLUEFIN_BLUE_SUI_POOL),
|
|
1391
1423
|
txb.object(cetusPoolMap["AUSD-SUI"]),
|
|
1424
|
+
txb.object(getConf().LST_INFO),
|
|
1425
|
+
txb.object(getConf().SUI_SYSTEM_STATE),
|
|
1392
1426
|
txb.object(getConf().CLOCK_PACKAGE_ID),
|
|
1393
1427
|
],
|
|
1394
1428
|
});
|
|
@@ -1481,7 +1515,7 @@ export const withdrawBluefinSuiSecondTxb = async (xTokens, poolName, options) =>
|
|
|
1481
1515
|
}
|
|
1482
1516
|
if (poolName === "BLUEFIN-BLUE-SUI") {
|
|
1483
1517
|
txb.moveCall({
|
|
1484
|
-
target: `${poolinfo.packageId}::alphafi_bluefin_sui_second_pool::
|
|
1518
|
+
target: `${poolinfo.packageId}::alphafi_bluefin_sui_second_pool::user_withdraw_v2`,
|
|
1485
1519
|
typeArguments: [
|
|
1486
1520
|
coinsList[pool1].type,
|
|
1487
1521
|
coinsList[pool2].type,
|
|
@@ -1503,13 +1537,15 @@ export const withdrawBluefinSuiSecondTxb = async (xTokens, poolName, options) =>
|
|
|
1503
1537
|
txb.object(getConf().BLUEFIN_BLUE_SUI_POOL),
|
|
1504
1538
|
txb.object(getConf().BLUEFIN_DEEP_SUI_POOL),
|
|
1505
1539
|
txb.object(cetusPoolMap["BLUE-SUI"]),
|
|
1540
|
+
txb.object(getConf().LST_INFO),
|
|
1541
|
+
txb.object(getConf().SUI_SYSTEM_STATE),
|
|
1506
1542
|
txb.object(getConf().CLOCK_PACKAGE_ID),
|
|
1507
1543
|
],
|
|
1508
1544
|
});
|
|
1509
1545
|
}
|
|
1510
1546
|
else if (poolName === "BLUEFIN-WBTC-SUI") {
|
|
1511
1547
|
txb.moveCall({
|
|
1512
|
-
target: `${poolinfo.packageId}::alphafi_bluefin_sui_second_pool::
|
|
1548
|
+
target: `${poolinfo.packageId}::alphafi_bluefin_sui_second_pool::user_withdraw_v2`,
|
|
1513
1549
|
typeArguments: [
|
|
1514
1550
|
coinsList[pool1].type,
|
|
1515
1551
|
coinsList[pool2].type,
|
|
@@ -1531,13 +1567,15 @@ export const withdrawBluefinSuiSecondTxb = async (xTokens, poolName, options) =>
|
|
|
1531
1567
|
txb.object(getConf().BLUEFIN_WBTC_SUI_POOL),
|
|
1532
1568
|
txb.object(getConf().BLUEFIN_BLUE_SUI_POOL),
|
|
1533
1569
|
txb.object(cetusPoolMap["WBTC-SUI"]),
|
|
1570
|
+
txb.object(getConf().LST_INFO),
|
|
1571
|
+
txb.object(getConf().SUI_SYSTEM_STATE),
|
|
1534
1572
|
txb.object(getConf().CLOCK_PACKAGE_ID),
|
|
1535
1573
|
],
|
|
1536
1574
|
});
|
|
1537
1575
|
}
|
|
1538
1576
|
else if (poolName === "BLUEFIN-DEEP-SUI") {
|
|
1539
1577
|
txb.moveCall({
|
|
1540
|
-
target: `${poolinfo.packageId}::alphafi_bluefin_sui_second_pool::
|
|
1578
|
+
target: `${poolinfo.packageId}::alphafi_bluefin_sui_second_pool::user_withdraw_v2`,
|
|
1541
1579
|
typeArguments: [
|
|
1542
1580
|
coinsList[pool1].type,
|
|
1543
1581
|
coinsList[pool2].type,
|
|
@@ -1559,6 +1597,8 @@ export const withdrawBluefinSuiSecondTxb = async (xTokens, poolName, options) =>
|
|
|
1559
1597
|
txb.object(getConf().BLUEFIN_DEEP_SUI_POOL),
|
|
1560
1598
|
txb.object(getConf().BLUEFIN_BLUE_SUI_POOL),
|
|
1561
1599
|
txb.object(cetusPoolMap["DEEP-SUI"]),
|
|
1600
|
+
txb.object(getConf().LST_INFO),
|
|
1601
|
+
txb.object(getConf().SUI_SYSTEM_STATE),
|
|
1562
1602
|
txb.object(getConf().CLOCK_PACKAGE_ID),
|
|
1563
1603
|
],
|
|
1564
1604
|
});
|
|
@@ -1710,7 +1750,7 @@ export const withdrawBluefinType1Txb = async (xTokens, poolName, options) => {
|
|
|
1710
1750
|
}
|
|
1711
1751
|
if (poolName === "BLUEFIN-USDT-USDC") {
|
|
1712
1752
|
txb.moveCall({
|
|
1713
|
-
target: `${poolinfo.packageId}::alphafi_bluefin_type_1_pool::
|
|
1753
|
+
target: `${poolinfo.packageId}::alphafi_bluefin_type_1_pool::user_withdraw_v2`,
|
|
1714
1754
|
typeArguments: [
|
|
1715
1755
|
coinsList[pool1].type,
|
|
1716
1756
|
coinsList[pool2].type,
|
|
@@ -1733,13 +1773,15 @@ export const withdrawBluefinType1Txb = async (xTokens, poolName, options) => {
|
|
|
1733
1773
|
txb.object(getConf().BLUEFIN_BLUE_SUI_POOL),
|
|
1734
1774
|
txb.object(cetusPoolMap["USDC-USDT"]),
|
|
1735
1775
|
txb.object(cetusPoolMap["USDC-SUI"]),
|
|
1776
|
+
txb.object(getConf().LST_INFO),
|
|
1777
|
+
txb.object(getConf().SUI_SYSTEM_STATE),
|
|
1736
1778
|
txb.object(getConf().CLOCK_PACKAGE_ID),
|
|
1737
1779
|
],
|
|
1738
1780
|
});
|
|
1739
1781
|
}
|
|
1740
1782
|
else if (poolName === "BLUEFIN-AUSD-USDC") {
|
|
1741
1783
|
txb.moveCall({
|
|
1742
|
-
target: `${poolinfo.packageId}::alphafi_bluefin_type_1_pool::
|
|
1784
|
+
target: `${poolinfo.packageId}::alphafi_bluefin_type_1_pool::user_withdraw_v2`,
|
|
1743
1785
|
typeArguments: [
|
|
1744
1786
|
coinsList[pool1].type,
|
|
1745
1787
|
coinsList[pool2].type,
|
|
@@ -1762,13 +1804,15 @@ export const withdrawBluefinType1Txb = async (xTokens, poolName, options) => {
|
|
|
1762
1804
|
txb.object(getConf().BLUEFIN_BLUE_SUI_POOL),
|
|
1763
1805
|
txb.object(cetusPoolMap["USDC-AUSD"]),
|
|
1764
1806
|
txb.object(cetusPoolMap["USDC-SUI"]),
|
|
1807
|
+
txb.object(getConf().LST_INFO),
|
|
1808
|
+
txb.object(getConf().SUI_SYSTEM_STATE),
|
|
1765
1809
|
txb.object(getConf().CLOCK_PACKAGE_ID),
|
|
1766
1810
|
],
|
|
1767
1811
|
});
|
|
1768
1812
|
}
|
|
1769
1813
|
else if (poolName === "BLUEFIN-WBTC-USDC") {
|
|
1770
1814
|
txb.moveCall({
|
|
1771
|
-
target: `${poolinfo.packageId}::alphafi_bluefin_type_1_pool::
|
|
1815
|
+
target: `${poolinfo.packageId}::alphafi_bluefin_type_1_pool::user_withdraw_v2`,
|
|
1772
1816
|
typeArguments: [
|
|
1773
1817
|
coinsList[pool1].type,
|
|
1774
1818
|
coinsList[pool2].type,
|
|
@@ -1791,13 +1835,15 @@ export const withdrawBluefinType1Txb = async (xTokens, poolName, options) => {
|
|
|
1791
1835
|
txb.object(getConf().BLUEFIN_BLUE_SUI_POOL),
|
|
1792
1836
|
txb.object(cetusPoolMap["USDC-WBTC"]),
|
|
1793
1837
|
txb.object(cetusPoolMap["USDC-SUI"]),
|
|
1838
|
+
txb.object(getConf().LST_INFO),
|
|
1839
|
+
txb.object(getConf().SUI_SYSTEM_STATE),
|
|
1794
1840
|
txb.object(getConf().CLOCK_PACKAGE_ID),
|
|
1795
1841
|
],
|
|
1796
1842
|
});
|
|
1797
1843
|
}
|
|
1798
1844
|
else if (poolName === "BLUEFIN-SEND-USDC") {
|
|
1799
1845
|
txb.moveCall({
|
|
1800
|
-
target: `${poolinfo.packageId}::alphafi_bluefin_type_1_pool::
|
|
1846
|
+
target: `${poolinfo.packageId}::alphafi_bluefin_type_1_pool::user_withdraw_v2`,
|
|
1801
1847
|
typeArguments: [
|
|
1802
1848
|
coinsList[pool1].type,
|
|
1803
1849
|
coinsList[pool2].type,
|
|
@@ -1820,6 +1866,8 @@ export const withdrawBluefinType1Txb = async (xTokens, poolName, options) => {
|
|
|
1820
1866
|
txb.object(getConf().BLUEFIN_BLUE_SUI_POOL),
|
|
1821
1867
|
txb.object(cetusPoolMap["USDC-SEND"]),
|
|
1822
1868
|
txb.object(cetusPoolMap["USDC-SUI"]),
|
|
1869
|
+
txb.object(getConf().LST_INFO),
|
|
1870
|
+
txb.object(getConf().SUI_SYSTEM_STATE),
|
|
1823
1871
|
txb.object(getConf().CLOCK_PACKAGE_ID),
|
|
1824
1872
|
],
|
|
1825
1873
|
});
|
|
@@ -1855,7 +1903,7 @@ export const withdrawBluefinType1Txb = async (xTokens, poolName, options) => {
|
|
|
1855
1903
|
}
|
|
1856
1904
|
else if (poolName === "BLUEFIN-SUIUSDT-USDC") {
|
|
1857
1905
|
txb.moveCall({
|
|
1858
|
-
target: `${poolinfo.packageId}::alphafi_bluefin_type_1_pool::
|
|
1906
|
+
target: `${poolinfo.packageId}::alphafi_bluefin_type_1_pool::user_withdraw_v2`,
|
|
1859
1907
|
typeArguments: [
|
|
1860
1908
|
coinsList[pool1].type,
|
|
1861
1909
|
coinsList[pool2].type,
|
|
@@ -1878,6 +1926,8 @@ export const withdrawBluefinType1Txb = async (xTokens, poolName, options) => {
|
|
|
1878
1926
|
txb.object(getConf().BLUEFIN_BLUE_SUI_POOL),
|
|
1879
1927
|
txb.object(cetusPoolMap["USDC-SUIUSDT"]),
|
|
1880
1928
|
txb.object(cetusPoolMap["USDC-SUI"]),
|
|
1929
|
+
txb.object(getConf().LST_INFO),
|
|
1930
|
+
txb.object(getConf().SUI_SYSTEM_STATE),
|
|
1881
1931
|
txb.object(getConf().CLOCK_PACKAGE_ID),
|
|
1882
1932
|
],
|
|
1883
1933
|
});
|
|
@@ -1915,7 +1965,7 @@ export const withdrawBluefinType2Txb = async (xTokens, poolName, options) => {
|
|
|
1915
1965
|
const poolinfo = poolInfo[poolName];
|
|
1916
1966
|
if (poolName === "BLUEFIN-ALPHA-USDC") {
|
|
1917
1967
|
txb.moveCall({
|
|
1918
|
-
target: `${poolinfo.packageId}::alphafi_bluefin_type_2_pool::
|
|
1968
|
+
target: `${poolinfo.packageId}::alphafi_bluefin_type_2_pool::user_withdraw_v2`,
|
|
1919
1969
|
typeArguments: [
|
|
1920
1970
|
coinsList[pool1].type,
|
|
1921
1971
|
coinsList[pool2].type,
|
|
@@ -1938,13 +1988,15 @@ export const withdrawBluefinType2Txb = async (xTokens, poolName, options) => {
|
|
|
1938
1988
|
txb.object(getConf().BLUEFIN_BLUE_SUI_POOL),
|
|
1939
1989
|
txb.object(cetusPoolMap["ALPHA-USDC"]),
|
|
1940
1990
|
txb.object(cetusPoolMap["USDC-SUI"]),
|
|
1991
|
+
txb.object(getConf().LST_INFO),
|
|
1992
|
+
txb.object(getConf().SUI_SYSTEM_STATE),
|
|
1941
1993
|
txb.object(getConf().CLOCK_PACKAGE_ID),
|
|
1942
1994
|
],
|
|
1943
1995
|
});
|
|
1944
1996
|
}
|
|
1945
1997
|
else if (poolName === "BLUEFIN-NAVX-VSUI") {
|
|
1946
1998
|
txb.moveCall({
|
|
1947
|
-
target: `${poolinfo.packageId}::alphafi_bluefin_type_2_pool::
|
|
1999
|
+
target: `${poolinfo.packageId}::alphafi_bluefin_type_2_pool::user_withdraw_v2`,
|
|
1948
2000
|
typeArguments: [
|
|
1949
2001
|
coinsList[pool1].type,
|
|
1950
2002
|
coinsList[pool2].type,
|
|
@@ -1967,13 +2019,15 @@ export const withdrawBluefinType2Txb = async (xTokens, poolName, options) => {
|
|
|
1967
2019
|
txb.object(getConf().BLUEFIN_BLUE_SUI_POOL),
|
|
1968
2020
|
txb.object(cetusPoolMap["NAVX-VSUI"]),
|
|
1969
2021
|
txb.object(cetusPoolMap["VSUI-SUI"]),
|
|
2022
|
+
txb.object(getConf().LST_INFO),
|
|
2023
|
+
txb.object(getConf().SUI_SYSTEM_STATE),
|
|
1970
2024
|
txb.object(getConf().CLOCK_PACKAGE_ID),
|
|
1971
2025
|
],
|
|
1972
2026
|
});
|
|
1973
2027
|
}
|
|
1974
2028
|
else if (poolName === "BLUEFIN-BLUE-USDC") {
|
|
1975
2029
|
txb.moveCall({
|
|
1976
|
-
target: `${poolinfo.packageId}::alphafi_bluefin_type_2_pool::
|
|
2030
|
+
target: `${poolinfo.packageId}::alphafi_bluefin_type_2_pool::user_withdraw_v2`,
|
|
1977
2031
|
typeArguments: [
|
|
1978
2032
|
coinsList[pool1].type,
|
|
1979
2033
|
coinsList[pool2].type,
|
|
@@ -1996,6 +2050,8 @@ export const withdrawBluefinType2Txb = async (xTokens, poolName, options) => {
|
|
|
1996
2050
|
txb.object(getConf().BLUEFIN_DEEP_SUI_POOL),
|
|
1997
2051
|
txb.object(cetusPoolMap["BLUE-USDC"]),
|
|
1998
2052
|
txb.object(cetusPoolMap["USDC-SUI"]),
|
|
2053
|
+
txb.object(getConf().LST_INFO),
|
|
2054
|
+
txb.object(getConf().SUI_SYSTEM_STATE),
|
|
1999
2055
|
txb.object(getConf().CLOCK_PACKAGE_ID),
|
|
2000
2056
|
],
|
|
2001
2057
|
});
|