From 64834fe1ad49b36f7b619446b74d596b174d7f13 Mon Sep 17 00:00:00 2001 From: eli-d <64763513+eli-d@users.noreply.github.com> Date: Mon, 18 Nov 2024 16:23:07 +1030 Subject: [PATCH] resolve fusdc as amount1, and token as amount0 in `Amounts` --- cmd/graphql.ethereum/graph/schema.resolvers.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cmd/graphql.ethereum/graph/schema.resolvers.go b/cmd/graphql.ethereum/graph/schema.resolvers.go index 235eeb98..3208b2da 100644 --- a/cmd/graphql.ethereum/graph/schema.resolvers.go +++ b/cmd/graphql.ethereum/graph/schema.resolvers.go @@ -1257,13 +1257,13 @@ func (r *seawaterPoolResolver) Amounts(ctx context.Context, obj *seawater.Pool) Token: r.C.FusdcAddr, Decimals: r.C.FusdcDecimals, Timestamp: ts, - ValueUnscaled: sum.CumulativeAmount0, + ValueUnscaled: sum.CumulativeAmount1, }, Token1: model.Amount{ Token: obj.Token, Decimals: int(sum.Decimals), Timestamp: ts, - ValueUnscaled: sum.CumulativeAmount1, + ValueUnscaled: sum.CumulativeAmount0, }, } return