From 395f72c276a89d359b076b4065b8b05e815a7993 Mon Sep 17 00:00:00 2001 From: jar-o Date: Tue, 30 Jul 2024 12:37:27 -0600 Subject: [PATCH] Lint complaints --- .../AggorIntegration_eth_ETH_USD.t.sol | 18 +++++++++++++----- 1 file changed, 13 insertions(+), 5 deletions(-) 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); } }