-
Notifications
You must be signed in to change notification settings - Fork 241
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Major schema update (1.2.0) #88
Conversation
6a20d52
to
e57f2e4
Compare
I believe @steegecs mentioned this too. I like the descriptors prefixed on the field names. This is a small thing, but I do like So I would propose |
I still have this opinion as well about fields that use cumulative. Like the revenues, volumes, and unique users. But everything looks good to go if you want to leave that. It seems more accurate this way. If you compare, for example, all historical volume and volume for a day, under the current paradigm you'd have cumulativeVolumeUSD and dailyVolumeUSD. They are both cumulative however. One throughout the history of the protocol and the other over the period of a day. So it would be more accurate to say totalCumulativeVolumeUSD and dailyCumulativeVolumeUSD. But when you drop "cumulative' it still gets the point across clearly without the extra jargon. |
The main thing here is I want to avoid There is another place of ambiguity for Same for |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Have gone through schema-lending (that I am most familiar with) and it looks good, just small comments.
Higher-level question: Do we decide to leave fields in type Liquidate
generic? Such as from
and to
. I proposed using more specific names and we had discussions on Discord, would love to hear your thoughts here.
See fixes here: #106 |
Schema Update 1.2.0
Common
cumulativeDepositUSD
means all deposits has ever been made to this protocol/pool.dailyActiveUsers
means all unique active users on a given day, up till now.totalValueLockedUSD
means the total TVL of the protocol/pool as of now.dataSource.network()
.lastPriceUSD
andlastPriceBlockNumber
as optional fields in theToken
entity for tracking prices.RewardToken
to includeToken
as a field.cumulative
values anddaily
aggregates.DEX-AMM
inputTokenWeights: [BigDecimal!]!
to track pool composition.dailyVolumeByTokenUSD: [BigDecimal!]!
toLiquidityPoolDailySnapshot
.PoolDailySnapshot
toLiquidityPoolDailySnapshot
for consistency.stakedOutputTokenAmount: BigInt
toLiquidityPool
andLiquidityPoolDailySnapshot
.Lending Protocol
InterestRate
entity and maderates
into an array.mintedTokens
andmintedTokenSupplies
to theLendingProtocol
entity.exchangeRate: BigDecimal
toMarket
andMarketDailySnapshot
entity.inputTokens
toinputToken
).Liquidate
event for clarity.Yield Aggregator
inputTokens
toinputToken
).Generic
stakedOutputTokenAmount: BigInt