@alphafi/alphafi-sdk 0.0.71 → 0.0.73
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 +51 -0
- package/dist/cjs/common/constants.d.ts.map +1 -1
- package/dist/cjs/common/constants.js +54 -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 +45 -4
- package/dist/cjs/common/maps.js.map +1 -1
- package/dist/cjs/common/types.d.ts +1 -1
- package/dist/cjs/common/types.d.ts.map +1 -1
- package/dist/cjs/common/types.js.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 +6 -2
- package/dist/cjs/transactions/collect_rewards.js.map +1 -1
- package/dist/cjs/transactions/navi.js +5 -5
- package/dist/cjs/transactions/navi.js.map +1 -1
- package/dist/cjs/utils/prices.d.ts.map +1 -1
- package/dist/cjs/utils/prices.js +1 -10
- package/dist/cjs/utils/prices.js.map +1 -1
- package/dist/esm/common/constants.d.ts +51 -0
- package/dist/esm/common/constants.d.ts.map +1 -1
- package/dist/esm/common/constants.js +54 -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 +45 -4
- package/dist/esm/common/maps.js.map +1 -1
- package/dist/esm/common/types.d.ts +1 -1
- package/dist/esm/common/types.d.ts.map +1 -1
- package/dist/esm/common/types.js.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 +6 -2
- package/dist/esm/transactions/collect_rewards.js.map +1 -1
- package/dist/esm/transactions/navi.js +5 -5
- package/dist/esm/transactions/navi.js.map +1 -1
- package/dist/esm/utils/prices.d.ts.map +1 -1
- package/dist/esm/utils/prices.js +1 -10
- 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/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/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 +9 -9
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"prices.d.ts","sourceRoot":"","sources":["../../../src/utils/prices.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"prices.d.ts","sourceRoot":"","sources":["../../../src/utils/prices.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAC;AAKpD,eAAO,MAAM,kBAAkB,EAAE,eAAe,EAkC/C,CAAC;AAEF,wBAAsB,oBAAoB,kBAQzC;AAED,wBAAsB,eAAe,CACnC,KAAK,EAAE,eAAe,EAAE,EACxB,WAAW,EAAE,OAAO,GACnB,OAAO,CAAC,MAAM,EAAE,CAAC,CAsCnB;AAED,wBAAsB,wBAAwB,CAC5C,KAAK,EAAE,eAAe,EAAE,EACxB,WAAW,EAAE,OAAO,GACnB,OAAO,CAAC;IAAE,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,GAAG,SAAS,CAAA;CAAE,CAAC,CAWhD"}
|
package/dist/cjs/utils/prices.js
CHANGED
|
@@ -4,9 +4,7 @@ exports.coinsToGetFromPyth = void 0;
|
|
|
4
4
|
exports.getMultiLatestPrices = getMultiLatestPrices;
|
|
5
5
|
exports.getLatestPrices = getLatestPrices;
|
|
6
6
|
exports.getLatestTokenPricePairs = getLatestTokenPricePairs;
|
|
7
|
-
const decimal_js_1 = require("decimal.js");
|
|
8
7
|
const simpleCache_js_1 = require("./simpleCache.js");
|
|
9
|
-
const stsui_sdk_1 = require("@alphafi/stsui-sdk");
|
|
10
8
|
const latestPriceCache = new simpleCache_js_1.SimpleCache(5000);
|
|
11
9
|
exports.coinsToGetFromPyth = [
|
|
12
10
|
"SUI/USD",
|
|
@@ -41,6 +39,7 @@ exports.coinsToGetFromPyth = [
|
|
|
41
39
|
"STSUI/USD",
|
|
42
40
|
"SUIUSDT/USD",
|
|
43
41
|
"SUIBTC/USD",
|
|
42
|
+
"LBTC/USD",
|
|
44
43
|
];
|
|
45
44
|
async function getMultiLatestPrices() {
|
|
46
45
|
const pricesFromPyth = await getLatestPrices(exports.coinsToGetFromPyth, true);
|
|
@@ -72,14 +71,6 @@ async function getLatestPrices(pairs, ignoreCache) {
|
|
|
72
71
|
const fetchedPrices = await fetchPricesFromAlphaAPI(pairsToFetch);
|
|
73
72
|
for (let i = 0; i < pairsToFetch.length; i++) {
|
|
74
73
|
const price = fetchedPrices[i];
|
|
75
|
-
if (pairsToFetch[i] === "STSUI/USD") {
|
|
76
|
-
// todo: remove this when stsui is listed somewhere
|
|
77
|
-
const suiPrice = await getLatestPrices(["SUI/USD"], false);
|
|
78
|
-
const stsuiExchangeRate = await (0, stsui_sdk_1.stSuiExchangeRate)((0, stsui_sdk_1.getConf)().LST_INFO, false);
|
|
79
|
-
price.price = new decimal_js_1.Decimal(suiPrice[0])
|
|
80
|
-
.mul(stsuiExchangeRate)
|
|
81
|
-
.toString();
|
|
82
|
-
}
|
|
83
74
|
prices[pairsToFetchIndexes[i]] = price.price;
|
|
84
75
|
}
|
|
85
76
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"prices.js","sourceRoot":"","sources":["../../../src/utils/prices.ts"],"names":[],"mappings":";;;
|
|
1
|
+
{"version":3,"file":"prices.js","sourceRoot":"","sources":["../../../src/utils/prices.ts"],"names":[],"mappings":";;;AAyCA,oDAQC;AAED,0CAyCC;AAED,4DAcC;AA3GD,qDAA+C;AAE/C,MAAM,gBAAgB,GAAG,IAAI,4BAAW,CAAS,IAAI,CAAC,CAAC;AAE1C,QAAA,kBAAkB,GAAsB;IACnD,SAA4B;IAC5B,UAA6B;IAC7B,UAA6B;IAC7B,WAA8B;IAC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,CAAC,OAAO,CAAC,CAAC,IAAI,EAAE,KAAK,EAAE,EAAE;QAC5B,QAAQ,CAAC,IAAI,CAAC,GAAG,MAAM,CAAC,KAAK,CAAC,CAAC;IACjC,CAAC,CAAC,CAAC;IAEH,OAAO,QAAQ,CAAC;AAClB,CAAC;AAOD,KAAK,UAAU,uBAAuB,CACpC,KAAwB;IAExB,MAAM,OAAO,GAAG,mDAAmD,KAAK,CAAC,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC;IACrF,IAAI,MAAM,GAAoB,EAAE,CAAC;IACjC,IAAI,CAAC;QACH,MAAM,GAAG,GAAG,MAAM,KAAK,CAAC,OAAO,CAAC,CAAC;QACjC,IAAI,CAAC,GAAG,CAAC,EAAE,EAAE,CAAC;YACZ,MAAM,IAAI,KAAK,CAAC,uBAAuB,GAAG,CAAC,MAAM,EAAE,CAAC,CAAC;QACvD,CAAC;QACD,MAAM,IAAI,GAAG,CAAC,MAAM,GAAG,CAAC,IAAI,EAAE,CAAoB,CAAC;QACnD,MAAM,GAAG,IAAI,CAAC;IAChB,CAAC;IAAC,OAAO,KAAK,EAAE,CAAC;QACf,OAAO,CAAC,KAAK,CAAC,mCAAmC,KAAK,GAAG,EAAE,KAAK,CAAC,CAAC;QAClE,MAAM,KAAK,CAAC;IACd,CAAC;IACD,OAAO,MAAM,CAAC;AAChB,CAAC","sourcesContent":["import { PythPriceIdPair } from \"../common/pyth.js\";\nimport { SimpleCache } from \"./simpleCache.js\";\n\nconst latestPriceCache = new SimpleCache<string>(5000);\n\nexport const coinsToGetFromPyth: PythPriceIdPair[] = [\n \"SUI/USD\" as PythPriceIdPair,\n \"USDC/USD\" as PythPriceIdPair,\n \"USDT/USD\" as PythPriceIdPair,\n \"HASUI/USD\" as PythPriceIdPair,\n \"CETUS/USD\" as PythPriceIdPair,\n \"VSUI/USD\" as PythPriceIdPair,\n \"NAVX/USD\" as PythPriceIdPair,\n \"SCA/USD\" as PythPriceIdPair,\n \"AFSUI/USD\" as PythPriceIdPair,\n \"WETH/USD\" as PythPriceIdPair,\n \"WBTC/USD\" as PythPriceIdPair,\n \"TURBOS/USD\" as PythPriceIdPair,\n \"CELO/USD\" as PythPriceIdPair,\n \"SLP/USD\" as PythPriceIdPair,\n \"SOL/USD\" as PythPriceIdPair,\n \"APT/USD\" as PythPriceIdPair,\n \"BUCK/USD\" as PythPriceIdPair,\n \"WSOL/USD\" as PythPriceIdPair,\n \"WUSDC/USD\" as PythPriceIdPair,\n \"ALPHA/USD\" as PythPriceIdPair,\n \"FUD/USD\" as PythPriceIdPair,\n \"BLUB/USD\" as PythPriceIdPair,\n \"ETH/USD\" as PythPriceIdPair,\n \"DEEP/USD\" as PythPriceIdPair,\n \"AUSD/USD\" as PythPriceIdPair,\n \"USDY/USD\" as PythPriceIdPair,\n \"NS/USD\" as PythPriceIdPair,\n \"BLUE/USD\" as PythPriceIdPair,\n \"SEND/USD\" as PythPriceIdPair,\n \"STSUI/USD\" as PythPriceIdPair,\n \"SUIUSDT/USD\" as PythPriceIdPair,\n \"SUIBTC/USD\" as PythPriceIdPair,\n \"LBTC/USD\" as PythPriceIdPair,\n];\n\nexport async function getMultiLatestPrices() {\n const pricesFromPyth = await getLatestPrices(coinsToGetFromPyth, true);\n pricesFromPyth.forEach((price, index) => {\n if (price) {\n const cacheKey = `getLatestPrice-${coinsToGetFromPyth[index]}`;\n latestPriceCache.set(cacheKey, price);\n }\n });\n}\n\nexport async function getLatestPrices(\n pairs: PythPriceIdPair[],\n ignoreCache: boolean,\n): Promise<string[]> {\n const pairsToFetch: PythPriceIdPair[] = [];\n const pairsToFetchIndexes: number[] = [];\n\n const prices: string[] = pairs.map((pair, index) => {\n const cacheKey = `getLatestPrice-${pair}`;\n if (ignoreCache) {\n latestPriceCache.delete(cacheKey);\n }\n const cachedResponse = latestPriceCache.get(cacheKey);\n if (cachedResponse) {\n return cachedResponse;\n }\n pairsToFetch.push(pair);\n pairsToFetchIndexes.push(index);\n return \"\";\n });\n if (pairsToFetch.length > 0) {\n try {\n const fetchedPrices = await fetchPricesFromAlphaAPI(pairsToFetch);\n for (let i = 0; i < pairsToFetch.length; i++) {\n const price = fetchedPrices[i];\n prices[pairsToFetchIndexes[i]] = price.price;\n }\n } catch (error) {\n console.error(\n `Error in getLatestPrices for pairs ${pairsToFetch}:`,\n error,\n );\n }\n }\n prices.forEach((price, i) => {\n if (price) {\n const cacheKey = `getLatestPrice-${pairs[i]}`;\n latestPriceCache.set(cacheKey, price);\n }\n });\n return prices;\n}\n\nexport async function getLatestTokenPricePairs(\n pairs: PythPriceIdPair[],\n ignoreCache: boolean,\n): Promise<{ [key: string]: string | undefined }> {\n const priceMap: { [key: string]: string | undefined } = {};\n\n // Use getLatestPrices to fetch all prices at once\n const prices = await getLatestPrices(pairs, ignoreCache);\n\n pairs.forEach((pair, index) => {\n priceMap[pair] = prices[index];\n });\n\n return priceMap;\n}\n\ninterface PythPricePair {\n pair: PythPriceIdPair;\n price: string;\n}\n\nasync function fetchPricesFromAlphaAPI(\n pairs: PythPriceIdPair[],\n): Promise<PythPricePair[]> {\n const req_url = `https://api.alphafi.xyz/alpha/fetchPrices?pairs=${pairs.join(\",\")}`;\n let prices: PythPricePair[] = [];\n try {\n const res = await fetch(req_url);\n if (!res.ok) {\n throw new Error(`HTTP error! status: ${res.status}`);\n }\n const data = (await res.json()) as PythPricePair[];\n prices = data;\n } catch (error) {\n console.error(`Error fetching prices for pairs ${pairs}:`, error);\n throw error;\n }\n return prices;\n}\n"]}
|
|
@@ -121,6 +121,7 @@ export declare const conf: {
|
|
|
121
121
|
USDC_ETH_POOL: string;
|
|
122
122
|
DEEP_SUI_POOL: string;
|
|
123
123
|
BUCK_SUI_POOL: string;
|
|
124
|
+
USDC_SUIUSDT_POOL: string;
|
|
124
125
|
ALPHAFI_NAVI_SUI_POOL: string;
|
|
125
126
|
ALPHAFI_NAVI_VSUI_POOL: string;
|
|
126
127
|
ALPHAFI_NAVI_WETH_POOL: string;
|
|
@@ -161,6 +162,7 @@ export declare const conf: {
|
|
|
161
162
|
ALPHAFI_BLUEFIN_STSUI_WSOL_POOL: string;
|
|
162
163
|
ALPHAFI_BLUEFIN_ALPHA_STSUI_POOL: string;
|
|
163
164
|
ALPHAFI_BLUEFIN_SUIBTC_USDC_POOL: string;
|
|
165
|
+
ALPHAFI_BLUEFIN_LBTC_SUIBTC_POOL: string;
|
|
164
166
|
ALPHAFI_BLUEFIN_AUTOBALANCE_USDT_USDC_POOL: string;
|
|
165
167
|
ALPHAFI_BLUEFIN_AUTOBALANCE_SUI_USDC_POOL: string;
|
|
166
168
|
ALPHAFI_BLUEFIN_SUIUSDT_USDC_POOL: string;
|
|
@@ -219,6 +221,8 @@ export declare const conf: {
|
|
|
219
221
|
USDC_SUIBTC_CETUS_POOL_ID: string;
|
|
220
222
|
SUIUSDT_SUI_CETUS_POOL_ID: string;
|
|
221
223
|
LBTC_SUI_CETUS_POOL_ID: string;
|
|
224
|
+
SUIBTC_LBTC_CETUS_POOL_ID: string;
|
|
225
|
+
SUIBTC_SUI_CETUS_POOL_ID: string;
|
|
222
226
|
CETUS_REWARDER_GLOBAL_VAULT_ID: string;
|
|
223
227
|
CETUS_GLOBAL_CONFIG_ID: string;
|
|
224
228
|
ALPHA_CETUS_INVESTOR: string;
|
|
@@ -245,6 +249,7 @@ export declare const conf: {
|
|
|
245
249
|
USDC_ETH_CETUS_INVESTOR: string;
|
|
246
250
|
DEEP_SUI_CETUS_INVESTOR: string;
|
|
247
251
|
BUCK_SUI_CETUS_INVESTOR: string;
|
|
252
|
+
USDC_SUIUSDT_CETUS_INVESTOR: string;
|
|
248
253
|
NAVI_SUI_INVESTOR: string;
|
|
249
254
|
NAVI_VSUI_INVESTOR: string;
|
|
250
255
|
NAVI_WETH_INVESTOR: string;
|
|
@@ -288,6 +293,7 @@ export declare const conf: {
|
|
|
288
293
|
ALPHAFI_BLUEFIN_STSUI_BUCK_INVESTOR: string;
|
|
289
294
|
ALPHAFI_BLUEFIN_STSUI_MUSD_INVESTOR: string;
|
|
290
295
|
ALPHAFI_BLUEFIN_SUIBTC_USDC_INVESTOR: string;
|
|
296
|
+
ALPHAFI_BLUEFIN_LBTC_SUIBTC_INVESTOR: string;
|
|
291
297
|
ALPHAFI_BLUEFIN_AUTOBALANCE_USDT_USDC_INVESTOR: string;
|
|
292
298
|
ALPHAFI_BLUEFIN_AUTOBALANCE_SUI_USDC_INVESTOR: string;
|
|
293
299
|
ALPHAFI_BLUEFIN_AUTOBALANCE_SUIUSDT_USDC_INVESTOR: string;
|
|
@@ -370,6 +376,8 @@ export declare const conf: {
|
|
|
370
376
|
NAVI_SUIBTC_POOL_RECEIPT: string;
|
|
371
377
|
NAVI_SUIUSDT_POOL_RECEIPT: string;
|
|
372
378
|
ALPHAFI_BLUEFIN_AUTOBALANCE_SUI_LBTC_RECEIPT: string;
|
|
379
|
+
ALPHAFI_BLUEFIN_LBTC_SUIBTC_RECEIPT: string;
|
|
380
|
+
USDC_SUIUSDT_POOL_RECEIPT: string;
|
|
373
381
|
ALPHA_POOL_RECEIPT_NAME: string;
|
|
374
382
|
ALPHA_SUI_POOL_RECEIPT_NAME: string;
|
|
375
383
|
USDT_WUSDC_POOL_RECEIPT_NAME: string;
|
|
@@ -444,6 +452,8 @@ export declare const conf: {
|
|
|
444
452
|
NAVI_SUIBTC_POOL_RECEIPT_NAME: string;
|
|
445
453
|
NAVI_SUIUSDT_POOL_RECEIPT_NAME: string;
|
|
446
454
|
ALPHAFI_BLUEFIN_AUTOBALANCE_SUI_LBTC_RECEIPT_NAME: string;
|
|
455
|
+
ALPHAFI_BLUEFIN_LBTC_SUIBTC_RECEIPT_NAME: string;
|
|
456
|
+
USDC_SUIUSDT_POOL_RECEIPT_NAME: string;
|
|
447
457
|
NAVI_USDC_USDT_LOOP_ACCOUNT_ADDRESS: string;
|
|
448
458
|
NAVI_SUI_VSUI_LOOP_ACCOUNT_ADDRESS: string;
|
|
449
459
|
NAVI_HASUI_SUI_LOOP_ACCOUNT_ADDRESS: string;
|
|
@@ -537,6 +547,8 @@ export declare const conf: {
|
|
|
537
547
|
NAVI_SUIBTC_POOL_AUTO_COMPOUNDING_EVENT: string;
|
|
538
548
|
NAVI_SUIUSDT_POOL_AUTO_COMPOUNDING_EVENT: string;
|
|
539
549
|
ALPHAFI_BLUEFIN_AUTOBALANCE_SUI_LBTC_POOL_AUTO_COMPOUNDING_EVENT: string;
|
|
550
|
+
ALPHAFI_BLUEFIN_LBTC_SUIBTC_POOL_AUTO_COMPOUNDING_EVENT: string;
|
|
551
|
+
USDC_SUIUSDT_POOL_AUTO_COMPOUNDING_EVENT: string;
|
|
540
552
|
ALPHA_SUI_POOL_REBALANCE_EVENT: string;
|
|
541
553
|
USDT_WUSDC_POOL_REBALANCE_EVENT: string;
|
|
542
554
|
USDY_WUSDC_POOL_REBALANCE_EVENT: string;
|
|
@@ -591,6 +603,8 @@ export declare const conf: {
|
|
|
591
603
|
ALPHAFI_BLUEFIN_FUNGIBLE_STSUI_SUI_POOL_REBALANCE_EVENT: string;
|
|
592
604
|
ALPHAFI_BLUEFIN_SUIBTC_USDC_POOL_REBALANCE_EVENT: string;
|
|
593
605
|
ALPHAFI_BLUEFIN_AUTOBALANCE_SUI_LBTC_POOL_REBALANCE_EVENT: string;
|
|
606
|
+
ALPHAFI_BLUEFIN_LBTC_SUIBTC_POOL_REBALANCE_EVENT: string;
|
|
607
|
+
USDC_SUIUSDT_POOL_REBALANCE_EVENT: string;
|
|
594
608
|
ALPHA_POOL_LIQUIDITY_CHANGE_EVENT: string;
|
|
595
609
|
ALPHA_SUI_POOL_LIQUIDITY_CHANGE_EVENT: string;
|
|
596
610
|
USDT_WUSDC_POOL_LIQUIDITY_CHANGE_EVENT: string;
|
|
@@ -665,6 +679,8 @@ export declare const conf: {
|
|
|
665
679
|
NAVI_SUIBTC_POOL_LIQUIDITY_CHANGE_EVENT: string;
|
|
666
680
|
NAVI_SUIUSDT_POOL_LIQUIDITY_CHANGE_EVENT: string;
|
|
667
681
|
ALPHAFI_BLUEFIN_AUTOBALANCE_SUI_LBTC_POOL_LIQUIDITY_CHANGE_EVENT: string;
|
|
682
|
+
ALPHAFI_BLUEFIN_LBTC_SUIBTC_POOL_LIQUIDITY_CHANGE_EVENT: string;
|
|
683
|
+
USDC_SUIUSDT_POOL_LIQUIDITY_CHANGE_EVENT: string;
|
|
668
684
|
ALPHA_POOL_WITHDRAW_V2_EVENT: string;
|
|
669
685
|
ALPHA_POOL_AFTER_TRANSACTION_EVENT: string;
|
|
670
686
|
ALPHA_SUI_POOL_AFTER_TRANSACTION_EVENT: string;
|
|
@@ -728,6 +744,7 @@ export declare const conf: {
|
|
|
728
744
|
BLUEFIN_SUI_SUIBTC_POOL: string;
|
|
729
745
|
BLUEFIN_VSUI_SUI_POOL: string;
|
|
730
746
|
BLUEFIN_SUI_LBTC_POOL: string;
|
|
747
|
+
BLUEFIN_LBTC_SUIBTC_POOL: string;
|
|
731
748
|
LST_INFO: string;
|
|
732
749
|
HAEDEL_STAKING: string;
|
|
733
750
|
BUCKET_PROTOCOL: string;
|
|
@@ -949,6 +966,7 @@ export declare const conf: {
|
|
|
949
966
|
USDC_ETH_POOL: string;
|
|
950
967
|
DEEP_SUI_POOL: string;
|
|
951
968
|
BUCK_SUI_POOL: string;
|
|
969
|
+
USDC_SUIUSDT_POOL: string;
|
|
952
970
|
ALPHAFI_NAVI_SUI_POOL: string;
|
|
953
971
|
ALPHAFI_NAVI_VSUI_POOL: string;
|
|
954
972
|
ALPHAFI_NAVI_WETH_POOL: string;
|
|
@@ -993,6 +1011,7 @@ export declare const conf: {
|
|
|
993
1011
|
ALPHAFI_BLUEFIN_STSUI_MUSD_POOL: string;
|
|
994
1012
|
ALPHAFI_BLUEFIN_FUNGIBLE_STSUI_SUI_POOL: string;
|
|
995
1013
|
ALPHAFI_BLUEFIN_SUIBTC_USDC_POOL: string;
|
|
1014
|
+
ALPHAFI_BLUEFIN_LBTC_SUIBTC_POOL: string;
|
|
996
1015
|
ALPHAFI_BLUEFIN_AUTOBALANCE_USDT_USDC_POOL: string;
|
|
997
1016
|
ALPHAFI_BLUEFIN_AUTOBALANCE_SUI_USDC_POOL: string;
|
|
998
1017
|
ALPHAFI_BLUEFIN_AUTOBALANCE_BLUE_SUI_POOL: string;
|
|
@@ -1047,6 +1066,8 @@ export declare const conf: {
|
|
|
1047
1066
|
USDC_SUIBTC_CETUS_POOL_ID: string;
|
|
1048
1067
|
SUIUSDT_SUI_CETUS_POOL_ID: string;
|
|
1049
1068
|
LBTC_SUI_CETUS_POOL_ID: string;
|
|
1069
|
+
SUIBTC_LBTC_CETUS_POOL_ID: string;
|
|
1070
|
+
SUIBTC_SUI_CETUS_POOL_ID: string;
|
|
1050
1071
|
CETUS_REWARDER_GLOBAL_VAULT_ID: string;
|
|
1051
1072
|
CETUS_GLOBAL_CONFIG_ID: string;
|
|
1052
1073
|
ALPHA_CETUS_INVESTOR: string;
|
|
@@ -1073,6 +1094,7 @@ export declare const conf: {
|
|
|
1073
1094
|
USDC_ETH_CETUS_INVESTOR: string;
|
|
1074
1095
|
DEEP_SUI_CETUS_INVESTOR: string;
|
|
1075
1096
|
BUCK_SUI_CETUS_INVESTOR: string;
|
|
1097
|
+
USDC_SUIUSDT_CETUS_INVESTOR: string;
|
|
1076
1098
|
NAVI_SUI_INVESTOR: string;
|
|
1077
1099
|
NAVI_VSUI_INVESTOR: string;
|
|
1078
1100
|
NAVI_WETH_INVESTOR: string;
|
|
@@ -1116,6 +1138,7 @@ export declare const conf: {
|
|
|
1116
1138
|
ALPHAFI_BLUEFIN_STSUI_BUCK_INVESTOR: string;
|
|
1117
1139
|
ALPHAFI_BLUEFIN_STSUI_MUSD_INVESTOR: string;
|
|
1118
1140
|
ALPHAFI_BLUEFIN_SUIBTC_USDC_INVESTOR: string;
|
|
1141
|
+
ALPHAFI_BLUEFIN_LBTC_SUIBTC_INVESTOR: string;
|
|
1119
1142
|
ALPHAFI_BLUEFIN_AUTOBALANCE_USDT_USDC_INVESTOR: string;
|
|
1120
1143
|
ALPHAFI_BLUEFIN_AUTOBALANCE_SUI_USDC_INVESTOR: string;
|
|
1121
1144
|
ALPHAFI_BLUEFIN_AUTOBALANCE_SUIUSDT_USDC_INVESTOR: string;
|
|
@@ -1191,6 +1214,8 @@ export declare const conf: {
|
|
|
1191
1214
|
ALPHAFI_BLUEFIN_SUIBTC_USDC_RECEIPT: string;
|
|
1192
1215
|
NAVI_SUIBTC_POOL_RECEIPT: string;
|
|
1193
1216
|
NAVI_SUIUSDT_POOL_RECEIPT: string;
|
|
1217
|
+
ALPHAFI_BLUEFIN_LBTC_SUIBTC_RECEIPT: string;
|
|
1218
|
+
USDC_SUIUSDT_POOL_RECEIPT: string;
|
|
1194
1219
|
ALPHAFI_BLUEFIN_AUTOBALANCE_USDT_USDC_RECEIPT: string;
|
|
1195
1220
|
ALPHAFI_BLUEFIN_AUTOBALANCE_SUI_USDC_RECEIPT: string;
|
|
1196
1221
|
ALPHAFI_BLUEFIN_AUTOBALANCE_SUIUSDT_USDC_RECEIPT: string;
|
|
@@ -1272,6 +1297,8 @@ export declare const conf: {
|
|
|
1272
1297
|
NAVI_SUIBTC_POOL_RECEIPT_NAME: string;
|
|
1273
1298
|
NAVI_SUIUSDT_POOL_RECEIPT_NAME: string;
|
|
1274
1299
|
ALPHAFI_BLUEFIN_AUTOBALANCE_SUI_LBTC_RECEIPT_NAME: string;
|
|
1300
|
+
ALPHAFI_BLUEFIN_LBTC_SUIBTC_RECEIPT_NAME: string;
|
|
1301
|
+
USDC_SUIUSDT_POOL_RECEIPT_NAME: string;
|
|
1275
1302
|
NAVI_USDC_USDT_LOOP_ACCOUNT_ADDRESS: string;
|
|
1276
1303
|
NAVI_SUI_VSUI_LOOP_ACCOUNT_ADDRESS: string;
|
|
1277
1304
|
NAVI_HASUI_SUI_LOOP_ACCOUNT_ADDRESS: string;
|
|
@@ -1360,6 +1387,8 @@ export declare const conf: {
|
|
|
1360
1387
|
ALPHAFI_BLUEFIN_SUIBTC_USDC_POOL_AUTO_COMPOUNDING_EVENT: string;
|
|
1361
1388
|
NAVI_SUIBTC_POOL_AUTO_COMPOUNDING_EVENT: string;
|
|
1362
1389
|
NAVI_SUIUSDT_POOL_AUTO_COMPOUNDING_EVENT: string;
|
|
1390
|
+
ALPHAFI_BLUEFIN_LBTC_SUIBTC_POOL_AUTO_COMPOUNDING_EVENT: string;
|
|
1391
|
+
USDC_SUIUSDT_POOL_AUTO_COMPOUNDING_EVENT: string;
|
|
1363
1392
|
ALPHAFI_BLUEFIN_AUTOBALANCE_USDT_USDC_POOL_AUTO_COMPOUNDING_EVENT: string;
|
|
1364
1393
|
ALPHAFI_BLUEFIN_AUTOBALANCE_SUI_USDC_POOL_AUTO_COMPOUNDING_EVENT: string;
|
|
1365
1394
|
ALPHAFI_BLUEFIN_AUTOBALANCE_SUIUSDT_USDC_POOL_AUTO_COMPOUNDING_EVENT: string;
|
|
@@ -1421,6 +1450,8 @@ export declare const conf: {
|
|
|
1421
1450
|
ALPHAFI_BLUEFIN_FUNGIBLE_STSUI_SUI_POOL_REBALANCE_EVENT: string;
|
|
1422
1451
|
ALPHAFI_BLUEFIN_SUIBTC_USDC_POOL_REBALANCE_EVENT: string;
|
|
1423
1452
|
ALPHAFI_BLUEFIN_AUTOBALANCE_SUI_LBTC_POOL_REBALANCE_EVENT: string;
|
|
1453
|
+
ALPHAFI_BLUEFIN_LBTC_SUIBTC_POOL_REBALANCE_EVENT: string;
|
|
1454
|
+
USDC_SUIUSDT_POOL_REBALANCE_EVENT: string;
|
|
1424
1455
|
ALPHA_POOL_LIQUIDITY_CHANGE_EVENT: string;
|
|
1425
1456
|
ALPHA_SUI_POOL_LIQUIDITY_CHANGE_EVENT: string;
|
|
1426
1457
|
USDT_WUSDC_POOL_LIQUIDITY_CHANGE_EVENT: string;
|
|
@@ -1495,6 +1526,8 @@ export declare const conf: {
|
|
|
1495
1526
|
NAVI_SUIBTC_POOL_LIQUIDITY_CHANGE_EVENT: string;
|
|
1496
1527
|
NAVI_SUIUSDT_POOL_LIQUIDITY_CHANGE_EVENT: string;
|
|
1497
1528
|
ALPHAFI_BLUEFIN_AUTOBALANCE_SUI_LBTC_POOL_LIQUIDITY_CHANGE_EVENT: string;
|
|
1529
|
+
ALPHAFI_BLUEFIN_LBTC_SUIBTC_POOL_LIQUIDITY_CHANGE_EVENT: string;
|
|
1530
|
+
USDC_SUIUSDT_POOL_LIQUIDITY_CHANGE_EVENT: string;
|
|
1498
1531
|
ALPHA_POOL_WITHDRAW_V2_EVENT: string;
|
|
1499
1532
|
ALPHA_POOL_AFTER_TRANSACTION_EVENT: string;
|
|
1500
1533
|
ALPHA_SUI_POOL_AFTER_TRANSACTION_EVENT: string;
|
|
@@ -1558,6 +1591,7 @@ export declare const conf: {
|
|
|
1558
1591
|
BLUEFIN_SUI_SUIBTC_POOL: string;
|
|
1559
1592
|
BLUEFIN_VSUI_SUI_POOL: string;
|
|
1560
1593
|
BLUEFIN_SUI_LBTC_POOL: string;
|
|
1594
|
+
BLUEFIN_LBTC_SUIBTC_POOL: string;
|
|
1561
1595
|
LST_INFO: string;
|
|
1562
1596
|
HAEDEL_STAKING: string;
|
|
1563
1597
|
NAVI_STORAGE: string;
|
|
@@ -1776,6 +1810,7 @@ export declare const getConf: () => {
|
|
|
1776
1810
|
USDC_ETH_POOL: string;
|
|
1777
1811
|
DEEP_SUI_POOL: string;
|
|
1778
1812
|
BUCK_SUI_POOL: string;
|
|
1813
|
+
USDC_SUIUSDT_POOL: string;
|
|
1779
1814
|
ALPHAFI_NAVI_SUI_POOL: string;
|
|
1780
1815
|
ALPHAFI_NAVI_VSUI_POOL: string;
|
|
1781
1816
|
ALPHAFI_NAVI_WETH_POOL: string;
|
|
@@ -1820,6 +1855,7 @@ export declare const getConf: () => {
|
|
|
1820
1855
|
ALPHAFI_BLUEFIN_STSUI_MUSD_POOL: string;
|
|
1821
1856
|
ALPHAFI_BLUEFIN_FUNGIBLE_STSUI_SUI_POOL: string;
|
|
1822
1857
|
ALPHAFI_BLUEFIN_SUIBTC_USDC_POOL: string;
|
|
1858
|
+
ALPHAFI_BLUEFIN_LBTC_SUIBTC_POOL: string;
|
|
1823
1859
|
ALPHAFI_BLUEFIN_AUTOBALANCE_USDT_USDC_POOL: string;
|
|
1824
1860
|
ALPHAFI_BLUEFIN_AUTOBALANCE_SUI_USDC_POOL: string;
|
|
1825
1861
|
ALPHAFI_BLUEFIN_AUTOBALANCE_BLUE_SUI_POOL: string;
|
|
@@ -1874,6 +1910,8 @@ export declare const getConf: () => {
|
|
|
1874
1910
|
USDC_SUIBTC_CETUS_POOL_ID: string;
|
|
1875
1911
|
SUIUSDT_SUI_CETUS_POOL_ID: string;
|
|
1876
1912
|
LBTC_SUI_CETUS_POOL_ID: string;
|
|
1913
|
+
SUIBTC_LBTC_CETUS_POOL_ID: string;
|
|
1914
|
+
SUIBTC_SUI_CETUS_POOL_ID: string;
|
|
1877
1915
|
CETUS_REWARDER_GLOBAL_VAULT_ID: string;
|
|
1878
1916
|
CETUS_GLOBAL_CONFIG_ID: string;
|
|
1879
1917
|
ALPHA_CETUS_INVESTOR: string;
|
|
@@ -1900,6 +1938,7 @@ export declare const getConf: () => {
|
|
|
1900
1938
|
USDC_ETH_CETUS_INVESTOR: string;
|
|
1901
1939
|
DEEP_SUI_CETUS_INVESTOR: string;
|
|
1902
1940
|
BUCK_SUI_CETUS_INVESTOR: string;
|
|
1941
|
+
USDC_SUIUSDT_CETUS_INVESTOR: string;
|
|
1903
1942
|
NAVI_SUI_INVESTOR: string;
|
|
1904
1943
|
NAVI_VSUI_INVESTOR: string;
|
|
1905
1944
|
NAVI_WETH_INVESTOR: string;
|
|
@@ -1943,6 +1982,7 @@ export declare const getConf: () => {
|
|
|
1943
1982
|
ALPHAFI_BLUEFIN_STSUI_BUCK_INVESTOR: string;
|
|
1944
1983
|
ALPHAFI_BLUEFIN_STSUI_MUSD_INVESTOR: string;
|
|
1945
1984
|
ALPHAFI_BLUEFIN_SUIBTC_USDC_INVESTOR: string;
|
|
1985
|
+
ALPHAFI_BLUEFIN_LBTC_SUIBTC_INVESTOR: string;
|
|
1946
1986
|
ALPHAFI_BLUEFIN_AUTOBALANCE_USDT_USDC_INVESTOR: string;
|
|
1947
1987
|
ALPHAFI_BLUEFIN_AUTOBALANCE_SUI_USDC_INVESTOR: string;
|
|
1948
1988
|
ALPHAFI_BLUEFIN_AUTOBALANCE_SUIUSDT_USDC_INVESTOR: string;
|
|
@@ -2018,6 +2058,8 @@ export declare const getConf: () => {
|
|
|
2018
2058
|
ALPHAFI_BLUEFIN_SUIBTC_USDC_RECEIPT: string;
|
|
2019
2059
|
NAVI_SUIBTC_POOL_RECEIPT: string;
|
|
2020
2060
|
NAVI_SUIUSDT_POOL_RECEIPT: string;
|
|
2061
|
+
ALPHAFI_BLUEFIN_LBTC_SUIBTC_RECEIPT: string;
|
|
2062
|
+
USDC_SUIUSDT_POOL_RECEIPT: string;
|
|
2021
2063
|
ALPHAFI_BLUEFIN_AUTOBALANCE_USDT_USDC_RECEIPT: string;
|
|
2022
2064
|
ALPHAFI_BLUEFIN_AUTOBALANCE_SUI_USDC_RECEIPT: string;
|
|
2023
2065
|
ALPHAFI_BLUEFIN_AUTOBALANCE_SUIUSDT_USDC_RECEIPT: string;
|
|
@@ -2099,6 +2141,8 @@ export declare const getConf: () => {
|
|
|
2099
2141
|
NAVI_SUIBTC_POOL_RECEIPT_NAME: string;
|
|
2100
2142
|
NAVI_SUIUSDT_POOL_RECEIPT_NAME: string;
|
|
2101
2143
|
ALPHAFI_BLUEFIN_AUTOBALANCE_SUI_LBTC_RECEIPT_NAME: string;
|
|
2144
|
+
ALPHAFI_BLUEFIN_LBTC_SUIBTC_RECEIPT_NAME: string;
|
|
2145
|
+
USDC_SUIUSDT_POOL_RECEIPT_NAME: string;
|
|
2102
2146
|
NAVI_USDC_USDT_LOOP_ACCOUNT_ADDRESS: string;
|
|
2103
2147
|
NAVI_SUI_VSUI_LOOP_ACCOUNT_ADDRESS: string;
|
|
2104
2148
|
NAVI_HASUI_SUI_LOOP_ACCOUNT_ADDRESS: string;
|
|
@@ -2187,6 +2231,8 @@ export declare const getConf: () => {
|
|
|
2187
2231
|
ALPHAFI_BLUEFIN_SUIBTC_USDC_POOL_AUTO_COMPOUNDING_EVENT: string;
|
|
2188
2232
|
NAVI_SUIBTC_POOL_AUTO_COMPOUNDING_EVENT: string;
|
|
2189
2233
|
NAVI_SUIUSDT_POOL_AUTO_COMPOUNDING_EVENT: string;
|
|
2234
|
+
ALPHAFI_BLUEFIN_LBTC_SUIBTC_POOL_AUTO_COMPOUNDING_EVENT: string;
|
|
2235
|
+
USDC_SUIUSDT_POOL_AUTO_COMPOUNDING_EVENT: string;
|
|
2190
2236
|
ALPHAFI_BLUEFIN_AUTOBALANCE_USDT_USDC_POOL_AUTO_COMPOUNDING_EVENT: string;
|
|
2191
2237
|
ALPHAFI_BLUEFIN_AUTOBALANCE_SUI_USDC_POOL_AUTO_COMPOUNDING_EVENT: string;
|
|
2192
2238
|
ALPHAFI_BLUEFIN_AUTOBALANCE_SUIUSDT_USDC_POOL_AUTO_COMPOUNDING_EVENT: string;
|
|
@@ -2248,6 +2294,8 @@ export declare const getConf: () => {
|
|
|
2248
2294
|
ALPHAFI_BLUEFIN_FUNGIBLE_STSUI_SUI_POOL_REBALANCE_EVENT: string;
|
|
2249
2295
|
ALPHAFI_BLUEFIN_SUIBTC_USDC_POOL_REBALANCE_EVENT: string;
|
|
2250
2296
|
ALPHAFI_BLUEFIN_AUTOBALANCE_SUI_LBTC_POOL_REBALANCE_EVENT: string;
|
|
2297
|
+
ALPHAFI_BLUEFIN_LBTC_SUIBTC_POOL_REBALANCE_EVENT: string;
|
|
2298
|
+
USDC_SUIUSDT_POOL_REBALANCE_EVENT: string;
|
|
2251
2299
|
ALPHA_POOL_LIQUIDITY_CHANGE_EVENT: string;
|
|
2252
2300
|
ALPHA_SUI_POOL_LIQUIDITY_CHANGE_EVENT: string;
|
|
2253
2301
|
USDT_WUSDC_POOL_LIQUIDITY_CHANGE_EVENT: string;
|
|
@@ -2322,6 +2370,8 @@ export declare const getConf: () => {
|
|
|
2322
2370
|
NAVI_SUIBTC_POOL_LIQUIDITY_CHANGE_EVENT: string;
|
|
2323
2371
|
NAVI_SUIUSDT_POOL_LIQUIDITY_CHANGE_EVENT: string;
|
|
2324
2372
|
ALPHAFI_BLUEFIN_AUTOBALANCE_SUI_LBTC_POOL_LIQUIDITY_CHANGE_EVENT: string;
|
|
2373
|
+
ALPHAFI_BLUEFIN_LBTC_SUIBTC_POOL_LIQUIDITY_CHANGE_EVENT: string;
|
|
2374
|
+
USDC_SUIUSDT_POOL_LIQUIDITY_CHANGE_EVENT: string;
|
|
2325
2375
|
ALPHA_POOL_WITHDRAW_V2_EVENT: string;
|
|
2326
2376
|
ALPHA_POOL_AFTER_TRANSACTION_EVENT: string;
|
|
2327
2377
|
ALPHA_SUI_POOL_AFTER_TRANSACTION_EVENT: string;
|
|
@@ -2385,6 +2435,7 @@ export declare const getConf: () => {
|
|
|
2385
2435
|
BLUEFIN_SUI_SUIBTC_POOL: string;
|
|
2386
2436
|
BLUEFIN_VSUI_SUI_POOL: string;
|
|
2387
2437
|
BLUEFIN_SUI_LBTC_POOL: string;
|
|
2438
|
+
BLUEFIN_LBTC_SUIBTC_POOL: string;
|
|
2388
2439
|
LST_INFO: string;
|
|
2389
2440
|
HAEDEL_STAKING: string;
|
|
2390
2441
|
NAVI_STORAGE: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../../../src/common/constants.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,QAAQ,eAAe,CAAC;AAErC,eAAO,MAAM,IAAI
|
|
1
|
+
{"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../../../src/common/constants.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,QAAQ,eAAe,CAAC;AAErC,eAAO,MAAM,IAAI;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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