diff --git a/components/RewardsModal/index.tsx b/components/RewardsModal/index.tsx index 23e9415b0..00888aebf 100644 --- a/components/RewardsModal/index.tsx +++ b/components/RewardsModal/index.tsx @@ -40,6 +40,8 @@ import { useModal } from 'contexts/ModalContext'; import { track } from 'utils/mixpanel'; import MainActionButton from 'components/common/MainActionButton'; +const CENTS = 100n; + function PaperComponent(props: PaperProps | undefined) { const ref = useRef(null); return ( @@ -76,7 +78,9 @@ const RewardsModal: FC = ({ isOpen, close }) => { const [input, setInput] = useState(''); const [showInput, setShowInput] = useState(false); const [selected, setSelected] = useState>(() => - Object.fromEntries(Object.keys(rs).map((k) => [k, true])), + Object.fromEntries( + Object.entries(rs).map(([key, { amount, usdPrice }]) => [key, (amount * usdPrice) / WAD > WAD / CENTS]), + ), ); const [loading, setLoading] = useState(false);