Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add merit weeth campaign [skip cypress] #2400

Merged
merged 3 commits into from
Mar 25, 2025
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions src/components/incentives/IncentivesTooltipContent.tsx
Original file line number Diff line number Diff line change
@@ -73,6 +73,11 @@ const IncentivesSymbolMap: {
symbol: 'awS',
aToken: true,
},
aBasweETH: {
tokenIconSymbol: 'weETH',
symbol: 'aweETH',
aToken: true,
},
};

interface IncentivesTooltipContentProps {
15 changes: 15 additions & 0 deletions src/hooks/useMeritIncentives.ts
Original file line number Diff line number Diff line change
@@ -25,6 +25,7 @@ export enum MeritAction {
BASE_SUPPLY_CBBTC = 'base-supply-cbbtc',
BASE_SUPPLY_USDC = 'base-supply-usdc',
BASE_SUPPLY_WSTETH = 'base-supply-wsteth',
BASE_SUPPLY_WEETH = 'base-supply-weeth',
BASE_SUPPLY_EZETH = 'base-supply-ezeth',
BASE_BORROW_USDC = 'base-borrow-usdc',
AVALANCHE_SUPPLY_BTCB = 'avalanche-supply-btcb',
@@ -61,9 +62,13 @@ const getMeritData = (market: string, symbol: string): MeritReserveIncentiveData

const antiLoopMessage =
'Borrowing of some assets may impact the amount of rewards you are eligible for. Please check the forum post for the full eligibility criteria.';

const joinedEthCorrelatedIncentiveForumLink =
'https://governance.aave.com/t/arfc-set-aci-as-emission-manager-for-liquidity-mining-programs/17898/56';

const joinedEthCorrelatedIncentivePhase2ForumLink =
'https://governance.aave.com/t/arfc-set-aci-as-emission-manager-for-liquidity-mining-programs/17898/70';

const MERIT_DATA_MAP: Record<string, Record<string, MeritReserveIncentiveData[]>> = {
[CustomMarket.proto_mainnet_v3]: {
GHO: [
@@ -248,6 +253,16 @@ const MERIT_DATA_MAP: Record<string, Record<string, MeritReserveIncentiveData[]>
customForumLink: joinedEthCorrelatedIncentiveForumLink,
},
],
weETH: [
{
action: MeritAction.BASE_SUPPLY_WEETH,
rewardTokenAddress: AaveV3Base.ASSETS.weETH.A_TOKEN,
rewardTokenSymbol: 'aBasweETH',
protocolAction: ProtocolAction.supply,
customMessage: antiLoopMessage,
customForumLink: joinedEthCorrelatedIncentivePhase2ForumLink,
},
],
},
[CustomMarket.proto_avalanche_v3]: {
['BTC.b']: [