From 5316d5c7e3808fc45f03757f75c2ecf93e1e0a90 Mon Sep 17 00:00:00 2001 From: "A.L." Date: Mon, 8 Jul 2024 21:46:48 +0200 Subject: [PATCH] fix: variable re-declaration --- src/ReservoirPriceOracle.sol | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ReservoirPriceOracle.sol b/src/ReservoirPriceOracle.sol index f02a2c0..368adfa 100644 --- a/src/ReservoirPriceOracle.sol +++ b/src/ReservoirPriceOracle.sol @@ -384,7 +384,7 @@ contract ReservoirPriceOracle is IPriceOracle, IReservoirPriceOracle, Owned(msg. assert(lRoute[0] == aBase); for (uint256 i = 0; i < lRoute.length - 1; ++i) { - (address lToken0, address lToken1) = Utils.sortTokens(lRoute[i], lRoute[i + 1]); + (lToken0, lToken1) = Utils.sortTokens(lRoute[i], lRoute[i + 1]); // it is assumed that intermediate routes defined here are simple routes and not composite routes (lPrice, lDecimalDiff) = _priceCache(lToken0, lToken1);