Skip to content

Commit

Permalink
Fix gov parsing to match the new format
Browse files Browse the repository at this point in the history
  • Loading branch information
prevostc committed Nov 30, 2023
1 parent 1f8d5ae commit 2a43dbe
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/protocol/beefy/connector/vault-list.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ interface RawBeefyVault {
earnContractAddress: string;
earnedToken: string;
isGovVault?: boolean;
type?: "gov" | "standard";
oracleId: string;
status?: string;
assets?: string[];
Expand Down Expand Up @@ -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,
Expand Down

0 comments on commit 2a43dbe

Please sign in to comment.