mirror of
https://github.com/kremalicious/asi-calculator.git
synced 2024-12-22 17:33:18 +01:00
Matthias Kretschmann
436babf4ba
* add CUDOS calculations * content updates * token order switch * uniswap quote fix * list & link community proposals * migration tool scenario simplification * rename Uniswap label * ratio harmonization * buy ratio fix * copy updates * copy updates * default to 1000 CUDOS
55 lines
1.2 KiB
TypeScript
55 lines
1.2 KiB
TypeScript
'use client'
|
|
|
|
import { Badge } from '@/components'
|
|
import {
|
|
ratioAgixToAsi,
|
|
ratioCudosToAsi,
|
|
ratioFetToAsi,
|
|
ratioOceanToAsi
|
|
} from '@/constants'
|
|
import { Price, usePrices } from '@/features/prices'
|
|
import styles from './MarketData.module.css'
|
|
|
|
export function MarketData() {
|
|
const { prices } = usePrices()
|
|
|
|
return (
|
|
<ul className={styles.marketData}>
|
|
<li>
|
|
<p>
|
|
1 FET = {ratioFetToAsi} ASI
|
|
<Badge>fixed</Badge>
|
|
</p>
|
|
<Price price={prices.fet} />
|
|
</li>
|
|
<li>
|
|
<p>
|
|
1 OCEAN ={' '}
|
|
<span title={`${ratioOceanToAsi}`}>{ratioOceanToAsi.toFixed(6)}</span>{' '}
|
|
ASI
|
|
<Badge>fixed</Badge>
|
|
</p>
|
|
<Price price={prices.ocean} />
|
|
</li>
|
|
<li>
|
|
<p>
|
|
1 AGIX ={' '}
|
|
<span title={`${ratioAgixToAsi}`}>{ratioAgixToAsi.toFixed(5)}</span>{' '}
|
|
ASI
|
|
<Badge>fixed</Badge>
|
|
</p>
|
|
<Price price={prices.agix} />
|
|
</li>
|
|
<li>
|
|
<p>
|
|
1 CUDOS ={' '}
|
|
<span title={`${ratioCudosToAsi}`}>{ratioCudosToAsi.toFixed(5)}</span>{' '}
|
|
ASI
|
|
<Badge>fixed</Badge>
|
|
</p>
|
|
<Price price={prices.cudos} />
|
|
</li>
|
|
</ul>
|
|
)
|
|
}
|