@ape.swap/bonds-sdk 5.0.0 → 5.0.2

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.
Files changed (2) hide show
  1. package/dist/main.js +27 -11
  2. package/package.json +2 -2
package/dist/main.js CHANGED
@@ -20110,6 +20110,8 @@ function requireTypes$1 () {
20110
20110
  LiquidityDex['SmarDex'] = 'SmarDex';
20111
20111
  LiquidityDex['TrebleSwapV2'] = 'TrebleSwap V2';
20112
20112
  LiquidityDex['TrebleAlgebraIntegral'] = 'Treble Algebra Integral';
20113
+ LiquidityDex['HydrexSolidly'] = 'Hydrex Solidly';
20114
+ LiquidityDex['HydrexIntegral'] = 'Hydrex Integral';
20113
20115
  //IOTA
20114
20116
  LiquidityDex['MagicSea'] = 'MagicSea';
20115
20117
  //ARBITRUM
@@ -20239,6 +20241,7 @@ function requireTypes$1 () {
20239
20241
  BillArtCollection['Berachain_Collection1'] = 'Berachain_Collection1';
20240
20242
  BillArtCollection['HotBondingSummer_Collection1'] = 'HotBondingSummer_Collection1';
20241
20243
  BillArtCollection['Solana_Collection1'] = 'Solana_Collection1';
20244
+ BillArtCollection['GooMoney_Collection1'] = 'GooMoney_Collection1';
20242
20245
  })((BillArtCollection = exports$1.BillArtCollection || (exports$1.BillArtCollection = {})));
20243
20246
  exports$1.defaultBillArtCollection = BillArtCollection.ApeBond_Collection1;
20244
20247
  exports$1.MigrationVestingTerms = {
@@ -20430,6 +20433,15 @@ function requireTypes$1 () {
20430
20433
  router: '0x4752ba5dbc23f44d87826276bf6fd6b1c372ad24',
20431
20434
  protocol: Protocols.V2,
20432
20435
  }),
20436
+ (_h[LiquidityDex.HydrexSolidly] = {
20437
+ factory: '0xC47F17c4fd96F50eFD2A2448ceDe5C185c084bf0',
20438
+ router: '0x8fB6177eb7AC7D9e75DE2D58D8749755D6BD9EA1',
20439
+ protocol: Protocols.Solidly,
20440
+ }),
20441
+ (_h[LiquidityDex.HydrexIntegral] = {
20442
+ factory: '0x36077D39cdC65E1e3FB65810430E5b2c4D5fA29E',
20443
+ protocol: Protocols.AlgebraIntegral,
20444
+ }),
20433
20445
  _h)),
20434
20446
  (_a[ChainId.IOTA] =
20435
20447
  ((_j = {}),
@@ -20911,6 +20923,8 @@ function requireTypes$1 () {
20911
20923
  (_14[LiquidityDex.BlackHole] = {}),
20912
20924
  (_14[LiquidityDex.HybraFinance] = {}),
20913
20925
  (_14[LiquidityDex.PRJX] = {}),
20926
+ (_14[LiquidityDex.HydrexSolidly] = {}),
20927
+ (_14[LiquidityDex.HydrexIntegral] = {}),
20914
20928
  _14);
20915
20929
 
20916
20930
  } (types$1));
@@ -64191,7 +64205,7 @@ const BonusTable = ({ trueBondPrices, minTier, hideTitle, }) => {
64191
64205
  ml: '3px',
64192
64206
  color: 'success',
64193
64207
  }, children: `+${(_c = tier === null || tier === void 0 ? void 0 : tier.boost) !== null && _c !== void 0 ? _c : 0}%` }))] }))] }, tier.points));
64194
- }), !hideTitle && (jsx$2(Button, { variant: "secondary", sx: { width: '100%', mt: '10px' }, onClick: () => window.open('https://ape.bond/true-yield', '_blank'), children: "get tier" }))] }));
64208
+ }), !hideTitle && (jsx$2(Button, { variant: "secondary", sx: { width: '100%', mt: '10px' }, onClick: () => window.open('https://www.ape.bond/true-yield?createPosition', '_blank'), children: "get tier" }))] }));
64195
64209
  };
64196
64210
 
64197
64211
  const BonusComponent = ({ trueBondPrices, minTier, bonus, airdropTooltip, tooltipPosition, }) => {
@@ -64446,6 +64460,7 @@ const GetUpToComponent = ({ bond, depositAmount }) => {
64446
64460
  fontSize: '12px',
64447
64461
  fontWeight: 400,
64448
64462
  flexDirection: 'column',
64463
+ position: 'relative',
64449
64464
  }, children: [jsxs(Flex, { onClick: () => setIsOpen(!isOpen), sx: {
64450
64465
  border: '1px solid #9960C5',
64451
64466
  borderRadius: 'normal',
@@ -64456,16 +64471,17 @@ const GetUpToComponent = ({ bond, depositAmount }) => {
64456
64471
  alignItems: 'center',
64457
64472
  cursor: 'pointer',
64458
64473
  justifyContent: 'space-between',
64459
- }, children: [jsx$2(Flex, { sx: {
64460
- position: 'absolute',
64461
- width: '100%',
64462
- height: '100%',
64463
- top: 0,
64464
- left: 0,
64465
- zIndex: 0,
64466
- background: '#9960C5',
64467
- opacity: 0.2,
64468
- } }), jsxs(Flex, { sx: { alignItems: 'center', display: 'flex' }, children: [jsx$2("img", { src: `https://ape.bond/images/launch/mythical.png`, alt: "minTier", style: { width: '21px', height: '21px', marginRight: '3px', zIndex: 1 } }), jsxs(Box$1, { children: ["Get up to", jsx$2("span", { sx: { color: 'success', mx: '3px', fontWeight: 700 }, children: `+${(_a = trueBondPrice === null || trueBondPrice === void 0 ? void 0 : trueBondPrice.boost) !== null && _a !== void 0 ? _a : 0}%` }), "Boost By locking ABOND"] })] }), !!depositAmount && parseFloat(depositAmount) !== 0 && (jsxs(Flex, { sx: { color: 'success', fontWeight: 700, minWidth: '65px', justifyContent: 'flex-end' }, children: ["$ ", formatUSDNumber(boostAmount.toString()), jsx$2(Flex, { sx: { ml: '4px' }, children: jsx$2(Svg, { icon: "caret", direction: isOpen ? 'up' : 'down' }) })] }))] }), jsx$2(AnimatePresence, { children: isOpen && (jsx$2(motion.div, { initial: { height: 0 }, animate: { height: 'fit-content' }, transition: { opacity: { duration: 0.2 } }, exit: { height: 0 }, sx: { overflow: 'hidden', width: '100%', marginTop: '5px' }, children: jsx$2(BonusTable, { trueBondPrices: bond === null || bond === void 0 ? void 0 : bond.trueBondPrices, minTier: bond.minTier, hideTitle: true }) })) })] })));
64474
+ background: '#312341',
64475
+ }, children: [jsxs(Flex, { sx: { alignItems: 'center', display: 'flex' }, children: [jsx$2("img", { src: `https://ape.bond/images/launch/mythical.png`, alt: "minTier", style: { width: '21px', height: '21px', marginRight: '3px', zIndex: 1 } }), jsxs(Box$1, { children: ["Get up to", jsx$2("span", { sx: { color: 'success', mx: '3px', fontWeight: 700 }, children: `+${(_a = trueBondPrice === null || trueBondPrice === void 0 ? void 0 : trueBondPrice.boost) !== null && _a !== void 0 ? _a : 0}%` }), "Boost.", userTier !== main.LaunchBondTiers.Mythical && (jsx$2("span", { sx: {
64476
+ ml: '5px',
64477
+ color: 'primaryButton',
64478
+ fontWeight: 500,
64479
+ cursor: 'pointer',
64480
+ ':hover': { textDecoration: 'underline' },
64481
+ }, onClick: (e) => {
64482
+ e.stopPropagation();
64483
+ window.open('https://www.ape.bond/true-yield?createPosition', '_blank');
64484
+ }, children: 'By locking ABOND >' }))] })] }), !!depositAmount && parseFloat(depositAmount) !== 0 && (jsxs(Flex, { sx: { color: 'success', fontWeight: 700, minWidth: '65px', justifyContent: 'flex-end' }, children: ["$ ", formatUSDNumber(boostAmount.toString())] })), jsx$2(Flex, { sx: { ml: '4px' }, children: jsx$2(Svg, { icon: "caret", direction: isOpen ? 'up' : 'down' }) })] }), jsx$2(AnimatePresence, { children: isOpen && (jsx$2(motion.div, { initial: { height: 0 }, animate: { height: 'fit-content' }, transition: { opacity: { duration: 0.2 } }, exit: { height: 0 }, sx: { overflow: 'hidden', width: '100%', marginTop: '5px' }, children: jsx$2(BonusTable, { trueBondPrices: bond === null || bond === void 0 ? void 0 : bond.trueBondPrices, minTier: bond.minTier, hideTitle: true }) })) })] })));
64469
64485
  };
64470
64486
 
64471
64487
  const StepBubble = ({ number, title, currentStep, hideBar, loading, }) => {
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": "5.0.0",
6
+ "version": "5.0.2",
7
7
  "module": "dist/main.js",
8
8
  "type": "module",
9
9
  "types": "dist/main.d.ts",
@@ -81,7 +81,7 @@
81
81
  "yalc": "^1.0.0-pre.53"
82
82
  },
83
83
  "dependencies": {
84
- "@ape.swap/apeswap-lists": "4.5.6",
84
+ "@ape.swap/apeswap-lists": "4.5.9",
85
85
  "@emotion/react": "11.14.0",
86
86
  "@jup-ag/api": "6.0.45",
87
87
  "bignumber.js": "^9.1.2",