@ape.swap/bonds-sdk 3.0.48 → 3.0.50
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.
|
@@ -3,3 +3,4 @@ export declare const supportedByLIFI: ChainId[];
|
|
|
3
3
|
export declare const APESWAP_LIST_REPO = "https://raw.githubusercontent.com/ApeSwapFinance/apeswap-token-lists/staging";
|
|
4
4
|
export declare const STRAPI_URL = "https://strapi-api.ape.bond";
|
|
5
5
|
export declare const SOUL_ZAP_API = "https://zap-api.ape.bond/zap?batch=1";
|
|
6
|
+
export declare const APEBOND = "https://ape.bond";
|
package/dist/main.js
CHANGED
|
@@ -18824,6 +18824,7 @@ const supportedByLIFI = [
|
|
|
18824
18824
|
const APESWAP_LIST_REPO = `https://raw.githubusercontent.com/ApeSwapFinance/apeswap-token-lists/staging`;
|
|
18825
18825
|
const STRAPI_URL = `https://strapi-api.ape.bond`;
|
|
18826
18826
|
const SOUL_ZAP_API = `https://zap-api.ape.bond/zap?batch=1`;
|
|
18827
|
+
const APEBOND = `https://ape.bond`;
|
|
18827
18828
|
|
|
18828
18829
|
const TokenImage = ({ symbol, symbol2, size, chain, }) => {
|
|
18829
18830
|
var _a, _b;
|
|
@@ -18836,7 +18837,7 @@ const TokenImage = ({ symbol, symbol2, size, chain, }) => {
|
|
|
18836
18837
|
alignItems: 'center',
|
|
18837
18838
|
borderRadius: '55px',
|
|
18838
18839
|
position: 'relative',
|
|
18839
|
-
}, children: [jsx$2("img", { src: `${
|
|
18840
|
+
}, children: [jsx$2("img", { src: `${APEBOND}/tokenImages/${token1 === null || token1 === void 0 ? void 0 : token1.toUpperCase()}.png`, alt: `tokenImgFor:${token1}`, width: size, height: size, style: { position: 'absolute', zIndex: 4001, left: 0 } }), jsx$2("img", { src: `${APEBOND}/tokenImages/${token2.toUpperCase()}.png`, alt: `tokenImgFor:${token2}`, width: size, height: size, style: { position: 'absolute', zIndex: 4000, left: '33%' } }), chain && (jsx$2(Flex, { sx: {
|
|
18840
18841
|
zIndex: 4002,
|
|
18841
18842
|
position: 'absolute',
|
|
18842
18843
|
top: '-2px',
|
|
@@ -18850,7 +18851,7 @@ const TokenImage = ({ symbol, symbol2, size, chain, }) => {
|
|
|
18850
18851
|
alignItems: 'center',
|
|
18851
18852
|
borderRadius: '55px',
|
|
18852
18853
|
position: 'relative',
|
|
18853
|
-
}, children: [jsx$2("img", { src: `${
|
|
18854
|
+
}, children: [jsx$2("img", { src: `${APEBOND}/tokenImages/${token1 === null || token1 === void 0 ? void 0 : token1.toUpperCase()}.png`, alt: `tokenImgFor:${token1}`, width: size, height: token1 === 'BNB-ICHI' ? 19 : size }), chain && (jsx$2(Flex, { sx: {
|
|
18854
18855
|
zIndex: 5,
|
|
18855
18856
|
position: 'absolute',
|
|
18856
18857
|
top: '-2px',
|
|
@@ -76681,7 +76682,7 @@ const Estimations = ({ depositAmount, bondData, youSpendString, isZap, fetchingZ
|
|
|
76681
76682
|
background: 'primaryButton',
|
|
76682
76683
|
opacity: 0.3,
|
|
76683
76684
|
borderRadius: 'normal',
|
|
76684
|
-
} }), jsxs(Flex, { className: "row-container premium", sx: { zIndex: 1 }, children: [jsx$2("img", { src: `/images/launch/${tierName === null || tierName === void 0 ? void 0 : tierName.toLowerCase()}.png`, alt: "minTier", style: { width: '21px', height: '21px', marginRight: '3px', zIndex: 1 } }), jsx$2(Flex, { sx: { color: 'success', mr: '3px', fontWeight: 700 }, children: `${(_c = trueBondPrice === null || trueBondPrice === void 0 ? void 0 : trueBondPrice.boost) !== null && _c !== void 0 ? _c : 0}%` }), "Boost:", jsx$2(TooltipBubble, { className: "tooltip-bubble", body: jsx$2(Flex, { children: TooltipText.Boost }), 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 premium-positive`, children: ["$ ", formatUSDNumber(boostAmount.toString())] }))] })), !!bondData.feeInPayout && (jsxs(Flex, { className: "text-container row", children: [jsxs(Flex, { className: "row-container premium", children: ["Fee:", jsx$2(TooltipBubble, { className: "tooltip-bubble", body: jsxs(Flex, { children: ["This is the
|
|
76685
|
+
} }), jsxs(Flex, { className: "row-container premium", sx: { zIndex: 1 }, children: [jsx$2("img", { src: `/images/launch/${tierName === null || tierName === void 0 ? void 0 : tierName.toLowerCase()}.png`, alt: "minTier", style: { width: '21px', height: '21px', marginRight: '3px', zIndex: 1 } }), jsx$2(Flex, { sx: { color: 'success', mr: '3px', fontWeight: 700 }, children: `${(_c = trueBondPrice === null || trueBondPrice === void 0 ? void 0 : trueBondPrice.boost) !== null && _c !== void 0 ? _c : 0}%` }), "Boost:", jsx$2(TooltipBubble, { className: "tooltip-bubble", body: jsx$2(Flex, { children: TooltipText.Boost }), 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 premium-positive`, children: ["$ ", formatUSDNumber(boostAmount.toString())] }))] })), !!bondData.feeInPayout && (jsxs(Flex, { className: "text-container row", children: [jsxs(Flex, { className: "row-container premium", children: ["Fee:", jsx$2(TooltipBubble, { className: "tooltip-bubble", body: jsxs(Flex, { children: ["This is the protocol fee (", bondData.feeInPayout, "%)."] }), width: "230px", placement: "bottomLeft", transformTip: "translate(-5%, -5%)", 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`, children: ["$ ", formatUSDNumber(feeUSD.toString())] }))] })), jsxs(Flex, { className: "text-container row", children: [jsxs(Flex, { className: "row-container get", children: ["You Get (over ", vestingTime(((_d = bondData === null || bondData === void 0 ? void 0 : bondData.vestingTerm) !== null && _d !== void 0 ? _d : 0) - ((_e = bondData.vestingCliff) !== null && _e !== void 0 ? _e : 0)).days, " days):"] }), isZap && fetchingZapQuote ? (jsx$2(Dots, {})) : isZap && zapError ? ('-') : (jsxs(Flex, { className: "row-container get-val", children: [formatNumber$1(estimatedOutputAmount.toString()), " ", bondData === null || bondData === void 0 ? void 0 : bondData.showcaseTokenName, " = $", ' ', formatUSDNumber(estimatedOutputUSD.toString())] }))] })] }));
|
|
76685
76686
|
};
|
|
76686
76687
|
|
|
76687
76688
|
const ProjectDescription = ({ description, isProjectView }) => {
|