File tree Expand file tree Collapse file tree 3 files changed +16
-4
lines changed
Expand file tree Collapse file tree 3 files changed +16
-4
lines changed Original file line number Diff line number Diff line change @@ -7,7 +7,7 @@ import { useState } from 'react';
77import { useEthenaIncentives } from 'src/hooks/useEthenaIncentives' ;
88import { useEtherfiIncentives } from 'src/hooks/useEtherfiIncentives' ;
99import { useMeritIncentives } from 'src/hooks/useMeritIncentives' ;
10- import { useMerklIgniteIncentives } from 'src/hooks/useMerklIncentives' ;
10+ import { useMerklIncentives } from 'src/hooks/useMerklIncentives' ;
1111import { useSonicIncentives } from 'src/hooks/useSonicIncentives' ;
1212import { useRootStore } from 'src/store/root' ;
1313import { DASHBOARD } from 'src/utils/events' ;
@@ -75,7 +75,7 @@ export const MerklIncentivesButton = (params: {
7575 protocolAction ?: ProtocolAction ;
7676} ) => {
7777 const [ open , setOpen ] = useState ( false ) ;
78- const { data : merklIncentives } = useMerklIgniteIncentives ( params ) ;
78+ const { data : merklIncentives } = useMerklIncentives ( params ) ;
7979
8080 if ( ! merklIncentives ) {
8181 return null ;
Original file line number Diff line number Diff line change @@ -108,6 +108,11 @@ const IncentivesSymbolMap: {
108108 symbol : 'aUSDtb' ,
109109 aToken : true ,
110110 } ,
111+ aUSDtb : {
112+ tokenIconSymbol : 'USDtb' ,
113+ symbol : 'aUSDtb' ,
114+ aToken : true ,
115+ } ,
111116 aSonstS : {
112117 tokenIconSymbol : 'stS' ,
113118 symbol : 'astS' ,
Original file line number Diff line number Diff line change @@ -94,7 +94,14 @@ const getUnderlyingAndAToken = (assets: {
9494 ] ) ;
9595} ;
9696
97- const whitelistedRewardTokens = allAaveAssets . flatMap ( ( assets ) => getUnderlyingAndAToken ( assets ) ) ;
97+ const otherTokensWhitelisted = [
98+ '0x04eadd7b10ea9a484c60860aea7a7c0aec09b9f0' , // aUSDtb wrapper contract
99+ ] ;
100+
101+ const whitelistedRewardTokens = [
102+ ...allAaveAssets . flatMap ( ( assets ) => getUnderlyingAndAToken ( assets ) ) ,
103+ ...otherTokensWhitelisted ,
104+ ] ;
98105
99106const MERKL_ENDPOINT = 'https://api.merkl.xyz/v4/opportunities?mainProtocolId=aave' ; // Merkl API
100107
@@ -112,7 +119,7 @@ const checkOpportunityAction = (
112119 }
113120} ;
114121
115- export const useMerklIgniteIncentives = ( {
122+ export const useMerklIncentives = ( {
116123 market,
117124 rewardedAsset,
118125 protocolAction,
You can’t perform that action at this time.
0 commit comments