@ape.swap/bonds-sdk 1.0.166 → 1.0.167
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.
|
@@ -161,7 +161,7 @@ var Bonds = function (_a) {
|
|
|
161
161
|
var getDiscountColor = function (discount) {
|
|
162
162
|
return discount < 0 ? 'discount-negative' : 'discount-positive';
|
|
163
163
|
};
|
|
164
|
-
return (_jsxs(ThemeUIProvider, __assign({ theme: defaultTheme }, { children: [isActive && account && _jsx("p", { children: account }), isActive && account && _jsx("button", __assign({ onClick: handleApprove }, { children: "Approve USDT" })), _jsxs(Flex, __assign({ className: "container table-container" }, { children: [_jsxs(Flex, __assign({ className: "container header-container" }, { children: [_jsx(Flex, __assign({ className: "column column-
|
|
164
|
+
return (_jsxs(ThemeUIProvider, __assign({ theme: defaultTheme }, { children: [isActive && account && _jsx("p", { children: account }), isActive && account && _jsx("button", __assign({ onClick: handleApprove }, { children: "Approve USDT" })), _jsxs(Flex, __assign({ className: "container table-container" }, { children: [_jsxs(Flex, __assign({ className: "container header-container" }, { children: [_jsx(Flex, __assign({ className: "column column-token" }, { children: "Tokens" })), _jsx(Flex, __assign({ className: "column column-discount" }, { children: "Discount" })), _jsx(Flex, __assign({ className: "column column-arr" }, { children: "ARR" })), _jsx(Flex, __assign({ className: "column column-term" }, { children: "Terms" })), _jsx(Flex, __assign({ className: "column column-tokensremaining" }, { children: "Tokens Remaining" })), _jsx(Flex, { className: "column column-hotbond" })] })), sortedBonds.map(function (bond) {
|
|
165
165
|
var _a, _b, _c;
|
|
166
166
|
return (_jsxs(Flex, __assign({ className: "container bondrow-container", onClick: function () { return rowClick(bond); } }, { children: [_jsx(Flex, __assign({ className: "column column-token" }, { children: bond.showcaseTokenName })), _jsx(Flex, __assign({ className: "column column-discount ".concat(getDiscountColor(bond === null || bond === void 0 ? void 0 : bond.discount)) }, { children: "".concat((_a = bond === null || bond === void 0 ? void 0 : bond.discount) === null || _a === void 0 ? void 0 : _a.toFixed(2), "%") })), _jsx(Flex, __assign({ className: "column column-arr" }, { children: "".concat(((((_b = bond === null || bond === void 0 ? void 0 : bond.discount) !== null && _b !== void 0 ? _b : 0) * 365) / vestingTime(bond.vestingTerm).days).toFixed(2), "%") })), _jsx(Flex, __assign({ className: "column column-term" }, { children: vestingTime(bond.vestingTerm).days ? "".concat(vestingTime(bond.vestingTerm).days, " D") : '-' })), _jsx(Flex, __assign({ className: "column column-tokensremaining" }, { children: bond.tokensRemaining.split('.')[0] })), _jsx(Flex, __assign({ className: "column column-hotbond" }, { children: _jsx(Flex, __assign({ className: "column column-icon" }, { children: hotBonds.includes(bond.billAddress.toLowerCase()) && ((_c = bond.discount) !== null && _c !== void 0 ? _c : 0) > 0 && (_jsx(Svg, { icon: "fire", width: "20px" })) })) }))] }), bond.billAddress));
|
|
167
167
|
})] }))] })));
|
package/dist/scss/Bonds.scss
CHANGED
|
@@ -69,28 +69,24 @@
|
|
|
69
69
|
}
|
|
70
70
|
|
|
71
71
|
.column.column-arr {
|
|
72
|
-
width: 50px;
|
|
73
72
|
flex-direction: column;
|
|
74
73
|
justify-content: center;
|
|
75
74
|
align-items: center;
|
|
76
75
|
}
|
|
77
76
|
|
|
78
77
|
.column.column-term {
|
|
79
|
-
width: 50px;
|
|
80
78
|
flex-direction: column;
|
|
81
79
|
justify-content: center;
|
|
82
80
|
align-items: center;
|
|
83
81
|
}
|
|
84
82
|
|
|
85
83
|
.column.column-tokensremaining {
|
|
86
|
-
width: 50px;
|
|
87
84
|
flex-direction: column;
|
|
88
85
|
justify-content: center;
|
|
89
86
|
align-items: center;
|
|
90
87
|
}
|
|
91
88
|
|
|
92
89
|
.column.column-hotbond {
|
|
93
|
-
width: 50px;
|
|
94
90
|
flex-direction: column;
|
|
95
91
|
justify-content: center;
|
|
96
92
|
align-items: center;
|