Skip to content

Commit

Permalink
feat: register new liquidity mining on Base throw Merit (#2243)
Browse files Browse the repository at this point in the history
  • Loading branch information
NandyBa authored Nov 13, 2024
1 parent 8ee94e7 commit 7c19c3f
Showing 1 changed file with 28 additions and 1 deletion.
29 changes: 28 additions & 1 deletion src/hooks/useMeritIncentives.ts
Original file line number Diff line number Diff line change
@@ -1,13 +1,16 @@
import { ProtocolAction } from '@aave/contract-helpers';
import { ReserveIncentiveResponse } from '@aave/math-utils/dist/esm/formatters/incentive/calculate-reserve-incentives';
import { AaveV3Ethereum } from '@bgd-labs/aave-address-book';
import { AaveV3Base, AaveV3Ethereum } from '@bgd-labs/aave-address-book';
import { useQuery } from '@tanstack/react-query';
import { CustomMarket } from 'src/ui-config/marketsConfig';

export enum MeritAction {
ETHEREUM_STKGHO = 'ethereum-stkgho',
SUPPLY_CBBTC_BORROW_USDC = 'ethereum-supply-cbbtc-borrow-usdc',
SUPPLY_WBTC_BORROW_USDT = 'ethereum-supply-wbtc-borrow-usdt',
BASE_SUPPLY_CBBTC = 'base-supply-cbbtc',
BASE_SUPPLY_USDC = 'base-supply-usdc',
BASE_BORROW_USDC = 'base-borrow-usdc',
}

type MeritIncentives = {
Expand Down Expand Up @@ -78,6 +81,30 @@ const MERIT_DATA_MAP: Record<string, Record<string, MeritReserveIncentiveData[]>
},
],
},
[CustomMarket.proto_base_v3]: {
cbBTC: [
{
action: MeritAction.BASE_SUPPLY_CBBTC,
rewardTokenAddress: AaveV3Base.ASSETS.USDC.UNDERLYING,
rewardTokenSymbol: 'aBasUSDC',
protocolAction: ProtocolAction.supply,
},
],
USDC: [
{
action: MeritAction.BASE_SUPPLY_USDC,
rewardTokenAddress: AaveV3Base.ASSETS.USDC.UNDERLYING,
rewardTokenSymbol: 'aBasUSDC',
protocolAction: ProtocolAction.supply,
},
{
action: MeritAction.BASE_BORROW_USDC,
rewardTokenAddress: AaveV3Base.ASSETS.USDC.UNDERLYING,
rewardTokenSymbol: 'aBasUSDC',
protocolAction: ProtocolAction.borrow,
},
],
},
};

export const useMeritIncentives = ({
Expand Down

2 comments on commit 7c19c3f

@github-actions
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This commit was deployed on ipfs

@github-actions
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This commit was deployed on ipfs

Please sign in to comment.