Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion contracts/libraries/OracleLibrary.sol
Original file line number Diff line number Diff line change
Expand Up @@ -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();

Expand Down