|
1 | 1 | import { ProtocolAction } from '@aave/contract-helpers'; |
2 | | -import { ReserveIncentiveResponse } from '@aave/math-utils/dist/esm/formatters/incentive/calculate-reserve-incentives'; |
| 2 | +import type { ReserveIncentiveResponse } from '@aave/math-utils/dist/esm/formatters/incentive/calculate-reserve-incentives'; |
3 | 3 | import { useQuery } from '@tanstack/react-query'; |
4 | 4 | import { useRootStore } from 'src/store/root'; |
5 | 5 | import { convertAprToApy } from 'src/utils/utils'; |
6 | | -import { Address, checksumAddress } from 'viem'; |
| 6 | +import { type Address, checksumAddress } from 'viem'; |
7 | 7 |
|
8 | 8 | enum OpportunityAction { |
9 | 9 | LEND = 'LEND', |
@@ -146,6 +146,7 @@ type WhitelistApiResponse = { |
146 | 146 | const MERKL_ENDPOINT = |
147 | 147 | 'https://api.merkl.xyz/v4/opportunities?mainProtocolId=aave&items=100&status=LIVE'; // Merkl API |
148 | 148 | const WHITELIST_ENDPOINT = 'https://apps.aavechan.com/api/aave/merkl/whitelist-token-list'; // Endpoint to fetch whitelisted tokens |
| 149 | +const EXTRA_WHITELIST_TOKENS = ['0xE3190143Eb552456F88464662f0c0C4aC67A77eB'.toLowerCase()]; |
149 | 150 | const checkOpportunityAction = ( |
150 | 151 | opportunityAction: OpportunityAction, |
151 | 152 | protocolAction: ProtocolAction |
@@ -222,7 +223,10 @@ export const useMerklIncentives = ({ |
222 | 223 | } |
223 | 224 |
|
224 | 225 | const whitelistedTokensSet = new Set( |
225 | | - whitelistData.whitelistedRewardTokens.map((token) => token.toLowerCase()) |
| 226 | + [ |
| 227 | + ...whitelistData.whitelistedRewardTokens.map((token) => token.toLowerCase()), |
| 228 | + ...EXTRA_WHITELIST_TOKENS, |
| 229 | + ].filter(Boolean) |
226 | 230 | ); |
227 | 231 |
|
228 | 232 | const whitelistedOpportunities = validOpportunities.filter((opp) => |
|
0 commit comments