Skip to content

Commit 220523b

Browse files
authored
✨ feat: add avalanche lm new merit actions (#2276)
1 parent 408571c commit 220523b

File tree

2 files changed

+44
-1
lines changed

2 files changed

+44
-1
lines changed

src/components/incentives/IncentivesTooltipContent.tsx

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,11 @@ const IncentivesSymbolMap: {
4343
symbol: 'aUSDT',
4444
aToken: true,
4545
},
46+
aAvaSAVAX: {
47+
tokenIconSymbol: 'sAVAX',
48+
symbol: 'asAVAX',
49+
aToken: true,
50+
},
4651
};
4752

4853
interface IncentivesTooltipContentProps {

src/hooks/useMeritIncentives.ts

Lines changed: 39 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import { ProtocolAction } from '@aave/contract-helpers';
22
import { ReserveIncentiveResponse } from '@aave/math-utils/dist/esm/formatters/incentive/calculate-reserve-incentives';
3-
import { AaveV3Base, AaveV3Ethereum } from '@bgd-labs/aave-address-book';
3+
import { AaveV3Avalanche, AaveV3Base, AaveV3Ethereum } from '@bgd-labs/aave-address-book';
44
import { useQuery } from '@tanstack/react-query';
55
import { CustomMarket } from 'src/ui-config/marketsConfig';
66

@@ -11,6 +11,10 @@ export enum MeritAction {
1111
BASE_SUPPLY_CBBTC = 'base-supply-cbbtc',
1212
BASE_SUPPLY_USDC = 'base-supply-usdc',
1313
BASE_BORROW_USDC = 'base-borrow-usdc',
14+
AVALANCHE_SUPPLY_BTCB = 'avalanche-supply-btcb',
15+
AVALANCHE_SUPPLY_USDC = 'avalanche-supply-usdc',
16+
AVALANCHE_SUPPLY_USDT = 'avalanche-supply-usdt',
17+
AVALANCHE_SUPPLY_SAVAX = 'avalanche-supply-savax',
1418
}
1519

1620
type MeritIncentives = {
@@ -105,6 +109,40 @@ const MERIT_DATA_MAP: Record<string, Record<string, MeritReserveIncentiveData[]>
105109
},
106110
],
107111
},
112+
[CustomMarket.proto_avalanche_v3]: {
113+
['BTC.b']: [
114+
{
115+
action: MeritAction.AVALANCHE_SUPPLY_BTCB,
116+
rewardTokenAddress: AaveV3Avalanche.ASSETS.BTCb.A_TOKEN,
117+
rewardTokenSymbol: 'aAvaSAVAX',
118+
protocolAction: ProtocolAction.supply,
119+
},
120+
],
121+
USDC: [
122+
{
123+
action: MeritAction.AVALANCHE_SUPPLY_USDC,
124+
rewardTokenAddress: AaveV3Avalanche.ASSETS.USDC.A_TOKEN,
125+
rewardTokenSymbol: 'aAvaSAVAX',
126+
protocolAction: ProtocolAction.supply,
127+
},
128+
],
129+
USDt: [
130+
{
131+
action: MeritAction.AVALANCHE_SUPPLY_USDT,
132+
rewardTokenAddress: AaveV3Avalanche.ASSETS.USDt.A_TOKEN,
133+
rewardTokenSymbol: 'aAvaSAVAX',
134+
protocolAction: ProtocolAction.supply,
135+
},
136+
],
137+
sAVAX: [
138+
{
139+
action: MeritAction.AVALANCHE_SUPPLY_SAVAX,
140+
rewardTokenAddress: AaveV3Avalanche.ASSETS.sAVAX.A_TOKEN,
141+
rewardTokenSymbol: 'aAvaSAVAX',
142+
protocolAction: ProtocolAction.supply,
143+
},
144+
],
145+
},
108146
};
109147

110148
export const useMeritIncentives = ({

0 commit comments

Comments
 (0)