Skip to content

Commit

Permalink
chore: [sc-15087] Product Hub - Issue with DAI filtering (#3763)
Browse files Browse the repository at this point in the history
* Remove specific pools from rewards list

This commit removes 'DEGEN-CUSDCV3' and 'SNX-CUSDCV3' from the list of pools that have rewards. This change reflects the current state of rewards distribution and ensures only valid pools are included in the list.

* Update token group conditions in ajna handler

This commit modifies the token group conditions in ajnaHandler.ts. Changes were made to the conditions that determine whether to set primaryTokenGroup and secondaryTokenGroup, ensuring the inclusion of valid tokens only, thereby maintaining the accuracy of data in the product hub.
  • Loading branch information
jakubswierczek authored Apr 4, 2024
1 parent 94ab618 commit 27ab4d8
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
2 changes: 0 additions & 2 deletions features/omni-kit/protocols/ajna/helpers/isPoolWithRewards.ts
Original file line number Diff line number Diff line change
Expand Up @@ -33,10 +33,8 @@ const poolsWithRewardsBase = [
'ETH-USDC',
'WSTETH-ETH',
'DEGEN-USDC',
'DEGEN-CUSDCV3',
'USDC-DEGEN',
'SNX-USDC',
'SNX-CUSDCV3',
]
const poolsWithRewardsArbitrum: string[] = []
const poolsWithRewardsOptimism: string[] = []
Expand Down
8 changes: 6 additions & 2 deletions handlers/product-hub/update-handlers/ajna/ajnaHandler.ts
Original file line number Diff line number Diff line change
Expand Up @@ -201,11 +201,15 @@ async function getAjnaPoolData(
label,
network,
primaryToken: quoteToken,
...(primaryTokenGroup !== collateralToken && { primaryTokenGroup }),
...(secondaryTokenGroup !== quoteToken && {
primaryTokenGroup: secondaryTokenGroup,
}),
product: [ProductHubProductType.Earn],
protocol,
secondaryToken: collateralToken,
...(secondaryTokenGroup !== quoteToken && { secondaryTokenGroup }),
...(primaryTokenGroup !== collateralToken && {
secondaryTokenGroup: primaryTokenGroup,
}),
earnStrategy: EarnStrategies.liquidity_provision,
earnStrategyDescription: earnLPStrategy,
liquidity,
Expand Down

0 comments on commit 27ab4d8

Please sign in to comment.