File tree Expand file tree Collapse file tree 1 file changed +2
-9
lines changed
Expand file tree Collapse file tree 1 file changed +2
-9
lines changed Original file line number Diff line number Diff line change @@ -110,7 +110,7 @@ type WhitelistApiResponse = {
110110 whitelistedRewardTokens : string [ ] ;
111111 additionalIncentiveInfo : Record < string , ReserveIncentiveAdditionalData > ;
112112} ;
113- const addressETHFI = '0xFe0c30065B384F05761f15d0CC899D4F9F9Cc0eB' ;
113+
114114const MERKL_ENDPOINT = 'https://api.merkl.xyz/v4/opportunities?mainProtocolId=aave' ; // Merkl API
115115const WHITELIST_ENDPOINT = 'https://apps.aavechan.com/api/aave/merkl/whitelist-token-list' ; // Endpoint to fetch whitelisted tokens
116116const checkOpportunityAction = (
@@ -133,14 +133,7 @@ const useWhitelistedTokens = () => {
133133 if ( ! response . ok ) {
134134 throw new Error ( 'Failed to fetch whitelisted tokens' ) ;
135135 }
136- const data = await response . json ( ) ;
137-
138- // TODO: Remove hardcoded addition once we have ETHFI in the whitelist API
139- if ( ! data . whitelistedRewardTokens . includes ( addressETHFI . toLowerCase ( ) ) ) {
140- data . whitelistedRewardTokens . push ( addressETHFI . toLowerCase ( ) ) ;
141- }
142-
143- return data ;
136+ return await response . json ( ) ;
144137 } ,
145138 queryKey : [ 'whitelistedTokens' ] ,
146139 staleTime : 1000 * 60 * 5 , // 5 minutes
You can’t perform that action at this time.
0 commit comments