@ape.swap/bonds-sdk 4.5.1 → 4.5.3
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 +5 -1
- package/package.json +1 -1
package/dist/main.js
CHANGED
|
@@ -79164,7 +79164,7 @@ const GetUpToComponent = ({ bond, depositAmount }) => {
|
|
|
79164
79164
|
zIndex: 0,
|
|
79165
79165
|
background: '#9960C5',
|
|
79166
79166
|
opacity: 0.2,
|
|
79167
|
-
} }), jsxs(Flex, { sx: { alignItems: 'center', display: ['ruby', 'ruby', 'ruby', 'flex'] }, children: [jsx$2("img", { src: `https://ape.bond/images/launch/
|
|
79167
|
+
} }), jsxs(Flex, { sx: { alignItems: 'center', display: ['ruby', 'ruby', 'ruby', 'flex'] }, children: [jsx$2("img", { src: `https://ape.bond/images/launch/mythical.png`, alt: "minTier", style: { width: '21px', height: '21px', marginRight: '3px', zIndex: 1 } }), "Get up to", jsx$2(Flex, { 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 }) })) })] })));
|
|
79168
79168
|
};
|
|
79169
79169
|
|
|
79170
79170
|
const StepBubble = ({ number, title, currentStep, hideBar, loading, }) => {
|
|
@@ -80625,6 +80625,7 @@ const BuyComponentSolana = ({ onDismiss, bondAddress, bondChain, isProjectView,
|
|
|
80625
80625
|
const { data: bonds } = useBondsData();
|
|
80626
80626
|
const { addToastError, addToastSuccess } = usePopups();
|
|
80627
80627
|
const { solSlippage: slippage } = useSlippage();
|
|
80628
|
+
const sendReferenceId = useSendReferenceId();
|
|
80628
80629
|
const bondData = bonds === null || bonds === void 0 ? void 0 : bonds.find((bond) => { var _a, _b; return ((_b = (_a = bond === null || bond === void 0 ? void 0 : bond.contractAddress) === null || _a === void 0 ? void 0 : _a[bond === null || bond === void 0 ? void 0 : bond.chainId]) === null || _b === void 0 ? void 0 : _b.toLowerCase()) === (bondAddress === null || bondAddress === void 0 ? void 0 : bondAddress.toLowerCase()); });
|
|
80629
80630
|
// Tier Gating
|
|
80630
80631
|
const trueBondPriceData = findHighestTrueBondPrice('0', bondData === null || bondData === void 0 ? void 0 : bondData.trueBondPrices);
|
|
@@ -80773,6 +80774,7 @@ const BuyComponentSolana = ({ onDismiss, bondAddress, bondChain, isProjectView,
|
|
|
80773
80774
|
usdAmount: parseFloat(inputValue) * (inputTokenPrice !== null && inputTokenPrice !== void 0 ? inputTokenPrice : 0),
|
|
80774
80775
|
},
|
|
80775
80776
|
});
|
|
80777
|
+
yield sendReferenceId(bondData.contractAddress[bondData.chainId], main.ChainId.SOL, txId);
|
|
80776
80778
|
// waits 3 seconds before triggering after-purchase flow
|
|
80777
80779
|
yield new Promise((resolve) => setTimeout(resolve, 3000));
|
|
80778
80780
|
addToastSuccess(txId, bondChain);
|
|
@@ -81006,6 +81008,7 @@ const BuyComponentSolana = ({ onDismiss, bondAddress, bondChain, isProjectView,
|
|
|
81006
81008
|
console.log('SINGLE transaction confirmed:', txId);
|
|
81007
81009
|
// Track success
|
|
81008
81010
|
trackZapEvents('single-tx');
|
|
81011
|
+
yield sendReferenceId(bondData.contractAddress[bondData.chainId], main.ChainId.SOL, txId);
|
|
81009
81012
|
yield new Promise((resolve) => setTimeout(resolve, 3000));
|
|
81010
81013
|
addToastSuccess(txId, bondChain);
|
|
81011
81014
|
setBillId === null || setBillId === void 0 ? void 0 : setBillId(nftMint.publicKey.toString());
|
|
@@ -81055,6 +81058,7 @@ const BuyComponentSolana = ({ onDismiss, bondAddress, bondChain, isProjectView,
|
|
|
81055
81058
|
console.log('Bond transaction confirmed:', bondTxId);
|
|
81056
81059
|
// Track both transactions
|
|
81057
81060
|
trackZapEvents('two-tx');
|
|
81061
|
+
yield sendReferenceId(bondData.contractAddress[bondData.chainId], main.ChainId.SOL, bondTxId);
|
|
81058
81062
|
yield new Promise((resolve) => setTimeout(resolve, 3000));
|
|
81059
81063
|
addToastSuccess(bondTxId, bondChain);
|
|
81060
81064
|
setBillId === null || setBillId === void 0 ? void 0 : setBillId(nftMint.publicKey.toString());
|