Skip to content

Commit

Permalink
FRO-137: fix sdai supply apy
Browse files Browse the repository at this point in the history
  • Loading branch information
tomeq93 committed Nov 8, 2023
1 parent 525003f commit 84a74d0
Showing 1 changed file with 1 addition and 15 deletions.
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
import { Trans } from '@lingui/macro';
import { Button } from '@mui/material';
import { useAppDataContext } from 'src/hooks/app-data-provider/useAppDataProvider';
import { useAssetCaps } from 'src/hooks/useAssetCaps';
import { useModalContext } from 'src/hooks/useModal';
import { useProtocolDataContext } from 'src/hooks/useProtocolDataContext';
Expand Down Expand Up @@ -33,7 +32,6 @@ export const SupplyAssetsListItem = ({
hideSupply,
}: DashboardReserve) => {
const { currentMarket } = useProtocolDataContext();
const { dsr } = useAppDataContext();
const { openSupply, openPSMSwap } = useModalContext();

// Hide the asset to prevent it from being supplied if supply cap has been reached
Expand Down Expand Up @@ -66,19 +64,7 @@ export const SupplyAssetsListItem = ({
}
/>

<ListAPRColumn
value={symbol === 'sDAI' && dsr != null ? dsr.toNumber() : Number(supplyAPY)}
incentives={aIncentivesData}
symbol={symbol}
tooltip={
symbol === 'sDAI' && dsr != null ? (
<Trans>
This is the Dai Savings Rate, and not the supply rate. You earn this automatically
when converting your DAI to sDAI.
</Trans>
) : null
}
>
<ListAPRColumn value={Number(supplyAPY)} incentives={aIncentivesData} symbol={symbol}>
{(symbol === 'ETH' || symbol === 'WETH') && <SpkAirdropNoteInline tokenAmount={6} />}
</ListAPRColumn>

Expand Down

0 comments on commit 84a74d0

Please sign in to comment.