diff --git a/src/components/MarketDetails.tsx b/src/components/MarketDetails.tsx index 219fe65f..607a8a65 100644 --- a/src/components/MarketDetails.tsx +++ b/src/components/MarketDetails.tsx @@ -68,7 +68,9 @@ export default function MarketDetails({ row, type }: Props) { title: 'Oracle Price', }, { - amount: totalBorrowed.dividedBy(marketDepositAmount).multipliedBy(100).toNumber(), + amount: totalBorrowed.isZero() + ? 0 + : totalBorrowed.dividedBy(marketDepositAmount).multipliedBy(100).toNumber(), options: { minDecimals: 2, maxDecimals: 2, suffix: '%' }, title: 'Utilization Rate', }, @@ -97,7 +99,9 @@ export default function MarketDetails({ row, type }: Props) { title: 'Oracle Price', }, { - amount: totalBorrowed.dividedBy(marketDepositAmount).multipliedBy(100).toNumber(), + amount: totalBorrowed.isZero() + ? 0 + : totalBorrowed.dividedBy(marketDepositAmount).multipliedBy(100).toNumber(), options: { minDecimals: 2, maxDecimals: 2, suffix: '%' }, title: 'Utilization Rate', }, diff --git a/src/constants/assets.ts b/src/constants/assets.ts index bee4f54d..387946c0 100644 --- a/src/constants/assets.ts +++ b/src/constants/assets.ts @@ -229,6 +229,42 @@ export const ASSETS: Asset[] = [ poolId: 1249, pythHistoryFeedId: 'Crypto.TIA/USD', }, + { + symbol: 'AKT', + id: 'AKT', + name: 'Akash', + denom: 'ibc/1480B8FD20AD5FCAE81EA87584D269547DD4D436843C1D20F15E00EB64743EF4', + color: '#F34C2D', + logo: '/images/tokens/akt.svg', + decimals: 6, + hasOraclePrice: true, + isEnabled: true, + isMarket: true, + isDisplayCurrency: true, + isAutoLendEnabled: true, + isBorrowEnabled: true, + pythPriceFeedId: '4ea5bb4d2f5900cc2e97ba534240950740b4d3b89fe712a94a7304fd2fd92702', + poolId: 1093, + pythHistoryFeedId: 'Crypto.AKT/USD', + }, + { + symbol: 'DYDX', + id: 'DYDX', + name: 'dYdX', + denom: 'ibc/831F0B1BBB1D08A2B75311892876D71565478C532967545476DF4C2D7492E48C', + color: '#6966ff', + logo: '/images/tokens/dydx.svg', + decimals: 18, + hasOraclePrice: true, + isEnabled: true, + isMarket: true, + isDisplayCurrency: true, + isAutoLendEnabled: true, + isBorrowEnabled: true, + pythPriceFeedId: '6489800bb8974169adfe35937bf6736507097d13c190d760c557108c7e93a81b', + poolId: 1245, + pythHistoryFeedId: 'Crypto.DYDX/USD', + }, { symbol: '$', name: 'US Dollar', diff --git a/src/types/interfaces/asset.d.ts b/src/types/interfaces/asset.d.ts index ddc1bbf4..3f441f7f 100644 --- a/src/types/interfaces/asset.d.ts +++ b/src/types/interfaces/asset.d.ts @@ -3,8 +3,10 @@ interface Asset { name: string denom: string symbol: + | 'AKT' | 'ATOM' | 'AXL' + | 'DYDX' | 'INJ' | 'MARS' | 'OSMO' @@ -24,8 +26,10 @@ interface Asset { | 'stATOM-ATOM' | '$' id: + | 'AKT' | 'ATOM' | 'AXL' + | 'DYDX' | 'INJ' | 'axlUSDC' | 'axlWBTC'