@ecency/wallets 1.5.5 → 1.5.6
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/browser/index.d.ts
CHANGED
package/dist/browser/index.js
CHANGED
|
@@ -3142,6 +3142,7 @@ function parseToken(rawToken) {
|
|
|
3142
3142
|
);
|
|
3143
3143
|
const accountBalance = normalizeNumber(token.balance) ?? normalizeNumber(token.accountBalance) ?? normalizeNumber(token.totalBalance) ?? normalizeNumber(token.total) ?? normalizeNumber(token.amount) ?? (baseParts ? baseParts.reduce((total, part) => total + (part.balance ?? 0), 0) : parts ? parts.reduce((total, part) => total + (part.balance ?? 0), 0) : 0);
|
|
3144
3144
|
const layer = normalizeString(token.layer) ?? normalizeString(token.chain) ?? normalizeString(token.category) ?? normalizeString(token.type);
|
|
3145
|
+
const pendingRewards = normalizeNumber(token.pendingRewards);
|
|
3145
3146
|
return {
|
|
3146
3147
|
symbol: normalizedSymbol,
|
|
3147
3148
|
info: {
|
|
@@ -3151,6 +3152,7 @@ function parseToken(rawToken) {
|
|
|
3151
3152
|
accountBalance,
|
|
3152
3153
|
apr: apr ?? void 0,
|
|
3153
3154
|
layer: layer ?? void 0,
|
|
3155
|
+
pendingRewards: pendingRewards ?? void 0,
|
|
3154
3156
|
parts
|
|
3155
3157
|
},
|
|
3156
3158
|
operations: mapActions(
|