Files
assetx/webapp/lib/api/tokens.ts

13 lines
333 B
TypeScript
Raw Normal View History

// Token interface for swap
export interface Token {
symbol: string;
name: string;
decimals: number; // 配置值(兜底)
onChainDecimals?: number; // 链上实际读取值,优先使用
iconUrl: string;
contractAddress: string;
chainId: number;
tokenType: 'stablecoin' | 'yield-token';
}