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

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 +9 -3
  2. package/package.json +1 -1
package/dist/main.js CHANGED
@@ -78714,8 +78714,12 @@ const BondModalMinTierHeader = ({ minTier }) => {
78714
78714
  alignItems: 'center',
78715
78715
  flexDirection: 'row-reverse',
78716
78716
  width: ['100%', '100%', '100%', 'auto', 'auto'],
78717
- }, children: Object.values(TIERS_NAMES).map((tier, index) => {
78718
- if (index >= minTier) {
78717
+ }, children: Object.values(TIERS_NAMES)
78718
+ .filter((tier) => tier !== 'No Tier')
78719
+ .map((tier, index) => {
78720
+ if (index + 1 >= minTier) {
78721
+ console.log(index);
78722
+ console.log(tier);
78719
78723
  return (jsx$2(TooltipBubble, { className: "tooltip-bubble", body: jsx$2(Flex, { sx: { justifyContent: 'center' }, children: tier }), width: "100px", placement: "bottomLeft", transformTip: "translate(1%, -5%)", children: jsx$2("img", { src: `https://ape.bond/images/launch/${tier.toLowerCase()}.png`, alt: "minTier", style: { width: '25px', height: '25px', marginLeft: '3px', zIndex: 1 } }, `tier-logo-${index}`) }, tier));
78720
78724
  }
78721
78725
  }) })) }));
@@ -78997,7 +79001,9 @@ const Estimations = ({ depositAmount, bondData, youSpendString, isZap, fetchingZ
78997
79001
  const boostAmount = parseFloat(getRawBonus$1(bondData, depositAmount, userPoints !== null && userPoints !== void 0 ? userPoints : '0')) - parseFloat(noTierAmount);
78998
79002
  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
78999
79003
  ? 'Base Bonus:'
79000
- : '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: {
79004
+ : 'Bonus:', jsx$2(TooltipBubble, { className: "tooltip-bubble", body: jsx$2(Flex, { children: ((bondData === null || bondData === void 0 ? void 0 : bondData.feeInPayout) || 0) > 0
79005
+ ? `This is the dollar value of the bonus tokens you’ll receive at current market price, already accounting for the protocol fee (${bondData.feeInPayout}%)`
79006
+ : 'This is the dollar value of the bonus tokens you’ll receive at current market price.' }), 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: {
79001
79007
  border: '1px solid #9960C5',
79002
79008
  borderRadius: 'normal',
79003
79009
  mx: '-8px',
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.5.0-test.6",
6
+ "version": "4.5.0-test.8",
7
7
  "module": "dist/main.js",
8
8
  "type": "module",
9
9
  "types": "dist/main.d.ts",