import { percentFormat } from '../utils/index' import useSrmAccount from '../hooks/useSrmAccount' import { SRM_DECIMALS } from '@project-serum/serum/lib/token-instructions' import Tooltip from './Tooltip' import { InformationCircleIcon } from '@heroicons/react/outline' const FeeDiscountsTable = () => { const { totalSrm, rates } = useSrmAccount() return (
Total SRM in Mango
{totalSrm.toLocaleString(undefined, { maximumFractionDigits: SRM_DECIMALS, })}
Maker Fee
{rates ? percentFormat.format(rates.maker) : null}
Taker Fee
{rates ? percentFormat.format(rates.taker * 0.8) : null}
) } export default FeeDiscountsTable