From e609d68d8d47a912f9c6e13b80e27543334ca3e6 Mon Sep 17 00:00:00 2001 From: Kinrezc Date: Fri, 26 Apr 2024 13:14:50 -0400 Subject: [PATCH] fix lognormal solver return tuple --- src/LogNormal/LogNormalSolver.sol | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/LogNormal/LogNormalSolver.sol b/src/LogNormal/LogNormalSolver.sol index aa8802c3..a67de658 100644 --- a/src/LogNormal/LogNormalSolver.sol +++ b/src/LogNormal/LogNormalSolver.sol @@ -219,10 +219,10 @@ contract LogNormalSolver is ISolver { (bool valid,,,,,,,) = IStrategy(strategy).validateSwap( address(this), poolId, pool, swapData ); + return ( valid, state.amountOut, - computePriceGivenX(endReserves.rx, endReserves.L, poolParams), swapData ); }