14.05.2026 rip

This commit is contained in:
2026-05-14 20:40:10 +03:00
parent 43cd51aa13
commit 1e5f792854
6 changed files with 31 additions and 21 deletions

View File

@@ -2,7 +2,7 @@ import btc from '@shared/assets/btc.svg'
import eth from '@shared/assets/eth.svg'
import sol from '@shared/assets/sol.svg'
import trx from '@shared/assets/trx.svg'
import arb from '@shared/assets/arb.svg'
import bnb from '@shared/assets/bnb.svg'
export interface Token {
ticker: string
@@ -21,5 +21,5 @@ export const TOKENS: readonly Token[] = [
{ ticker: 'ETH', name: 'Ethereum', logo: eth, color: '#627EEA', price: '$2,053.97', change: -0.12, bal: '0.07636', usd: '$156.51', fav: false },
{ ticker: 'SOL', name: 'Solana', logo: sol, color: '#9945FF', price: '$163.84', change: -1.57, bal: '0.07636', usd: '$156.51', fav: false },
{ ticker: 'TRX', name: 'Tron', logo: trx, color: '#FF060A', price: '$0.1197', change: 1.33, bal: '0.07636', usd: '$156.51', fav: false },
{ ticker: 'ARB', name: 'Arbitrum', logo: arb, color: '#4A6DFF', price: '$0.9214', change: 2.56, bal: '0.07636', usd: '$156.51', fav: false },
{ ticker: 'BNB', name: 'BNB Chain', logo: bnb, color: '#F3BA2F', price: '$0.00', change: 0, bal: '0.00000', usd: '$0.00', fav: false },
] as const

View File

@@ -3,10 +3,10 @@ import { CHAINS } from '@features/wallet'
import { TOKENS } from './tokens'
import type { WalletBalanceData } from '@features/wallet'
const PRICE_SYMBOLS = ['BTC', 'ETH', 'SOL', 'TRX', 'ARB']
const PRICE_SYMBOLS = ['BTC', 'ETH', 'SOL', 'TRX', 'BNB']
type ChainSource =
| { chain: 'BTC' | 'ETH' | 'SOL' | 'TRX'; type: 'native' }
| { chain: 'BTC' | 'ETH' | 'SOL' | 'TRX' | 'BSC'; type: 'native' }
| { chain: 'ETH'; type: 'token'; symbol: string }
const CHAIN_MAP: Record<string, ChainSource> = {
@@ -14,7 +14,7 @@ const CHAIN_MAP: Record<string, ChainSource> = {
ETH: { chain: 'ETH', type: 'native' },
SOL: { chain: 'SOL', type: 'native' },
TRX: { chain: 'TRX', type: 'native' },
ARB: { chain: 'ETH', type: 'token', symbol: 'ARB' },
BNB: { chain: 'BSC', type: 'native' },
}
function formatUsd(value: number): string {