diff --git a/adapters/beefy/hourly_blocks.csv b/adapters/beefy/hourly_blocks.csv index 67294af4..7f88bec9 100644 --- a/adapters/beefy/hourly_blocks.csv +++ b/adapters/beefy/hourly_blocks.csv @@ -14,4 +14,5 @@ number,timestamp 6301186,1720005441 7643069,1722689579 7848072,1723099948 -8029967,1723464243 \ No newline at end of file +8029967,1723464243 +11330508,1730124321 \ No newline at end of file diff --git a/adapters/beefy/src/sdk/breakdown/getVaultBreakdown.ts b/adapters/beefy/src/sdk/breakdown/getVaultBreakdown.ts index f914cc40..0b4706b5 100644 --- a/adapters/beefy/src/sdk/breakdown/getVaultBreakdown.ts +++ b/adapters/beefy/src/sdk/breakdown/getVaultBreakdown.ts @@ -3,7 +3,7 @@ import { BeefyVaultBreakdown } from "./types"; import { BeefyViemClient, getViemClient } from "../viemClient"; import { getSolidlyVaultBreakdown } from "./protocol_type/solidly"; import { getGammaVaultBreakdown } from "./protocol_type/gamma"; -import { getMendiVaultBreakdown } from "./protocol_type/mendi"; +import { getSingleTokenVaultBreakdown } from "./protocol_type/single_token"; import { getBeefyClmManagerBreakdown, getBeefyClmVaultBreakdown, @@ -17,7 +17,7 @@ type BreakdownMethod = ( const breakdownMethods: Record = { solidly: getSolidlyVaultBreakdown, - mendi: getMendiVaultBreakdown, + single_token: getSingleTokenVaultBreakdown, gamma: getGammaVaultBreakdown, ichi: getGammaVaultBreakdown, beefy_clm: getBeefyClmManagerBreakdown, diff --git a/adapters/beefy/src/sdk/breakdown/protocol_type/mendi.ts b/adapters/beefy/src/sdk/breakdown/protocol_type/single_token.ts similarity index 94% rename from adapters/beefy/src/sdk/breakdown/protocol_type/mendi.ts rename to adapters/beefy/src/sdk/breakdown/protocol_type/single_token.ts index a9c9b038..630c6bc1 100644 --- a/adapters/beefy/src/sdk/breakdown/protocol_type/mendi.ts +++ b/adapters/beefy/src/sdk/breakdown/protocol_type/single_token.ts @@ -4,7 +4,7 @@ import { BeefyViemClient } from "../../viemClient"; import { BeefyVaultBreakdown } from "../types"; import { BeefyVaultV7Abi } from "../../../abi/BeefyVaultV7Abi"; -export const getMendiVaultBreakdown = async ( +export const getSingleTokenVaultBreakdown = async ( client: BeefyViemClient, blockNumber: bigint, vault: BeefyVault diff --git a/adapters/beefy/src/sdk/vault/getBeefyVaultConfig.ts b/adapters/beefy/src/sdk/vault/getBeefyVaultConfig.ts index a425f530..bc068050 100644 --- a/adapters/beefy/src/sdk/vault/getBeefyVaultConfig.ts +++ b/adapters/beefy/src/sdk/vault/getBeefyVaultConfig.ts @@ -41,7 +41,7 @@ export type BeefyBoost = { export type BeefyProtocolType = | "gamma" | "ichi" - | "mendi" + | "single_token" | "solidly" | "beefy_clm" | "beefy_clm_vault"; @@ -52,6 +52,7 @@ type ApiPlatformId = | "lynex" | "mendi" | "nile" + | "stargate" | "velodrome" | "beefy"; // and more but we don't use those on linea @@ -133,10 +134,11 @@ const protocol_map: Record = { gamma: "gamma", ichi: "ichi", lynex: "solidly", - mendi: "mendi", + mendi: "single_token", nile: "solidly", velodrome: "solidly", beefy: "beefy_clm", + stargate: "single_token", }; export const getBeefyVaultConfig = memoize(