This commit is contained in:
2026-07-24 19:19:59 +03:00
parent b6025bf9ac
commit b63313fa4f
3 changed files with 16 additions and 2 deletions

View File

@@ -17,6 +17,9 @@ export interface Token {
chain?: Chain
/** Numeric USD value of the holding — used for sorting and per-network subtotals. */
usdValue?: number
/** Token decimals from the balance endpoint — used to convert a human send
* amount into base units. Absent for the static placeholder catalog. */
decimals?: number
}
export const TOKENS: readonly Token[] = [

View File

@@ -55,6 +55,7 @@ function nativeRowFor(chain: Chain, native: FormattedAmount): Token {
bal: truncateDecimals(native.formatted),
usd: formatUsd(native.usdValue),
usdValue: native.usdValue,
decimals: native.decimals,
fav: false,
}
}
@@ -73,6 +74,7 @@ function tokenRowFor(chain: Chain, symbol: string, amount: FormattedAmount): Tok
bal: truncateDecimals(amount.formatted),
usd: formatUsd(amount.usdValue),
usdValue: amount.usdValue,
decimals: amount.decimals,
fav: false,
}
}