feat: listed dydx and AKT (#652)

This commit is contained in:
Linkie Link 2023-11-23 16:56:59 +01:00 committed by GitHub
parent a4bbf92ced
commit e7ce4f600a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 46 additions and 2 deletions

View File

@ -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',
}, },

View File

@ -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',

View File

@ -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'