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
This commit is contained in:
+4
-1
@@ -2,6 +2,7 @@ type Token = {
|
||||
symbol: string
|
||||
decimals: number
|
||||
icon: string
|
||||
chain: string
|
||||
}
|
||||
|
||||
const tokenInfo: { [key in string]: Token } = {
|
||||
@@ -9,11 +10,13 @@ const tokenInfo: { [key in string]: Token } = {
|
||||
symbol: 'OSMO',
|
||||
decimals: 6,
|
||||
icon: '/tokens/osmo.svg',
|
||||
chain: 'Osmosis',
|
||||
},
|
||||
'ibc/27394FB092D2ECCD56123C74F36E4C1F926001CEADA9CA97EA622B25F41E5EB2': {
|
||||
symbol: 'ATOM',
|
||||
icon: '',
|
||||
icon: '/tokens/atom.svg',
|
||||
decimals: 6,
|
||||
chain: 'Cosmos',
|
||||
},
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user