feat: listed dydx and AKT (#652)
This commit is contained in:
		
							parent
							
								
									a4bbf92ced
								
							
						
					
					
						commit
						e7ce4f600a
					
				@ -68,7 +68,9 @@ export default function MarketDetails({ row, type }: Props) {
 | 
				
			|||||||
          title: 'Oracle Price',
 | 
					          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: '%' },
 | 
					          options: { minDecimals: 2, maxDecimals: 2, suffix: '%' },
 | 
				
			||||||
          title: 'Utilization Rate',
 | 
					          title: 'Utilization Rate',
 | 
				
			||||||
        },
 | 
					        },
 | 
				
			||||||
@ -97,7 +99,9 @@ export default function MarketDetails({ row, type }: Props) {
 | 
				
			|||||||
          title: 'Oracle Price',
 | 
					          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: '%' },
 | 
					          options: { minDecimals: 2, maxDecimals: 2, suffix: '%' },
 | 
				
			||||||
          title: 'Utilization Rate',
 | 
					          title: 'Utilization Rate',
 | 
				
			||||||
        },
 | 
					        },
 | 
				
			||||||
 | 
				
			|||||||
@ -229,6 +229,42 @@ export const ASSETS: Asset[] = [
 | 
				
			|||||||
    poolId: 1249,
 | 
					    poolId: 1249,
 | 
				
			||||||
    pythHistoryFeedId: 'Crypto.TIA/USD',
 | 
					    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: '$',
 | 
					    symbol: '$',
 | 
				
			||||||
    name: 'US Dollar',
 | 
					    name: 'US Dollar',
 | 
				
			||||||
 | 
				
			|||||||
							
								
								
									
										4
									
								
								src/types/interfaces/asset.d.ts
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										4
									
								
								src/types/interfaces/asset.d.ts
									
									
									
									
										vendored
									
									
								
							@ -3,8 +3,10 @@ interface Asset {
 | 
				
			|||||||
  name: string
 | 
					  name: string
 | 
				
			||||||
  denom: string
 | 
					  denom: string
 | 
				
			||||||
  symbol:
 | 
					  symbol:
 | 
				
			||||||
 | 
					    | 'AKT'
 | 
				
			||||||
    | 'ATOM'
 | 
					    | 'ATOM'
 | 
				
			||||||
    | 'AXL'
 | 
					    | 'AXL'
 | 
				
			||||||
 | 
					    | 'DYDX'
 | 
				
			||||||
    | 'INJ'
 | 
					    | 'INJ'
 | 
				
			||||||
    | 'MARS'
 | 
					    | 'MARS'
 | 
				
			||||||
    | 'OSMO'
 | 
					    | 'OSMO'
 | 
				
			||||||
@ -24,8 +26,10 @@ interface Asset {
 | 
				
			|||||||
    | 'stATOM-ATOM'
 | 
					    | 'stATOM-ATOM'
 | 
				
			||||||
    | '$'
 | 
					    | '$'
 | 
				
			||||||
  id:
 | 
					  id:
 | 
				
			||||||
 | 
					    | 'AKT'
 | 
				
			||||||
    | 'ATOM'
 | 
					    | 'ATOM'
 | 
				
			||||||
    | 'AXL'
 | 
					    | 'AXL'
 | 
				
			||||||
 | 
					    | 'DYDX'
 | 
				
			||||||
    | 'INJ'
 | 
					    | 'INJ'
 | 
				
			||||||
    | 'axlUSDC'
 | 
					    | 'axlUSDC'
 | 
				
			||||||
    | 'axlWBTC'
 | 
					    | 'axlWBTC'
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
		Reference in New Issue
	
	Block a user