mars-v2-frontend/utils/chains.ts
Gustavo Mauricio d22de166da
Borrow improvements (#29)
* update token prices and market data to match smart contract

* feat: redbank balances query and respective rendering on ui

* query key for rb balances and respective invalidations

* update contracts config

* fix: avoid returning negative max borrow amounts

* fix: added deposit action to repay execute message

* add minus sign before apy on debt positions

* consider market liquidity on max borrow calculation

* hive url added to chain config

* update hardcoded token decimals
2022-10-24 16:15:26 +01:00

57 lines
1.6 KiB
TypeScript

export const chainsInfo = {
Injective: {
chainId: 'injective-1',
rpc: 'https://tm.injective.network',
rest: 'https://lcd.injective.network',
stakeCurrency: {
coinDenom: 'INJ',
coinMinimalDenom: 'inj',
coinDecimals: 18,
coinGeckoId: 'injective-protocol',
coinImageUrl: '/tokens/injective.svg',
},
// works
// rest: "https://lcd.injective.network",
},
InjectiveTestnet: {
chainId: 'injective-888',
// need to check
rpc: 'https://testnet.tm.injective.dev',
rest: 'https://testnet.lcd.injective.dev',
stakeCurrency: {
coinDenom: 'INJ',
coinMinimalDenom: 'inj',
coinDecimals: 18,
coinGeckoId: 'injective-protocol',
coinImageUrl: '/tokens/injective.svg',
},
},
Osmosis: {
chainId: 'osmosis-1',
rpc: 'https://rpc.osmosis.zone',
rest: 'https://lcd.osmosis.zone',
stakeCurrency: {
coinDenom: 'OSMO',
coinMinimalDenom: 'uosmo',
coinDecimals: 6,
coinGeckoId: 'osmosis',
coinImageUrl: '/tokens/osmo.svg',
},
},
OsmosisTestnet: {
chainId: 'osmo-test-4',
rpc: 'https://osmosis-delphi-testnet-1.simply-vc.com.mt/XF32UOOU55CX/osmosis-rpc',
rest: 'https://osmosis-delphi-testnet-1.simply-vc.com.mt/XF32UOOU55CX/osmosis-lcd',
hive: 'https://osmosis-delphi-testnet-1.simply-vc.com.mt/XF32UOOU55CX/osmosis-hive/graphql',
stakeCurrency: {
coinDenom: 'OSMO',
coinMinimalDenom: 'uosmo',
coinDecimals: 6,
coinGeckoId: 'osmosis',
coinImageUrl: '/tokens/osmo.svg',
},
},
}
export const chain = chainsInfo.OsmosisTestnet