Skip to content

Commit

Permalink
fix: variable re-declaration
Browse files Browse the repository at this point in the history
  • Loading branch information
xenide committed Jul 8, 2024
1 parent 08b30ee commit 5316d5c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/ReservoirPriceOracle.sol
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand Down

0 comments on commit 5316d5c

Please sign in to comment.