From ba238e674fe3bc57f974f6da23090fefb9bca76b Mon Sep 17 00:00:00 2001 From: eli-d <64763513+eli-d@users.noreply.github.com> Date: Wed, 11 Dec 2024 15:24:35 +1030 Subject: [PATCH] scale fusdc ValueUsd by the correct number of decimals --- cmd/graphql.ethereum/graph/schema.resolvers.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmd/graphql.ethereum/graph/schema.resolvers.go b/cmd/graphql.ethereum/graph/schema.resolvers.go index 026ca3b9..08993e92 100644 --- a/cmd/graphql.ethereum/graph/schema.resolvers.go +++ b/cmd/graphql.ethereum/graph/schema.resolvers.go @@ -123,7 +123,7 @@ func (r *amountResolver) ValueUsd(ctx context.Context, obj *model.Amount) (strin // If the pool is the fUSDC address, then we can just skip the // lookup here and report $1 (assuming we maintain the peg.) if obj.Token == r.C.FusdcAddr { - return obj.ValueUnscaled.ScaleStr(5), nil + return obj.ValueUnscaled.ScaleStr(6), nil } // Use the final tick function to get the row. var finalTick struct {