@ape.swap/bonds-sdk 4.4.1-test.8 → 4.5.0-test.0

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/main.js CHANGED
@@ -20217,6 +20217,7 @@ function requireTypes$1 () {
20217
20217
  LaunchBondTiers[(LaunchBondTiers['Gold'] = 2)] = 'Gold';
20218
20218
  LaunchBondTiers[(LaunchBondTiers['Diamond'] = 3)] = 'Diamond';
20219
20219
  LaunchBondTiers[(LaunchBondTiers['Legend'] = 4)] = 'Legend';
20220
+ LaunchBondTiers[(LaunchBondTiers['Mythical'] = 5)] = 'Mythical';
20220
20221
  })((exports$1.LaunchBondTiers || (exports$1.LaunchBondTiers = {})));
20221
20222
  (function (VaultVersion) {
20222
20223
  VaultVersion['V1'] = 'V1';
@@ -63158,7 +63159,7 @@ const defaultUrls = {
63158
63159
  // Staging URLS.
63159
63160
  const stagingUrls = {
63160
63161
  apiV2: 'https://staging-api.ape.bond',
63161
- realTimeApi: 'https://realtime-api-staging.ape.bond',
63162
+ realTimeApi: 'https://realtime-api-pr-130.herokuapp.com',
63162
63163
  mainUrl: 'https://staging.ape.bond',
63163
63164
  priceApi: 'https://price-api.ape.bond',
63164
63165
  };
@@ -63220,36 +63221,38 @@ const useEVMAccount = () => {
63220
63221
  };
63221
63222
 
63222
63223
  const TIERS_COLORS = {
63223
- [main.LaunchBondTiers.Bronze]: 'linear-gradient(90deg, #473129 0%, #33231D 100%)',
63224
63224
  [main.LaunchBondTiers.Silver]: 'linear-gradient(90deg, #3A3A3C 0%, #2C2C2F 100%)',
63225
63225
  [main.LaunchBondTiers.Gold]: 'linear-gradient(90deg, #BC933F 0%, #56431D 100%)',
63226
63226
  [main.LaunchBondTiers.Diamond]: 'linear-gradient(90deg, #1174A2 0%, #062B3C 100%)',
63227
63227
  [main.LaunchBondTiers.Legend]: 'linear-gradient(90deg, #6B43D7 0%, #382371 100%)',
63228
+ [main.LaunchBondTiers.Mythical]: 'linear-gradient(90deg, #DFA9D2 -13.84%, #790524 10.35%, #DFA9D2 38.05%, #790524 76.31%)',
63228
63229
  };
63229
63230
  const TIERS_WEIGHT = {
63230
- [main.LaunchBondTiers.Bronze]: '1000000000000000000000',
63231
63231
  [main.LaunchBondTiers.Silver]: '10000000000000000000000',
63232
- [main.LaunchBondTiers.Gold]: '25000000000000000000000',
63233
- [main.LaunchBondTiers.Diamond]: '100000000000000000000000',
63232
+ [main.LaunchBondTiers.Gold]: '50000000000000000000000',
63233
+ [main.LaunchBondTiers.Diamond]: '200000000000000000000000',
63234
63234
  [main.LaunchBondTiers.Legend]: '500000000000000000000000',
63235
+ [main.LaunchBondTiers.Mythical]: '1000000000000000000000000',
63235
63236
  };
63236
63237
  const TIERS_NAMES = {
63237
- [main.LaunchBondTiers.Bronze]: 'Bronze',
63238
+ null: 'No Tier',
63238
63239
  [main.LaunchBondTiers.Silver]: 'Silver',
63239
63240
  [main.LaunchBondTiers.Gold]: 'Gold',
63240
63241
  [main.LaunchBondTiers.Diamond]: 'Diamond',
63241
63242
  [main.LaunchBondTiers.Legend]: 'Legend',
63243
+ [main.LaunchBondTiers.Mythical]: 'Mythical',
63242
63244
  };
63243
63245
  const getUserTier = (weight) => {
63244
- if (!weight)
63245
- return null;
63246
63246
  const weightBG = new BigNumber$1(weight);
63247
- const bronze = new BigNumber$1(TIERS_WEIGHT[main.LaunchBondTiers.Bronze]);
63248
63247
  const silver = new BigNumber$1(TIERS_WEIGHT[main.LaunchBondTiers.Silver]);
63249
63248
  const gold = new BigNumber$1(TIERS_WEIGHT[main.LaunchBondTiers.Gold]);
63250
63249
  const diamond = new BigNumber$1(TIERS_WEIGHT[main.LaunchBondTiers.Diamond]);
63251
63250
  const legend = new BigNumber$1(TIERS_WEIGHT[main.LaunchBondTiers.Legend]);
63252
- if (weightBG.gte(legend)) {
63251
+ const mythical = new BigNumber$1(TIERS_WEIGHT[main.LaunchBondTiers.Mythical]);
63252
+ if (weightBG.gte(mythical)) {
63253
+ return main.LaunchBondTiers.Mythical;
63254
+ }
63255
+ else if (weightBG.gte(legend)) {
63253
63256
  return main.LaunchBondTiers.Legend;
63254
63257
  }
63255
63258
  else if (weightBG.gte(diamond)) {
@@ -63261,11 +63264,7 @@ const getUserTier = (weight) => {
63261
63264
  else if (weightBG.gte(silver)) {
63262
63265
  return main.LaunchBondTiers.Silver;
63263
63266
  }
63264
- else if (weightBG.gte(bronze)) {
63265
- return main.LaunchBondTiers.Bronze;
63266
- }
63267
- else
63268
- return null;
63267
+ return null;
63269
63268
  };
63270
63269
  const fetchUserPoints = (account, useTiers, apiUrl) => __awaiter$9(void 0, void 0, void 0, function* () {
63271
63270
  const lensContractAddress = LENS_CONTRACT[main.ChainId.BSC];
@@ -63278,7 +63277,7 @@ const fetchUserPoints = (account, useTiers, apiUrl) => __awaiter$9(void 0, void
63278
63277
  params: [account],
63279
63278
  },
63280
63279
  ]);
63281
- return res[0][0].toString();
63280
+ return new BigNumber$1(res[0][0].toString()).times(2).toString();
63282
63281
  }
63283
63282
  catch (e) {
63284
63283
  console.error(e);
@@ -75651,7 +75650,7 @@ const remove0xPrefix = (str) => {
75651
75650
 
75652
75651
  const CircularModal = () => {
75653
75652
  const handleClick = () => {
75654
- window.location.href = 'https://ape.bond/tier-staking';
75653
+ window.location.href = 'https://ape.bond/true-yield';
75655
75654
  };
75656
75655
  return (jsx$2(Modal, { title: "You've Claimed ABOND!", children: jsxs(Flex, { sx: { flexDirection: 'column' }, children: [jsx$2(Flex, { sx: { fontSize: '12px', lineHeight: '20px', color: 'primaryButton', mt: '10px' }, children: "Did You Know?" }), jsxs(Flex, { sx: { flexDirection: 'column', gap: '10px', cursor: 'pointer' }, onClick: handleClick, children: [jsx$2(Flex, { children: "You can stake ABOND to earn $BNB and extra discounts on Bonds:" }), jsx$2(Image$1, { src: 'https://ape.bond/images/circular-staking/real-yield.png' }), jsx$2(Image$1, { src: 'https://ape.bond/images/circular-staking/extra-discounts.png' }), jsx$2(Button, { sx: { width: '100%', mt: '10px' }, children: " Stake now" })] })] }) }));
75657
75656
  };
@@ -75909,6 +75908,7 @@ const YourBondsModal = ({ userBill, onDismiss }) => {
75909
75908
  // Static Data
75910
75909
  const depositUSD = (_b = (_a = userBill === null || userBill === void 0 ? void 0 : userBill.nftData) === null || _a === void 0 ? void 0 : _a.data) === null || _b === void 0 ? void 0 : _b.dollarValue;
75911
75910
  const payout = (_d = (_c = userBill === null || userBill === void 0 ? void 0 : userBill.nftData) === null || _c === void 0 ? void 0 : _c.data) === null || _d === void 0 ? void 0 : _d.payout;
75911
+ console.log('payout', payout);
75912
75912
  const payoutTokenPrice = parseFloat((_f = (_e = userBill === null || userBill === void 0 ? void 0 : userBill.bond) === null || _e === void 0 ? void 0 : _e.payoutTokenPrice) !== null && _f !== void 0 ? _f : '0');
75913
75913
  const payoutUSD = payout && payoutTokenPrice ? payout * payoutTokenPrice : 0;
75914
75914
  const payoutSymbol = (_h = (_g = userBill === null || userBill === void 0 ? void 0 : userBill.bond) === null || _g === void 0 ? void 0 : _g.showcaseTokenName) !== null && _h !== void 0 ? _h : (_j = userBill === null || userBill === void 0 ? void 0 : userBill.bond) === null || _j === void 0 ? void 0 : _j.earnToken.symbol;
@@ -78816,7 +78816,7 @@ const BondModalHeader = ({ bondData, onDismiss, showProjectInfoButton, }) => {
78816
78816
  fontWeight: 700,
78817
78817
  }, children: [bondData === null || bondData === void 0 ? void 0 : bondData.showcaseTokenName, jsx$2(ListTag, { text: (_d = bondData === null || bondData === void 0 ? void 0 : bondData.tags) === null || _d === void 0 ? void 0 : _d[0] })] }), jsxs(Flex, { className: "title-container price-container", sx: { flexDirection: 'column', pl: ['10px', '10px', '10px', '20px'] }, children: [jsxs(Flex, { className: "price-container price", sx: { fontSize: ['12px', '12px', '12px', '14px'] }, children: ["$", earnTokenPrice(bondData)] }), SDKConfig.useTiers && bondData.billVersion === main.BillVersion.V4 ? (jsxs(Flex, { sx: {
78818
78818
  p: '3px 6px',
78819
- border: '1px solid var(--theme-ui-colors-primaryButton)',
78819
+ border: '1px solid #891F3F',
78820
78820
  borderRadius: 'normal',
78821
78821
  background: 'transparent',
78822
78822
  position: 'relative',
@@ -78828,9 +78828,9 @@ const BondModalHeader = ({ bondData, onDismiss, showProjectInfoButton, }) => {
78828
78828
  top: 0,
78829
78829
  left: 0,
78830
78830
  zIndex: 1,
78831
- background: 'primaryButton',
78831
+ background: '#891F3F',
78832
78832
  opacity: 0.3,
78833
- } }), jsxs(Flex, { sx: { width: '100%', zIndex: 2, alignItems: 'center' }, children: [jsx$2("img", { src: `https://ape.bond/images/launch/legend.png`, alt: "minTier", style: { width: '21px', height: '21px', marginRight: '3px', zIndex: 1 } }), jsx$2(Flex, { sx: { fontSize: ['12px', '12px', '12px', '14px'], mr: '3px' }, children: "Up to" }), jsxs(Flex, { sx: {
78833
+ } }), jsxs(Flex, { sx: { width: '100%', zIndex: 2, alignItems: 'center' }, children: [jsx$2("img", { src: `https://ape.bond/images/launch/mythical.png`, alt: "minTier", style: { width: '21px', height: '21px', marginRight: '3px', zIndex: 1 } }), jsx$2(Flex, { sx: { fontSize: ['12px', '12px', '12px', '14px'], mr: '3px' }, children: "Up to" }), jsxs(Flex, { sx: {
78834
78834
  color: bonusWithFee && bonusWithFee > 0 ? 'success' : 'error',
78835
78835
  fontSize: ['12px', '12px', '12px', '14px'],
78836
78836
  }, children: ["$", discountEarnTokenPrice(bondData, true)] })] })] })) : (jsxs(Flex, { sx: { fontSize: '24px', fontWeight: 700 }, children: ["$", discountEarnTokenPrice(bondData)] }))] }), jsx$2(Flex, { sx: { display: ['none', 'none', 'none', 'flex'], ml: '10px' }, children: jsx$2(BondModalMinTierHeader, { minTier: minTier }) })] })] }));
@@ -78868,6 +78868,7 @@ const BonusTable = ({ trueBondPrices, minTier, hideTitle, }) => {
78868
78868
  return (jsxs(Flex, { sx: { width: '100%', flexDirection: 'column' }, children: [!hideTitle && jsx$2(Flex, { sx: { width: '100%', justifyContent: 'center', mb: '10px' }, children: "Ape Tier Bonuses" }), trueBondPrices === null || trueBondPrices === void 0 ? void 0 : trueBondPrices.sort((a, b) => new BigNumber$1(b.points).minus(new BigNumber$1(a.points)).toNumber()).map((tier) => {
78869
78869
  var _a, _b, _c;
78870
78870
  const tierToUse = getUserTier(tier.points);
78871
+ //@ts-ignore
78871
78872
  const tierName = `${TIERS_NAMES[tierToUse]}`;
78872
78873
  const you = tier.points === (usersTrueBondPrices === null || usersTrueBondPrices === void 0 ? void 0 : usersTrueBondPrices.points);
78873
78874
  // @ts-ignore
@@ -78876,19 +78877,22 @@ const BonusTable = ({ trueBondPrices, minTier, hideTitle, }) => {
78876
78877
  width: '100%',
78877
78878
  justifyContent: 'space-between',
78878
78879
  height: '30px',
78880
+ //@ts-ignore
78879
78881
  background: (_a = TIERS_COLORS[tierToUse]) !== null && _a !== void 0 ? _a : 'white3',
78880
78882
  borderRadius: 'normal',
78881
78883
  alignItems: 'center',
78882
78884
  px: '8px',
78883
78885
  mb: '1px',
78884
- }, children: [jsxs(Flex, { sx: { alignItems: 'center' }, children: [tier.points !== '0' && (jsx$2("img", { src: `https://ape.bond/images/launch/${(_b = TIERS_NAMES[tierToUse]) === null || _b === void 0 ? void 0 : _b.toLowerCase()}.png`, alt: "minTier", style: { width: '21px', height: '21px', marginRight: '3px', zIndex: 1 } })), jsx$2(Flex, { children: tier.points === '0' ? 'No Tier' : tierName }), you && jsx$2(YouTooltip, {})] }), isUnavailable ? (jsx$2(Flex, { sx: { fontWeight: 600, opacity: 0.8 }, children: "UNAVAILABLE" })) : (jsxs(Flex, { sx: { color: tier.bonusWithFee > 0 ? 'success' : 'text', fontWeight: 700, alignItems: 'center' }, children: [tier.bonusWithFee > 0 ? tier.bonusWithFee.toFixed(2) : '0', "%", tier.points !== '0' && (jsx$2(Flex, { sx: {
78886
+ }, children: [jsxs(Flex, { sx: { alignItems: 'center' }, children: [tier.points !== '0' && (jsx$2("img", {
78887
+ //@ts-ignore
78888
+ src: `https://ape.bond/images/launch/${(_b = TIERS_NAMES[tierToUse]) === null || _b === void 0 ? void 0 : _b.toLowerCase()}.png`, alt: "minTier", style: { width: '21px', height: '21px', marginRight: '3px', zIndex: 1 } })), jsx$2(Flex, { children: tier.points === '0' ? 'No Tier' : tierName }), you && jsx$2(YouTooltip, {})] }), isUnavailable ? (jsx$2(Flex, { sx: { fontWeight: 600, opacity: 0.8 }, children: "UNAVAILABLE" })) : (jsxs(Flex, { sx: { color: tier.bonusWithFee > 0 ? 'success' : 'text', fontWeight: 700, alignItems: 'center' }, children: [tier.bonusWithFee > 0 ? tier.bonusWithFee.toFixed(2) : '0', "%", tier.points !== '0' && (jsx$2(Flex, { sx: {
78885
78889
  borderRadius: 'normal',
78886
78890
  border: '1px solid var(--theme-ui-colors-success)',
78887
78891
  px: '4px',
78888
78892
  ml: '3px',
78889
78893
  color: 'success',
78890
78894
  }, children: `+${(_c = tier === null || tier === void 0 ? void 0 : tier.boost) !== null && _c !== void 0 ? _c : 0}%` }))] }))] }, tier.points));
78891
- }), !hideTitle && (jsx$2(Button, { variant: "secondary", sx: { width: '100%', mt: '10px' }, onClick: () => window.open('https://ape.bond/tier-staking', '_blank'), children: "get tier" }))] }));
78895
+ }), !hideTitle && (jsx$2(Button, { variant: "secondary", sx: { width: '100%', mt: '10px' }, onClick: () => window.open('https://ape.bond/true-yield', '_blank'), children: "get tier" }))] }));
78892
78896
  };
78893
78897
 
78894
78898
  const BonusComponent = ({ trueBondPrices, minTier, bonus, airdropTooltip, tooltipPosition, }) => {
@@ -78901,7 +78905,7 @@ const BonusComponent = ({ trueBondPrices, minTier, bonus, airdropTooltip, toolti
78901
78905
  const baseTrueBondPrice = findHighestTrueBondPrice('0', trueBondPrices);
78902
78906
  return (jsx$2(Flex, { children: trueBondPrices && (trueBondPrices === null || trueBondPrices === void 0 ? void 0 : trueBondPrices.length) > 1 && SDKConfig.useTiers ? (jsx$2(Flex, { sx: { alignItems: 'center', minWidth: '20px' }, children: (highestPointsElement === null || highestPointsElement === void 0 ? void 0 : highestPointsElement.bonusWithFee) && (highestPointsElement === null || highestPointsElement === void 0 ? void 0 : highestPointsElement.bonusWithFee) > 0 ? (jsx$2(TooltipBubble, { width: "280px", placement: tooltipPosition, transformTip: tooltipPosition === 'bottomLeft' ? 'translate(0%, 0%)' : 'translate(0%, 0%)', body: jsx$2(BonusTable, { trueBondPrices: trueBondPrices, minTier: minTier }), children: jsxs(Flex, { sx: {
78903
78907
  p: '3px 6px',
78904
- border: '1px solid var(--theme-ui-colors-primaryButton)',
78908
+ border: '1px solid #891F3F',
78905
78909
  borderRadius: 'normal',
78906
78910
  background: 'transparent',
78907
78911
  position: 'relative',
@@ -78915,9 +78919,9 @@ const BonusComponent = ({ trueBondPrices, minTier, bonus, airdropTooltip, toolti
78915
78919
  top: 0,
78916
78920
  left: 0,
78917
78921
  zIndex: 1,
78918
- background: 'primaryButton',
78922
+ background: '#891F3F',
78919
78923
  opacity: 0.3,
78920
- } }), jsxs(Flex, { sx: { width: '100%', zIndex: 2, alignItems: 'center', justifyContent: 'center' }, children: [jsx$2("img", { src: `https://ape.bond/images/launch/legend.png`, alt: "minTier", style: { width: '21px', height: '21px', marginRight: '3px', zIndex: 1 } }), jsx$2(Flex, { sx: { fontSize: ['12px', '12px', '14px', '14px'], mr: '3px' }, children: "Up to" }), jsxs(Flex, { sx: {
78924
+ } }), jsxs(Flex, { sx: { width: '100%', zIndex: 2, alignItems: 'center', justifyContent: 'center' }, children: [jsx$2("img", { src: `https://ape.bond/images/launch/mythical.png`, alt: "minTier", style: { width: '21px', height: '21px', marginRight: '3px', zIndex: 1 } }), jsx$2(Flex, { sx: { fontSize: ['12px', '12px', '14px', '14px'], mr: '3px' }, children: "Up to" }), jsxs(Flex, { sx: {
78921
78925
  color: (highestPointsElement === null || highestPointsElement === void 0 ? void 0 : highestPointsElement.bonusWithFee) && (highestPointsElement === null || highestPointsElement === void 0 ? void 0 : highestPointsElement.bonusWithFee) > 0
78922
78926
  ? 'success'
78923
78927
  : 'error',
@@ -78992,6 +78996,7 @@ const Estimations = ({ depositAmount, bondData, youSpendString, isZap, fetchingZ
78992
78996
  const estimatedOutputUSD = estimatedOutputAmount * parseFloat((_a = bondData === null || bondData === void 0 ? void 0 : bondData.payoutTokenPrice) !== null && _a !== void 0 ? _a : '0');
78993
78997
  const noTierAmount = getRawBonus$1(bondData, depositAmount, '0');
78994
78998
  const boostAmount = parseFloat(getRawBonus$1(bondData, depositAmount, userPoints !== null && userPoints !== void 0 ? userPoints : '0')) - parseFloat(noTierAmount);
78999
+ console.log('estimatedOutputAmount', estimatedOutputAmount);
78995
79000
  return (jsxs(Flex, { className: "modaltable-container text-container", children: [jsxs(Flex, { className: "text-container row", children: [jsx$2(Flex, { className: "row-container spend", children: "You Spend:" }), jsx$2(Flex, { className: "row-container spend-val", children: youSpendString })] }), jsxs(Flex, { className: "text-container row", children: [jsxs(Flex, { className: "row-container premium", children: [!!userTier && !!userPoints && SDKConfig.useTiers && bondData.billVersion === main.BillVersion.V4
78996
79001
  ? 'Base Bonus:'
78997
79002
  : 'Bonus:', jsx$2(TooltipBubble, { className: "tooltip-bubble", body: jsx$2(Flex, { children: TooltipText.Premium }), width: "230px", placement: "bottomLeft", transformTip: "translate(-5%, 0%)", children: jsx$2(Flex, { className: "row-container premium-icon", children: jsx$2(Svg, { icon: "questionCircle", width: "12px" }) }) })] }), isZap && fetchingZapQuote ? (jsx$2(Dots, {})) : isZap && zapError ? ('-') : (jsxs(Flex, { className: `row-container premium-val ${getBonusColor(bonusString)}`, children: ["$ ", formatNumberSI(bonusString)] }))] }), (trueBondPrice === null || trueBondPrice === void 0 ? void 0 : trueBondPrice.points) !== '0' && userTier && userPoints && SDKConfig.useTiers && (jsxs(Flex, { className: "text-container row", sx: {
@@ -80691,8 +80696,8 @@ const BuyComponentSolana = ({ onDismiss, bondAddress, bondChain, isProjectView,
80691
80696
  // ATAs
80692
80697
  const userPrincipalAta = yield getAssociatedTokenAddress(principalMint, user);
80693
80698
  const treasuryAta = yield getAssociatedTokenAddress(payoutMint, bondIssuancePda, true);
80694
- const feePrincipalRecipientAta = yield getAssociatedTokenAddress(principalMint, feeRecipient);
80695
- const partnerPrincipalRecipientAta = yield getAssociatedTokenAddress(principalMint, partnerRecipient);
80699
+ const feePrincipalRecipientAta = yield getAssociatedTokenAddress(principalMint, feeRecipient, true);
80700
+ const partnerPrincipalRecipientAta = yield getAssociatedTokenAddress(principalMint, partnerRecipient, true);
80696
80701
  const [feePayoutRecipientAta] = PublicKey.findProgramAddressSync([feePayoutRecipient.toBuffer(), FEE_PAYOUT_CONST_SEED, payoutMint.toBuffer()], FEE_PAYOUT_PDA_PROGRAM);
80697
80702
  // Encode args
80698
80703
  const u64Codec = getU64Codec();
@@ -80900,8 +80905,8 @@ const BuyComponentSolana = ({ onDismiss, bondAddress, bondChain, isProjectView,
80900
80905
  // Ensure user's USDC account exists, get creation instruction if needed
80901
80906
  const { ataAddress: userPrincipalAta, createInstruction: createPrincipalAtaIx } = yield ensureUserPrincipalAtaExists(connection, accountSolana, principalMint, accountSolana);
80902
80907
  const treasuryAta = yield getAssociatedTokenAddress(payoutMint, bondIssuancePda, true);
80903
- const feePrincipalRecipientAta = yield getAssociatedTokenAddress(principalMint, feeRecipient);
80904
- const partnerPrincipalRecipientAta = yield getAssociatedTokenAddress(principalMint, partnerRecipient);
80908
+ const feePrincipalRecipientAta = yield getAssociatedTokenAddress(principalMint, feeRecipient, true);
80909
+ const partnerPrincipalRecipientAta = yield getAssociatedTokenAddress(principalMint, partnerRecipient, true);
80905
80910
  const [feePayoutRecipientAta] = PublicKey.findProgramAddressSync([feePayoutRecipient.toBuffer(), FEE_PAYOUT_CONST_SEED, payoutMint.toBuffer()], FEE_PAYOUT_PDA_PROGRAM);
80906
80911
  const u64Codec = getU64Codec();
80907
80912
  const maxPriceEncoded = buffer.Buffer.from(u64Codec.encode(BigInt(maxPrice)));
@@ -1,25 +1,26 @@
1
1
  import { LaunchBondTiers } from '@ape.swap/apeswap-lists';
2
2
  export declare const TIERS_COLORS: {
3
- 0: string;
4
3
  1: string;
5
4
  2: string;
6
5
  3: string;
7
6
  4: string;
7
+ 5: string;
8
8
  };
9
9
  export declare const TIERS_WEIGHT: {
10
- 0: string;
11
10
  1: string;
12
11
  2: string;
13
12
  3: string;
14
13
  4: string;
14
+ 5: string;
15
15
  };
16
16
  export declare const TIERS_NAMES: {
17
- 0: string;
17
+ null: string;
18
18
  1: string;
19
19
  2: string;
20
20
  3: string;
21
21
  4: string;
22
+ 5: string;
22
23
  };
23
- export declare const getUserTier: (weight?: string | null) => LaunchBondTiers | null;
24
+ export declare const getUserTier: (weight: string) => LaunchBondTiers | null;
24
25
  export declare const fetchUserPoints: (account?: string, useTiers?: boolean, apiUrl?: string) => Promise<string | null>;
25
26
  export default function useTierPoints(): import("@tanstack/react-query").UseQueryResult<string | null, Error>;
package/package.json CHANGED
@@ -3,7 +3,7 @@
3
3
  "description": "Ape Bond SDK",
4
4
  "author": "Ape Bond",
5
5
  "license": "MIT",
6
- "version": "4.4.1-test.8",
6
+ "version": "4.5.0-test.0",
7
7
  "module": "dist/main.js",
8
8
  "type": "module",
9
9
  "types": "dist/main.d.ts",
@@ -79,7 +79,7 @@
79
79
  },
80
80
  "dependencies": {
81
81
  "@jup-ag/api": "6.0.45",
82
- "@ape.swap/apeswap-lists": "4.4.8",
82
+ "@ape.swap/apeswap-lists": "4.5.0",
83
83
  "@emotion/react": "11.14.0",
84
84
  "bignumber.js": "^9.1.2",
85
85
  "buffer": "^6.0.3",