diff --git a/test/integration/AggorIntegration_eth_ETH_USD.t.sol b/test/integration/AggorIntegration_eth_ETH_USD.t.sol index 1ac7999..0042401 100644 --- a/test/integration/AggorIntegration_eth_ETH_USD.t.sol +++ b/test/integration/AggorIntegration_eth_ETH_USD.t.sol @@ -384,11 +384,15 @@ contract AggorIntegrationTest_eth_ETH_USD is Test { function test_TwapScaleUp() public { uint price = wrapper.readOracle( - uniswapPool, uniswapBaseToken, uniswapQuoteToken, uniswapBaseDec, uniswapLookback + uniswapPool, + uniswapBaseToken, + uniswapQuoteToken, + uniswapBaseDec, + uniswapLookback ); // Scale price up from USDC.decimals() - uint128 wantVal = uint128(price * 10 ** (/*aggor.decimals()*/ 8 - 6)); + uint128 wantVal = uint128(price * 10 ** (8 - 6)); assertTrue(wantVal > price); // Make TWAP value the median. @@ -405,14 +409,18 @@ contract AggorIntegrationTest_eth_ETH_USD is Test { // Read aggor. uint gotVal; - (gotVal, , ) = aggor.readWithStatus(); + (gotVal,,) = aggor.readWithStatus(); assertEq(gotVal, wantVal); } // Note we reverse the default base/quote for this test function test_TwapScaleDown() public { uint price = wrapper.readOracle( - uniswapPool, uniswapQuoteToken, uniswapBaseToken, uniswapQuoteDec, uniswapLookback + uniswapPool, + uniswapQuoteToken, + uniswapBaseToken, + uniswapQuoteDec, + uniswapLookback ); // Scale price down from WETH.decimals() @@ -453,7 +461,7 @@ contract AggorIntegrationTest_eth_ETH_USD is Test { // Read aggor. uint gotVal; - (gotVal, , ) = aggor.readWithStatus(); + (gotVal,,) = aggor.readWithStatus(); assertEq(gotVal, wantVal); } }