@deframe-sdk/components 0.1.43 → 0.1.44
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/index.js +1 -4
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +1 -4
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -10145,10 +10145,7 @@ var EarnDesktopViewSimple = ({
|
|
|
10145
10145
|
className
|
|
10146
10146
|
}) => {
|
|
10147
10147
|
const [activeCategoryId, setActiveCategoryId] = React6__namespace.default.useState(null);
|
|
10148
|
-
const totalEarnings =
|
|
10149
|
-
() => positions.positions.reduce((sum, p) => sum + p.spotPosition.profitInUSD, 0),
|
|
10150
|
-
[positions.positions]
|
|
10151
|
-
);
|
|
10148
|
+
const totalEarnings = positions.summary.totalProfitInUSD;
|
|
10152
10149
|
const statsCards = React6__namespace.default.useMemo(() => [
|
|
10153
10150
|
{ label: "Total Investido", value: formatCurrency(positions.summary.totalUnderlyingBalanceUSD), badge: "Soma de todos os dep\xF3sitos ativos." },
|
|
10154
10151
|
{ label: "Juros Acumulados", value: formatCurrency(totalEarnings), badge: "Rendimentos acumulados desde o in\xEDcio." }
|