From f4a55e3ddf0de65fc59d0ae9d985e0bcd75eba2b Mon Sep 17 00:00:00 2001 From: Felix Leupold Date: Tue, 10 Sep 2024 17:46:36 +0200 Subject: [PATCH] [CoW AMM] Fix uni 10k growth query --- cowamm/profitability/10k_growth/uni_v2_4047194.sql | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cowamm/profitability/10k_growth/uni_v2_4047194.sql b/cowamm/profitability/10k_growth/uni_v2_4047194.sql index 46baf566..c6a41f77 100644 --- a/cowamm/profitability/10k_growth/uni_v2_4047194.sql +++ b/cowamm/profitability/10k_growth/uni_v2_4047194.sql @@ -155,9 +155,9 @@ select lp_token_price, ( -- Assess initial investment in lp tokens - select 10000 * lp_token_price as investment + select 10000 / lp_token_price as investment from lp_token_price where day = timestamp '{{start}}' - ) / lp_token_price as current_value_of_investment + ) * lp_token_price as current_value_of_investment from lp_token_price order by 1 desc