diff --git a/protocol/contracts/libraries/Oracle/LibUniswapOracle.sol b/protocol/contracts/libraries/Oracle/LibUniswapOracle.sol index e4e95a4ed1..ca6aa49e12 100644 --- a/protocol/contracts/libraries/Oracle/LibUniswapOracle.sol +++ b/protocol/contracts/libraries/Oracle/LibUniswapOracle.sol @@ -42,7 +42,12 @@ library LibUniswapOracle { (bool success, int24 tick) = consult(pool, lookback); if (!success) return 0; - price = LibUniswapOracleLibrary.getQuoteAtTick(tick, oneToken, token1, token2); + price = LibUniswapOracleLibrary.getQuoteAtTick( + tick, + baseTokenAmount, + baseToken, + quoteToken + ); uint256 baseTokenDecimals = IERC20Decimals(baseToken).decimals(); uint256 quoteTokenDecimals = IERC20Decimals(quoteToken).decimals();