11import { ProtocolAction } from '@aave/contract-helpers' ;
22import { 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' ;
44import { useQuery } from '@tanstack/react-query' ;
55import { 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
1620type 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
110148export const useMeritIncentives = ( {
0 commit comments