types.ts
1 export type TxState = { 2 txError?: string; 3 success: boolean; 4 gasEstimationError?: string; 5 }; 6 7 export type Reward = { 8 assets: string[]; 9 incentiveControllerAddress: string; 10 symbol: string; 11 balance: string; 12 balanceUsd: string; 13 rewardTokenAddress: string; 14 }; 15 16 export type EmodeCategory = { 17 id: number; 18 label: string; 19 ltv: string; 20 liquidationThreshold: string; 21 liquidationBonus: string; 22 assets: Array<{ 23 underlyingAsset: string; 24 symbol: string; 25 iconSymbol: string; 26 collateral: boolean; 27 borrowable: boolean; 28 }>; 29 }; 30 31 export enum CollateralType { 32 ENABLED, 33 ISOLATED_ENABLED, 34 DISABLED, 35 ISOLATED_DISABLED, 36 UNAVAILABLE, 37 UNAVAILABLE_DUE_TO_ISOLATION, 38 }