@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.
@@ -697,6 +697,7 @@ interface GeneralAssetInfo {
697
697
  accountBalance: number;
698
698
  apr?: string;
699
699
  layer?: string;
700
+ pendingRewards?: number;
700
701
  parts?: {
701
702
  name: string;
702
703
  balance: number;
@@ -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(
@@ -3772,7 +3774,7 @@ function getAccountWalletAssetInfoQueryOptions(username, asset, options2 = { ref
3772
3774
  (assetItem) => assetItem.info.name === asset.toUpperCase()
3773
3775
  );
3774
3776
  return assetInfo?.info;
3775
- } catch {
3777
+ } catch (e) {
3776
3778
  return void 0;
3777
3779
  }
3778
3780
  };