Skip to content

Commit bcdf91c

Browse files
authored
Merge pull request #327 from Gearbox-protocol/bera-dwsteth
feat: add bera
2 parents 23192e2 + 1e51a21 commit bcdf91c

File tree

3 files changed

+14
-4
lines changed

3 files changed

+14
-4
lines changed

src/dev/PriceFeedStore.ts

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -71,9 +71,8 @@ export class PriceFeedStore extends SDKConstruct {
7171
});
7272
if (update) {
7373
const feeds = result.map(f => this.sdk.priceFeeds.create(f));
74-
const { txs } = await this.sdk.priceFeeds.generatePriceFeedsUpdateTxs(
75-
feeds,
76-
);
74+
const { txs } =
75+
await this.sdk.priceFeeds.generatePriceFeedsUpdateTxs(feeds);
7776
const resp = await this.provider.publicClient.multicall({
7877
contracts: [
7978
...txs.map(rawTxToMulticallPriceUpdate),

src/sdk/sdk-legacy/apy/index.ts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,8 @@ type ExtraFarmTokens = Extract<
3636
| "PT_corn_pumpBTC_26DEC2024"
3737
| "pumpBTC"
3838
| "PT_sUSDe_27MAR2025"
39+
| "DVstETH"
40+
| "beraSTONE"
3941
>;
4042

4143
// tokens with apy among them
@@ -66,6 +68,7 @@ type ExtraTokensWithAPY = Extract<
6668
| "PT_corn_eBTC_27MAR2025"
6769
| "PT_corn_pumpBTC_26DEC2024"
6870
| "PT_sUSDe_27MAR2025"
71+
| "DVstETH"
6972
>;
7073

7174
// LRT & LST tokens among them
@@ -101,6 +104,8 @@ const EXTRA_FARM_TOKENS: Record<ExtraFarmTokens, true> = {
101104
PT_corn_pumpBTC_26DEC2024: true,
102105
pumpBTC: true,
103106
PT_sUSDe_27MAR2025: true,
107+
DVstETH: true,
108+
beraSTONE: true,
104109
};
105110

106111
export const isExtraFarmToken = (t: unknown): t is ExtraFarmTokens => {
@@ -126,6 +131,7 @@ const EXTRA_TOKENS_WITH_APY: Record<ExtraTokensWithAPY, true> = {
126131
steakLRT: true,
127132
amphrETH: true,
128133
pufETH: true,
134+
DVstETH: true,
129135

130136
PT_ezETH_26DEC2024: true,
131137
PT_eETH_26DEC2024: true,

src/sdk/sdk-legacy/core/protocols.ts

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,8 @@ export type ExtendedProtocols =
1717
| "Puffer"
1818
| "Mellow"
1919
| "Lombard"
20-
| "pumpBTC";
20+
| "pumpBTC"
21+
| "Stakestone";
2122

2223
const PROTOCOL_DATA: Record<ExtendedProtocols, ProtocolData> = {
2324
Uniswap: {
@@ -160,6 +161,10 @@ const PROTOCOL_DATA: Record<ExtendedProtocols, ProtocolData> = {
160161
name: "Equalizer",
161162
icon: "/protocols/equalizer.svg",
162163
},
164+
Stakestone: {
165+
name: "Stakestone",
166+
icon: "/protocols/stakestone.svg",
167+
},
163168
};
164169

165170
export const isExtendedProtocol = (t: unknown): t is ExtendedProtocols =>

0 commit comments

Comments
 (0)