Skip to content

Commit

Permalink
remove 'hasSurplusIncentives'
Browse files Browse the repository at this point in the history
  • Loading branch information
groninge01 committed Oct 16, 2024
1 parent ab55a82 commit b88e0f0
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,6 @@ function BaseAprTooltip({
stakingIncentivesAprDisplayed,
merklIncentivesAprDisplayed,
hasMerklIncentives,
hasSurplusIncentives,
surplusIncentivesAprDisplayed,
swapFeesDisplayed,
isSwapFeePresent,
Expand Down Expand Up @@ -192,7 +191,7 @@ function BaseAprTooltip({
{...basePopoverAprItemProps}
displayValueFormatter={usedDisplayValueFormatter}
title="Prevented LVR"
apr={hasSurplusIncentives ? surplusIncentivesAprDisplayed : bn(0)}
apr={surplusIncentivesAprDisplayed}
tooltipText={surplusIncentivesTooltipText}
/>
)}
Expand Down
2 changes: 0 additions & 2 deletions packages/lib/shared/hooks/useAprTooltip.ts
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,6 @@ export function useAprTooltip({

// Surplus incentives
const surplusIncentives = filterByType(aprItems, GqlPoolAprItemType.Surplus)
const hasSurplusIncentives = surplusIncentives.length > 0
const surplusIncentivesAprDisplayed = calculateSingleIncentivesAprDisplayed(surplusIncentives)

// Bal Reward
Expand Down Expand Up @@ -177,7 +176,6 @@ export function useAprTooltip({
merklIncentivesAprDisplayed,
hasMerklIncentives,
surplusIncentivesAprDisplayed,
hasSurplusIncentives,
votingAprDisplayed,
lockingAprDisplayed,
isVotingPresent,
Expand Down

0 comments on commit b88e0f0

Please sign in to comment.