Skip to content

Commit 07546fb

Browse files
authored
feat: add eBTC campaign [skip cypress] (#2418)
1 parent c1aee8d commit 07546fb

File tree

4 files changed

+35
-5
lines changed

4 files changed

+35
-5
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@
3333
"dependencies": {
3434
"@aave/contract-helpers": "1.33.1",
3535
"@aave/math-utils": "1.33.1",
36-
"@bgd-labs/aave-address-book": "^4.17.2",
36+
"@bgd-labs/aave-address-book": "^4.18.0",
3737
"@emotion/cache": "11.10.3",
3838
"@emotion/react": "11.10.4",
3939
"@emotion/server": "latest",

src/components/incentives/IncentivesTooltipContent.tsx

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,11 @@ const IncentivesSymbolMap: {
4848
symbol: 'aPYUSD',
4949
aToken: true,
5050
},
51+
aETHeBTC: {
52+
tokenIconSymbol: 'eBTC',
53+
symbol: 'aeBTC',
54+
aToken: true,
55+
},
5156
aArbWETH: {
5257
tokenIconSymbol: 'WETH',
5358
symbol: 'aWETH',

src/hooks/useMeritIncentives.ts

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ export enum MeritAction {
1919
ETHEREUM_PRIME_SUPPLY_EZETH = 'ethereum-prime-supply-ezeth',
2020
SUPPLY_CBBTC_BORROW_USDC = 'ethereum-supply-cbbtc-borrow-usdc',
2121
SUPPLY_WBTC_BORROW_USDT = 'ethereum-supply-wbtc-borrow-usdt',
22+
SUPPLY_EBTC_BORROW_WBTC_OR_CBBTC = 'ethereum-supply-ebtc-borrow-wbtc-or-cbbtc',
2223
ARBITRUM_SUPPLY_ETH = 'arbitrum-supply-weth',
2324
ARBITRUM_SUPPLY_WSTETH = 'arbitrum-supply-wsteth',
2425
ARBITRUM_SUPPLY_EZETH = 'arbitrum-supply-ezeth',
@@ -97,6 +98,13 @@ const MERIT_DATA_MAP: Record<string, Record<string, MeritReserveIncentiveData[]>
9798
protocolAction: ProtocolAction.supply,
9899
customMessage: 'You must supply cbBTC and borrow USDC in order to receive merit rewards.',
99100
},
101+
{
102+
action: MeritAction.SUPPLY_EBTC_BORROW_WBTC_OR_CBBTC,
103+
rewardTokenAddress: AaveV3Ethereum.ASSETS.eBTC.A_TOKEN,
104+
rewardTokenSymbol: 'aEthCBBTC',
105+
protocolAction: ProtocolAction.borrow,
106+
customMessage: 'You must supply eBTC and borrow cbBTC in order to receive merit rewards.',
107+
},
100108
],
101109
USDC: [
102110
{
@@ -115,6 +123,23 @@ const MERIT_DATA_MAP: Record<string, Record<string, MeritReserveIncentiveData[]>
115123
protocolAction: ProtocolAction.supply,
116124
customMessage: 'You must supply wBTC and borrow USDT in order to receive merit rewards.',
117125
},
126+
{
127+
action: MeritAction.SUPPLY_EBTC_BORROW_WBTC_OR_CBBTC,
128+
rewardTokenAddress: AaveV3Ethereum.ASSETS.eBTC.A_TOKEN,
129+
rewardTokenSymbol: 'aEtheBTC',
130+
protocolAction: ProtocolAction.borrow,
131+
customMessage: 'You must supply eBTC and borrow WBTC in order to receive merit rewards.',
132+
},
133+
],
134+
eBTC: [
135+
{
136+
action: MeritAction.SUPPLY_EBTC_BORROW_WBTC_OR_CBBTC,
137+
rewardTokenAddress: AaveV3Ethereum.ASSETS.eBTC.A_TOKEN,
138+
rewardTokenSymbol: 'aEtheBTC',
139+
protocolAction: ProtocolAction.supply,
140+
customMessage:
141+
'You must supply eBTC and borrow WBTC or cbBTC in order to receive merit rewards.',
142+
},
118143
],
119144
USDT: [
120145
{

yarn.lock

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1066,10 +1066,10 @@
10661066
resolved "https://registry.yarnpkg.com/@bcoe/v8-coverage/-/v8-coverage-0.2.3.tgz#75a2e8b51cb758a7553d6804a5932d7aace75c39"
10671067
integrity sha512-0hYQ8SB4Db5zvZB4axdMHGwEaQjkZzFjQiN9LVYvIFB2nSUHW9tYpxWriPrWDASIxiaXax83REcLxuSdnGPZtw==
10681068

1069-
"@bgd-labs/aave-address-book@^4.17.2":
1070-
version "4.17.2"
1071-
resolved "https://registry.yarnpkg.com/@bgd-labs/aave-address-book/-/aave-address-book-4.17.2.tgz#976823b4c825aeda33bd9375705260aef857c88c"
1072-
integrity sha512-UVVCaLlLBA5VHl+qip/9qH8yZnNyIvyeRd4nHgKAluNbjeyRPzqESqToGmWSvtWOYK2kUtOrWCu0z9ncq6t6IA==
1069+
"@bgd-labs/aave-address-book@^4.18.0":
1070+
version "4.18.0"
1071+
resolved "https://registry.yarnpkg.com/@bgd-labs/aave-address-book/-/aave-address-book-4.18.0.tgz#df111053d8ad3238c5213f64019b7ef36c16387e"
1072+
integrity sha512-FJ1i3fc2Lz0D9nKerHOLIPFxevaMO8axwTEFhRwsL81AncqtFJoYIeATp5pNGKL2+8GXw/4Y/FXrlQd8bHNI4w==
10731073

10741074
"@coinbase/[email protected]":
10751075
version "4.2.3"

0 commit comments

Comments
 (0)