From d870794b5138fd50c567f0e29f9c203a0caf7d40 Mon Sep 17 00:00:00 2001 From: Dima Lekhovitsky Date: Wed, 17 Jul 2024 14:26:10 +0300 Subject: [PATCH] fix: update core-v3 dep, silence warnings --- contracts/test/unit/BoundedPriceFeed.unit.t.sol | 2 +- contracts/test/unit/CompositePriceFeed.unit.t.sol | 2 +- contracts/test/unit/LPPriceFeed.unit.t.sol | 2 +- contracts/test/unit/ZeroPriceFeed.unit.t.sol | 4 ++-- contracts/test/unit/updatable/PythPriceFeed.unit.t.sol | 2 +- contracts/test/unit/updatable/RedstonePriceFeed.unit.t.sol | 2 +- lib/@gearbox-protocol/core-v3 | 2 +- 7 files changed, 8 insertions(+), 8 deletions(-) diff --git a/contracts/test/unit/BoundedPriceFeed.unit.t.sol b/contracts/test/unit/BoundedPriceFeed.unit.t.sol index 06c149d..aec68ab 100644 --- a/contracts/test/unit/BoundedPriceFeed.unit.t.sol +++ b/contracts/test/unit/BoundedPriceFeed.unit.t.sol @@ -48,7 +48,7 @@ contract BoundedPriceFeedUnitTest is Test { } /// @notice U:[BPF-2]: Price feed has correct metadata - function test_U_BPF_02_price_feed_has_correct_metadata() public { + function test_U_BPF_02_price_feed_has_correct_metadata() public view { assertEq(priceFeed.decimals(), 8, "Incorrect decimals"); assertEq(priceFeed.description(), "TEST / USD bounded price feed", "Incorrect description"); assertTrue(priceFeed.skipPriceCheck(), "Incorrect skipPriceCheck"); diff --git a/contracts/test/unit/CompositePriceFeed.unit.t.sol b/contracts/test/unit/CompositePriceFeed.unit.t.sol index cb543ce..b88bb4c 100644 --- a/contracts/test/unit/CompositePriceFeed.unit.t.sol +++ b/contracts/test/unit/CompositePriceFeed.unit.t.sol @@ -65,7 +65,7 @@ contract CompositePriceFeedUnitTest is Test { } /// @notice U:[CPF-2]: Price feed has correct metadata - function test_U_CPF_02_price_feed_has_correct_metadata() public { + function test_U_CPF_02_price_feed_has_correct_metadata() public view { assertEq(priceFeed.decimals(), 8, "Incorrect decimals"); assertEq(priceFeed.description(), "(TEST / ETH) * (ETH / USD) composite price feed", "Incorrect description"); assertTrue(priceFeed.skipPriceCheck(), "Incorrect skipPriceCheck"); diff --git a/contracts/test/unit/LPPriceFeed.unit.t.sol b/contracts/test/unit/LPPriceFeed.unit.t.sol index d0e4eeb..dd15bfb 100644 --- a/contracts/test/unit/LPPriceFeed.unit.t.sol +++ b/contracts/test/unit/LPPriceFeed.unit.t.sol @@ -56,7 +56,7 @@ contract LPPriceFeedUnitTest is Test { } /// @notice U:[LPPF-2]: Price feed has correct metadata - function test_U_LPPF_02_price_feed_has_correct_metadata() public { + function test_U_LPPF_02_price_feed_has_correct_metadata() public view { assertEq(priceFeed.decimals(), 8, "Incorrect decimals"); assertEq(priceFeed.description(), "TEST / USD LP price feed", "Incorrect description"); assertTrue(priceFeed.skipPriceCheck(), "Incorrect skipPriceCheck"); diff --git a/contracts/test/unit/ZeroPriceFeed.unit.t.sol b/contracts/test/unit/ZeroPriceFeed.unit.t.sol index 53571a1..e783463 100644 --- a/contracts/test/unit/ZeroPriceFeed.unit.t.sol +++ b/contracts/test/unit/ZeroPriceFeed.unit.t.sol @@ -17,14 +17,14 @@ contract ZeroPriceFeedUnitTest is Test { } /// @notice U:[ZPF-1]: Price feed has correct metadata - function test_U_ZPF_01_price_feed_has_correct_metadata() public { + function test_U_ZPF_01_price_feed_has_correct_metadata() public view { assertEq(priceFeed.decimals(), 8, "Incorrect decimals"); assertEq(priceFeed.description(), "Zero price feed", "Incorrect description"); assertTrue(priceFeed.skipPriceCheck(), "Incorrect skipPriceCheck"); } /// @notice U:[ZPF-2]: `latestRoundData` works as expected - function test_U_ZPF_02_latestRoundData_works_as_expected() public { + function test_U_ZPF_02_latestRoundData_works_as_expected() public view { (, int256 answer,,,) = priceFeed.latestRoundData(); assertEq(answer, 0, "Incorrect answer"); } diff --git a/contracts/test/unit/updatable/PythPriceFeed.unit.t.sol b/contracts/test/unit/updatable/PythPriceFeed.unit.t.sol index c2ed194..311730c 100644 --- a/contracts/test/unit/updatable/PythPriceFeed.unit.t.sol +++ b/contracts/test/unit/updatable/PythPriceFeed.unit.t.sol @@ -33,7 +33,7 @@ contract PythPriceFeedUnitTest is TestHelper { } /// @notice U:[PYPF-1]: constructor sets correct values - function test_U_PYPF_01_constructor_sets_correct_values() public { + function test_U_PYPF_01_constructor_sets_correct_values() public view { assertEq(pf.description(), "USDC / USD Pyth price feed", "Price feed description incorrect"); assertEq(pf.token(), token, "Price feed token incorrect"); diff --git a/contracts/test/unit/updatable/RedstonePriceFeed.unit.t.sol b/contracts/test/unit/updatable/RedstonePriceFeed.unit.t.sol index 0f985c1..ec0df2b 100644 --- a/contracts/test/unit/updatable/RedstonePriceFeed.unit.t.sol +++ b/contracts/test/unit/updatable/RedstonePriceFeed.unit.t.sol @@ -89,7 +89,7 @@ contract RedstonePriceFeedUnitTest is TestHelper, RedstoneConstants { } /// @notice U:[RPF-1]: constructor sets correct values - function test_U_RPF_01_constructor_sets_correct_values() public { + function test_U_RPF_01_constructor_sets_correct_values() public view { assertEq(pf.description(), "USDC / USD Redstone price feed", "Incorrect description"); assertEq(pf.dataServiceId(), "mock-data-service", "Incorrect data service id"); diff --git a/lib/@gearbox-protocol/core-v3 b/lib/@gearbox-protocol/core-v3 index 695434c..13ed544 160000 --- a/lib/@gearbox-protocol/core-v3 +++ b/lib/@gearbox-protocol/core-v3 @@ -1 +1 @@ -Subproject commit 695434cc0cc667b486496ddc887e614222ecc9c7 +Subproject commit 13ed54494e02f66a948111b7fae9b5f497008709