Skip to content
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: 2 additions & 3 deletions src/dev/PriceFeedStore.ts
Original file line number Diff line number Diff line change
Expand Up @@ -71,9 +71,8 @@ export class PriceFeedStore extends SDKConstruct {
});
if (update) {
const feeds = result.map(f => this.sdk.priceFeeds.create(f));
const { txs } = await this.sdk.priceFeeds.generatePriceFeedsUpdateTxs(
feeds,
);
const { txs } =
await this.sdk.priceFeeds.generatePriceFeedsUpdateTxs(feeds);
const resp = await this.provider.publicClient.multicall({
contracts: [
...txs.map(rawTxToMulticallPriceUpdate),
Expand Down
6 changes: 6 additions & 0 deletions src/sdk/sdk-legacy/apy/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,8 @@ type ExtraFarmTokens = Extract<
| "PT_corn_pumpBTC_26DEC2024"
| "pumpBTC"
| "PT_sUSDe_27MAR2025"
| "DVstETH"
| "beraSTONE"
>;

// tokens with apy among them
Expand Down Expand Up @@ -66,6 +68,7 @@ type ExtraTokensWithAPY = Extract<
| "PT_corn_eBTC_27MAR2025"
| "PT_corn_pumpBTC_26DEC2024"
| "PT_sUSDe_27MAR2025"
| "DVstETH"
>;

// LRT & LST tokens among them
Expand Down Expand Up @@ -101,6 +104,8 @@ const EXTRA_FARM_TOKENS: Record<ExtraFarmTokens, true> = {
PT_corn_pumpBTC_26DEC2024: true,
pumpBTC: true,
PT_sUSDe_27MAR2025: true,
DVstETH: true,
beraSTONE: true,
};

export const isExtraFarmToken = (t: unknown): t is ExtraFarmTokens => {
Expand All @@ -126,6 +131,7 @@ const EXTRA_TOKENS_WITH_APY: Record<ExtraTokensWithAPY, true> = {
steakLRT: true,
amphrETH: true,
pufETH: true,
DVstETH: true,

PT_ezETH_26DEC2024: true,
PT_eETH_26DEC2024: true,
Expand Down
7 changes: 6 additions & 1 deletion src/sdk/sdk-legacy/core/protocols.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,8 @@ export type ExtendedProtocols =
| "Puffer"
| "Mellow"
| "Lombard"
| "pumpBTC";
| "pumpBTC"
| "Stakestone";

const PROTOCOL_DATA: Record<ExtendedProtocols, ProtocolData> = {
Uniswap: {
Expand Down Expand Up @@ -160,6 +161,10 @@ const PROTOCOL_DATA: Record<ExtendedProtocols, ProtocolData> = {
name: "Equalizer",
icon: "/protocols/equalizer.svg",
},
Stakestone: {
name: "Stakestone",
icon: "/protocols/stakestone.svg",
},
};

export const isExtendedProtocol = (t: unknown): t is ExtendedProtocols =>
Expand Down
Loading