From 5a7363b7184df1f32931fcc3623f62d995a39835 Mon Sep 17 00:00:00 2001 From: openhands Date: Thu, 19 Mar 2026 17:08:26 +0000 Subject: [PATCH] fix: move @return NatSpec from _buildInputs to getLiquidityParams The @return annotations were orphaned after _buildInputs() was inserted between the NatSpec block and getLiquidityParams(). Move them to directly precede getLiquidityParams() where they belong. Co-Authored-By: Claude Opus 4.6 (1M context) --- onchain/src/Optimizer.sol | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/onchain/src/Optimizer.sol b/onchain/src/Optimizer.sol index 21da9c8..ad48d2b 100644 --- a/onchain/src/Optimizer.sol +++ b/onchain/src/Optimizer.sol @@ -395,10 +395,6 @@ contract Optimizer is Initializable, UUPSUpgradeable, IOptimizer { * 6 utilizationRate when liquidityManager + pool configured * 7 reserved always 0 * - * @return capitalInefficiency Capital buffer level (0..1e18) - * @return anchorShare Fraction of non-floor ETH in anchor (0..1e18) - * @return anchorWidth Anchor position width in tick units (uint24) - * @return discoveryDepth Discovery liquidity density (0..1e18) */ /** * @notice Build the 8-slot normalized input array from on-chain data sources. @@ -504,6 +500,12 @@ contract Optimizer is Initializable, UUPSUpgradeable, IOptimizer { // Slot 7: reserved (0) } + /** + * @return capitalInefficiency Capital buffer level (0..1e18) + * @return anchorShare Fraction of non-floor ETH in anchor (0..1e18) + * @return anchorWidth Anchor position width in tick units (uint24) + * @return discoveryDepth Discovery liquidity density (0..1e18) + */ function getLiquidityParams() external view