From 2a43dbebaee06ecf783e04c9e99709012131f6a1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Cl=C3=A9ment=20Pr=C3=A9vost?= <998369+prevostc@users.noreply.github.com> Date: Thu, 30 Nov 2023 13:05:36 +0100 Subject: [PATCH] Fix gov parsing to match the new format --- src/protocol/beefy/connector/vault-list.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/protocol/beefy/connector/vault-list.ts b/src/protocol/beefy/connector/vault-list.ts index b2436b4c..dc2621f5 100644 --- a/src/protocol/beefy/connector/vault-list.ts +++ b/src/protocol/beefy/connector/vault-list.ts @@ -21,6 +21,7 @@ interface RawBeefyVault { earnContractAddress: string; earnedToken: string; isGovVault?: boolean; + type?: "gov" | "standard"; oracleId: string; status?: string; assets?: string[]; @@ -305,7 +306,7 @@ function rawVaultToBeefyVault(chain: Chain, rawVault: RawBeefyVault, eolDate: Da protocol_product, want_price_feed_key: rawVault.oracleId, bridged_version_of: null, - ...(rawVault.isGovVault + ...(rawVault.isGovVault || rawVault.type === "gov" ? { is_gov_vault: true, gov_vault_reward_token_symbol: rawVault.earnedToken,