2021-10-01 09:21:09 -07:00
|
|
|
import useFees from '../hooks/useFees'
|
2021-08-18 07:33:03 -07:00
|
|
|
import { percentFormat } from '../utils'
|
2021-10-20 05:42:40 -07:00
|
|
|
import { useTranslation } from 'next-i18next'
|
2021-08-17 12:37:07 -07:00
|
|
|
|
|
|
|
export default function MarketFee() {
|
2021-10-20 05:42:40 -07:00
|
|
|
const { t } = useTranslation('common')
|
2021-10-01 09:21:09 -07:00
|
|
|
const { takerFee, makerFee } = useFees()
|
2021-08-17 12:37:07 -07:00
|
|
|
|
|
|
|
return (
|
2021-10-01 08:32:15 -07:00
|
|
|
<div className="flex text-xs text-th-fgd-4 px-6 mt-2.5">
|
|
|
|
<div className="block sm:flex mx-auto text-center">
|
2021-10-20 05:42:40 -07:00
|
|
|
<div>
|
|
|
|
{t('maker-fee')}: {percentFormat.format(makerFee)}
|
|
|
|
</div>
|
2021-09-19 17:36:02 -07:00
|
|
|
<div className="hidden sm:block px-2">|</div>
|
2021-10-20 05:42:40 -07:00
|
|
|
<div>
|
|
|
|
{t('taker-fee')}: {percentFormat.format(takerFee)}
|
|
|
|
</div>
|
2021-10-01 08:32:15 -07:00
|
|
|
</div>
|
2021-08-17 12:37:07 -07:00
|
|
|
</div>
|
|
|
|
)
|
|
|
|
}
|