profile refactor

This commit is contained in:
2026-06-29 19:42:07 +03:00
parent 3020d6b334
commit a5737e12e6
2 changed files with 16 additions and 6 deletions

View File

@@ -95,8 +95,9 @@ export interface OrgAmountRaw {
raw: string
formatted: string
decimals: number
usd_price: string
usd_value: string
// null when pricing is unavailable (e.g. an upstream provider error).
usd_price: string | null
usd_value: string | null
}
export interface OrgWalletBalance {
@@ -107,13 +108,14 @@ export interface OrgWalletBalance {
native_symbol: string
native: OrgAmountRaw
tokens: Record<string, OrgAmountRaw>
total_usd: string
// null when the wallet's balance could not be fetched (see `error`).
total_usd: string | null
error: string | null
}
export interface OrgBalancesResponse {
items: OrgWalletBalance[]
total_usd: string
total_usd: string | null
has_errors: boolean
}