Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions schema-oeth.graphql
Original file line number Diff line number Diff line change
Expand Up @@ -191,6 +191,7 @@ type OETHDailyStat @entity {
type OETHStrategyDailyStat @entity {
id: ID!
dailyStatId: OETHDailyStat!
name: String!
total: BigInt!
"""
Sum of tokens in strategy
Expand Down
1 change: 1 addition & 0 deletions schema.graphql
Original file line number Diff line number Diff line change
Expand Up @@ -254,6 +254,7 @@ type OETHDailyStat @entity {
type OETHStrategyDailyStat @entity {
id: ID!
dailyStatId: OETHDailyStat!
name: String!
total: BigInt!
"""
Sum of tokens in strategy
Expand Down
3 changes: 3 additions & 0 deletions src/model/generated/oethStrategyDailyStat.model.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,9 @@ export class OETHStrategyDailyStat {
@ManyToOne_(() => OETHDailyStat, {nullable: true})
dailyStatId!: OETHDailyStat

@Column_("text", {nullable: false})
name!: string

@Column_("numeric", {transformer: marshal.bigintTransformer, nullable: false})
total!: bigint

Expand Down
5 changes: 5 additions & 0 deletions src/post-processors/daily-stats/daily-stats.ts
Original file line number Diff line number Diff line change
Expand Up @@ -212,30 +212,35 @@ async function updateDailyStats(ctx: Context, date: Date) {
const dailyStrategyStats = [
new OETHStrategyDailyStat({
id: `${id}-CURVE`,
name: 'CURVE',
dailyStatId: id as unknown as OETHDailyStat,
tvl: lastCurve?.ethOwned || 0n,
total: lastCurve?.ethOwned || 0n,
}),
new OETHStrategyDailyStat({
id: `${id}-VAULT`,
name: 'VAULT',
dailyStatId: id as unknown as OETHDailyStat,
tvl: vaultTotal,
total: vaultTotal,
}),
new OETHStrategyDailyStat({
id: `${id}-BALANCER`,
name: 'BALANCER',
dailyStatId: id as unknown as OETHDailyStat,
tvl: balancerTotal,
total: balancerTotal,
}),
new OETHStrategyDailyStat({
id: `${id}-FRAX`,
name: 'FRAX',
dailyStatId: id as unknown as OETHDailyStat,
tvl: lastFrax?.sfrxETH || 0n,
total: frxETH,
}),
new OETHStrategyDailyStat({
id: `${id}-MORPHO`,
name: 'MORPHO',
dailyStatId: id as unknown as OETHDailyStat,
tvl: lastMorpho?.weth || 0n,
total: lastMorpho?.weth || 0n,
Expand Down
2 changes: 0 additions & 2 deletions src/server-extension/resolvers/index.ts

This file was deleted.

106 changes: 0 additions & 106 deletions src/server-extension/resolvers/proof-of-yield-by-id.ts

This file was deleted.

128 changes: 0 additions & 128 deletions src/server-extension/resolvers/proof-of-yields.ts

This file was deleted.