From ae539ae9237335a598a41b26a51395d25ccf5cc6 Mon Sep 17 00:00:00 2001 From: toniocodo Date: Wed, 4 Sep 2024 15:46:40 +0200 Subject: [PATCH] fix: use best apy on homepage --- libs/defi/home/src/components/TokenCard.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libs/defi/home/src/components/TokenCard.tsx b/libs/defi/home/src/components/TokenCard.tsx index 9913e8983..05fc443fa 100644 --- a/libs/defi/home/src/components/TokenCard.tsx +++ b/libs/defi/home/src/components/TokenCard.tsx @@ -62,7 +62,7 @@ export const TokenCard = ({ tokens.optimism.superOETHo.id, ]); const isOgn = token.id === tokens.mainnet.OGN.id; - const apy = isOgn ? staking?.xOgnApyPercentage : info?.apies?.apy; + const apy = isOgn ? staking?.xOgnApyPercentage : info?.bestApy.value; const isApyLoading = isOgn ? isStakingLoading : isInfoLoading; const apyLabel = isOgn ? intl.formatMessage({ defaultMessage: 'Max vAPY' })