Skip to content

Commit

Permalink
fix: use best apy on homepage
Browse files Browse the repository at this point in the history
  • Loading branch information
toniocodo committed Sep 4, 2024
1 parent 0d71a50 commit ae539ae
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion libs/defi/home/src/components/TokenCard.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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' })
Expand Down

0 comments on commit ae539ae

Please sign in to comment.