diff --git a/test/MorphoChainlinkOracleV2Test.sol b/test/MorphoChainlinkOracleV2Test.sol index b8a5ef0..0fdf5cc 100644 --- a/test/MorphoChainlinkOracleV2Test.sol +++ b/test/MorphoChainlinkOracleV2Test.sol @@ -92,7 +92,16 @@ contract MorphoChainlinkOracleV2Test is Test { price = bound(price, type(int256).min, -1); ChainlinkAggregatorMock aggregator = new ChainlinkAggregatorMock(); MorphoChainlinkOracleV2 oracle = new MorphoChainlinkOracleV2( - vaultZero, 1, MinimalAggregatorV3Interface(address(aggregator)), feedZero, 18, vaultZero, 1, feedZero, feedZero, 0 + vaultZero, + 1, + MinimalAggregatorV3Interface(address(aggregator)), + feedZero, + 18, + vaultZero, + 1, + feedZero, + feedZero, + 0 ); aggregator.setAnwser(price); vm.expectRevert(bytes(ErrorsLib.NEGATIVE_ANSWER)); diff --git a/test/WstEthStEthExchangeRateChainlinkAdapterTest.sol b/test/WstEthStEthExchangeRateChainlinkAdapterTest.sol index 33c1341..fdaf60f 100644 --- a/test/WstEthStEthExchangeRateChainlinkAdapterTest.sol +++ b/test/WstEthStEthExchangeRateChainlinkAdapterTest.sol @@ -17,7 +17,16 @@ contract WstEthStEthExchangeRateChainlinkAdapterTest is Test { require(block.chainid == 1, "chain isn't Ethereum"); adapter = new WstEthStEthExchangeRateChainlinkAdapter(); morphoOracle = new MorphoChainlinkOracleV2( - vaultZero, 1, MinimalAggregatorV3Interface(address(adapter)), feedZero, 18, vaultZero, 1, feedZero, feedZero, 18 + vaultZero, + 1, + MinimalAggregatorV3Interface(address(adapter)), + feedZero, + 18, + vaultZero, + 1, + feedZero, + feedZero, + 18 ); } diff --git a/test/helpers/Constants.sol b/test/helpers/Constants.sol index 03b66ab..00035c1 100644 --- a/test/helpers/Constants.sol +++ b/test/helpers/Constants.sol @@ -6,21 +6,29 @@ import {MinimalAggregatorV3Interface} from "../../src/interfaces/MinimalAggregat MinimalAggregatorV3Interface constant feedZero = MinimalAggregatorV3Interface(address(0)); // 8 decimals of precision -MinimalAggregatorV3Interface constant btcUsdFeed = MinimalAggregatorV3Interface(0xF4030086522a5bEEa4988F8cA5B36dbC97BeE88c); +MinimalAggregatorV3Interface constant btcUsdFeed = + MinimalAggregatorV3Interface(0xF4030086522a5bEEa4988F8cA5B36dbC97BeE88c); // 8 decimals of precision -MinimalAggregatorV3Interface constant usdcUsdFeed = MinimalAggregatorV3Interface(0x8fFfFfd4AfB6115b954Bd326cbe7B4BA576818f6); +MinimalAggregatorV3Interface constant usdcUsdFeed = + MinimalAggregatorV3Interface(0x8fFfFfd4AfB6115b954Bd326cbe7B4BA576818f6); // 18 decimals of precision -MinimalAggregatorV3Interface constant btcEthFeed = MinimalAggregatorV3Interface(0xdeb288F737066589598e9214E782fa5A8eD689e8); +MinimalAggregatorV3Interface constant btcEthFeed = + MinimalAggregatorV3Interface(0xdeb288F737066589598e9214E782fa5A8eD689e8); // 8 decimals of precision -MinimalAggregatorV3Interface constant wBtcBtcFeed = MinimalAggregatorV3Interface(0xfdFD9C85aD200c506Cf9e21F1FD8dd01932FBB23); +MinimalAggregatorV3Interface constant wBtcBtcFeed = + MinimalAggregatorV3Interface(0xfdFD9C85aD200c506Cf9e21F1FD8dd01932FBB23); // 18 decimals of precision -MinimalAggregatorV3Interface constant stEthEthFeed = MinimalAggregatorV3Interface(0x86392dC19c0b719886221c78AB11eb8Cf5c52812); +MinimalAggregatorV3Interface constant stEthEthFeed = + MinimalAggregatorV3Interface(0x86392dC19c0b719886221c78AB11eb8Cf5c52812); // 18 decimals of precision -MinimalAggregatorV3Interface constant usdcEthFeed = MinimalAggregatorV3Interface(0x986b5E1e1755e3C2440e960477f25201B0a8bbD4); +MinimalAggregatorV3Interface constant usdcEthFeed = + MinimalAggregatorV3Interface(0x986b5E1e1755e3C2440e960477f25201B0a8bbD4); // 8 decimals of precision -MinimalAggregatorV3Interface constant ethUsdFeed = MinimalAggregatorV3Interface(0x5f4eC3Df9cbd43714FE2740f5E3616155c5b8419); +MinimalAggregatorV3Interface constant ethUsdFeed = + MinimalAggregatorV3Interface(0x5f4eC3Df9cbd43714FE2740f5E3616155c5b8419); // 18 decimals of precision -MinimalAggregatorV3Interface constant daiEthFeed = MinimalAggregatorV3Interface(0x773616E4d11A78F511299002da57A0a94577F1f4); +MinimalAggregatorV3Interface constant daiEthFeed = + MinimalAggregatorV3Interface(0x773616E4d11A78F511299002da57A0a94577F1f4); IERC4626 constant vaultZero = IERC4626(address(0)); IERC4626 constant sDaiVault = IERC4626(0x83F20F44975D03b1b09e64809B757c47f942BEeA);