File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -61,6 +61,11 @@ const IncentivesSymbolMap: {
6161 symbol : 'aPYUSD' ,
6262 aToken : true ,
6363 } ,
64+ aArbARB : {
65+ tokenIconSymbol : 'ARB' ,
66+ symbol : 'aARB' ,
67+ aToken : true ,
68+ } ,
6469 aArbWETH : {
6570 tokenIconSymbol : 'WETH' ,
6671 symbol : 'aWETH' ,
Original file line number Diff line number Diff line change 11import { ProtocolAction } from '@aave/contract-helpers' ;
22import { ReserveIncentiveResponse } from '@aave/math-utils/dist/esm/formatters/incentive/calculate-reserve-incentives' ;
33import { useQuery } from '@tanstack/react-query' ;
4+ import { useRootStore } from 'src/store/root' ;
45import { additionalIncentiveInfo } from 'src/utils/addtional-incentive-infos' ;
56import { convertAprToApy } from 'src/utils/utils' ;
67import { whitelistedRewardTokens } from 'src/utils/whitelist' ;
@@ -127,6 +128,8 @@ export const useMerklIncentives = ({
127128 protocolAPY ?: number ;
128129 protocolIncentives ?: ReserveIncentiveResponse [ ] ;
129130} ) => {
131+ const currentChainId = useRootStore ( ( state ) => state . currentChainId ) ;
132+
130133 return useQuery ( {
131134 queryFn : async ( ) => {
132135 const response = await fetch ( `${ MERKL_ENDPOINT } ` ) ;
@@ -148,7 +151,8 @@ export const useMerklIncentives = ({
148151 opportunitiy . explorerAddress &&
149152 opportunitiy . explorerAddress . toLowerCase ( ) === rewardedAsset . toLowerCase ( ) &&
150153 protocolAction &&
151- checkOpportunityAction ( opportunitiy . action , protocolAction )
154+ checkOpportunityAction ( opportunitiy . action , protocolAction ) &&
155+ opportunitiy . chainId === currentChainId
152156 ) ;
153157
154158 if ( opportunities . length === 0 ) {
You can’t perform that action at this time.
0 commit comments