Skip to content

Commit

Permalink
hotfix(explorer): Fix the proof price average (#1717)
Browse files Browse the repository at this point in the history
Co-authored-by: Julian Ventura <julian.ventura@lambdaclass.com>
Co-authored-by: Julian Arce <52429267+JuArce@users.noreply.github.com>
  • Loading branch information
3 people authored and PatStiles committed Jan 9, 2025
1 parent 55c3a73 commit 8325d76
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion explorer/lib/explorer/models/batches.ex
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,7 @@ defmodule Batches do
query =
from(b in Batches,
where: b.is_verified == true,
select: avg(b.fee_per_proof)
select: sum(b.fee_per_proof * b.amount_of_proofs) / sum(b.amount_of_proofs)
)

case Explorer.Repo.one(query) do
Expand Down

0 comments on commit 8325d76

Please sign in to comment.