From 566d4902b1fdd8ae0db66bd68348b99f4b1cc73c Mon Sep 17 00:00:00 2001 From: eli-d <64763513+eli-d@users.noreply.github.com> Date: Fri, 15 Nov 2024 14:29:31 +1030 Subject: [PATCH] actually set tvl --- 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 79dacd96..1ffb9719 100644 --- a/cmd/graphql.ethereum/graph/schema.resolvers.go +++ b/cmd/graphql.ethereum/graph/schema.resolvers.go @@ -1002,7 +1002,7 @@ func (r *seawaterPoolResolver) Apr(ctx context.Context, obj *seawater.Pool) (mod tvl, _ := new(big.Rat).SetString(tvlString) // If TVL is 0, set to 1 to avoid division by 0 if tvl.Cmp(big.NewRat(0, 1)) == 0 { - + tvl.SetInt64(1) } // Get total fees from this pool yield, err := r.TotalFee(ctx, obj)