1deba2059e
* update generated types * added CRO to token info * update contract addresses to match latest deployment * feat: token prices fetched from oracle contract * trade page initial commit * trade asset action hook * extract max swap amount logic into custom hook * trade component ui adjustments * trade container min-width and some styling improvements * trade success message and loading indicator * normalize naming conventions on trading * max swap amount formula adjustments * trade execute msg with borrow. code cleanup * fix: click max update tokenOut amount. remove wallet from fund denom * delay token amount decimal conversion. input formatting * increase hardcoded gas * renamed max swappable amount hook * display token prices and market information on landing page * reset trade amounts when selected account change * max trade amount cleanup and minor performance optimizations * fix: liabilities value with 1 hour interest buffer for trade action * add token symbol to wallet and account labels * swap trade pairs icon and basic functionality * remove unnecessary optional chaining. comment adjusted * refactor useTokenPrices to build query dynamically on tokens data * extracted trade container and respective functionality into separate file * fix: properly calculate positions after full swap * mp-1218: trading using wallet
34 lines
808 B
TypeScript
34 lines
808 B
TypeScript
type Token = {
|
|
denom: string
|
|
symbol: string
|
|
decimals: number
|
|
icon: string
|
|
chain: string
|
|
}
|
|
|
|
const tokenInfo: { [key in string]: Token } = {
|
|
uosmo: {
|
|
denom: 'uosmo',
|
|
symbol: 'OSMO',
|
|
decimals: 6,
|
|
icon: '/tokens/osmo.svg',
|
|
chain: 'Osmosis',
|
|
},
|
|
'ibc/27394FB092D2ECCD56123C74F36E4C1F926001CEADA9CA97EA622B25F41E5EB2': {
|
|
denom: 'ibc/27394FB092D2ECCD56123C74F36E4C1F926001CEADA9CA97EA622B25F41E5EB2',
|
|
symbol: 'ATOM',
|
|
icon: '/tokens/atom.svg',
|
|
decimals: 6,
|
|
chain: 'Cosmos',
|
|
},
|
|
'ibc/E6931F78057F7CC5DA0FD6CEF82FF39373A6E0452BF1FD76910B93292CF356C1': {
|
|
denom: 'ibc/E6931F78057F7CC5DA0FD6CEF82FF39373A6E0452BF1FD76910B93292CF356C1',
|
|
symbol: 'CRO',
|
|
icon: '/tokens/cro.jpg',
|
|
decimals: 8,
|
|
chain: 'Crypto.org',
|
|
},
|
|
}
|
|
|
|
export default tokenInfo
|