Skip to content

Commit

Permalink
chore: more renaming
Browse files Browse the repository at this point in the history
  • Loading branch information
onmax committed Nov 19, 2024
1 parent 8f7de39 commit 984e589
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions server/utils/validators.ts
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@ export type FetchValidatorsOptions = Zod.infer<typeof mainQuerySchema> & { addre
type FetchedValidator = Omit<Validator, 'icon' | 'contact'> & {
icon?: string
score?: Score
sizeRatio?: number
dominanceRatio?: number
}

export async function fetchValidators(params: FetchValidatorsOptions): Result<FetchedValidator[]> {
Expand Down Expand Up @@ -172,7 +172,7 @@ export async function fetchValidators(params: FetchValidatorsOptions): Result<Fe
availability: tables.scores.availability,
reliability: tables.scores.reliability,
},
sizeRatio: sql<number>`
dominanceRatio: sql<number>`
COALESCE(
NULLIF(${tables.activity.dominanceRatioViaBalance}, -1),
NULLIF(${tables.activity.dominanceRatioViaSlots}, -1)
Expand Down

0 comments on commit 984e589

Please sign in to comment.