@alphafi/alphafi-sdk 0.0.61 → 0.0.63
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/coins.d.ts.map +1 -1
- package/dist/cjs/common/coins.js +6 -0
- package/dist/cjs/common/coins.js.map +1 -1
- package/dist/cjs/common/constants.d.ts +101 -0
- package/dist/cjs/common/constants.d.ts.map +1 -1
- package/dist/cjs/common/constants.js +82 -1
- package/dist/cjs/common/constants.js.map +1 -1
- package/dist/cjs/common/maps.d.ts.map +1 -1
- package/dist/cjs/common/maps.js +56 -0
- package/dist/cjs/common/maps.js.map +1 -1
- package/dist/cjs/common/pyth.d.ts +1 -1
- package/dist/cjs/common/pyth.d.ts.map +1 -1
- package/dist/cjs/common/pyth.js.map +1 -1
- package/dist/cjs/common/types.d.ts +4 -4
- package/dist/cjs/common/types.d.ts.map +1 -1
- package/dist/cjs/common/types.js.map +1 -1
- package/dist/cjs/sui-sdk/functions/getReceipts.d.ts +2 -0
- package/dist/cjs/sui-sdk/functions/getReceipts.d.ts.map +1 -1
- package/dist/cjs/transactions/bluefin.d.ts.map +1 -1
- package/dist/cjs/transactions/bluefin.js +65 -0
- package/dist/cjs/transactions/bluefin.js.map +1 -1
- package/dist/cjs/transactions/collect_rewards.d.ts.map +1 -1
- package/dist/cjs/transactions/collect_rewards.js +43 -1
- package/dist/cjs/transactions/collect_rewards.js.map +1 -1
- package/dist/cjs/transactions/navi.d.ts.map +1 -1
- package/dist/cjs/transactions/navi.js +140 -0
- package/dist/cjs/transactions/navi.js.map +1 -1
- package/dist/cjs/transactions/zapDeposit.d.ts.map +1 -1
- package/dist/cjs/transactions/zapDeposit.js +180 -20
- package/dist/cjs/transactions/zapDeposit.js.map +1 -1
- package/dist/cjs/utils/constants.d.ts.map +1 -1
- package/dist/cjs/utils/constants.js +5 -0
- package/dist/cjs/utils/constants.js.map +1 -1
- package/dist/cjs/utils/prices.d.ts.map +1 -1
- package/dist/cjs/utils/prices.js +1 -0
- package/dist/cjs/utils/prices.js.map +1 -1
- package/dist/esm/common/coins.d.ts.map +1 -1
- package/dist/esm/common/coins.js +6 -0
- package/dist/esm/common/coins.js.map +1 -1
- package/dist/esm/common/constants.d.ts +101 -0
- package/dist/esm/common/constants.d.ts.map +1 -1
- package/dist/esm/common/constants.js +82 -1
- package/dist/esm/common/constants.js.map +1 -1
- package/dist/esm/common/maps.d.ts.map +1 -1
- package/dist/esm/common/maps.js +56 -0
- package/dist/esm/common/maps.js.map +1 -1
- package/dist/esm/common/pyth.d.ts +1 -1
- package/dist/esm/common/pyth.d.ts.map +1 -1
- package/dist/esm/common/pyth.js.map +1 -1
- package/dist/esm/common/types.d.ts +4 -4
- package/dist/esm/common/types.d.ts.map +1 -1
- package/dist/esm/common/types.js.map +1 -1
- package/dist/esm/sui-sdk/functions/getReceipts.d.ts +2 -0
- package/dist/esm/sui-sdk/functions/getReceipts.d.ts.map +1 -1
- package/dist/esm/transactions/bluefin.d.ts.map +1 -1
- package/dist/esm/transactions/bluefin.js +65 -0
- package/dist/esm/transactions/bluefin.js.map +1 -1
- package/dist/esm/transactions/collect_rewards.d.ts.map +1 -1
- package/dist/esm/transactions/collect_rewards.js +43 -1
- package/dist/esm/transactions/collect_rewards.js.map +1 -1
- package/dist/esm/transactions/navi.d.ts.map +1 -1
- package/dist/esm/transactions/navi.js +141 -1
- package/dist/esm/transactions/navi.js.map +1 -1
- package/dist/esm/transactions/zapDeposit.d.ts.map +1 -1
- package/dist/esm/transactions/zapDeposit.js +180 -20
- package/dist/esm/transactions/zapDeposit.js.map +1 -1
- package/dist/esm/utils/constants.d.ts.map +1 -1
- package/dist/esm/utils/constants.js +5 -0
- package/dist/esm/utils/constants.js.map +1 -1
- package/dist/esm/utils/prices.d.ts.map +1 -1
- package/dist/esm/utils/prices.js +1 -0
- package/dist/esm/utils/prices.js.map +1 -1
- package/docs/assets/search.js +1 -1
- package/docs/functions/alphaLpBreakdown.html +1 -1
- package/docs/functions/cetusLpBreakdown.html +1 -1
- package/docs/functions/claimBlueRewardTxb.html +1 -1
- package/docs/functions/claimRewardTxb.html +1 -1
- package/docs/functions/coinAmountToXTokensDoubleAsset.html +1 -1
- package/docs/functions/coinAmountToXTokensSingleAsset.html +1 -1
- package/docs/functions/coinsInPool.html +1 -1
- package/docs/functions/collectRewards.html +1 -1
- package/docs/functions/deposit.html +1 -1
- package/docs/functions/depositDoubleAssetTxb.html +1 -1
- package/docs/functions/depositSingleAssetTxb.html +1 -1
- package/docs/functions/fetchAfterTransactionEvents.html +1 -1
- package/docs/functions/fetchAutoCompoundingEvents.html +1 -1
- package/docs/functions/fetchAutoCompoundingEventsGql.html +1 -1
- package/docs/functions/fetchCetusPools.html +1 -1
- package/docs/functions/fetchChainIdentifier.html +1 -1
- package/docs/functions/fetchCheckRatioEvents.html +1 -1
- package/docs/functions/fetchLiquidityChangeEvents.html +1 -1
- package/docs/functions/fetchMultiCategoryEvents.html +1 -1
- package/docs/functions/fetchMultiReceipts.html +1 -1
- package/docs/functions/fetchNftHolders.html +1 -1
- package/docs/functions/fetchPools.html +1 -1
- package/docs/functions/fetchPortfolioData.html +1 -1
- package/docs/functions/fetchProtocolData.html +1 -1
- package/docs/functions/fetchTVL.html +1 -1
- package/docs/functions/fetchUserVaultBalances.html +1 -1
- package/docs/functions/fetchUserVaults.html +1 -1
- package/docs/functions/fetchUserWalletData.html +1 -1
- package/docs/functions/fetchVoloExchangeRate.html +1 -1
- package/docs/functions/fetchWithdrawV2Events.html +1 -1
- package/docs/functions/getAirdropShare.html +1 -1
- package/docs/functions/getAllDoubleAssetVaults.html +1 -1
- package/docs/functions/getAllSingleAssetVaults.html +1 -1
- package/docs/functions/getAllVaultBalances.html +1 -1
- package/docs/functions/getAllVaults.html +1 -1
- package/docs/functions/getAlphaUnlocks.html +1 -1
- package/docs/functions/getAlphaVaultBalance.html +1 -1
- package/docs/functions/getAmounts.html +1 -1
- package/docs/functions/getApr.html +1 -1
- package/docs/functions/getAprs.html +1 -1
- package/docs/functions/getApy.html +1 -1
- package/docs/functions/getApys.html +1 -1
- package/docs/functions/getCetusInvestorTicksMap.html +1 -1
- package/docs/functions/getCetusPool.html +1 -1
- package/docs/functions/getCetusSqrtPriceMap.html +1 -1
- package/docs/functions/getCoinAmountsFromLiquidity.html +1 -1
- package/docs/functions/getConf.html +1 -1
- package/docs/functions/getCurrentTick.html +1 -1
- package/docs/functions/getDistributor.html +1 -1
- package/docs/functions/getDoubleAssetVaultBalance.html +1 -1
- package/docs/functions/getDoubleAssetVaults.html +1 -1
- package/docs/functions/getHoldersFromTransactions.html +1 -1
- package/docs/functions/getInvestor.html +1 -1
- package/docs/functions/getInvestorPoolMap.html +1 -1
- package/docs/functions/getLastAutoCompoundTime.html +1 -1
- package/docs/functions/getLatestPrices.html +1 -1
- package/docs/functions/getLiquidity.html +1 -1
- package/docs/functions/getMultiCetusPool.html +1 -1
- package/docs/functions/getMultiInvestor.html +1 -1
- package/docs/functions/getMultiLatestPrices.html +1 -1
- package/docs/functions/getMultiParentPool.html +1 -1
- package/docs/functions/getMultiPool.html +1 -1
- package/docs/functions/getMultiReceipts.html +1 -1
- package/docs/functions/getParentPool.html +1 -1
- package/docs/functions/getPool.html +1 -1
- package/docs/functions/getPoolExchangeRate.html +1 -1
- package/docs/functions/getPoolExchangeRateMap.html +1 -1
- package/docs/functions/getPoolsWeightDistribution.html +1 -1
- package/docs/functions/getPositionRange.html +1 -1
- package/docs/functions/getPositionRanges.html +1 -1
- package/docs/functions/getPositionTicks.html +1 -1
- package/docs/functions/getPriceToTick.html +1 -1
- package/docs/functions/getRebalanceHistories.html +1 -1
- package/docs/functions/getRebalanceHistory.html +1 -1
- package/docs/functions/getReceipts.html +1 -1
- package/docs/functions/getSingleAssetVaultBalance.html +1 -1
- package/docs/functions/getSingleAssetVaults.html +1 -1
- package/docs/functions/getSuiClient.html +2 -2
- package/docs/functions/getSuiNodeUrl.html +2 -2
- package/docs/functions/getTVLs-1.html +1 -1
- package/docs/functions/getTickSpacing.html +1 -1
- package/docs/functions/getTickToPrice.html +1 -1
- package/docs/functions/getTvls.html +1 -1
- package/docs/functions/getUserTokensFromTransactions.html +1 -1
- package/docs/functions/getUserTokensInUsdFromTransactions.html +1 -1
- package/docs/functions/getVaultBalance.html +1 -1
- package/docs/functions/getVaultBalanceForActiveUsers.html +1 -1
- package/docs/functions/getVaults.html +1 -1
- package/docs/functions/getXTokenVaultBalanceForActiveUsers.html +1 -1
- package/docs/functions/getZapAmounts.html +1 -1
- package/docs/functions/lastAutocompoundTime.html +1 -1
- package/docs/functions/liquidityToTokens.html +1 -1
- package/docs/functions/multiLiquidityToTokens.html +1 -1
- package/docs/functions/multiTokensToUsd.html +1 -1
- package/docs/functions/multiXTokensToLiquidity.html +1 -1
- package/docs/functions/parseUserWalletData.html +1 -1
- package/docs/functions/pendingBlueRewardAmount.html +1 -1
- package/docs/functions/setCustomSuiClient.html +2 -2
- package/docs/functions/setSuiClient.html +2 -2
- package/docs/functions/setSuiNodeUrl.html +2 -2
- package/docs/functions/setWeights.html +1 -1
- package/docs/functions/withdraw.html +1 -1
- package/docs/functions/withdrawAlphaTxb.html +1 -1
- package/docs/functions/withdrawTxb.html +1 -1
- package/docs/functions/zapDepositTxb.html +1 -1
- package/docs/index.html +2 -2
- package/docs/interfaces/Coin.html +6 -6
- package/docs/interfaces/CoinPair.html +2 -2
- package/docs/interfaces/NaviVoloData.html +2 -2
- package/docs/interfaces/PoolData.html +2 -2
- package/docs/interfaces/PoolWeightDistribution.html +2 -2
- package/docs/interfaces/RebalanceHistoryType.html +2 -2
- package/docs/modules.html +2 -2
- package/docs/types/AfterTransactionEventNode.html +1 -1
- package/docs/types/Allocator.html +1 -1
- package/docs/types/AlphaFiDoubleAssetVault.html +1 -1
- package/docs/types/AlphaFiMultiVaultBalance.html +1 -1
- package/docs/types/AlphaFiSingleAssetVault.html +1 -1
- package/docs/types/AlphaFiVault.html +1 -1
- package/docs/types/AlphaFiVaultBalance.html +1 -1
- package/docs/types/AlphaPoolType.html +1 -1
- package/docs/types/AlphaReceipt.html +1 -1
- package/docs/types/AlphaReceiptFields.html +1 -1
- package/docs/types/AlphaVaultBalance.html +1 -1
- package/docs/types/AutoBalancePoolNames.html +1 -1
- package/docs/types/AutoCompoundingEventNode.html +1 -1
- package/docs/types/BluefinInvestor.html +1 -1
- package/docs/types/BluefinPoolType.html +1 -1
- package/docs/types/BucketInvestor.html +1 -1
- package/docs/types/CetusInvestor.html +1 -1
- package/docs/types/CetusPoolType.html +1 -1
- package/docs/types/CetusSwapOptions.html +1 -1
- package/docs/types/CoinAmounts.html +1 -1
- package/docs/types/CoinName.html +1 -1
- package/docs/types/CoinType.html +1 -1
- package/docs/types/CommonInvestorFields.html +1 -1
- package/docs/types/CreatePoolOptions.html +1 -1
- package/docs/types/Distributor.html +1 -1
- package/docs/types/DoubleAssetMultiVaultBalance.html +1 -1
- package/docs/types/DoubleAssetPoolNames.html +1 -1
- package/docs/types/DoubleAssetTokenHoldings.html +1 -1
- package/docs/types/DoubleAssetVaultBalance.html +1 -1
- package/docs/types/EventCategory.html +1 -1
- package/docs/types/EventNode.html +1 -1
- package/docs/types/GetHoldersParams.html +1 -1
- package/docs/types/GetTokenHoldingsParams.html +1 -1
- package/docs/types/GetUserTokensFromTransactionsParams.html +1 -1
- package/docs/types/GetUserTokensInUsdFromTransactionsParams.html +1 -1
- package/docs/types/GetVaultBalanceForActiveUsersParams.html +1 -1
- package/docs/types/GetVaultBalanceParams.html +1 -1
- package/docs/types/HoldingsObj.html +1 -1
- package/docs/types/Icon.html +1 -1
- package/docs/types/Investor.html +1 -1
- package/docs/types/LiquidityChangeEventNode.html +1 -1
- package/docs/types/LiquidityToTokensParams.html +1 -1
- package/docs/types/LiquidityToUsdParams.html +1 -1
- package/docs/types/LoopingDebt.html +1 -1
- package/docs/types/LoopingPoolNames.html +1 -1
- package/docs/types/LpBreakdownType.html +1 -1
- package/docs/types/MemberPoolDataType.html +1 -1
- package/docs/types/MemberType.html +1 -1
- package/docs/types/MultiGetVaultBalancesParams.html +1 -1
- package/docs/types/NaviInvestor.html +1 -1
- package/docs/types/OtherReceiptFields.html +1 -1
- package/docs/types/PoolName.html +1 -1
- package/docs/types/PoolReceipt.html +1 -1
- package/docs/types/PoolType.html +1 -1
- package/docs/types/Receipt.html +1 -1
- package/docs/types/ReceiptGQL.html +1 -1
- package/docs/types/SingleAssetMultiVaultBalance.html +1 -1
- package/docs/types/SingleAssetPoolNames.html +1 -1
- package/docs/types/SingleAssetTokenHoldings.html +1 -1
- package/docs/types/SingleAssetVaultBalance.html +1 -1
- package/docs/types/SingleGetVaultBalancesParams.html +1 -1
- package/docs/types/StrategyType.html +1 -1
- package/docs/types/SuiNetwork.html +1 -1
- package/docs/types/SwapOptions.html +1 -1
- package/docs/types/TickSpacing.html +1 -1
- package/docs/types/TotalWeightType.html +1 -1
- package/docs/types/TransactionBlockType.html +1 -1
- package/docs/types/UserPoolLiquidity.html +1 -1
- package/docs/types/UserPoolTokenHoldings.html +1 -1
- package/docs/types/UserUsdHoldings.html +1 -1
- package/docs/types/VaultBalance.html +1 -1
- package/docs/types/WithdrawV2EventNode.html +1 -1
- package/docs/variables/bluefinPoolMap.html +1 -1
- package/docs/variables/cetusPoolMap.html +1 -1
- package/docs/variables/coinsList.html +1 -1
- package/docs/variables/defunctPoolsSet.html +1 -1
- package/docs/variables/doubleAssetPoolCoinMap.html +1 -1
- package/docs/variables/eventCategories.html +1 -1
- package/docs/variables/ignoredWalletsForDailyRevenue.html +1 -1
- package/docs/variables/loopingAccountAddresses.html +1 -1
- package/docs/variables/loopingPoolCoinMap.html +1 -1
- package/docs/variables/naviAssetMap.html +1 -1
- package/docs/variables/poolIdPoolNameMap.html +1 -1
- package/docs/variables/poolInfo.html +1 -1
- package/docs/variables/singleAssetPoolCoinMap.html +1 -1
- package/docs/variables/stableCoins.html +1 -1
- package/package.json +2 -2
|
@@ -572,7 +572,7 @@ const depositBluefinSuiFirstTxb = async (amountA, amountB, poolName, options, tr
|
|
|
572
572
|
}
|
|
573
573
|
if (poolName === "BLUEFIN-SUI-USDC") {
|
|
574
574
|
txb.moveCall({
|
|
575
|
-
target: `${poolinfo.packageId}::alphafi_bluefin_sui_first_pool::
|
|
575
|
+
target: `${poolinfo.packageId}::alphafi_bluefin_sui_first_pool::user_deposit_v2`,
|
|
576
576
|
typeArguments: [
|
|
577
577
|
coinsList[pool1].type,
|
|
578
578
|
coinsList[pool2].type,
|
|
@@ -593,13 +593,15 @@ const depositBluefinSuiFirstTxb = async (amountA, amountB, poolName, options, tr
|
|
|
593
593
|
txb.object(getConf().BLUEFIN_SUI_USDC_POOL),
|
|
594
594
|
txb.object(getConf().BLUEFIN_BLUE_SUI_POOL),
|
|
595
595
|
txb.object(cetusPoolMap["USDC-SUI"]),
|
|
596
|
+
txb.object(getConf().LST_INFO),
|
|
597
|
+
txb.object(getConf().SUI_SYSTEM_STATE),
|
|
596
598
|
txb.object(getConf().CLOCK_PACKAGE_ID),
|
|
597
599
|
],
|
|
598
600
|
});
|
|
599
601
|
}
|
|
600
602
|
else if (poolName === "BLUEFIN-SUI-BUCK") {
|
|
601
603
|
txb.moveCall({
|
|
602
|
-
target: `${poolinfo.packageId}::alphafi_bluefin_sui_first_pool::
|
|
604
|
+
target: `${poolinfo.packageId}::alphafi_bluefin_sui_first_pool::user_deposit_v2`,
|
|
603
605
|
typeArguments: [
|
|
604
606
|
coinsList[pool1].type,
|
|
605
607
|
coinsList[pool2].type,
|
|
@@ -620,13 +622,15 @@ const depositBluefinSuiFirstTxb = async (amountA, amountB, poolName, options, tr
|
|
|
620
622
|
txb.object(getConf().BLUEFIN_SUI_BUCK_POOL),
|
|
621
623
|
txb.object(getConf().BLUEFIN_BLUE_SUI_POOL),
|
|
622
624
|
txb.object(cetusPoolMap["BUCK-SUI"]),
|
|
625
|
+
txb.object(getConf().LST_INFO),
|
|
626
|
+
txb.object(getConf().SUI_SYSTEM_STATE),
|
|
623
627
|
txb.object(getConf().CLOCK_PACKAGE_ID),
|
|
624
628
|
],
|
|
625
629
|
});
|
|
626
630
|
}
|
|
627
631
|
else if (poolName === "BLUEFIN-SUI-AUSD") {
|
|
628
632
|
txb.moveCall({
|
|
629
|
-
target: `${poolinfo.packageId}::alphafi_bluefin_sui_first_pool::
|
|
633
|
+
target: `${poolinfo.packageId}::alphafi_bluefin_sui_first_pool::user_deposit_v2`,
|
|
630
634
|
typeArguments: [
|
|
631
635
|
coinsList[pool1].type,
|
|
632
636
|
coinsList[pool2].type,
|
|
@@ -647,13 +651,15 @@ const depositBluefinSuiFirstTxb = async (amountA, amountB, poolName, options, tr
|
|
|
647
651
|
txb.object(getConf().BLUEFIN_SUI_AUSD_POOL),
|
|
648
652
|
txb.object(getConf().BLUEFIN_BLUE_SUI_POOL),
|
|
649
653
|
txb.object(cetusPoolMap["AUSD-SUI"]),
|
|
654
|
+
txb.object(getConf().LST_INFO),
|
|
655
|
+
txb.object(getConf().SUI_SYSTEM_STATE),
|
|
650
656
|
txb.object(getConf().CLOCK_PACKAGE_ID),
|
|
651
657
|
],
|
|
652
658
|
});
|
|
653
659
|
}
|
|
654
660
|
else if (poolName === "BLUEFIN-AUTOBALANCE-SUI-USDC") {
|
|
655
661
|
txb.moveCall({
|
|
656
|
-
target: `${poolinfo.packageId}::alphafi_bluefin_sui_first_pool::
|
|
662
|
+
target: `${poolinfo.packageId}::alphafi_bluefin_sui_first_pool::user_deposit_v2`,
|
|
657
663
|
typeArguments: [
|
|
658
664
|
coinsList[pool1].type,
|
|
659
665
|
coinsList[pool2].type,
|
|
@@ -673,6 +679,8 @@ const depositBluefinSuiFirstTxb = async (amountA, amountB, poolName, options, tr
|
|
|
673
679
|
txb.object(getConf().BLUEFIN_SUI_USDC_POOL),
|
|
674
680
|
txb.object(getConf().BLUEFIN_BLUE_SUI_POOL),
|
|
675
681
|
txb.object(cetusPoolMap["USDC-SUI"]),
|
|
682
|
+
txb.object(getConf().LST_INFO),
|
|
683
|
+
txb.object(getConf().SUI_SYSTEM_STATE),
|
|
676
684
|
txb.object(getConf().CLOCK_PACKAGE_ID),
|
|
677
685
|
],
|
|
678
686
|
});
|
|
@@ -722,7 +730,7 @@ const depositBluefinType1Txb = async (amountA, amountB, poolName, options, trans
|
|
|
722
730
|
}
|
|
723
731
|
if (poolName === "BLUEFIN-USDT-USDC") {
|
|
724
732
|
txb.moveCall({
|
|
725
|
-
target: `${poolinfo.packageId}::alphafi_bluefin_type_1_pool::
|
|
733
|
+
target: `${poolinfo.packageId}::alphafi_bluefin_type_1_pool::user_deposit_v2`,
|
|
726
734
|
typeArguments: [
|
|
727
735
|
coinsList[pool1].type,
|
|
728
736
|
coinsList[pool2].type,
|
|
@@ -744,13 +752,15 @@ const depositBluefinType1Txb = async (amountA, amountB, poolName, options, trans
|
|
|
744
752
|
txb.object(getConf().BLUEFIN_BLUE_SUI_POOL),
|
|
745
753
|
txb.object(cetusPoolMap["USDC-USDT"]),
|
|
746
754
|
txb.object(cetusPoolMap["USDC-SUI"]),
|
|
755
|
+
txb.object(getConf().LST_INFO),
|
|
756
|
+
txb.object(getConf().SUI_SYSTEM_STATE),
|
|
747
757
|
txb.object(getConf().CLOCK_PACKAGE_ID),
|
|
748
758
|
],
|
|
749
759
|
});
|
|
750
760
|
}
|
|
751
761
|
else if (poolName === "BLUEFIN-AUSD-USDC") {
|
|
752
762
|
txb.moveCall({
|
|
753
|
-
target: `${poolinfo.packageId}::alphafi_bluefin_type_1_pool::
|
|
763
|
+
target: `${poolinfo.packageId}::alphafi_bluefin_type_1_pool::user_deposit_v2`,
|
|
754
764
|
typeArguments: [
|
|
755
765
|
coinsList[pool1].type,
|
|
756
766
|
coinsList[pool2].type,
|
|
@@ -772,13 +782,15 @@ const depositBluefinType1Txb = async (amountA, amountB, poolName, options, trans
|
|
|
772
782
|
txb.object(getConf().BLUEFIN_BLUE_SUI_POOL),
|
|
773
783
|
txb.object(cetusPoolMap["USDC-AUSD"]),
|
|
774
784
|
txb.object(cetusPoolMap["USDC-SUI"]),
|
|
785
|
+
txb.object(getConf().LST_INFO),
|
|
786
|
+
txb.object(getConf().SUI_SYSTEM_STATE),
|
|
775
787
|
txb.object(getConf().CLOCK_PACKAGE_ID),
|
|
776
788
|
],
|
|
777
789
|
});
|
|
778
790
|
}
|
|
779
791
|
else if (poolName === "BLUEFIN-WBTC-USDC") {
|
|
780
792
|
txb.moveCall({
|
|
781
|
-
target: `${poolinfo.packageId}::alphafi_bluefin_type_1_pool::
|
|
793
|
+
target: `${poolinfo.packageId}::alphafi_bluefin_type_1_pool::user_deposit_v2`,
|
|
782
794
|
typeArguments: [
|
|
783
795
|
coinsList[pool1].type,
|
|
784
796
|
coinsList[pool2].type,
|
|
@@ -800,13 +812,15 @@ const depositBluefinType1Txb = async (amountA, amountB, poolName, options, trans
|
|
|
800
812
|
txb.object(getConf().BLUEFIN_BLUE_SUI_POOL),
|
|
801
813
|
txb.object(cetusPoolMap["USDC-WBTC"]),
|
|
802
814
|
txb.object(cetusPoolMap["USDC-SUI"]),
|
|
815
|
+
txb.object(getConf().LST_INFO),
|
|
816
|
+
txb.object(getConf().SUI_SYSTEM_STATE),
|
|
803
817
|
txb.object(getConf().CLOCK_PACKAGE_ID),
|
|
804
818
|
],
|
|
805
819
|
});
|
|
806
820
|
}
|
|
807
821
|
else if (poolName === "BLUEFIN-SEND-USDC") {
|
|
808
822
|
txb.moveCall({
|
|
809
|
-
target: `${poolinfo.packageId}::alphafi_bluefin_type_1_pool::
|
|
823
|
+
target: `${poolinfo.packageId}::alphafi_bluefin_type_1_pool::user_deposit_v2`,
|
|
810
824
|
typeArguments: [
|
|
811
825
|
coinsList[pool1].type,
|
|
812
826
|
coinsList[pool2].type,
|
|
@@ -828,6 +842,8 @@ const depositBluefinType1Txb = async (amountA, amountB, poolName, options, trans
|
|
|
828
842
|
txb.object(getConf().BLUEFIN_BLUE_SUI_POOL),
|
|
829
843
|
txb.object(cetusPoolMap["USDC-SEND"]),
|
|
830
844
|
txb.object(cetusPoolMap["USDC-SUI"]),
|
|
845
|
+
txb.object(getConf().LST_INFO),
|
|
846
|
+
txb.object(getConf().SUI_SYSTEM_STATE),
|
|
831
847
|
txb.object(getConf().CLOCK_PACKAGE_ID),
|
|
832
848
|
],
|
|
833
849
|
});
|
|
@@ -862,7 +878,7 @@ const depositBluefinType1Txb = async (amountA, amountB, poolName, options, trans
|
|
|
862
878
|
}
|
|
863
879
|
else if (poolName === "BLUEFIN-AUTOBALANCE-USDT-USDC") {
|
|
864
880
|
txb.moveCall({
|
|
865
|
-
target: `${poolinfo.packageId}::alphafi_bluefin_type_1_pool::
|
|
881
|
+
target: `${poolinfo.packageId}::alphafi_bluefin_type_1_pool::user_deposit_v2`,
|
|
866
882
|
typeArguments: [
|
|
867
883
|
coinsList["USDT"].type,
|
|
868
884
|
coinsList["USDC"].type,
|
|
@@ -883,13 +899,15 @@ const depositBluefinType1Txb = async (amountA, amountB, poolName, options, trans
|
|
|
883
899
|
txb.object(getConf().BLUEFIN_BLUE_SUI_POOL),
|
|
884
900
|
txb.object(cetusPoolMap["USDC-USDT"]),
|
|
885
901
|
txb.object(cetusPoolMap["USDC-SUI"]),
|
|
902
|
+
txb.object(getConf().LST_INFO),
|
|
903
|
+
txb.object(getConf().SUI_SYSTEM_STATE),
|
|
886
904
|
txb.object(getConf().CLOCK_PACKAGE_ID),
|
|
887
905
|
],
|
|
888
906
|
});
|
|
889
907
|
}
|
|
890
908
|
else if (poolName === "BLUEFIN-SUIUSDT-USDC") {
|
|
891
909
|
txb.moveCall({
|
|
892
|
-
target: `${poolinfo.packageId}::alphafi_bluefin_type_1_pool::
|
|
910
|
+
target: `${poolinfo.packageId}::alphafi_bluefin_type_1_pool::user_deposit_v2`,
|
|
893
911
|
typeArguments: [
|
|
894
912
|
coinsList[pool1].type,
|
|
895
913
|
coinsList[pool2].type,
|
|
@@ -911,13 +929,15 @@ const depositBluefinType1Txb = async (amountA, amountB, poolName, options, trans
|
|
|
911
929
|
txb.object(getConf().BLUEFIN_BLUE_SUI_POOL),
|
|
912
930
|
txb.object(cetusPoolMap["USDC-SUIUSDT"]),
|
|
913
931
|
txb.object(cetusPoolMap["USDC-SUI"]),
|
|
932
|
+
txb.object(getConf().LST_INFO),
|
|
933
|
+
txb.object(getConf().SUI_SYSTEM_STATE),
|
|
914
934
|
txb.object(getConf().CLOCK_PACKAGE_ID),
|
|
915
935
|
],
|
|
916
936
|
});
|
|
917
937
|
}
|
|
918
938
|
else if (poolName === "BLUEFIN-AUTOBALANCE-SUIUSDT-USDC") {
|
|
919
939
|
txb.moveCall({
|
|
920
|
-
target: `${poolinfo.packageId}::alphafi_bluefin_type_1_pool::
|
|
940
|
+
target: `${poolinfo.packageId}::alphafi_bluefin_type_1_pool::user_deposit_v2`,
|
|
921
941
|
typeArguments: [
|
|
922
942
|
coinsList["SUIUSDT"].type,
|
|
923
943
|
coinsList["USDC"].type,
|
|
@@ -938,13 +958,15 @@ const depositBluefinType1Txb = async (amountA, amountB, poolName, options, trans
|
|
|
938
958
|
txb.object(getConf().BLUEFIN_BLUE_SUI_POOL),
|
|
939
959
|
txb.object(cetusPoolMap["USDC-SUIUSDT"]),
|
|
940
960
|
txb.object(cetusPoolMap["USDC-SUI"]),
|
|
961
|
+
txb.object(getConf().LST_INFO),
|
|
962
|
+
txb.object(getConf().SUI_SYSTEM_STATE),
|
|
941
963
|
txb.object(getConf().CLOCK_PACKAGE_ID),
|
|
942
964
|
],
|
|
943
965
|
});
|
|
944
966
|
}
|
|
945
967
|
else if (poolName === "BLUEFIN-AUTOBALANCE-DEEP-BLUE") {
|
|
946
968
|
txb.moveCall({
|
|
947
|
-
target: `${poolinfo.packageId}::alphafi_bluefin_type_1_pool::
|
|
969
|
+
target: `${poolinfo.packageId}::alphafi_bluefin_type_1_pool::user_deposit_v2`,
|
|
948
970
|
typeArguments: [
|
|
949
971
|
coinsList["DEEP"].type,
|
|
950
972
|
coinsList["BLUE"].type,
|
|
@@ -965,6 +987,8 @@ const depositBluefinType1Txb = async (amountA, amountB, poolName, options, trans
|
|
|
965
987
|
txb.object(getConf().BLUEFIN_BLUE_SUI_POOL),
|
|
966
988
|
txb.object(cetusPoolMap["BLUE-DEEP"]),
|
|
967
989
|
txb.object(cetusPoolMap["BLUE-SUI"]),
|
|
990
|
+
txb.object(getConf().LST_INFO),
|
|
991
|
+
txb.object(getConf().SUI_SYSTEM_STATE),
|
|
968
992
|
txb.object(getConf().CLOCK_PACKAGE_ID),
|
|
969
993
|
],
|
|
970
994
|
});
|
|
@@ -1014,7 +1038,7 @@ const depositBluefinType2Txb = async (amountA, amountB, poolName, options, trans
|
|
|
1014
1038
|
}
|
|
1015
1039
|
if (poolName === "BLUEFIN-ALPHA-USDC") {
|
|
1016
1040
|
txb.moveCall({
|
|
1017
|
-
target: `${poolinfo.packageId}::alphafi_bluefin_type_2_pool::
|
|
1041
|
+
target: `${poolinfo.packageId}::alphafi_bluefin_type_2_pool::user_deposit_v2`,
|
|
1018
1042
|
typeArguments: [
|
|
1019
1043
|
coinsList[pool1].type,
|
|
1020
1044
|
coinsList[pool2].type,
|
|
@@ -1036,13 +1060,15 @@ const depositBluefinType2Txb = async (amountA, amountB, poolName, options, trans
|
|
|
1036
1060
|
txb.object(getConf().BLUEFIN_BLUE_SUI_POOL),
|
|
1037
1061
|
txb.object(cetusPoolMap["ALPHA-USDC"]),
|
|
1038
1062
|
txb.object(cetusPoolMap["USDC-SUI"]),
|
|
1063
|
+
txb.object(getConf().LST_INFO),
|
|
1064
|
+
txb.object(getConf().SUI_SYSTEM_STATE),
|
|
1039
1065
|
txb.object(getConf().CLOCK_PACKAGE_ID),
|
|
1040
1066
|
],
|
|
1041
1067
|
});
|
|
1042
1068
|
}
|
|
1043
1069
|
else if (poolName === "BLUEFIN-NAVX-VSUI") {
|
|
1044
1070
|
txb.moveCall({
|
|
1045
|
-
target: `${poolinfo.packageId}::alphafi_bluefin_type_2_pool::
|
|
1071
|
+
target: `${poolinfo.packageId}::alphafi_bluefin_type_2_pool::user_deposit_v2`,
|
|
1046
1072
|
typeArguments: [
|
|
1047
1073
|
coinsList[pool1].type,
|
|
1048
1074
|
coinsList[pool2].type,
|
|
@@ -1064,13 +1090,15 @@ const depositBluefinType2Txb = async (amountA, amountB, poolName, options, trans
|
|
|
1064
1090
|
txb.object(getConf().BLUEFIN_BLUE_SUI_POOL),
|
|
1065
1091
|
txb.object(cetusPoolMap["NAVX-VSUI"]),
|
|
1066
1092
|
txb.object(cetusPoolMap["VSUI-SUI"]),
|
|
1093
|
+
txb.object(getConf().LST_INFO),
|
|
1094
|
+
txb.object(getConf().SUI_SYSTEM_STATE),
|
|
1067
1095
|
txb.object(getConf().CLOCK_PACKAGE_ID),
|
|
1068
1096
|
],
|
|
1069
1097
|
});
|
|
1070
1098
|
}
|
|
1071
1099
|
else if (poolName === "BLUEFIN-BLUE-USDC") {
|
|
1072
1100
|
txb.moveCall({
|
|
1073
|
-
target: `${poolinfo.packageId}::alphafi_bluefin_type_2_pool::
|
|
1101
|
+
target: `${poolinfo.packageId}::alphafi_bluefin_type_2_pool::user_deposit_v2`,
|
|
1074
1102
|
typeArguments: [
|
|
1075
1103
|
coinsList[pool1].type,
|
|
1076
1104
|
coinsList[pool2].type,
|
|
@@ -1092,6 +1120,8 @@ const depositBluefinType2Txb = async (amountA, amountB, poolName, options, trans
|
|
|
1092
1120
|
txb.object(getConf().BLUEFIN_DEEP_SUI_POOL),
|
|
1093
1121
|
txb.object(cetusPoolMap["BLUE-USDC"]),
|
|
1094
1122
|
txb.object(cetusPoolMap["USDC-SUI"]),
|
|
1123
|
+
txb.object(getConf().LST_INFO),
|
|
1124
|
+
txb.object(getConf().SUI_SYSTEM_STATE),
|
|
1095
1125
|
txb.object(getConf().CLOCK_PACKAGE_ID),
|
|
1096
1126
|
],
|
|
1097
1127
|
});
|
|
@@ -1197,7 +1227,7 @@ const depositBluefinSuiSecondTxb = async (amountA, amountB, poolName, options, t
|
|
|
1197
1227
|
}
|
|
1198
1228
|
if (poolName === "BLUEFIN-BLUE-SUI") {
|
|
1199
1229
|
txb.moveCall({
|
|
1200
|
-
target: `${poolinfo.packageId}::alphafi_bluefin_sui_second_pool::
|
|
1230
|
+
target: `${poolinfo.packageId}::alphafi_bluefin_sui_second_pool::user_deposit_v2`,
|
|
1201
1231
|
typeArguments: [
|
|
1202
1232
|
coinsList[pool1].type,
|
|
1203
1233
|
coinsList[pool2].type,
|
|
@@ -1218,13 +1248,15 @@ const depositBluefinSuiSecondTxb = async (amountA, amountB, poolName, options, t
|
|
|
1218
1248
|
txb.object(getConf().BLUEFIN_BLUE_SUI_POOL),
|
|
1219
1249
|
txb.object(getConf().BLUEFIN_DEEP_SUI_POOL),
|
|
1220
1250
|
txb.object(cetusPoolMap["BLUE-SUI"]),
|
|
1251
|
+
txb.object(getConf().LST_INFO),
|
|
1252
|
+
txb.object(getConf().SUI_SYSTEM_STATE),
|
|
1221
1253
|
txb.object(getConf().CLOCK_PACKAGE_ID),
|
|
1222
1254
|
],
|
|
1223
1255
|
});
|
|
1224
1256
|
}
|
|
1225
1257
|
else if (poolName === "BLUEFIN-WBTC-SUI") {
|
|
1226
1258
|
txb.moveCall({
|
|
1227
|
-
target: `${poolinfo.packageId}::alphafi_bluefin_sui_second_pool::
|
|
1259
|
+
target: `${poolinfo.packageId}::alphafi_bluefin_sui_second_pool::user_deposit_v2`,
|
|
1228
1260
|
typeArguments: [
|
|
1229
1261
|
coinsList[pool1].type,
|
|
1230
1262
|
coinsList[pool2].type,
|
|
@@ -1245,13 +1277,15 @@ const depositBluefinSuiSecondTxb = async (amountA, amountB, poolName, options, t
|
|
|
1245
1277
|
txb.object(getConf().BLUEFIN_WBTC_SUI_POOL),
|
|
1246
1278
|
txb.object(getConf().BLUEFIN_BLUE_SUI_POOL),
|
|
1247
1279
|
txb.object(cetusPoolMap["WBTC-SUI"]),
|
|
1280
|
+
txb.object(getConf().LST_INFO),
|
|
1281
|
+
txb.object(getConf().SUI_SYSTEM_STATE),
|
|
1248
1282
|
txb.object(getConf().CLOCK_PACKAGE_ID),
|
|
1249
1283
|
],
|
|
1250
1284
|
});
|
|
1251
1285
|
}
|
|
1252
1286
|
else if (poolName === "BLUEFIN-DEEP-SUI") {
|
|
1253
1287
|
txb.moveCall({
|
|
1254
|
-
target: `${poolinfo.packageId}::alphafi_bluefin_sui_second_pool::
|
|
1288
|
+
target: `${poolinfo.packageId}::alphafi_bluefin_sui_second_pool::user_deposit_v2`,
|
|
1255
1289
|
typeArguments: [
|
|
1256
1290
|
coinsList[pool1].type,
|
|
1257
1291
|
coinsList[pool2].type,
|
|
@@ -1272,6 +1306,8 @@ const depositBluefinSuiSecondTxb = async (amountA, amountB, poolName, options, t
|
|
|
1272
1306
|
txb.object(getConf().BLUEFIN_DEEP_SUI_POOL),
|
|
1273
1307
|
txb.object(getConf().BLUEFIN_BLUE_SUI_POOL),
|
|
1274
1308
|
txb.object(cetusPoolMap["DEEP-SUI"]),
|
|
1309
|
+
txb.object(getConf().LST_INFO),
|
|
1310
|
+
txb.object(getConf().SUI_SYSTEM_STATE),
|
|
1275
1311
|
txb.object(getConf().CLOCK_PACKAGE_ID),
|
|
1276
1312
|
],
|
|
1277
1313
|
});
|
|
@@ -1304,7 +1340,7 @@ const depositBluefinSuiSecondTxb = async (amountA, amountB, poolName, options, t
|
|
|
1304
1340
|
}
|
|
1305
1341
|
else if (poolName === "BLUEFIN-AUTOBALANCE-DEEP-SUI") {
|
|
1306
1342
|
txb.moveCall({
|
|
1307
|
-
target: `${poolinfo.packageId}::alphafi_bluefin_sui_second_pool::
|
|
1343
|
+
target: `${poolinfo.packageId}::alphafi_bluefin_sui_second_pool::user_deposit_v2`,
|
|
1308
1344
|
typeArguments: [
|
|
1309
1345
|
coinsList[pool1].type,
|
|
1310
1346
|
coinsList[pool2].type,
|
|
@@ -1323,13 +1359,15 @@ const depositBluefinSuiSecondTxb = async (amountA, amountB, poolName, options, t
|
|
|
1323
1359
|
txb.object(getConf().BLUEFIN_DEEP_SUI_POOL),
|
|
1324
1360
|
txb.object(getConf().BLUEFIN_BLUE_SUI_POOL),
|
|
1325
1361
|
txb.object(cetusPoolMap["DEEP-SUI"]),
|
|
1362
|
+
txb.object(getConf().LST_INFO),
|
|
1363
|
+
txb.object(getConf().SUI_SYSTEM_STATE),
|
|
1326
1364
|
txb.object(getConf().CLOCK_PACKAGE_ID),
|
|
1327
1365
|
],
|
|
1328
1366
|
});
|
|
1329
1367
|
}
|
|
1330
1368
|
else if (poolName === "BLUEFIN-AUTOBALANCE-BLUE-SUI") {
|
|
1331
1369
|
txb.moveCall({
|
|
1332
|
-
target: `${poolinfo.packageId}::alphafi_bluefin_sui_second_pool::
|
|
1370
|
+
target: `${poolinfo.packageId}::alphafi_bluefin_sui_second_pool::user_deposit_v2`,
|
|
1333
1371
|
typeArguments: [
|
|
1334
1372
|
coinsList[pool1].type,
|
|
1335
1373
|
coinsList[pool2].type,
|
|
@@ -1348,6 +1386,8 @@ const depositBluefinSuiSecondTxb = async (amountA, amountB, poolName, options, t
|
|
|
1348
1386
|
txb.object(getConf().BLUEFIN_BLUE_SUI_POOL),
|
|
1349
1387
|
txb.object(getConf().BLUEFIN_DEEP_SUI_POOL),
|
|
1350
1388
|
txb.object(cetusPoolMap["BLUE-SUI"]),
|
|
1389
|
+
txb.object(getConf().LST_INFO),
|
|
1390
|
+
txb.object(getConf().SUI_SYSTEM_STATE),
|
|
1351
1391
|
txb.object(getConf().CLOCK_PACKAGE_ID),
|
|
1352
1392
|
],
|
|
1353
1393
|
});
|
|
@@ -1455,6 +1495,126 @@ const depositBluefinStsuiTxb = async (amountA, amountB, poolName, options, trans
|
|
|
1455
1495
|
],
|
|
1456
1496
|
});
|
|
1457
1497
|
}
|
|
1498
|
+
else if (poolName === "BLUEFIN-STSUI-WSOL") {
|
|
1499
|
+
txb.moveCall({
|
|
1500
|
+
target: `${poolinfo.packageId}::alphafi_bluefin_stsui_first_pool::user_deposit`,
|
|
1501
|
+
typeArguments: [
|
|
1502
|
+
coinsList[pool1].type,
|
|
1503
|
+
coinsList[pool2].type,
|
|
1504
|
+
coinsList["BLUE"].type,
|
|
1505
|
+
],
|
|
1506
|
+
arguments: [
|
|
1507
|
+
txb.object(getConf().ALPHA_STSUI_VERSION),
|
|
1508
|
+
txb.object(getConf().VERSION),
|
|
1509
|
+
someReceipt,
|
|
1510
|
+
txb.object(poolinfo.poolId),
|
|
1511
|
+
depositCoinA,
|
|
1512
|
+
depositCoinB,
|
|
1513
|
+
txb.object(getConf().ALPHA_DISTRIBUTOR),
|
|
1514
|
+
txb.object(poolinfo.investorId),
|
|
1515
|
+
txb.object(getConf().BLUEFIN_GLOBAL_CONFIG),
|
|
1516
|
+
txb.object(getConf().CETUS_GLOBAL_CONFIG_ID),
|
|
1517
|
+
txb.object(getConf().BLUEFIN_STSUI_WSOL_POOL),
|
|
1518
|
+
txb.object(getConf().BLUEFIN_BLUE_SUI_POOL),
|
|
1519
|
+
txb.object(cetusPoolMap["WSOL-SUI"]),
|
|
1520
|
+
txb.object(bluefinPoolMap["SUI-WSOL"]),
|
|
1521
|
+
txb.object(getConf().LST_INFO),
|
|
1522
|
+
txb.object(getConf().SUI_SYSTEM_STATE),
|
|
1523
|
+
txb.pure.bool(false),
|
|
1524
|
+
txb.object(getConf().CLOCK_PACKAGE_ID),
|
|
1525
|
+
],
|
|
1526
|
+
});
|
|
1527
|
+
}
|
|
1528
|
+
else if (poolName === "BLUEFIN-STSUI-ETH") {
|
|
1529
|
+
txb.moveCall({
|
|
1530
|
+
target: `${poolinfo.packageId}::alphafi_bluefin_stsui_first_pool::user_deposit`,
|
|
1531
|
+
typeArguments: [
|
|
1532
|
+
coinsList[pool1].type,
|
|
1533
|
+
coinsList[pool2].type,
|
|
1534
|
+
coinsList["BLUE"].type,
|
|
1535
|
+
],
|
|
1536
|
+
arguments: [
|
|
1537
|
+
txb.object(getConf().ALPHA_STSUI_VERSION),
|
|
1538
|
+
txb.object(getConf().VERSION),
|
|
1539
|
+
someReceipt,
|
|
1540
|
+
txb.object(poolinfo.poolId),
|
|
1541
|
+
depositCoinA,
|
|
1542
|
+
depositCoinB,
|
|
1543
|
+
txb.object(getConf().ALPHA_DISTRIBUTOR),
|
|
1544
|
+
txb.object(poolinfo.investorId),
|
|
1545
|
+
txb.object(getConf().BLUEFIN_GLOBAL_CONFIG),
|
|
1546
|
+
txb.object(getConf().CETUS_GLOBAL_CONFIG_ID),
|
|
1547
|
+
txb.object(getConf().BLUEFIN_STSUI_ETH_POOL),
|
|
1548
|
+
txb.object(getConf().BLUEFIN_BLUE_SUI_POOL),
|
|
1549
|
+
txb.object(cetusPoolMap["ETH-SUI"]),
|
|
1550
|
+
txb.object(bluefinPoolMap["SUI-ETH"]),
|
|
1551
|
+
txb.object(getConf().LST_INFO),
|
|
1552
|
+
txb.object(getConf().SUI_SYSTEM_STATE),
|
|
1553
|
+
txb.pure.bool(false),
|
|
1554
|
+
txb.object(getConf().CLOCK_PACKAGE_ID),
|
|
1555
|
+
],
|
|
1556
|
+
});
|
|
1557
|
+
}
|
|
1558
|
+
else if (poolName === "BLUEFIN-STSUI-BUCK") {
|
|
1559
|
+
txb.moveCall({
|
|
1560
|
+
target: `${poolinfo.packageId}::alphafi_bluefin_stsui_first_pool::user_deposit`,
|
|
1561
|
+
typeArguments: [
|
|
1562
|
+
coinsList[pool1].type,
|
|
1563
|
+
coinsList[pool2].type,
|
|
1564
|
+
coinsList["BLUE"].type,
|
|
1565
|
+
],
|
|
1566
|
+
arguments: [
|
|
1567
|
+
txb.object(getConf().ALPHA_STSUI_VERSION),
|
|
1568
|
+
txb.object(getConf().VERSION),
|
|
1569
|
+
someReceipt,
|
|
1570
|
+
txb.object(poolinfo.poolId),
|
|
1571
|
+
depositCoinA,
|
|
1572
|
+
depositCoinB,
|
|
1573
|
+
txb.object(getConf().ALPHA_DISTRIBUTOR),
|
|
1574
|
+
txb.object(poolinfo.investorId),
|
|
1575
|
+
txb.object(getConf().BLUEFIN_GLOBAL_CONFIG),
|
|
1576
|
+
txb.object(getConf().CETUS_GLOBAL_CONFIG_ID),
|
|
1577
|
+
txb.object(getConf().BLUEFIN_STSUI_BUCK_POOL),
|
|
1578
|
+
txb.object(getConf().BLUEFIN_BLUE_SUI_POOL),
|
|
1579
|
+
txb.object(cetusPoolMap["BUCK-SUI"]),
|
|
1580
|
+
txb.object(bluefinPoolMap["SUI-BUCK"]),
|
|
1581
|
+
txb.object(getConf().LST_INFO),
|
|
1582
|
+
txb.object(getConf().SUI_SYSTEM_STATE),
|
|
1583
|
+
txb.pure.bool(false),
|
|
1584
|
+
txb.object(getConf().CLOCK_PACKAGE_ID),
|
|
1585
|
+
],
|
|
1586
|
+
});
|
|
1587
|
+
}
|
|
1588
|
+
else if (poolName === "BLUEFIN-STSUI-MUSD") {
|
|
1589
|
+
txb.moveCall({
|
|
1590
|
+
target: `${poolinfo.packageId}::alphafi_bluefin_stsui_first_pool::user_deposit`,
|
|
1591
|
+
typeArguments: [
|
|
1592
|
+
coinsList[pool1].type,
|
|
1593
|
+
coinsList[pool2].type,
|
|
1594
|
+
coinsList["BLUE"].type,
|
|
1595
|
+
],
|
|
1596
|
+
arguments: [
|
|
1597
|
+
txb.object(getConf().ALPHA_STSUI_VERSION),
|
|
1598
|
+
txb.object(getConf().VERSION),
|
|
1599
|
+
someReceipt,
|
|
1600
|
+
txb.object(poolinfo.poolId),
|
|
1601
|
+
depositCoinA,
|
|
1602
|
+
depositCoinB,
|
|
1603
|
+
txb.object(getConf().ALPHA_DISTRIBUTOR),
|
|
1604
|
+
txb.object(poolinfo.investorId),
|
|
1605
|
+
txb.object(getConf().BLUEFIN_GLOBAL_CONFIG),
|
|
1606
|
+
txb.object(getConf().CETUS_GLOBAL_CONFIG_ID),
|
|
1607
|
+
txb.object(getConf().BLUEFIN_STSUI_MUSD_POOL),
|
|
1608
|
+
txb.object(getConf().BLUEFIN_BLUE_SUI_POOL),
|
|
1609
|
+
txb.object(cetusPoolMap["MUSD-SUI"]),
|
|
1610
|
+
txb.object(bluefinPoolMap["SUI-MUSD"]),
|
|
1611
|
+
txb.object(getConf().LST_INFO),
|
|
1612
|
+
txb.object(getConf().SUI_SYSTEM_STATE),
|
|
1613
|
+
txb.pure.bool(true),
|
|
1614
|
+
txb.object(getConf().CLOCK_PACKAGE_ID),
|
|
1615
|
+
],
|
|
1616
|
+
});
|
|
1617
|
+
}
|
|
1458
1618
|
txb.transferObjects([coin1Arg, coin2Arg], address);
|
|
1459
1619
|
}
|
|
1460
1620
|
else {
|