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 "Supply WBTC, Borrow USDT" Merit APR [skip cypress] #2232

Merged
merged 4 commits into from
Oct 30, 2024
Merged
Show file tree
Hide file tree
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
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
Loading