@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.mjs
CHANGED
|
@@ -3140,6 +3140,7 @@ function parseToken(rawToken) {
|
|
|
3140
3140
|
);
|
|
3141
3141
|
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);
|
|
3142
3142
|
const layer = normalizeString(token.layer) ?? normalizeString(token.chain) ?? normalizeString(token.category) ?? normalizeString(token.type);
|
|
3143
|
+
const pendingRewards = normalizeNumber(token.pendingRewards);
|
|
3143
3144
|
return {
|
|
3144
3145
|
symbol: normalizedSymbol,
|
|
3145
3146
|
info: {
|
|
@@ -3149,6 +3150,7 @@ function parseToken(rawToken) {
|
|
|
3149
3150
|
accountBalance,
|
|
3150
3151
|
apr: apr ?? void 0,
|
|
3151
3152
|
layer: layer ?? void 0,
|
|
3153
|
+
pendingRewards: pendingRewards ?? void 0,
|
|
3152
3154
|
parts
|
|
3153
3155
|
},
|
|
3154
3156
|
operations: mapActions(
|
|
@@ -3770,7 +3772,7 @@ function getAccountWalletAssetInfoQueryOptions(username, asset, options2 = { ref
|
|
|
3770
3772
|
(assetItem) => assetItem.info.name === asset.toUpperCase()
|
|
3771
3773
|
);
|
|
3772
3774
|
return assetInfo?.info;
|
|
3773
|
-
} catch {
|
|
3775
|
+
} catch (e) {
|
|
3774
3776
|
return void 0;
|
|
3775
3777
|
}
|
|
3776
3778
|
};
|