fix
This commit is contained in:
@@ -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[] = [
|
||||
|
||||
@@ -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,
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user