import { percentFormat } from '../utils/index' import useSrmAccount from '../hooks/useSrmAccount' import { MSRM_DECIMALS, SRM_DECIMALS, } from '@project-serum/serum/lib/token-instructions' import Tooltip from './Tooltip' import { InformationCircleIcon } from '@heroicons/react/outline' import Button from './Button' import useMangoStore from '../stores/useMangoStore' import { ZERO_BN } from '@blockworks-foundation/mango-client' import DepositMsrmModal from './DepositMsrmModal' import WithdrawMsrmModal from './WithdrawMsrmModal' import { useState } from 'react' const FeeDiscountsTable = () => { const mangoAccount = useMangoStore((s) => s.selectedMangoAccount.current) const { totalSrm, totalMsrm, rates } = useSrmAccount() const [showDeposit, setShowDeposit] = useState(false) const [showWithdraw, setShowWithdraw] = useState(false) return (