@ecency/wallets 1.5.5 → 1.5.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/node/index.cjs
CHANGED
|
@@ -3167,6 +3167,7 @@ function parseToken(rawToken) {
|
|
|
3167
3167
|
);
|
|
3168
3168
|
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);
|
|
3169
3169
|
const layer = normalizeString(token.layer) ?? normalizeString(token.chain) ?? normalizeString(token.category) ?? normalizeString(token.type);
|
|
3170
|
+
const pendingRewards = normalizeNumber(token.pendingRewards);
|
|
3170
3171
|
return {
|
|
3171
3172
|
symbol: normalizedSymbol,
|
|
3172
3173
|
info: {
|
|
@@ -3176,6 +3177,7 @@ function parseToken(rawToken) {
|
|
|
3176
3177
|
accountBalance,
|
|
3177
3178
|
apr: apr ?? void 0,
|
|
3178
3179
|
layer: layer ?? void 0,
|
|
3180
|
+
pendingRewards: pendingRewards ?? void 0,
|
|
3179
3181
|
parts
|
|
3180
3182
|
},
|
|
3181
3183
|
operations: mapActions(
|
|
@@ -3797,7 +3799,7 @@ function getAccountWalletAssetInfoQueryOptions(username, asset, options2 = { ref
|
|
|
3797
3799
|
(assetItem) => assetItem.info.name === asset.toUpperCase()
|
|
3798
3800
|
);
|
|
3799
3801
|
return assetInfo?.info;
|
|
3800
|
-
} catch {
|
|
3802
|
+
} catch (e) {
|
|
3801
3803
|
return void 0;
|
|
3802
3804
|
}
|
|
3803
3805
|
};
|