mars-v2-frontend/config/tokenInfo.ts
Gustavo Mauricio bbbdca6950
MP-1227: Borrow Page (#24)
* added icon for atom and tokenInfo data update

* borrow page initial commit

* feat: borrow funds to ca and wallet

* close borrow module on tx success

* feat: repay funds initial setup

* repay funds action hook

* repay slider. module state on borrow page component

* styling: minor tweak to text colors

* limit manual input on repay to max value

* borrow funds component slider initial

* style: max button typography

* AssetRow extracted to separate file. organize imports

* ContainerSecondary component added

* loading indicator for pending actions

* style: progress bar colors

* tanstack table added

* tanstack react-table dependency missing

* table cleanup and layout adjustments

* fix account stats formula and update market data to match spreadsheet

* calculate max borrow amount hook

* reset borrow and repay components on account change

* max borrow amount decimals. memorized return

* hook tanstack data with real data

* redefine borrowedAssetsMap to map

* update max borrow amount formulas

* remove unnecessary table component. refactor borrow table
2022-10-20 16:39:21 +01:00

24 lines
435 B
TypeScript

type Token = {
symbol: string
decimals: number
icon: string
chain: string
}
const tokenInfo: { [key in string]: Token } = {
uosmo: {
symbol: 'OSMO',
decimals: 6,
icon: '/tokens/osmo.svg',
chain: 'Osmosis',
},
'ibc/27394FB092D2ECCD56123C74F36E4C1F926001CEADA9CA97EA622B25F41E5EB2': {
symbol: 'ATOM',
icon: '/tokens/atom.svg',
decimals: 6,
chain: 'Cosmos',
},
}
export default tokenInfo