Skip to content

Commit

Permalink
fix optimalArbRaise signature
Browse files Browse the repository at this point in the history
  • Loading branch information
kinrezC committed Feb 27, 2024
1 parent 79141cf commit 886a62c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
1 change: 0 additions & 1 deletion src/LogNormal/LogNormalExtendedLib.sol
Original file line number Diff line number Diff line change
Expand Up @@ -463,7 +463,6 @@ function computeOptimalLower(

function computeOptimalRaise(
int256 S,
int256 rX,
int256 rY,
int256 L,
uint256 vUpper,
Expand Down
4 changes: 2 additions & 2 deletions src/LogNormal/LogNormalSolver.sol
Original file line number Diff line number Diff line change
Expand Up @@ -363,7 +363,7 @@ contract LogNormalSolver {
uint256 vUpper
) public view returns (uint256) {
LogNormal.LogNormalParams memory params = fetchPoolParams(poolId);
(uint256 rx, uint256 ry, uint256 L) = getReservesAndLiquidity(poolId);
return computeOptimalRaise(int256(S), int256(rx), int256(ry), int256(L), vUpper, params);
(, uint256 ry, uint256 L) = getReservesAndLiquidity(poolId);
return computeOptimalRaise(int256(S), int256(ry), int256(L), vUpper, params);
}
}

0 comments on commit 886a62c

Please sign in to comment.