diff --git a/packages/lib/shared/hooks/useAprTooltip.ts b/packages/lib/shared/hooks/useAprTooltip.ts index 03e99357..bf6870cb 100644 --- a/packages/lib/shared/hooks/useAprTooltip.ts +++ b/packages/lib/shared/hooks/useAprTooltip.ts @@ -143,14 +143,13 @@ export function useAprTooltip({ maBeetsReward ? maBeetsReward.apr.toString() : '0' ) - const maBeetsStakingBoost = aprItems.find( + const maxMaBeetsReward = aprItems.find( item => item.type === GqlPoolAprItemType.StakingBoost && item.id.match(/beets-apr-boost/) // TODO: or add prop in api to distinguish? ) - const maBeetsStakingBoostDisplayed = numberFormatter( - maBeetsStakingBoost ? maBeetsStakingBoost.apr.toString() : '0' + const maxMaBeetsRewardDisplayed = numberFormatter( + maxMaBeetsReward ? maxMaBeetsReward.apr.toString() : '0' ) - const maxMaBeetsRewardDisplayed = bn(maBeetsRewardsDisplayed).plus(maBeetsStakingBoostDisplayed) const maxMaBeetsVotingReward = aprItems.find( item => item.type === GqlPoolAprItemType.StakingBoost && item.id.match(/voting-apr-boost/) // TODO: or add prop in api to distinguish? @@ -165,7 +164,6 @@ export function useAprTooltip({ .plus(maBeetsRewardsDisplayed) .plus(maxMaBeetsRewardDisplayed) .plus(maxMaBeetsVotingRewardDisplayed) - .plus(yieldBearingTokensAprDisplayed) const isMaBeetsPresent = !maBeetsRewardsDisplayed.isZero()