From 57716174ff018e44ecd1dbbb0fab66f981c952c6 Mon Sep 17 00:00:00 2001 From: Vincent Wen Date: Mon, 13 Jun 2022 18:42:13 -0700 Subject: [PATCH] Schema upgrade: 1.3.0 (#310) * Added pool-level revenue * Fix markdown formatting issue in comments * Updated constants * Schema changes for Bancor v3 * Address code review comments --- docs/Schema.md | 8 ++ schema-dex-amm.graphql | 75 +++++++++++++++++-- schema-generic.graphql | 64 ++++++++++++++-- schema-lending.graphql | 70 ++++++++++++++--- schema-yield.graphql | 66 ++++++++++++++-- subgraphs/_reference_/src/common/constants.ts | 11 ++- 6 files changed, 263 insertions(+), 31 deletions(-) diff --git a/docs/Schema.md b/docs/Schema.md index f9d472030f..77043d7db2 100644 --- a/docs/Schema.md +++ b/docs/Schema.md @@ -77,6 +77,14 @@ Entity IDs are usually defined by either an address, a transaction hash, a log i Note that entity types that derive from the same interface cannot have the same IDs. For example, a `Withdraw` entity and a `Deposit` entity cannot have the same ID since they both implement the `Event` interface. In this case, we prefix the ID by `withdraw-` or `deposit-` in order to make them unique. You can use the helper function `prefixID(string, string)` in `common/utils/strings.ts` to make this easier. +Certain protocols may require adjustments to the ID of specific entities to handle edge cases (e.g. single-sided liquidity pools or single-sided staking). Feel free to make adjustments necessary to best fit the situation. Make sure these are documented in the README of the specific subgraphs. + +Here are some examples: + +- Convex doesn't have vault contracts for individual vaults. The Vault IDs for Convex is stored as { the Booster contract address }-{ pool ID }. +- Bancor v3 creates a reward program that has start and end date for a few tokens deposited (DAI, ETH, etc). The reward is always in BNT. So the ID is being stored as " { Reward token type }-{ Smart contract address of the deposited token }-{ start }-{ end } " such as `DEPOSIT--16xxxxxx-16xxxxxxx`. +- For pools that support single-sided staking, we can store each side as a separate pool, set `isSingleSided` as true, and differentiate with their ID (e.g. { Address of parent pool }- { Address/pid of staking pool }). + ## Transaction vs. Event The most granular data we index in the subgraphs are Event entities. They are very similar to the events in Ethereum event logs but not exactly the same. Conceptually, an Event entity uniquely represents a user action that has occurred in a protocol. diff --git a/schema-dex-amm.graphql b/schema-dex-amm.graphql index b0a71bedf2..415245aa73 100644 --- a/schema-dex-amm.graphql +++ b/schema-dex-amm.graphql @@ -1,20 +1,27 @@ # Subgraph Schema: DEX AMM -# Version: 1.2.1 +# Version: 1.3.0 # See https://github.com/messari/subgraphs/blob/master/docs/Schema.md for details enum Network { ARBITRUM_ONE + ARWEAVE_MAINNET AURORA AVALANCHE + BOBA BSC # aka BNB Chain CELO + COSMOS + CRONOS MAINNET # Ethereum Mainnet FANTOM FUSE + HARMONY + JUNO MOONBEAM MOONRIVER NEAR_MAINNET OPTIMISM + OSMOSIS MATIC # aka Polygon XDAI # aka Gnosis Chain } @@ -92,6 +99,12 @@ enum LiquidityPoolFeeType { " Some protocols use dynamic protocol fees (e.g., Bancor v2). Set `feePercentage` as 0 but handle the dynamic fees in the mapping code. " DYNAMIC_PROTOCOL_FEE + + " One-time fee charged by the protocol during deposit, in percentages of the deposit token " + DEPOSIT_FEE + + " One-time fee charged by the protocol (e.g. Bancor v3) during withdrawal, in percentages of the withdrawal token " + WITHDRAWAL_FEE } type LiquidityPoolFee @entity { @@ -151,7 +164,7 @@ interface Protocol { " All revenue generated by the protocol. e.g. 0.30% of swap fee in Sushiswap, all yield generated by Yearn. " cumulativeTotalRevenueUSD: BigDecimal! - " # of cumulative unique users " + " Number of cumulative unique users " cumulativeUniqueUsers: Int! ##### Snapshots ##### @@ -211,7 +224,7 @@ type DexAmmProtocol implements Protocol @entity { " All revenue generated by the protocol. e.g. 0.30% of swap fee in Sushiswap, all yield generated by Yearn. " cumulativeTotalRevenueUSD: BigDecimal! - " # of cumulative unique users " + " Number of cumulative unique users " cumulativeUniqueUsers: Int! ##### Snapshots ##### @@ -242,10 +255,10 @@ type UsageMetricsDailySnapshot @entity { " Protocol this snapshot is associated with " protocol: DexAmmProtocol! - " # of unique daily active users " + " Number of unique daily active users " dailyActiveUsers: Int! - " # of cumulative unique users " + " Number of cumulative unique users " cumulativeUniqueUsers: Int! " Total number of transactions occurred in a day. Transactions include all entities that implement the Event interface. " @@ -274,10 +287,10 @@ type UsageMetricsHourlySnapshot @entity { " Protocol this snapshot is associated with " protocol: DexAmmProtocol! - " # of unique hourly active users " + " Number of unique hourly active users " hourlyActiveUsers: Int! - " # of cumulative unique users " + " Number of cumulative unique users " cumulativeUniqueUsers: Int! " Total number of transactions occurred in an hour. Transactions include all entities that implement the Event interface. " @@ -372,6 +385,9 @@ type LiquidityPool @entity { " Fees per trade incurred to the user. Should include all fees that apply to a pool (e.g. Curve has a trading fee AND an admin fee, which is a portion of the trading fee. Uniswap only has a trading fee and no protocol fee. ) " fees: [LiquidityPoolFee!]! + " Whether this pool is single-sided (e.g. Bancor, Platypus's Alternative Pool). The specifics of the implementation depends on the protocol. " + isSingleSided: Boolean! + " Creation timestamp " createdTimestamp: BigInt! @@ -383,6 +399,15 @@ type LiquidityPool @entity { " Current TVL (Total Value Locked) of this pool in USD " totalValueLockedUSD: BigDecimal! + " All revenue generated by the liquidity pool, accrued to the supply side. " + cumulativeSupplySideRevenueUSD: BigDecimal! + + " All revenue generated by the liquidity pool, accrued to the protocol. " + cumulativeProtocolSideRevenueUSD: BigDecimal! + + " All revenue generated by the liquidity pool. " + cumulativeTotalRevenueUSD: BigDecimal! + " All historical trade volume occurred in this pool, in USD " cumulativeVolumeUSD: BigDecimal! @@ -452,6 +477,24 @@ type LiquidityPoolDailySnapshot @entity { " Current TVL (Total Value Locked) of this pool " totalValueLockedUSD: BigDecimal! + " All revenue generated by the liquidity pool, accrued to the supply side. " + cumulativeSupplySideRevenueUSD: BigDecimal! + + " Daily revenue generated by the liquidity pool, accrued to the supply side. " + dailySupplySideRevenueUSD: BigDecimal! + + " All revenue generated by the liquidity pool, accrued to the protocol. " + cumulativeProtocolSideRevenueUSD: BigDecimal! + + " Daily revenue generated by the liquidity pool, accrued to the protocol. " + dailyProtocolSideRevenueUSD: BigDecimal! + + " All revenue generated by the liquidity pool. " + cumulativeTotalRevenueUSD: BigDecimal! + + " Daily revenue generated by the liquidity pool. " + dailyTotalRevenueUSD: BigDecimal! + " All trade volume occurred in a given day, in USD " dailyVolumeUSD: BigDecimal! @@ -507,6 +550,24 @@ type LiquidityPoolHourlySnapshot @entity { " Current TVL (Total Value Locked) of this pool " totalValueLockedUSD: BigDecimal! + " All revenue generated by the liquidity pool, accrued to the supply side. " + cumulativeSupplySideRevenueUSD: BigDecimal! + + " Hourly revenue generated by the liquidity pool, accrued to the supply side. " + hourlySupplySideRevenueUSD: BigDecimal! + + " All revenue generated by the liquidity pool, accrued to the protocol. " + cumulativeProtocolSideRevenueUSD: BigDecimal! + + " Hourly revenue generated by the liquidity pool, accrued to the protocol. " + hourlyProtocolSideRevenueUSD: BigDecimal! + + " All revenue generated by the liquidity pool. " + cumulativeTotalRevenueUSD: BigDecimal! + + " Hourly revenue generated by the liquidity pool. " + hourlyTotalRevenueUSD: BigDecimal! + " All trade volume occurred in a given hour, in USD " hourlyVolumeUSD: BigDecimal! diff --git a/schema-generic.graphql b/schema-generic.graphql index 17136d13de..c3ff6c7e25 100644 --- a/schema-generic.graphql +++ b/schema-generic.graphql @@ -1,20 +1,27 @@ # Subgraph Schema: Generic -# Version: 1.2.1 +# Version: 1.3.0 # See https://github.com/messari/subgraphs/blob/master/docs/Schema.md for details enum Network { ARBITRUM_ONE + ARWEAVE_MAINNET AURORA AVALANCHE + BOBA BSC # aka BNB Chain CELO + COSMOS + CRONOS MAINNET # Ethereum Mainnet FANTOM FUSE + HARMONY + JUNO MOONBEAM MOONRIVER NEAR_MAINNET OPTIMISM + OSMOSIS MATIC # aka Polygon XDAI # aka Gnosis Chain } @@ -113,7 +120,7 @@ type Protocol @entity { " All revenue generated by the protocol. e.g. 0.30% of swap fee in Sushiswap, all yield generated by Yearn. " cumulativeTotalRevenueUSD: BigDecimal! - " # of cumulative unique users " + " Number of cumulative unique users " cumulativeUniqueUsers: Int! ##### Snapshots ##### @@ -144,10 +151,10 @@ type UsageMetricsDailySnapshot @entity { " Protocol this snapshot is associated with " protocol: Protocol! - " # of unique daily active users " + " Number of unique daily active users " dailyActiveUsers: Int! - " # of cumulative unique users " + " Number of cumulative unique users " cumulativeUniqueUsers: Int! " Total number of transactions occurred in a day. Transactions include all entities that implement the Event interface. " @@ -167,10 +174,10 @@ type UsageMetricsHourlySnapshot @entity { " Protocol this snapshot is associated with " protocol: Protocol! - " # of unique hourly active users " + " Number of unique hourly active users " hourlyActiveUsers: Int! - " # of cumulative unique users " + " Number of cumulative unique users " cumulativeUniqueUsers: Int! " Total number of transactions occurred in an hour. Transactions include all entities that implement the Event interface. " @@ -261,6 +268,15 @@ type Pool @entity { " Current TVL (Total Value Locked) of this pool in USD " totalValueLockedUSD: BigDecimal! + " All revenue generated by the pool, accrued to the supply side. " + cumulativeSupplySideRevenueUSD: BigDecimal! + + " All revenue generated by the pool, accrued to the protocol. " + cumulativeProtocolSideRevenueUSD: BigDecimal! + + " All revenue generated by the pool. " + cumulativeTotalRevenueUSD: BigDecimal! + " Amount of input tokens in the pool. The ordering should be the same as the pool's `inputTokens` field. " inputTokenBalances: [BigInt!]! @@ -309,6 +325,24 @@ type PoolDailySnapshot @entity { " Current TVL (Total Value Locked) of this pool " totalValueLockedUSD: BigDecimal! + " All revenue generated by the pool, accrued to the supply side. " + cumulativeSupplySideRevenueUSD: BigDecimal! + + " Daily revenue generated by the pool, accrued to the supply side. " + dailySupplySideRevenueUSD: BigDecimal! + + " All revenue generated by the pool, accrued to the protocol. " + cumulativeProtocolSideRevenueUSD: BigDecimal! + + " Daily revenue generated by the pool, accrued to the protocol. " + dailyProtocolSideRevenueUSD: BigDecimal! + + " All revenue generated by the pool. " + cumulativeTotalRevenueUSD: BigDecimal! + + " Daily revenue generated by the pool. " + dailyTotalRevenueUSD: BigDecimal! + " Amount of input tokens in the pool. The ordering should be the same as the pool's `inputTokens` field. " inputTokenBalances: [BigInt!]! @@ -349,6 +383,24 @@ type PoolHourlySnapshot @entity { " Current TVL (Total Value Locked) of this pool " totalValueLockedUSD: BigDecimal! + " All revenue generated by the pool, accrued to the supply side. " + cumulativeSupplySideRevenueUSD: BigDecimal! + + " Hourly revenue generated by the pool, accrued to the supply side. " + hourlySupplySideRevenueUSD: BigDecimal! + + " All revenue generated by the pool, accrued to the protocol. " + cumulativeProtocolSideRevenueUSD: BigDecimal! + + " Hourly revenue generated by the pool, accrued to the protocol. " + hourlyProtocolSideRevenueUSD: BigDecimal! + + " All revenue generated by the pool. " + cumulativeTotalRevenueUSD: BigDecimal! + + " Hourly revenue generated by the pool. " + hourlyTotalRevenueUSD: BigDecimal! + " Amount of input tokens in the pool. The ordering should be the same as the pool's `inputTokens` field. " inputTokenBalances: [BigInt!]! diff --git a/schema-lending.graphql b/schema-lending.graphql index 9d8617a96b..614a02eab2 100644 --- a/schema-lending.graphql +++ b/schema-lending.graphql @@ -1,20 +1,27 @@ # Subgraph Schema: Lending Protocol -# Version: 1.2.1 +# Version: 1.3.0 # See https://github.com/messari/subgraphs/blob/master/docs/Schema.md for details enum Network { ARBITRUM_ONE + ARWEAVE_MAINNET AURORA AVALANCHE + BOBA BSC # aka BNB Chain CELO + COSMOS + CRONOS MAINNET # Ethereum Mainnet FANTOM FUSE + HARMONY + JUNO MOONBEAM MOONRIVER NEAR_MAINNET OPTIMISM + OSMOSIS MATIC # aka Polygon XDAI # aka Gnosis Chain } @@ -90,8 +97,8 @@ enum InterestRateType { " Variable interest rate (e.g. Compound) " VARIABLE - " Fixed term interest rate (e.g. Notional) " - FIXED_TERM + " Fixed interest rate (e.g. Notional) " + FIXED } enum InterestRateSide { @@ -163,7 +170,7 @@ interface Protocol { " Current PCV (Protocol Controlled Value). Only relevant for protocols with PCV. " protocolControlledValueUSD: BigDecimal - " # of cumulative unique users " + " Number of cumulative unique users " cumulativeUniqueUsers: Int! " Revenue claimed by suppliers to the protocol. LPs on DEXs (e.g. 0.25% of the swap fee in Sushiswap). Depositors on Lending Protocols. NFT sellers on OpenSea. " @@ -223,7 +230,7 @@ type LendingProtocol implements Protocol @entity { ##### Quantitative Data ##### - " # of cumulative unique users " + " Number of cumulative unique users " cumulativeUniqueUsers: Int! " Current TVL (Total Value Locked) of the entire protocol " @@ -287,10 +294,10 @@ type UsageMetricsDailySnapshot @entity { " Protocol this snapshot is associated with " protocol: LendingProtocol! - " # of unique daily active users " + " Number of unique daily active users " dailyActiveUsers: Int! - " # of cumulative unique users " + " Number of cumulative unique users " cumulativeUniqueUsers: Int! " Total number of transactions occurred in a day. Transactions include all entities that implement the Event interface. " @@ -325,10 +332,10 @@ type UsageMetricsHourlySnapshot @entity { " Protocol this snapshot is associated with " protocol: LendingProtocol! - " # of unique hourly active users " + " Number of unique hourly active users " hourlyActiveUsers: Int! - " # of cumulative unique users " + " Number of cumulative unique users " cumulativeUniqueUsers: Int! " Total number of transactions occurred in an hour. Transactions include all entities that implement the Event interface. " @@ -474,6 +481,15 @@ type Market @entity { " Current TVL (Total Value Locked) of this market " totalValueLockedUSD: BigDecimal! + " All revenue generated by the market, accrued to the supply side. " + cumulativeSupplySideRevenueUSD: BigDecimal! + + " All revenue generated by the market, accrued to the protocol. " + cumulativeProtocolSideRevenueUSD: BigDecimal! + + " All revenue generated by the market. " + cumulativeTotalRevenueUSD: BigDecimal! + " Current balance of all deposited assets (not historical cumulative), in USD " totalDepositBalanceUSD: BigDecimal! @@ -572,6 +588,24 @@ type MarketDailySnapshot @entity { " Current TVL (Total Value Locked) of this market " totalValueLockedUSD: BigDecimal! + " All revenue generated by the market, accrued to the supply side. " + cumulativeSupplySideRevenueUSD: BigDecimal! + + " Daily revenue generated by the market, accrued to the supply side. " + dailySupplySideRevenueUSD: BigDecimal! + + " All revenue generated by the market, accrued to the protocol. " + cumulativeProtocolSideRevenueUSD: BigDecimal! + + " Daily revenue generated by the market, accrued to the protocol. " + dailyProtocolSideRevenueUSD: BigDecimal! + + " All revenue generated by the market. " + cumulativeTotalRevenueUSD: BigDecimal! + + " Daily revenue generated by the market. " + dailyTotalRevenueUSD: BigDecimal! + " Current balance of all deposited assets (not historical cumulative), in USD. Same as pool TVL. " totalDepositBalanceUSD: BigDecimal! @@ -644,6 +678,24 @@ type MarketHourlySnapshot @entity { " Current TVL (Total Value Locked) of this market " totalValueLockedUSD: BigDecimal! + " All revenue generated by the market, accrued to the supply side. " + cumulativeSupplySideRevenueUSD: BigDecimal! + + " Hourly revenue generated by the market, accrued to the supply side. " + hourlySupplySideRevenueUSD: BigDecimal! + + " All revenue generated by the market, accrued to the protocol. " + cumulativeProtocolSideRevenueUSD: BigDecimal! + + " Hourly revenue generated by the market, accrued to the protocol. " + hourlyProtocolSideRevenueUSD: BigDecimal! + + " All revenue generated by the market. " + cumulativeTotalRevenueUSD: BigDecimal! + + " Hourly revenue generated by the market. " + hourlyTotalRevenueUSD: BigDecimal! + " Current balance of all deposited assets (not historical cumulative), in USD. Same as pool TVL. " totalDepositBalanceUSD: BigDecimal! diff --git a/schema-yield.graphql b/schema-yield.graphql index 9b70548928..3c594da2cf 100644 --- a/schema-yield.graphql +++ b/schema-yield.graphql @@ -1,20 +1,27 @@ # Subgraph Schema: Yield Aggregator -# Version: 1.2.1 +# Version: 1.3.0 # See https://github.com/messari/subgraphs/blob/master/docs/Schema.md for details enum Network { ARBITRUM_ONE + ARWEAVE_MAINNET AURORA AVALANCHE + BOBA BSC # aka BNB Chain CELO + COSMOS + CRONOS MAINNET # Ethereum Mainnet FANTOM FUSE + HARMONY + JUNO MOONBEAM MOONRIVER NEAR_MAINNET OPTIMISM + OSMOSIS MATIC # aka Polygon XDAI # aka Gnosis Chain } @@ -138,7 +145,7 @@ interface Protocol { " All revenue generated by the protocol. e.g. 0.30% of swap fee in Sushiswap, all yield generated by Yearn. " cumulativeTotalRevenueUSD: BigDecimal! - " # of cumulative unique users " + " Number of cumulative unique users " cumulativeUniqueUsers: Int! ##### Snapshots ##### @@ -195,7 +202,7 @@ type YieldAggregator implements Protocol @entity { " All revenue generated by the protocol. e.g. 0.30% of swap fee in Sushiswap, all yield generated by Yearn. " cumulativeTotalRevenueUSD: BigDecimal! - " # of cumulative unique users " + " Number of cumulative unique users " cumulativeUniqueUsers: Int! ##### Snapshots ##### @@ -226,10 +233,10 @@ type UsageMetricsDailySnapshot @entity { " Protocol this snapshot is associated with " protocol: YieldAggregator! - " # of unique daily active users " + " Number of unique daily active users " dailyActiveUsers: Int! - " # of cumulative unique users " + " Number of cumulative unique users " cumulativeUniqueUsers: Int! " Total number of transactions occurred in a day. Transactions include all entities that implement the Event interface. " @@ -255,10 +262,10 @@ type UsageMetricsHourlySnapshot @entity { " Protocol this snapshot is associated with " protocol: YieldAggregator! - " # of unique hourly active users " + " Number of unique hourly active users " hourlyActiveUsers: Int! - " # of cumulative unique users " + " Number of cumulative unique users " cumulativeUniqueUsers: Int! " Total number of transactions occurred in an hour. Transactions include all entities that implement the Event interface. " @@ -358,6 +365,15 @@ type Vault @entity { " Current TVL (Total Value Locked) of this pool in USD " totalValueLockedUSD: BigDecimal! + " All revenue generated by the vault, accrued to the supply side. " + cumulativeSupplySideRevenueUSD: BigDecimal! + + " All revenue generated by the vault, accrued to the protocol. " + cumulativeProtocolSideRevenueUSD: BigDecimal! + + " All revenue generated by the vault. " + cumulativeTotalRevenueUSD: BigDecimal! + " Amount of input token in the pool " inputTokenBalance: BigInt! @@ -413,6 +429,24 @@ type VaultDailySnapshot @entity { " Current TVL (Total Value Locked) of this pool in USD " totalValueLockedUSD: BigDecimal! + " All revenue generated by the vault, accrued to the supply side. " + cumulativeSupplySideRevenueUSD: BigDecimal! + + " Daily revenue generated by the vault, accrued to the supply side. " + dailySupplySideRevenueUSD: BigDecimal! + + " All revenue generated by the vault, accrued to the protocol. " + cumulativeProtocolSideRevenueUSD: BigDecimal! + + " Daily revenue generated by the vault, accrued to the protocol. " + dailyProtocolSideRevenueUSD: BigDecimal! + + " All revenue generated by the vault. " + cumulativeTotalRevenueUSD: BigDecimal! + + " Daily revenue generated by the vault. " + dailyTotalRevenueUSD: BigDecimal! + " Amount of input token in the pool " inputTokenBalance: BigInt! @@ -454,6 +488,24 @@ type VaultHourlySnapshot @entity { " Current TVL (Total Value Locked) of this pool in USD " totalValueLockedUSD: BigDecimal! + " All revenue generated by the vault, accrued to the supply side. " + cumulativeSupplySideRevenueUSD: BigDecimal! + + " Hourly revenue generated by the vault, accrued to the supply side. " + hourlySupplySideRevenueUSD: BigDecimal! + + " All revenue generated by the vault, accrued to the protocol. " + cumulativeProtocolSideRevenueUSD: BigDecimal! + + " Hourly revenue generated by the vault, accrued to the protocol. " + hourlyProtocolSideRevenueUSD: BigDecimal! + + " All revenue generated by the vault. " + cumulativeTotalRevenueUSD: BigDecimal! + + " Hourly revenue generated by the vault. " + hourlyTotalRevenueUSD: BigDecimal! + " Amount of input token in the pool " inputTokenBalance: BigInt! diff --git a/subgraphs/_reference_/src/common/constants.ts b/subgraphs/_reference_/src/common/constants.ts index 646f09a9bb..6c5f8c82ba 100644 --- a/subgraphs/_reference_/src/common/constants.ts +++ b/subgraphs/_reference_/src/common/constants.ts @@ -20,17 +20,24 @@ export const PROTOCOL_METHODOLOGY_VERSION = "1.0.0"; // https://thegraph.com/docs/en/hosted-service/what-is-hosted-service/#supported-networks-on-the-hosted-service export namespace Network { export const ARBITRUM_ONE = "ARBITRUM_ONE"; - export const AVALANCHE = "AVALANCHE"; + export const ARWEAVE_MAINNET = "ARWEAVE_MAINNET"; export const AURORA = "AURORA"; + export const AVALANCHE = "AVALANCHE"; + export const BOBA = "BOBA"; export const BSC = "BSC"; // aka BNB Chain export const CELO = "CELO"; + export const COSMOS = "COSMOS"; + export const CRONOS = "CRONOS"; export const MAINNET = "MAINNET"; // Ethereum mainnet export const FANTOM = "FANTOM"; export const FUSE = "FUSE"; + export const HARMONY = "HARMONY"; + export const JUNO = "JUNO"; export const MOONBEAM = "MOONBEAM"; export const MOONRIVER = "MOONRIVER"; export const NEAR_MAINNET = "NEAR_MAINNET"; export const OPTIMISM = "OPTIMISM"; + export const OSMOSIS = "OSMOSIS"; export const MATIC = "MATIC"; // aka Polygon export const XDAI = "XDAI"; // aka Gnosis Chain } @@ -78,7 +85,7 @@ export namespace RiskType { export namespace InterestRateType { export const STABLE = "STABLE"; export const VARIABLE = "VARIABLE"; - export const FIXED_TERM = "FIXED_TERM"; + export const FIXED = "FIXED"; } export namespace InterestRateSide {