@alphafi/alphafi-sdk 0.0.80 → 0.0.82
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 +6 -0
- package/dist/cjs/common/constants.d.ts.map +1 -1
- package/dist/cjs/common/constants.js +32 -10
- 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 +3 -0
- package/dist/cjs/common/maps.js.map +1 -1
- package/dist/cjs/transactions/bluefin.d.ts.map +1 -1
- package/dist/cjs/transactions/bluefin.js +337 -9
- package/dist/cjs/transactions/bluefin.js.map +1 -1
- package/dist/cjs/transactions/bucket.d.ts.map +1 -1
- package/dist/cjs/transactions/bucket.js +24 -0
- package/dist/cjs/transactions/bucket.js.map +1 -1
- package/dist/cjs/transactions/navi-looping.d.ts.map +1 -1
- package/dist/cjs/transactions/navi-looping.js +44 -44
- package/dist/cjs/transactions/navi-looping.js.map +1 -1
- package/dist/cjs/transactions/navi.d.ts.map +1 -1
- package/dist/cjs/transactions/navi.js +66 -186
- package/dist/cjs/transactions/navi.js.map +1 -1
- package/dist/esm/common/constants.d.ts +6 -0
- package/dist/esm/common/constants.d.ts.map +1 -1
- package/dist/esm/common/constants.js +32 -10
- 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 +3 -0
- package/dist/esm/common/maps.js.map +1 -1
- package/dist/esm/transactions/bluefin.d.ts.map +1 -1
- package/dist/esm/transactions/bluefin.js +337 -9
- package/dist/esm/transactions/bluefin.js.map +1 -1
- package/dist/esm/transactions/bucket.d.ts.map +1 -1
- package/dist/esm/transactions/bucket.js +25 -1
- package/dist/esm/transactions/bucket.js.map +1 -1
- package/dist/esm/transactions/navi-looping.d.ts.map +1 -1
- package/dist/esm/transactions/navi-looping.js +45 -45
- package/dist/esm/transactions/navi-looping.js.map +1 -1
- package/dist/esm/transactions/navi.d.ts.map +1 -1
- package/dist/esm/transactions/navi.js +66 -186
- package/dist/esm/transactions/navi.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/fetchAirdropClaimEvents.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/fetchEvents.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/fetchTransactions.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/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/getVaultBalance.html +1 -1
- package/docs/functions/getVaults.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/CommonEventAttributes.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/AirdropClaimEventNode.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/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/VoteCastEvent.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 +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"navi.d.ts","sourceRoot":"","sources":["../../../src/transactions/navi.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,0BAA0B,CAAC;AAYvD,OAAO,EAAE,QAAQ,EAAW,MAAM,oBAAoB,CAAC;AAQvD,wBAAsB,aAAa,CACjC,MAAM,EAAE,MAAM,EACd,QAAQ,EAAE,QAAQ,EAClB,OAAO,EAAE;IAAE,OAAO,EAAE,MAAM,CAAA;CAAE,GAC3B,OAAO,CAAC,WAAW,CAAC,
|
|
1
|
+
{"version":3,"file":"navi.d.ts","sourceRoot":"","sources":["../../../src/transactions/navi.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,0BAA0B,CAAC;AAYvD,OAAO,EAAE,QAAQ,EAAW,MAAM,oBAAoB,CAAC;AAQvD,wBAAsB,aAAa,CACjC,MAAM,EAAE,MAAM,EACd,QAAQ,EAAE,QAAQ,EAClB,OAAO,EAAE;IAAE,OAAO,EAAE,MAAM,CAAA;CAAE,GAC3B,OAAO,CAAC,WAAW,CAAC,CA+kDtB;AAED,wBAAsB,cAAc,CAClC,OAAO,EAAE,MAAM,EACf,QAAQ,EAAE,QAAQ,EAClB,OAAO,EAAE;IAAE,OAAO,EAAE,MAAM,CAAA;CAAE,GAC3B,OAAO,CAAC,WAAW,CAAC,CAm/CtB"}
|
|
@@ -40,7 +40,7 @@ export async function naviDepositTx(amount, poolName, options) {
|
|
|
40
40
|
: []) {
|
|
41
41
|
if (reward.reward_coin_type === coinsList["NAVX"].type.substring(2)) {
|
|
42
42
|
txb.moveCall({
|
|
43
|
-
target: `${C.ALPHA_LATEST_PACKAGE_ID}::alphafi_navi_investor::
|
|
43
|
+
target: `${C.ALPHA_LATEST_PACKAGE_ID}::alphafi_navi_investor::collect_v3_rewards_with_one_swap_bluefin`,
|
|
44
44
|
typeArguments: [
|
|
45
45
|
coinsList[singleAssetPoolCoinMap[poolName].coin].type,
|
|
46
46
|
coinsList["NAVX"].type,
|
|
@@ -53,14 +53,14 @@ export async function naviDepositTx(amount, poolName, options) {
|
|
|
53
53
|
txb.pure.u8(Number(naviAssetMap[singleAssetPoolCoinMap[poolName].coin])),
|
|
54
54
|
txb.object(C.NAVI_INCENTIVE_V3),
|
|
55
55
|
txb.object(C.NAVI_NAVX_REWARDS_POOL),
|
|
56
|
-
txb.object(C.
|
|
57
|
-
txb.object(
|
|
56
|
+
txb.object(C.BLUEFIN_GLOBAL_CONFIG),
|
|
57
|
+
txb.object(bluefinPoolMap["NAVX-SUI"]),
|
|
58
58
|
],
|
|
59
59
|
});
|
|
60
60
|
}
|
|
61
61
|
else if (reward.reward_coin_type === coinsList["VSUI"].type.substring(2)) {
|
|
62
62
|
txb.moveCall({
|
|
63
|
-
target: `${C.ALPHA_LATEST_PACKAGE_ID}::alphafi_navi_investor::
|
|
63
|
+
target: `${C.ALPHA_LATEST_PACKAGE_ID}::alphafi_navi_investor::collect_v3_rewards_with_one_swap_bluefin`,
|
|
64
64
|
typeArguments: [
|
|
65
65
|
coinsList[singleAssetPoolCoinMap[poolName].coin].type,
|
|
66
66
|
coinsList["VSUI"].type,
|
|
@@ -73,8 +73,8 @@ export async function naviDepositTx(amount, poolName, options) {
|
|
|
73
73
|
txb.pure.u8(Number(naviAssetMap[singleAssetPoolCoinMap[poolName].coin])),
|
|
74
74
|
txb.object(C.NAVI_INCENTIVE_V3),
|
|
75
75
|
txb.object(C.NAVI_VSUI_REWARDS_POOL),
|
|
76
|
-
txb.object(
|
|
77
|
-
txb.object(C.
|
|
76
|
+
txb.object(bluefinPoolMap["VSUI-SUI"]),
|
|
77
|
+
txb.object(C.BLUEFIN_GLOBAL_CONFIG),
|
|
78
78
|
],
|
|
79
79
|
});
|
|
80
80
|
}
|
|
@@ -147,7 +147,7 @@ export async function naviDepositTx(amount, poolName, options) {
|
|
|
147
147
|
: []) {
|
|
148
148
|
if (reward.reward_coin_type === coinsList["NAVX"].type.substring(2)) {
|
|
149
149
|
txb.moveCall({
|
|
150
|
-
target: `${C.ALPHA_LATEST_PACKAGE_ID}::alphafi_navi_investor::
|
|
150
|
+
target: `${C.ALPHA_LATEST_PACKAGE_ID}::alphafi_navi_investor::collect_v3_rewards_with_two_swaps_bluefin`,
|
|
151
151
|
typeArguments: [
|
|
152
152
|
coinsList[singleAssetPoolCoinMap[poolName].coin].type,
|
|
153
153
|
coinsList["SUI"].type,
|
|
@@ -161,9 +161,9 @@ export async function naviDepositTx(amount, poolName, options) {
|
|
|
161
161
|
txb.pure.u8(Number(naviAssetMap[singleAssetPoolCoinMap[poolName].coin])),
|
|
162
162
|
txb.object(C.NAVI_INCENTIVE_V3),
|
|
163
163
|
txb.object(C.NAVI_NAVX_REWARDS_POOL),
|
|
164
|
-
txb.object(
|
|
165
|
-
txb.object(
|
|
166
|
-
txb.object(C.
|
|
164
|
+
txb.object(bluefinPoolMap["NAVX-SUI"]),
|
|
165
|
+
txb.object(bluefinPoolMap[`${singleAssetPoolCoinMap[poolName].coin}-SUI`]),
|
|
166
|
+
txb.object(C.BLUEFIN_GLOBAL_CONFIG),
|
|
167
167
|
],
|
|
168
168
|
});
|
|
169
169
|
}
|
|
@@ -295,11 +295,10 @@ export async function naviDepositTx(amount, poolName, options) {
|
|
|
295
295
|
: []) {
|
|
296
296
|
if (reward.reward_coin_type === coinsList["NAVX"].type.substring(2)) {
|
|
297
297
|
txb.moveCall({
|
|
298
|
-
target: `${C.ALPHA_LATEST_PACKAGE_ID}::alphafi_navi_investor::
|
|
298
|
+
target: `${C.ALPHA_LATEST_PACKAGE_ID}::alphafi_navi_investor::collect_v3_rewards_with_two_swaps_bluefin`,
|
|
299
299
|
typeArguments: [
|
|
300
300
|
coinsList[singleAssetPoolCoinMap[poolName].coin].type,
|
|
301
|
-
coinsList["
|
|
302
|
-
coinsList["SUI"].type,
|
|
301
|
+
coinsList["USDC"].type,
|
|
303
302
|
coinsList["NAVX"].type,
|
|
304
303
|
],
|
|
305
304
|
arguments: [
|
|
@@ -310,20 +309,18 @@ export async function naviDepositTx(amount, poolName, options) {
|
|
|
310
309
|
txb.pure.u8(Number(naviAssetMap[singleAssetPoolCoinMap[poolName].coin])),
|
|
311
310
|
txb.object(C.NAVI_INCENTIVE_V3),
|
|
312
311
|
txb.object(C.NAVI_NAVX_REWARDS_POOL),
|
|
313
|
-
txb.object(
|
|
314
|
-
txb.object(
|
|
315
|
-
txb.object(
|
|
316
|
-
txb.object(C.CETUS_GLOBAL_CONFIG_ID),
|
|
312
|
+
txb.object(bluefinPoolMap["NAVX-USDC"]),
|
|
313
|
+
txb.object(bluefinPoolMap[`${singleAssetPoolCoinMap[poolName].coin}-USDC`]),
|
|
314
|
+
txb.object(C.BLUEFIN_GLOBAL_CONFIG),
|
|
317
315
|
],
|
|
318
316
|
});
|
|
319
317
|
}
|
|
320
318
|
else if (reward.reward_coin_type === coinsList["VSUI"].type.substring(2)) {
|
|
321
319
|
txb.moveCall({
|
|
322
|
-
target: `${C.ALPHA_LATEST_PACKAGE_ID}::alphafi_navi_investor::
|
|
320
|
+
target: `${C.ALPHA_LATEST_PACKAGE_ID}::alphafi_navi_investor::collect_v3_rewards_with_two_swaps_bluefin_v2`,
|
|
323
321
|
typeArguments: [
|
|
324
322
|
coinsList[singleAssetPoolCoinMap[poolName].coin].type,
|
|
325
|
-
coinsList["
|
|
326
|
-
coinsList["SUI"].type,
|
|
323
|
+
coinsList["USDC"].type,
|
|
327
324
|
coinsList["VSUI"].type,
|
|
328
325
|
],
|
|
329
326
|
arguments: [
|
|
@@ -334,10 +331,9 @@ export async function naviDepositTx(amount, poolName, options) {
|
|
|
334
331
|
txb.pure.u8(Number(naviAssetMap[singleAssetPoolCoinMap[poolName].coin])),
|
|
335
332
|
txb.object(C.NAVI_INCENTIVE_V3),
|
|
336
333
|
txb.object(C.NAVI_VSUI_REWARDS_POOL),
|
|
337
|
-
txb.object(
|
|
338
|
-
txb.object(
|
|
339
|
-
txb.object(
|
|
340
|
-
txb.object(C.CETUS_GLOBAL_CONFIG_ID),
|
|
334
|
+
txb.object(bluefinPoolMap["VSUI-USDC"]),
|
|
335
|
+
txb.object(bluefinPoolMap[`${singleAssetPoolCoinMap[poolName].coin}-USDC`]),
|
|
336
|
+
txb.object(C.BLUEFIN_GLOBAL_CONFIG),
|
|
341
337
|
],
|
|
342
338
|
});
|
|
343
339
|
}
|
|
@@ -373,10 +369,9 @@ export async function naviDepositTx(amount, poolName, options) {
|
|
|
373
369
|
: []) {
|
|
374
370
|
if (reward.reward_coin_type === coinsList["NAVX"].type.substring(2)) {
|
|
375
371
|
txb.moveCall({
|
|
376
|
-
target: `${C.ALPHA_LATEST_PACKAGE_ID}::alphafi_navi_investor::
|
|
372
|
+
target: `${C.ALPHA_LATEST_PACKAGE_ID}::alphafi_navi_investor::collect_v3_rewards_with_two_swaps_bluefin_v2`,
|
|
377
373
|
typeArguments: [
|
|
378
374
|
coinsList[singleAssetPoolCoinMap[poolName].coin].type,
|
|
379
|
-
coinsList["BUCK"].type,
|
|
380
375
|
coinsList["SUI"].type,
|
|
381
376
|
coinsList["NAVX"].type,
|
|
382
377
|
],
|
|
@@ -388,19 +383,17 @@ export async function naviDepositTx(amount, poolName, options) {
|
|
|
388
383
|
txb.pure.u8(Number(naviAssetMap[singleAssetPoolCoinMap[poolName].coin])),
|
|
389
384
|
txb.object(C.NAVI_INCENTIVE_V3),
|
|
390
385
|
txb.object(C.NAVI_NAVX_REWARDS_POOL),
|
|
391
|
-
txb.object(
|
|
392
|
-
txb.object(
|
|
393
|
-
txb.object(
|
|
394
|
-
txb.object(C.CETUS_GLOBAL_CONFIG_ID),
|
|
386
|
+
txb.object(bluefinPoolMap["NAVX-SUI"]),
|
|
387
|
+
txb.object(bluefinPoolMap[`SUI-${singleAssetPoolCoinMap[poolName].coin}`]),
|
|
388
|
+
txb.object(C.BLUEFIN_GLOBAL_CONFIG),
|
|
395
389
|
],
|
|
396
390
|
});
|
|
397
391
|
}
|
|
398
392
|
else if (reward.reward_coin_type === coinsList["VSUI"].type.substring(2)) {
|
|
399
393
|
txb.moveCall({
|
|
400
|
-
target: `${C.ALPHA_LATEST_PACKAGE_ID}::alphafi_navi_investor::
|
|
394
|
+
target: `${C.ALPHA_LATEST_PACKAGE_ID}::alphafi_navi_investor::collect_v3_rewards_with_two_swaps_bluefin_v2`,
|
|
401
395
|
typeArguments: [
|
|
402
396
|
coinsList[singleAssetPoolCoinMap[poolName].coin].type,
|
|
403
|
-
coinsList["BUCK"].type,
|
|
404
397
|
coinsList["SUI"].type,
|
|
405
398
|
coinsList["VSUI"].type,
|
|
406
399
|
],
|
|
@@ -412,10 +405,9 @@ export async function naviDepositTx(amount, poolName, options) {
|
|
|
412
405
|
txb.pure.u8(Number(naviAssetMap[singleAssetPoolCoinMap[poolName].coin])),
|
|
413
406
|
txb.object(C.NAVI_INCENTIVE_V3),
|
|
414
407
|
txb.object(C.NAVI_VSUI_REWARDS_POOL),
|
|
415
|
-
txb.object(
|
|
416
|
-
txb.object(
|
|
417
|
-
txb.object(
|
|
418
|
-
txb.object(C.CETUS_GLOBAL_CONFIG_ID),
|
|
408
|
+
txb.object(bluefinPoolMap["VSUI-SUI"]),
|
|
409
|
+
txb.object(bluefinPoolMap[`SUI-${singleAssetPoolCoinMap[poolName].coin}`]),
|
|
410
|
+
txb.object(C.BLUEFIN_GLOBAL_CONFIG),
|
|
419
411
|
],
|
|
420
412
|
});
|
|
421
413
|
}
|
|
@@ -545,10 +537,10 @@ export async function naviDepositTx(amount, poolName, options) {
|
|
|
545
537
|
}
|
|
546
538
|
else if (reward.reward_coin_type === coinsList["VSUI"].type.substring(2)) {
|
|
547
539
|
txb.moveCall({
|
|
548
|
-
target: `${C.ALPHA_3_LATEST_PACKAGE_ID}::alphafi_navi_pool_v2::
|
|
540
|
+
target: `${C.ALPHA_3_LATEST_PACKAGE_ID}::alphafi_navi_pool_v2::collect_reward_with_two_swaps_bluefin`,
|
|
549
541
|
typeArguments: [
|
|
550
542
|
coinsList[singleAssetPoolCoinMap[poolName].coin].type,
|
|
551
|
-
coinsList["
|
|
543
|
+
coinsList["USDC"].type,
|
|
552
544
|
coinsList["VSUI"].type,
|
|
553
545
|
],
|
|
554
546
|
arguments: [
|
|
@@ -558,42 +550,15 @@ export async function naviDepositTx(amount, poolName, options) {
|
|
|
558
550
|
txb.pure.u8(Number(naviAssetMap[singleAssetPoolCoinMap[poolName].coin])),
|
|
559
551
|
txb.object(C.NAVI_INCENTIVE_V3),
|
|
560
552
|
txb.object(C.NAVI_VSUI_REWARDS_POOL),
|
|
561
|
-
txb.object(C.
|
|
562
|
-
txb.object(
|
|
563
|
-
txb.object(
|
|
553
|
+
txb.object(C.BLUEFIN_GLOBAL_CONFIG),
|
|
554
|
+
txb.object(bluefinPoolMap["VSUI-USDC"]),
|
|
555
|
+
txb.object(bluefinPoolMap[`${singleAssetPoolCoinMap[poolName].coin}-USDC`]),
|
|
564
556
|
txb.object(C.CLOCK_PACKAGE_ID),
|
|
565
557
|
],
|
|
566
558
|
});
|
|
567
559
|
}
|
|
568
560
|
}
|
|
569
561
|
}
|
|
570
|
-
txb.moveCall({
|
|
571
|
-
target: `${C.ALPHA_3_LATEST_PACKAGE_ID}::alphafi_navi_pool_v2::update_pool_with_three_swaps`,
|
|
572
|
-
typeArguments: [
|
|
573
|
-
coinsList[singleAssetPoolCoinMap[poolName].coin].type,
|
|
574
|
-
coinsList["USDC"].type,
|
|
575
|
-
coinsList["SUI"].type,
|
|
576
|
-
coinsList["VSUI"].type,
|
|
577
|
-
],
|
|
578
|
-
arguments: [
|
|
579
|
-
txb.object(C.ALPHA_3_VERSION),
|
|
580
|
-
txb.object(poolData.poolId),
|
|
581
|
-
txb.object(poolData.investorId),
|
|
582
|
-
txb.object(C.ALPHA_DISTRIBUTOR),
|
|
583
|
-
txb.object(C.PRICE_ORACLE),
|
|
584
|
-
txb.object(C.NAVI_STORAGE),
|
|
585
|
-
txb.object(poolData.parentPoolId),
|
|
586
|
-
txb.pure.u8(Number(naviAssetMap[singleAssetPoolCoinMap[poolName].coin])),
|
|
587
|
-
txb.object(C.NAVI_INCENTIVE_V1),
|
|
588
|
-
txb.object(C.NAVI_INCENTIVE_V2),
|
|
589
|
-
txb.object(C.NAVI_VSUI_FUNDS_POOL),
|
|
590
|
-
txb.object(C.CETUS_GLOBAL_CONFIG_ID),
|
|
591
|
-
txb.object(cetusPoolMap["VSUI-SUI"]),
|
|
592
|
-
txb.object(cetusPoolMap["USDC-SUI"]),
|
|
593
|
-
txb.object(cetusPoolMap[`USDC-${singleAssetPoolCoinMap[poolName].coin}`]),
|
|
594
|
-
txb.object(C.CLOCK_PACKAGE_ID),
|
|
595
|
-
],
|
|
596
|
-
});
|
|
597
562
|
txb.moveCall({
|
|
598
563
|
target: `${C.ALPHA_3_LATEST_PACKAGE_ID}::alphafi_navi_pool_v2::user_deposit`,
|
|
599
564
|
typeArguments: [
|
|
@@ -1105,10 +1070,10 @@ export async function naviDepositTx(amount, poolName, options) {
|
|
|
1105
1070
|
}
|
|
1106
1071
|
else if (reward.reward_coin_type === coinsList["VSUI"].type.substring(2)) {
|
|
1107
1072
|
txb.moveCall({
|
|
1108
|
-
target: `${C.ALPHA_3_LATEST_PACKAGE_ID}::alphafi_navi_pool_v2::
|
|
1073
|
+
target: `${C.ALPHA_3_LATEST_PACKAGE_ID}::alphafi_navi_pool_v2::collect_reward_with_two_swaps_bluefin`,
|
|
1109
1074
|
typeArguments: [
|
|
1110
1075
|
coinsList[singleAssetPoolCoinMap[poolName].coin].type,
|
|
1111
|
-
coinsList["
|
|
1076
|
+
coinsList["USDC"].type,
|
|
1112
1077
|
coinsList["VSUI"].type,
|
|
1113
1078
|
],
|
|
1114
1079
|
arguments: [
|
|
@@ -1118,42 +1083,15 @@ export async function naviDepositTx(amount, poolName, options) {
|
|
|
1118
1083
|
txb.pure.u8(Number(naviAssetMap[singleAssetPoolCoinMap[poolName].coin])),
|
|
1119
1084
|
txb.object(C.NAVI_INCENTIVE_V3),
|
|
1120
1085
|
txb.object(C.NAVI_VSUI_REWARDS_POOL),
|
|
1121
|
-
txb.object(C.
|
|
1122
|
-
txb.object(
|
|
1123
|
-
txb.object(
|
|
1086
|
+
txb.object(C.BLUEFIN_GLOBAL_CONFIG),
|
|
1087
|
+
txb.object(bluefinPoolMap["VSUI-USDC"]),
|
|
1088
|
+
txb.object(bluefinPoolMap[`${singleAssetPoolCoinMap[poolName].coin}-USDC`]),
|
|
1124
1089
|
txb.object(C.CLOCK_PACKAGE_ID),
|
|
1125
1090
|
],
|
|
1126
1091
|
});
|
|
1127
1092
|
}
|
|
1128
1093
|
}
|
|
1129
1094
|
}
|
|
1130
|
-
txb.moveCall({
|
|
1131
|
-
target: `${C.ALPHA_3_LATEST_PACKAGE_ID}::alphafi_navi_pool_v2::update_pool_with_three_swaps`,
|
|
1132
|
-
typeArguments: [
|
|
1133
|
-
coinsList[singleAssetPoolCoinMap[poolName].coin].type,
|
|
1134
|
-
coinsList["USDC"].type,
|
|
1135
|
-
coinsList["SUI"].type,
|
|
1136
|
-
coinsList["VSUI"].type,
|
|
1137
|
-
],
|
|
1138
|
-
arguments: [
|
|
1139
|
-
txb.object(C.ALPHA_3_VERSION),
|
|
1140
|
-
txb.object(poolData.poolId),
|
|
1141
|
-
txb.object(poolData.investorId),
|
|
1142
|
-
txb.object(C.ALPHA_DISTRIBUTOR),
|
|
1143
|
-
txb.object(C.PRICE_ORACLE),
|
|
1144
|
-
txb.object(C.NAVI_STORAGE),
|
|
1145
|
-
txb.object(poolData.parentPoolId),
|
|
1146
|
-
txb.pure.u8(Number(naviAssetMap[singleAssetPoolCoinMap[poolName].coin])),
|
|
1147
|
-
txb.object(C.NAVI_INCENTIVE_V1),
|
|
1148
|
-
txb.object(C.NAVI_INCENTIVE_V2),
|
|
1149
|
-
txb.object(C.NAVI_VSUI_FUNDS_POOL),
|
|
1150
|
-
txb.object(C.CETUS_GLOBAL_CONFIG_ID),
|
|
1151
|
-
txb.object(cetusPoolMap["VSUI-SUI"]),
|
|
1152
|
-
txb.object(cetusPoolMap["USDC-SUI"]),
|
|
1153
|
-
txb.object(cetusPoolMap[`USDC-${singleAssetPoolCoinMap[poolName].coin}`]),
|
|
1154
|
-
txb.object(C.CLOCK_PACKAGE_ID),
|
|
1155
|
-
],
|
|
1156
|
-
});
|
|
1157
1095
|
txb.moveCall({
|
|
1158
1096
|
target: `${C.ALPHA_3_LATEST_PACKAGE_ID}::alphafi_navi_pool_v2::user_deposit`,
|
|
1159
1097
|
typeArguments: [
|
|
@@ -1389,7 +1327,7 @@ export async function naviWithdrawTx(xTokens, poolName, options) {
|
|
|
1389
1327
|
: []) {
|
|
1390
1328
|
if (reward.reward_coin_type === coinsList["NAVX"].type.substring(2)) {
|
|
1391
1329
|
txb.moveCall({
|
|
1392
|
-
target: `${C.ALPHA_LATEST_PACKAGE_ID}::alphafi_navi_investor::
|
|
1330
|
+
target: `${C.ALPHA_LATEST_PACKAGE_ID}::alphafi_navi_investor::collect_v3_rewards_with_one_swap_bluefin`,
|
|
1393
1331
|
typeArguments: [
|
|
1394
1332
|
coinsList[singleAssetPoolCoinMap[poolName].coin].type,
|
|
1395
1333
|
coinsList["NAVX"].type,
|
|
@@ -1402,14 +1340,14 @@ export async function naviWithdrawTx(xTokens, poolName, options) {
|
|
|
1402
1340
|
txb.pure.u8(Number(naviAssetMap[singleAssetPoolCoinMap[poolName].coin])),
|
|
1403
1341
|
txb.object(C.NAVI_INCENTIVE_V3),
|
|
1404
1342
|
txb.object(C.NAVI_NAVX_REWARDS_POOL),
|
|
1405
|
-
txb.object(
|
|
1406
|
-
txb.object(C.
|
|
1343
|
+
txb.object(bluefinPoolMap["NAVX-SUI"]),
|
|
1344
|
+
txb.object(C.BLUEFIN_GLOBAL_CONFIG),
|
|
1407
1345
|
],
|
|
1408
1346
|
});
|
|
1409
1347
|
}
|
|
1410
1348
|
else if (reward.reward_coin_type === coinsList["VSUI"].type.substring(2)) {
|
|
1411
1349
|
txb.moveCall({
|
|
1412
|
-
target: `${C.ALPHA_LATEST_PACKAGE_ID}::alphafi_navi_investor::
|
|
1350
|
+
target: `${C.ALPHA_LATEST_PACKAGE_ID}::alphafi_navi_investor::collect_v3_rewards_with_one_swap_bluefin`,
|
|
1413
1351
|
typeArguments: [
|
|
1414
1352
|
coinsList[singleAssetPoolCoinMap[poolName].coin].type,
|
|
1415
1353
|
coinsList["VSUI"].type,
|
|
@@ -1422,8 +1360,8 @@ export async function naviWithdrawTx(xTokens, poolName, options) {
|
|
|
1422
1360
|
txb.pure.u8(Number(naviAssetMap[singleAssetPoolCoinMap[poolName].coin])),
|
|
1423
1361
|
txb.object(C.NAVI_INCENTIVE_V3),
|
|
1424
1362
|
txb.object(C.NAVI_VSUI_REWARDS_POOL),
|
|
1425
|
-
txb.object(
|
|
1426
|
-
txb.object(C.
|
|
1363
|
+
txb.object(bluefinPoolMap["VSUI-SUI"]),
|
|
1364
|
+
txb.object(C.BLUEFIN_GLOBAL_CONFIG),
|
|
1427
1365
|
],
|
|
1428
1366
|
});
|
|
1429
1367
|
}
|
|
@@ -1459,7 +1397,7 @@ export async function naviWithdrawTx(xTokens, poolName, options) {
|
|
|
1459
1397
|
: []) {
|
|
1460
1398
|
if (reward.reward_coin_type === coinsList["NAVX"].type.substring(2)) {
|
|
1461
1399
|
txb.moveCall({
|
|
1462
|
-
target: `${C.ALPHA_LATEST_PACKAGE_ID}::alphafi_navi_investor::
|
|
1400
|
+
target: `${C.ALPHA_LATEST_PACKAGE_ID}::alphafi_navi_investor::collect_v3_rewards_with_two_swaps_bluefin`,
|
|
1463
1401
|
typeArguments: [
|
|
1464
1402
|
coinsList[singleAssetPoolCoinMap[poolName].coin].type,
|
|
1465
1403
|
coinsList["SUI"].type,
|
|
@@ -1473,9 +1411,9 @@ export async function naviWithdrawTx(xTokens, poolName, options) {
|
|
|
1473
1411
|
txb.pure.u8(Number(naviAssetMap[singleAssetPoolCoinMap[poolName].coin])),
|
|
1474
1412
|
txb.object(C.NAVI_INCENTIVE_V3),
|
|
1475
1413
|
txb.object(C.NAVI_NAVX_REWARDS_POOL),
|
|
1476
|
-
txb.object(
|
|
1477
|
-
txb.object(
|
|
1478
|
-
txb.object(C.
|
|
1414
|
+
txb.object(bluefinPoolMap["NAVX-SUI"]),
|
|
1415
|
+
txb.object(bluefinPoolMap[`${singleAssetPoolCoinMap[poolName].coin}-SUI`]),
|
|
1416
|
+
txb.object(C.BLUEFIN_GLOBAL_CONFIG),
|
|
1479
1417
|
],
|
|
1480
1418
|
});
|
|
1481
1419
|
}
|
|
@@ -1683,10 +1621,9 @@ export async function naviWithdrawTx(xTokens, poolName, options) {
|
|
|
1683
1621
|
: []) {
|
|
1684
1622
|
if (reward.reward_coin_type === coinsList["NAVX"].type.substring(2)) {
|
|
1685
1623
|
txb.moveCall({
|
|
1686
|
-
target: `${C.ALPHA_LATEST_PACKAGE_ID}::alphafi_navi_investor::
|
|
1624
|
+
target: `${C.ALPHA_LATEST_PACKAGE_ID}::alphafi_navi_investor::collect_v3_rewards_with_two_swaps_bluefin_v2`,
|
|
1687
1625
|
typeArguments: [
|
|
1688
1626
|
coinsList[singleAssetPoolCoinMap[poolName].coin].type,
|
|
1689
|
-
coinsList["BUCK"].type,
|
|
1690
1627
|
coinsList["SUI"].type,
|
|
1691
1628
|
coinsList["NAVX"].type,
|
|
1692
1629
|
],
|
|
@@ -1698,19 +1635,17 @@ export async function naviWithdrawTx(xTokens, poolName, options) {
|
|
|
1698
1635
|
txb.pure.u8(Number(naviAssetMap[singleAssetPoolCoinMap[poolName].coin])),
|
|
1699
1636
|
txb.object(C.NAVI_INCENTIVE_V3),
|
|
1700
1637
|
txb.object(C.NAVI_NAVX_REWARDS_POOL),
|
|
1701
|
-
txb.object(
|
|
1702
|
-
txb.object(
|
|
1703
|
-
txb.object(
|
|
1704
|
-
txb.object(C.CETUS_GLOBAL_CONFIG_ID),
|
|
1638
|
+
txb.object(bluefinPoolMap["NAVX-SUI"]),
|
|
1639
|
+
txb.object(bluefinPoolMap[`SUI-${singleAssetPoolCoinMap[poolName].coin}`]),
|
|
1640
|
+
txb.object(C.BLUEFIN_GLOBAL_CONFIG),
|
|
1705
1641
|
],
|
|
1706
1642
|
});
|
|
1707
1643
|
}
|
|
1708
1644
|
else if (reward.reward_coin_type === coinsList["VSUI"].type.substring(2)) {
|
|
1709
1645
|
txb.moveCall({
|
|
1710
|
-
target: `${C.ALPHA_LATEST_PACKAGE_ID}::alphafi_navi_investor::
|
|
1646
|
+
target: `${C.ALPHA_LATEST_PACKAGE_ID}::alphafi_navi_investor::collect_v3_rewards_with_two_swaps_bluefin_v2`,
|
|
1711
1647
|
typeArguments: [
|
|
1712
1648
|
coinsList[singleAssetPoolCoinMap[poolName].coin].type,
|
|
1713
|
-
coinsList["BUCK"].type,
|
|
1714
1649
|
coinsList["SUI"].type,
|
|
1715
1650
|
coinsList["VSUI"].type,
|
|
1716
1651
|
],
|
|
@@ -1722,10 +1657,9 @@ export async function naviWithdrawTx(xTokens, poolName, options) {
|
|
|
1722
1657
|
txb.pure.u8(Number(naviAssetMap[singleAssetPoolCoinMap[poolName].coin])),
|
|
1723
1658
|
txb.object(C.NAVI_INCENTIVE_V3),
|
|
1724
1659
|
txb.object(C.NAVI_VSUI_REWARDS_POOL),
|
|
1725
|
-
txb.object(
|
|
1726
|
-
txb.object(
|
|
1727
|
-
txb.object(
|
|
1728
|
-
txb.object(C.CETUS_GLOBAL_CONFIG_ID),
|
|
1660
|
+
txb.object(bluefinPoolMap["VSUI-SUI"]),
|
|
1661
|
+
txb.object(bluefinPoolMap[`SUI-${singleAssetPoolCoinMap[poolName].coin}`]),
|
|
1662
|
+
txb.object(C.BLUEFIN_GLOBAL_CONFIG),
|
|
1729
1663
|
],
|
|
1730
1664
|
});
|
|
1731
1665
|
}
|
|
@@ -1853,10 +1787,10 @@ export async function naviWithdrawTx(xTokens, poolName, options) {
|
|
|
1853
1787
|
}
|
|
1854
1788
|
else if (reward.reward_coin_type === coinsList["VSUI"].type.substring(2)) {
|
|
1855
1789
|
txb.moveCall({
|
|
1856
|
-
target: `${C.ALPHA_3_LATEST_PACKAGE_ID}::alphafi_navi_pool_v2::
|
|
1790
|
+
target: `${C.ALPHA_3_LATEST_PACKAGE_ID}::alphafi_navi_pool_v2::collect_reward_with_two_swaps_bluefin`,
|
|
1857
1791
|
typeArguments: [
|
|
1858
1792
|
coinsList[singleAssetPoolCoinMap[poolName].coin].type,
|
|
1859
|
-
coinsList["
|
|
1793
|
+
coinsList["USDC"].type,
|
|
1860
1794
|
coinsList["VSUI"].type,
|
|
1861
1795
|
],
|
|
1862
1796
|
arguments: [
|
|
@@ -1866,42 +1800,15 @@ export async function naviWithdrawTx(xTokens, poolName, options) {
|
|
|
1866
1800
|
txb.pure.u8(Number(naviAssetMap[singleAssetPoolCoinMap[poolName].coin])),
|
|
1867
1801
|
txb.object(C.NAVI_INCENTIVE_V3),
|
|
1868
1802
|
txb.object(C.NAVI_VSUI_REWARDS_POOL),
|
|
1869
|
-
txb.object(C.
|
|
1870
|
-
txb.object(
|
|
1871
|
-
txb.object(
|
|
1803
|
+
txb.object(C.BLUEFIN_GLOBAL_CONFIG),
|
|
1804
|
+
txb.object(bluefinPoolMap["VSUI-USDC"]),
|
|
1805
|
+
txb.object(bluefinPoolMap[`${singleAssetPoolCoinMap[poolName].coin}-USDC`]),
|
|
1872
1806
|
txb.object(C.CLOCK_PACKAGE_ID),
|
|
1873
1807
|
],
|
|
1874
1808
|
});
|
|
1875
1809
|
}
|
|
1876
1810
|
}
|
|
1877
1811
|
}
|
|
1878
|
-
txb.moveCall({
|
|
1879
|
-
target: `${C.ALPHA_3_LATEST_PACKAGE_ID}::alphafi_navi_pool_v2::update_pool_with_three_swaps`,
|
|
1880
|
-
typeArguments: [
|
|
1881
|
-
coinsList[singleAssetPoolCoinMap[poolName].coin].type,
|
|
1882
|
-
coinsList["USDC"].type,
|
|
1883
|
-
coinsList["SUI"].type,
|
|
1884
|
-
coinsList["VSUI"].type,
|
|
1885
|
-
],
|
|
1886
|
-
arguments: [
|
|
1887
|
-
txb.object(C.ALPHA_3_VERSION),
|
|
1888
|
-
txb.object(poolData.poolId),
|
|
1889
|
-
txb.object(poolData.investorId),
|
|
1890
|
-
txb.object(C.ALPHA_DISTRIBUTOR),
|
|
1891
|
-
txb.object(C.PRICE_ORACLE),
|
|
1892
|
-
txb.object(C.NAVI_STORAGE),
|
|
1893
|
-
txb.object(poolData.parentPoolId),
|
|
1894
|
-
txb.pure.u8(Number(naviAssetMap[singleAssetPoolCoinMap[poolName].coin])),
|
|
1895
|
-
txb.object(C.NAVI_INCENTIVE_V1),
|
|
1896
|
-
txb.object(C.NAVI_INCENTIVE_V2),
|
|
1897
|
-
txb.object(C.NAVI_VSUI_FUNDS_POOL),
|
|
1898
|
-
txb.object(C.CETUS_GLOBAL_CONFIG_ID),
|
|
1899
|
-
txb.object(cetusPoolMap["VSUI-SUI"]),
|
|
1900
|
-
txb.object(cetusPoolMap["USDC-SUI"]),
|
|
1901
|
-
txb.object(cetusPoolMap[`USDC-${singleAssetPoolCoinMap[poolName].coin}`]),
|
|
1902
|
-
txb.object(C.CLOCK_PACKAGE_ID),
|
|
1903
|
-
],
|
|
1904
|
-
});
|
|
1905
1812
|
txb.moveCall({
|
|
1906
1813
|
target: `${C.ALPHA_3_LATEST_PACKAGE_ID}::alphafi_navi_pool_v2::user_withdraw`,
|
|
1907
1814
|
typeArguments: [coinsList[singleAssetPoolCoinMap[poolName].coin].type],
|
|
@@ -2413,10 +2320,10 @@ export async function naviWithdrawTx(xTokens, poolName, options) {
|
|
|
2413
2320
|
}
|
|
2414
2321
|
else if (reward.reward_coin_type === coinsList["VSUI"].type.substring(2)) {
|
|
2415
2322
|
txb.moveCall({
|
|
2416
|
-
target: `${C.ALPHA_3_LATEST_PACKAGE_ID}::alphafi_navi_pool_v2::
|
|
2323
|
+
target: `${C.ALPHA_3_LATEST_PACKAGE_ID}::alphafi_navi_pool_v2::collect_reward_with_two_swaps_bluefin`,
|
|
2417
2324
|
typeArguments: [
|
|
2418
2325
|
coinsList[singleAssetPoolCoinMap[poolName].coin].type,
|
|
2419
|
-
coinsList["
|
|
2326
|
+
coinsList["USDC"].type,
|
|
2420
2327
|
coinsList["VSUI"].type,
|
|
2421
2328
|
],
|
|
2422
2329
|
arguments: [
|
|
@@ -2426,42 +2333,15 @@ export async function naviWithdrawTx(xTokens, poolName, options) {
|
|
|
2426
2333
|
txb.pure.u8(Number(naviAssetMap[singleAssetPoolCoinMap[poolName].coin])),
|
|
2427
2334
|
txb.object(C.NAVI_INCENTIVE_V3),
|
|
2428
2335
|
txb.object(C.NAVI_VSUI_REWARDS_POOL),
|
|
2429
|
-
txb.object(C.
|
|
2430
|
-
txb.object(
|
|
2431
|
-
txb.object(
|
|
2336
|
+
txb.object(C.BLUEFIN_GLOBAL_CONFIG),
|
|
2337
|
+
txb.object(bluefinPoolMap["VSUI-USDC"]),
|
|
2338
|
+
txb.object(bluefinPoolMap[`${singleAssetPoolCoinMap[poolName].coin}-USDC`]),
|
|
2432
2339
|
txb.object(C.CLOCK_PACKAGE_ID),
|
|
2433
2340
|
],
|
|
2434
2341
|
});
|
|
2435
2342
|
}
|
|
2436
2343
|
}
|
|
2437
2344
|
}
|
|
2438
|
-
txb.moveCall({
|
|
2439
|
-
target: `${C.ALPHA_3_LATEST_PACKAGE_ID}::alphafi_navi_pool_v2::update_pool_with_three_swaps`,
|
|
2440
|
-
typeArguments: [
|
|
2441
|
-
coinsList[singleAssetPoolCoinMap[poolName].coin].type,
|
|
2442
|
-
coinsList["USDC"].type,
|
|
2443
|
-
coinsList["SUI"].type,
|
|
2444
|
-
coinsList["VSUI"].type,
|
|
2445
|
-
],
|
|
2446
|
-
arguments: [
|
|
2447
|
-
txb.object(C.ALPHA_3_VERSION),
|
|
2448
|
-
txb.object(poolData.poolId),
|
|
2449
|
-
txb.object(poolData.investorId),
|
|
2450
|
-
txb.object(C.ALPHA_DISTRIBUTOR),
|
|
2451
|
-
txb.object(C.PRICE_ORACLE),
|
|
2452
|
-
txb.object(C.NAVI_STORAGE),
|
|
2453
|
-
txb.object(poolData.parentPoolId),
|
|
2454
|
-
txb.pure.u8(Number(naviAssetMap[singleAssetPoolCoinMap[poolName].coin])),
|
|
2455
|
-
txb.object(C.NAVI_INCENTIVE_V1),
|
|
2456
|
-
txb.object(C.NAVI_INCENTIVE_V2),
|
|
2457
|
-
txb.object(C.NAVI_VSUI_FUNDS_POOL),
|
|
2458
|
-
txb.object(C.CETUS_GLOBAL_CONFIG_ID),
|
|
2459
|
-
txb.object(cetusPoolMap["VSUI-SUI"]),
|
|
2460
|
-
txb.object(cetusPoolMap["USDC-SUI"]),
|
|
2461
|
-
txb.object(cetusPoolMap[`USDC-${singleAssetPoolCoinMap[poolName].coin}`]),
|
|
2462
|
-
txb.object(C.CLOCK_PACKAGE_ID),
|
|
2463
|
-
],
|
|
2464
|
-
});
|
|
2465
2345
|
txb.moveCall({
|
|
2466
2346
|
target: `${C.ALPHA_3_LATEST_PACKAGE_ID}::alphafi_navi_pool_v2::user_withdraw`,
|
|
2467
2347
|
typeArguments: [coinsList[singleAssetPoolCoinMap[poolName].coin].type],
|