Skip to content

Commit ab72fb9

Browse files
NandyBaCopilotMartinGbz
authored
feat: add Base Masiv incentives (#2543)
Co-authored-by: Copilot <[email protected]> Co-authored-by: MartinGbz <[email protected]>
1 parent 2a99224 commit ab72fb9

File tree

2 files changed

+84
-2
lines changed

2 files changed

+84
-2
lines changed

src/components/incentives/IncentivesTooltipContent.tsx

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,16 @@ const IncentivesSymbolMap: {
2323
symbol: 'aUSDC',
2424
aToken: true,
2525
},
26+
aBasCBBTC: {
27+
tokenIconSymbol: 'CBBTC',
28+
symbol: 'aCBBTC',
29+
aToken: true,
30+
},
31+
aBasWETH: {
32+
tokenIconSymbol: 'WETH',
33+
symbol: 'aWETH',
34+
aToken: true,
35+
},
2636
aEthUSDS: {
2737
tokenIconSymbol: 'usds',
2838
symbol: 'aUSDS',
@@ -118,6 +128,11 @@ const IncentivesSymbolMap: {
118128
symbol: 'astS',
119129
aToken: true,
120130
},
131+
aEthEURC: {
132+
tokenIconSymbol: 'EURC',
133+
symbol: 'aEURC',
134+
aToken: true,
135+
},
121136
};
122137

123138
interface IncentivesTooltipContentProps {

src/hooks/useMeritIncentives.ts

Lines changed: 69 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ export enum MeritAction {
2424
SUPPLY_CBBTC_BORROW_USDC = 'ethereum-supply-cbbtc-borrow-usdc',
2525
SUPPLY_WBTC_BORROW_USDT = 'ethereum-supply-wbtc-borrow-usdt',
2626
SUPPLY_WEETH_BORROW_USDC = 'ethereum-supply-weeth-borrow-usdc',
27+
ETHEREUM_BORROW_EURC = 'ethereum-borrow-eurc',
2728
ARBITRUM_SUPPLY_ETH = 'arbitrum-supply-weth',
2829
ARBITRUM_SUPPLY_WSTETH = 'arbitrum-supply-wsteth',
2930
ARBITRUM_SUPPLY_EZETH = 'arbitrum-supply-ezeth',
@@ -33,7 +34,11 @@ export enum MeritAction {
3334
BASE_SUPPLY_WEETH = 'base-supply-weeth',
3435
BASE_SUPPLY_EZETH = 'base-supply-ezeth',
3536
BASE_SUPPLY_EURC = 'base-supply-eurc',
37+
BASE_SUPPLY_GHO = 'base-supply-gho',
3638
BASE_SUPPLY_LBTC_BORROW_CBBTC = 'base-supply-lbtc-borrow-cbbtc',
39+
BASE_SUPPLY_CBBTC_BORROW_MULTIPLE = 'base-supply-cbbtc-borrow-multiple',
40+
BASE_SUPPLY_WSTETH_BORROW_MULTIPLE = 'base-supply-wsteth-borrow-multiple',
41+
BASE_SUPPLY_WETH_BORROW_MULTIPLE = 'base-supply-weth-borrow-multiple',
3742
BASE_BORROW_EURC = 'base-borrow-eurc',
3843
BASE_BORROW_USDC = 'base-borrow-usdc',
3944
BASE_BORROW_WSTETH = 'base-borrow-wsteth',
@@ -82,10 +87,10 @@ const getMeritData = (market: string, symbol: string): MeritReserveIncentiveData
8287
MERIT_DATA_MAP[market]?.[symbol];
8388

8489
const antiLoopMessage =
85-
'Borrowing of some assets may impact the amount of rewards you are eligible for. Please check the forum post for the full eligibility criteria.';
90+
'Borrowing of some assets or holding of some token may impact the amount of rewards you are eligible for. Please check the forum post for the full eligibility criteria.';
8691

8792
const antiLoopBorrowMessage =
88-
'Supplying of some assets may impact the amount of rewards you are eligible for. Please check the forum post for the full eligibility criteria.';
93+
'Supplying of some assets or holding of some token may impact the amount of rewards you are eligible for. Please check the forum post for the full eligibility criteria.';
8994

9095
const lbtcCbbtcCampaignMessage =
9196
'You must supply LBTC and borrow cbBTC, while maintaining a health factor of 1.5 or below, in order to receive merit rewards. Please check the forum post for the full eligibility criteria.';
@@ -96,6 +101,15 @@ const StSLoopIncentiveProgramMessage =
96101
const weethUsdcCampaignMessage =
97102
'You must supply weETH and borrow new USDC, while maintaining a health factor of 2 or below, in order to receive merit rewards. Eligibility criteria for this campaign are different from usual, please refer to the forum post for full details.';
98103

104+
const baseIncentivesCbbtcCampaignsMessage =
105+
'You must supply cbBTC and borrow USDC, GHO, EURC or wETH to receive Merit rewards. Holding some assets or positions on other protocols may impact the amount of rewards you are eligible for. Please check the forum post for the full eligibility criteria.';
106+
107+
const baseIncentivesWstETHCampaignsMessage =
108+
'You must supply wstETH and borrow USDC, GHO, EURC or wETH to receive Merit rewards. Holding some assets or positions on other protocols may impact the amount of rewards you are eligible for. Please check the forum post for the full eligibility criteria.';
109+
110+
const baseIncentivesETHCampaignsMessage =
111+
'Supplying ETH alone earns 1.25%, supplying ETH and borrowing USDC or EURC earns 1.50%, supplying ETH and borrowing GHO earns 1.75%. Some assets holding or positions on other protocols may impact the amount of rewards you are eligible for. Please check the forum post for the full eligibility criteria.';
112+
99113
const joinedEthCorrelatedIncentiveForumLink =
100114
'https://governance.aave.com/t/arfc-set-aci-as-emission-manager-for-liquidity-mining-programs/17898/56';
101115

@@ -119,6 +133,9 @@ const weethUsdcForumLink =
119133
const StSLoopIncentiveProgramForumLink =
120134
'https://governance.aave.com/t/arfc-sts-loop-incentive-program/22368';
121135

136+
const baseIncentivesForumLink =
137+
'https://governance.aave.com/t/arfc-base-incentive-campaign-funding/21983';
138+
122139
const MERIT_DATA_MAP: Record<string, Record<string, MeritReserveIncentiveData[]>> = {
123140
[CustomMarket.proto_mainnet_v3]: {
124141
GHO: [
@@ -214,6 +231,15 @@ const MERIT_DATA_MAP: Record<string, Record<string, MeritReserveIncentiveData[]>
214231
customForumLink: weethUsdcForumLink,
215232
},
216233
],
234+
EURC: [
235+
{
236+
action: MeritAction.ETHEREUM_BORROW_EURC,
237+
rewardTokenAddress: AaveV3Ethereum.ASSETS.EURC.A_TOKEN,
238+
rewardTokenSymbol: 'aEthEURC',
239+
protocolAction: ProtocolAction.borrow,
240+
customMessage: antiLoopBorrowMessage,
241+
},
242+
],
217243
},
218244
[CustomMarket.proto_lido_v3]: {
219245
ETH: [
@@ -297,6 +323,14 @@ const MERIT_DATA_MAP: Record<string, Record<string, MeritReserveIncentiveData[]>
297323
rewardTokenSymbol: 'aBasUSDC',
298324
protocolAction: ProtocolAction.supply,
299325
},
326+
{
327+
action: MeritAction.BASE_SUPPLY_CBBTC_BORROW_MULTIPLE,
328+
rewardTokenAddress: AaveV3Base.ASSETS.cbBTC.A_TOKEN,
329+
rewardTokenSymbol: 'aBasCBBTC',
330+
protocolAction: ProtocolAction.supply,
331+
customMessage: baseIncentivesCbbtcCampaignsMessage,
332+
customForumLink: baseIncentivesForumLink,
333+
},
300334
{
301335
action: MeritAction.BASE_SUPPLY_LBTC_BORROW_CBBTC,
302336
rewardTokenAddress: AaveV3Base.ASSETS.USDC.A_TOKEN,
@@ -329,6 +363,14 @@ const MERIT_DATA_MAP: Record<string, Record<string, MeritReserveIncentiveData[]>
329363
customMessage: antiLoopMessage,
330364
customForumLink: joinedEthCorrelatedIncentiveForumLink,
331365
},
366+
{
367+
action: MeritAction.BASE_SUPPLY_WSTETH_BORROW_MULTIPLE,
368+
rewardTokenAddress: AaveV3Base.ASSETS.wstETH.A_TOKEN,
369+
rewardTokenSymbol: 'aBaswstETH',
370+
protocolAction: ProtocolAction.supply,
371+
customMessage: baseIncentivesWstETHCampaignsMessage,
372+
customForumLink: baseIncentivesForumLink,
373+
},
332374
{
333375
action: MeritAction.BASE_BORROW_WSTETH,
334376
rewardTokenAddress: AaveV3Base.ASSETS.wstETH.A_TOKEN,
@@ -387,6 +429,13 @@ const MERIT_DATA_MAP: Record<string, Record<string, MeritReserveIncentiveData[]>
387429
},
388430
],
389431
GHO: [
432+
{
433+
action: MeritAction.BASE_SUPPLY_GHO,
434+
rewardTokenAddress: AaveV3Base.ASSETS.GHO.A_TOKEN,
435+
rewardTokenSymbol: 'aBasGHO',
436+
protocolAction: ProtocolAction.supply,
437+
customMessage: antiLoopMessage,
438+
},
390439
{
391440
action: MeritAction.BASE_BORROW_GHO,
392441
rewardTokenAddress: AaveV3Base.ASSETS.GHO.A_TOKEN,
@@ -397,6 +446,24 @@ const MERIT_DATA_MAP: Record<string, Record<string, MeritReserveIncentiveData[]>
397446
'https://governance.aave.com/t/arfc-set-aci-as-emission-manager-for-liquidity-mining-programs/17898/94',
398447
},
399448
],
449+
WETH: [
450+
{
451+
action: MeritAction.BASE_SUPPLY_WETH_BORROW_MULTIPLE,
452+
rewardTokenAddress: AaveV3Base.ASSETS.WETH.A_TOKEN,
453+
rewardTokenSymbol: 'aBasWETH',
454+
protocolAction: ProtocolAction.supply,
455+
customMessage: baseIncentivesETHCampaignsMessage,
456+
},
457+
],
458+
ETH: [
459+
{
460+
action: MeritAction.BASE_SUPPLY_WETH_BORROW_MULTIPLE,
461+
rewardTokenAddress: AaveV3Base.ASSETS.WETH.A_TOKEN,
462+
rewardTokenSymbol: 'aBasWETH',
463+
protocolAction: ProtocolAction.supply,
464+
customMessage: baseIncentivesETHCampaignsMessage,
465+
},
466+
],
400467
},
401468
[CustomMarket.proto_avalanche_v3]: {
402469
['BTC.b']: [

0 commit comments

Comments
 (0)