Skip to content

Commit a86ae69

Browse files
authored
✅ Whitelist aUSDtb Merkl wrapper (#2536)
1 parent 9d5f739 commit a86ae69

File tree

3 files changed

+16
-4
lines changed

3 files changed

+16
-4
lines changed

src/components/incentives/IncentivesButton.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ import { useState } from 'react';
77
import { useEthenaIncentives } from 'src/hooks/useEthenaIncentives';
88
import { useEtherfiIncentives } from 'src/hooks/useEtherfiIncentives';
99
import { useMeritIncentives } from 'src/hooks/useMeritIncentives';
10-
import { useMerklIgniteIncentives } from 'src/hooks/useMerklIncentives';
10+
import { useMerklIncentives } from 'src/hooks/useMerklIncentives';
1111
import { useSonicIncentives } from 'src/hooks/useSonicIncentives';
1212
import { useRootStore } from 'src/store/root';
1313
import { 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;

src/components/incentives/IncentivesTooltipContent.tsx

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff 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',

src/hooks/useMerklIncentives.ts

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff 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

99106
const 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,

0 commit comments

Comments
 (0)