Skip to content

Commit

Permalink
✨ Add "Supply WBTC, Borrow USDT" Merit APR [skip cypress] (#2232)
Browse files Browse the repository at this point in the history
  • Loading branch information
MartinGbz authored Oct 30, 2024
1 parent a4be53e commit 5233c53
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/components/incentives/IncentivesTooltipContent.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,11 @@ const IncentivesSymbolMap: {
symbol: 'aUSDC',
aToken: true,
},
aEthUSDT: {
tokenIconSymbol: 'USDT',
symbol: 'aUSDT',
aToken: true,
},
};

interface IncentivesTooltipContentProps {
Expand Down
16 changes: 16 additions & 0 deletions src/hooks/useMeritIncentives.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ 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',
}

type MeritIncentives = {
Expand Down Expand Up @@ -52,6 +53,20 @@ const MERIT_DATA_MAP: Record<string, Record<string, MeritReserveIncentiveData>>
protocolAction: ProtocolAction.borrow,
customMessage: 'You must supply cbBTC and borrow USDC in order to receive merit rewards.',
},
WBTC: {
action: MeritAction.SUPPLY_WBTC_BORROW_USDT,
rewardTokenAddress: AaveV3Ethereum.ASSETS.USDT.A_TOKEN,
rewardTokenSymbol: 'aEthUSDT',
protocolAction: ProtocolAction.supply,
customMessage: 'You must supply wBTC and borrow USDT in order to receive merit rewards.',
},
USDT: {
action: MeritAction.SUPPLY_WBTC_BORROW_USDT,
rewardTokenAddress: AaveV3Ethereum.ASSETS.USDT.A_TOKEN,
rewardTokenSymbol: 'aEthUSDT',
protocolAction: ProtocolAction.borrow,
customMessage: 'You must supply cbBTC and borrow USDT in order to receive merit rewards.',
},
},
};

Expand Down Expand Up @@ -84,6 +99,7 @@ export const useMeritIncentives = ({
}

const APR = data.actionsAPR[meritReserveIncentiveData.action];

return {
incentiveAPR: (APR / 100).toString(),
rewardTokenAddress: meritReserveIncentiveData.rewardTokenAddress,
Expand Down

2 comments on commit 5233c53

@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.