Skip to content

Commit 038c4a2

Browse files
authored
feat: add merit supply usdc on sonic campaign [skip cypress] (#2383)
1 parent ccc3ef3 commit 038c4a2

File tree

4 files changed

+25
-5
lines changed

4 files changed

+25
-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.32.1",
3535
"@aave/math-utils": "1.32.1",
36-
"@bgd-labs/aave-address-book": "4.14.0",
36+
"@bgd-labs/aave-address-book": "^4.15.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
@@ -68,6 +68,11 @@ const IncentivesSymbolMap: {
6868
symbol: 'asAVAX',
6969
aToken: true,
7070
},
71+
aSonwS: {
72+
tokenIconSymbol: 'wS',
73+
symbol: 'awS',
74+
aToken: true,
75+
},
7176
};
7277

7378
interface IncentivesTooltipContentProps {

src/hooks/useMeritIncentives.ts

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ import {
66
AaveV3Base,
77
AaveV3Ethereum,
88
AaveV3EthereumLido,
9+
AaveV3Sonic,
910
} from '@bgd-labs/aave-address-book';
1011
import { useQuery } from '@tanstack/react-query';
1112
import { CustomMarket } from 'src/ui-config/marketsConfig';
@@ -31,6 +32,7 @@ export enum MeritAction {
3132
AVALANCHE_SUPPLY_USDT = 'avalanche-supply-usdt',
3233
AVALANCHE_SUPPLY_SAVAX = 'avalanche-supply-savax',
3334
AVALANCHE_SUPPLY_AUSD = 'avalanche-supply-ausd',
35+
SONIC_SUPPLY_USDCE = 'sonic-supply-usdce',
3436
}
3537

3638
type MeritIncentives = {
@@ -289,6 +291,19 @@ const MERIT_DATA_MAP: Record<string, Record<string, MeritReserveIncentiveData[]>
289291
},
290292
],
291293
},
294+
[CustomMarket.proto_sonic_v3]: {
295+
['USDC.e']: [
296+
{
297+
action: MeritAction.SONIC_SUPPLY_USDCE,
298+
rewardTokenAddress: AaveV3Sonic.ASSETS.USDCe.A_TOKEN,
299+
rewardTokenSymbol: 'aSonwS',
300+
protocolAction: ProtocolAction.supply,
301+
customMessage: antiLoopMessage,
302+
customForumLink:
303+
'https://governance.aave.com/t/arfc-set-aci-as-emission-manager-for-liquidity-mining-programs/17898/61',
304+
},
305+
],
306+
},
292307
};
293308

294309
export const useMeritIncentives = ({

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.14.0":
1070-
version "4.14.0"
1071-
resolved "https://registry.yarnpkg.com/@bgd-labs/aave-address-book/-/aave-address-book-4.14.0.tgz#5f639e1e46c6a6544d6d0d83042278c5ab38e107"
1072-
integrity sha512-jm8EgsvL9hiPWsbsKh9J1XYi+0kVZ6FxBRmTj19YHJmR1VovQ7Fup9c3NwKtqetf65gsS7MV5TNAM0sJNsnRcg==
1069+
"@bgd-labs/aave-address-book@^4.15.0":
1070+
version "4.15.0"
1071+
resolved "https://registry.yarnpkg.com/@bgd-labs/aave-address-book/-/aave-address-book-4.15.0.tgz#c121387b390367725a1c4c05776f41e124ef81f3"
1072+
integrity sha512-swxGoppvEegmzgabz8KmY8ESNFlSeFjuAIYOlnE70pK+gVgn7zyh4SlRs4KvHzxTNZ5rdWFuEWKxf5pkxWiYSg==
10731073

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

0 commit comments

Comments
 (0)