profile refactor
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user