@ape.swap/bonds-sdk 4.5.0-test.5 → 4.5.0-test.7
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 +7 -4
- package/package.json +1 -1
package/dist/main.js
CHANGED
|
@@ -63159,7 +63159,7 @@ const defaultUrls = {
|
|
|
63159
63159
|
// Staging URLS.
|
|
63160
63160
|
const stagingUrls = {
|
|
63161
63161
|
apiV2: 'https://staging-api.ape.bond',
|
|
63162
|
-
realTimeApi: 'https://realtime-api-
|
|
63162
|
+
realTimeApi: 'https://realtime-api-staging.ape.bond',
|
|
63163
63163
|
mainUrl: 'https://staging.ape.bond',
|
|
63164
63164
|
priceApi: 'https://price-api.ape.bond',
|
|
63165
63165
|
};
|
|
@@ -75908,7 +75908,6 @@ const YourBondsModal = ({ userBill, onDismiss }) => {
|
|
|
75908
75908
|
// Static Data
|
|
75909
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;
|
|
75910
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
75911
|
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
75912
|
const payoutUSD = payout && payoutTokenPrice ? payout * payoutTokenPrice : 0;
|
|
75914
75913
|
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;
|
|
@@ -78715,8 +78714,12 @@ const BondModalMinTierHeader = ({ minTier }) => {
|
|
|
78715
78714
|
alignItems: 'center',
|
|
78716
78715
|
flexDirection: 'row-reverse',
|
|
78717
78716
|
width: ['100%', '100%', '100%', 'auto', 'auto'],
|
|
78718
|
-
}, children: Object.values(TIERS_NAMES)
|
|
78719
|
-
|
|
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);
|
|
78720
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));
|
|
78721
78724
|
}
|
|
78722
78725
|
}) })) }));
|