Skip to content

Commit 3171ecc

Browse files
authored
Merge pull request #76 from de-snake/patch-5
feat: add somnia points
2 parents 98fa6b0 + d36065c commit 3171ecc

File tree

2 files changed

+51
-3
lines changed

2 files changed

+51
-3
lines changed

src/pools/points/constants.ts

Lines changed: 42 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,9 @@ const POOLS = {
3838

3939
WETH_V3_TRADE_OP: "0x42dB77B3103c71059F4b997d6441cFB299FD0d94",
4040
USDC_V3_TRADE_OP: "0xa210BB193Ca352Fa81fBd0e81Cb800580b0762eE",
41+
42+
USDC_E_V3_SOMNIA: "0xa561d6D554fB3637F590c4D73527fe19525d596b",
43+
SOMI_V3_SOMNIA: "0x6f652fbcfc2107ef9c99456311b5650cd52d6419",
4144
} as const;
4245

4346
// tokens
@@ -55,6 +58,9 @@ const TOKENS = {
5558
USDT_ARB: "0xaf88d065e77c8cC2239327C5EDb3A432268e5831",
5659

5760
USDT_OP: "0x0b2C639c533813f4Aa9D7837CAf62653d097Ff85",
61+
62+
USDC_E_SOMNIA: "0x28BEc7E30E6faee657a03e19Bf1128AaD7632A00",
63+
SOMI_SOMNIA: "0x046EDe9564A72571df6F5e44d0405360c0f4dCab",
5864
} as const;
5965

6066
export const POOL_POINTS: PartialRecord<NetworkType, Array<PoolPointsInfo>> = {
@@ -78,7 +84,9 @@ export const POOL_POINTS: PartialRecord<NetworkType, Array<PoolPointsInfo>> = {
7884

7985
amount: 15n * 10000n,
8086
duration: "day",
81-
name: `${REWARDS_BASE_INFO.falcon(1n).name} ${REWARDS_BASE_INFO.falcon(1n).units}`,
87+
name: `${REWARDS_BASE_INFO.falcon(1n).name} ${
88+
REWARDS_BASE_INFO.falcon(1n).units
89+
}`,
8290
type: REWARDS_BASE_INFO.falcon(1n).type,
8391
estimation: "absolute",
8492
condition: "holding",
@@ -90,12 +98,44 @@ export const POOL_POINTS: PartialRecord<NetworkType, Array<PoolPointsInfo>> = {
9098

9199
amount: 10n * 10000n,
92100
duration: "day",
93-
name: `${REWARDS_BASE_INFO.strata(1n).name} ${REWARDS_BASE_INFO.strata(1n).units}`,
101+
name: `${REWARDS_BASE_INFO.strata(1n).name} ${
102+
REWARDS_BASE_INFO.strata(1n).units
103+
}`,
94104
type: REWARDS_BASE_INFO.strata(1n).type,
95105
estimation: "absolute",
96106
condition: "holding",
97107
},
98108
],
99109
Arbitrum: [],
100110
Optimism: [],
111+
Somnia: [
112+
{
113+
pool: POOLS.USDC_E_V3_SOMNIA,
114+
token: TOKENS.USDC_E_SOMNIA,
115+
symbol: "USDC.e",
116+
117+
amount: 12n * 10000n,
118+
duration: "day",
119+
name: `${REWARDS_BASE_INFO.somnia(1n).name} ${
120+
REWARDS_BASE_INFO.somnia(1n).units
121+
}`,
122+
type: REWARDS_BASE_INFO.somnia(1n).type,
123+
estimation: "absolute",
124+
condition: "holding",
125+
},
126+
{
127+
pool: POOLS.SOMI_V3_SOMNIA,
128+
token: TOKENS.SOMI_SOMNIA,
129+
symbol: "WSOMI",
130+
131+
amount: 12n * 10000n,
132+
duration: "day",
133+
name: `${REWARDS_BASE_INFO.somnia(1n).name} ${
134+
REWARDS_BASE_INFO.somnia(1n).units
135+
}`,
136+
type: REWARDS_BASE_INFO.somnia(1n).type,
137+
estimation: "absolute",
138+
condition: "holding",
139+
},
140+
],
101141
};

src/tokens/points/constants.ts

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,8 @@ export type PointsType =
3939
| "aegis"
4040
| "merkl"
4141
| "strata"
42-
| "makina";
42+
| "makina"
43+
| "somnia";
4344

4445
interface PointsReward {
4546
name: string;
@@ -256,6 +257,13 @@ export const REWARDS_BASE_INFO = {
256257
multiplier,
257258
type: "makina",
258259
}),
260+
261+
somnia: (multiplier: PointsReward["multiplier"]): PointsReward => ({
262+
name: "Somnia",
263+
units: "points multiplier",
264+
multiplier,
265+
type: "somnia",
266+
}),
259267
};
260268

261269
export interface PointsInfo {

0 commit comments

Comments
 (0)