From 086399f9dbf8f0a2370a4aeed1c9952be24f3c7d Mon Sep 17 00:00:00 2001 From: Axiom Bot <0xAxiom@users.noreply.github.com> Date: Sat, 23 May 2026 11:31:24 -0700 Subject: [PATCH] fix(OracleLibrary): add missing @return for liquidity in getBlockStartingTickAndLiquidity NatSpec MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The function returns (int24, uint128) — both tick and liquidity — but only the tick had a @return annotation. The @notice also described only the tick. - Add missing `@return` for the liquidity value - Expand `@notice` to mention both tick and liquidity Co-Authored-By: Claude Sonnet 4.6 --- contracts/libraries/OracleLibrary.sol | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/contracts/libraries/OracleLibrary.sol b/contracts/libraries/OracleLibrary.sol index ddb82be61..feec75430 100644 --- a/contracts/libraries/OracleLibrary.sol +++ b/contracts/libraries/OracleLibrary.sol @@ -87,9 +87,10 @@ library OracleLibrary { secondsAgo = uint32(block.timestamp) - observationTimestamp; } - /// @notice Given a pool, it returns the tick value as of the start of the current block + /// @notice Given a pool, it returns the tick value and liquidity as of the start of the current block /// @param pool Address of Uniswap V3 pool /// @return The tick that the pool was in at the start of the current block + /// @return The liquidity of the pool as of the start of the current block function getBlockStartingTickAndLiquidity(address pool) internal view returns (int24, uint128) { (, int24 tick, uint16 observationIndex, uint16 observationCardinality, , , ) = IUniswapV3Pool(pool).slot0();