Skip to content

Commit bf37d41

Browse files
committed
chore: fmt
1 parent a4b964c commit bf37d41

File tree

3 files changed

+25
-31
lines changed

3 files changed

+25
-31
lines changed
Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,22 @@
11
// SPDX-License-Identifier: MIT
2-
pragma solidity >=0.5.0;
2+
pragma solidity >=0.5.0;
33

4-
/// @dev From
5-
/// https://github.com/smartcontractkit/chainlink/blob/master/contracts/src/v0.8/shared/interfaces/AggregatorV3Interface.sol
6-
interface AggregatorV3Interface {
7-
function decimals() external view returns (uint8);
4+
/// @dev From
5+
/// https://github.com/smartcontractkit/chainlink/blob/master/contracts/src/v0.8/shared/interfaces/AggregatorV3Interface.sol
6+
interface AggregatorV3Interface {
7+
function decimals() external view returns (uint8);
88

9-
function description() external view returns (string memory);
9+
function description() external view returns (string memory);
1010

11-
function version() external view returns (uint256);
11+
function version() external view returns (uint256);
1212

13-
function getRoundData(uint80 _roundId)
14-
external
15-
view
16-
returns (uint80 roundId, int256 answer, uint256 startedAt, uint256 updatedAt, uint80 answeredInRound);
13+
function getRoundData(uint80 _roundId)
14+
external
15+
view
16+
returns (uint80 roundId, int256 answer, uint256 startedAt, uint256 updatedAt, uint80 answeredInRound);
1717

18-
function latestRoundData()
19-
external
20-
view
18+
function latestRoundData()
19+
external
20+
view
2121
returns (uint80 roundId, int256 answer, uint256 startedAt, uint256 updatedAt, uint80 answeredInRound);
2222
}

test/WstEthEthExchangeRateChainlinkAdapterTest.sol

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,9 @@ contract WstEthEthExchangeRateChainlinkAdapterTest is Test {
1515
function setUp() public {
1616
vm.createSelectFork(vm.envString("ETH_RPC_URL"));
1717
oracle = new WstEthEthExchangeRateChainlinkAdapter(address(WST_ETH));
18-
chainlinkOracle = new ChainlinkOracle(vaultZero, AggregatorV3Interface(address(oracle)), feedZero, feedZero, feedZero, 1, 18, 18);
18+
chainlinkOracle = new ChainlinkOracle(
19+
vaultZero, AggregatorV3Interface(address(oracle)), feedZero, feedZero, feedZero, 1, 18, 18
20+
);
1921
}
2022

2123
function testDecimals() public {

test/helpers/Constants.sol

Lines changed: 8 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -5,29 +5,21 @@ import {IERC4626, AggregatorV3Interface} from "../../src/morpho-chainlink-v1/Cha
55

66
AggregatorV3Interface constant feedZero = AggregatorV3Interface(address(0));
77
// 8 decimals of precision
8-
AggregatorV3Interface constant btcUsdFeed =
9-
AggregatorV3Interface(0xF4030086522a5bEEa4988F8cA5B36dbC97BeE88c);
8+
AggregatorV3Interface constant btcUsdFeed = AggregatorV3Interface(0xF4030086522a5bEEa4988F8cA5B36dbC97BeE88c);
109
// 8 decimals of precision
11-
AggregatorV3Interface constant usdcUsdFeed =
12-
AggregatorV3Interface(0x8fFfFfd4AfB6115b954Bd326cbe7B4BA576818f6);
10+
AggregatorV3Interface constant usdcUsdFeed = AggregatorV3Interface(0x8fFfFfd4AfB6115b954Bd326cbe7B4BA576818f6);
1311
// 18 decimals of precision
14-
AggregatorV3Interface constant btcEthFeed =
15-
AggregatorV3Interface(0xdeb288F737066589598e9214E782fa5A8eD689e8);
12+
AggregatorV3Interface constant btcEthFeed = AggregatorV3Interface(0xdeb288F737066589598e9214E782fa5A8eD689e8);
1613
// 8 decimals of precision
17-
AggregatorV3Interface constant wBtcBtcFeed =
18-
AggregatorV3Interface(0xfdFD9C85aD200c506Cf9e21F1FD8dd01932FBB23);
14+
AggregatorV3Interface constant wBtcBtcFeed = AggregatorV3Interface(0xfdFD9C85aD200c506Cf9e21F1FD8dd01932FBB23);
1915
// 18 decimals of precision
20-
AggregatorV3Interface constant stEthEthFeed =
21-
AggregatorV3Interface(0x86392dC19c0b719886221c78AB11eb8Cf5c52812);
16+
AggregatorV3Interface constant stEthEthFeed = AggregatorV3Interface(0x86392dC19c0b719886221c78AB11eb8Cf5c52812);
2217
// 18 decimals of precision
23-
AggregatorV3Interface constant usdcEthFeed =
24-
AggregatorV3Interface(0x986b5E1e1755e3C2440e960477f25201B0a8bbD4);
18+
AggregatorV3Interface constant usdcEthFeed = AggregatorV3Interface(0x986b5E1e1755e3C2440e960477f25201B0a8bbD4);
2519
// 8 decimals of precision
26-
AggregatorV3Interface constant ethUsdFeed =
27-
AggregatorV3Interface(0x5f4eC3Df9cbd43714FE2740f5E3616155c5b8419);
20+
AggregatorV3Interface constant ethUsdFeed = AggregatorV3Interface(0x5f4eC3Df9cbd43714FE2740f5E3616155c5b8419);
2821
// 18 decimals of precision
29-
AggregatorV3Interface constant daiEthFeed =
30-
AggregatorV3Interface(0x773616E4d11A78F511299002da57A0a94577F1f4);
22+
AggregatorV3Interface constant daiEthFeed = AggregatorV3Interface(0x773616E4d11A78F511299002da57A0a94577F1f4);
3123

3224
IERC4626 constant vaultZero = IERC4626(address(0));
3325
IERC4626 constant sDaiVault = IERC4626(0x83F20F44975D03b1b09e64809B757c47f942BEeA);

0 commit comments

Comments
 (0)