From 83e9fda7b504ea453958f968ea0f3ebc52460fc7 Mon Sep 17 00:00:00 2001 From: Bogdan Crisan Date: Thu, 2 Jan 2025 16:02:04 +0100 Subject: [PATCH] Fix price not getting calculated on first swap --- .../frontend/src/lib/hooks/use-calculate-swap-price.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/typescript/frontend/src/lib/hooks/use-calculate-swap-price.ts b/src/typescript/frontend/src/lib/hooks/use-calculate-swap-price.ts index 720572816..c22bd6f66 100644 --- a/src/typescript/frontend/src/lib/hooks/use-calculate-swap-price.ts +++ b/src/typescript/frontend/src/lib/hooks/use-calculate-swap-price.ts @@ -67,6 +67,6 @@ const getReservesAndBondingCurveStateWithDefault = ( return { clammVirtualReserves: INITIAL_VIRTUAL_RESERVES, cpammRealReserves: INITIAL_REAL_RESERVES, - startsInBondingCurve: false, + startsInBondingCurve: true, }; };