diff --git a/contracts/src/PriceFeeds/FXPriceFeed.sol b/contracts/src/PriceFeeds/FXPriceFeed.sol index 14acb8ff5..b4135735c 100644 --- a/contracts/src/PriceFeeds/FXPriceFeed.sol +++ b/contracts/src/PriceFeeds/FXPriceFeed.sol @@ -121,8 +121,6 @@ contract FXPriceFeed is IPriceFeed, OwnableUpgradeable { borrowerOperations = IBorrowerOperations(_borrowerOperationsAddress); watchdogAddress = _watchdogAddress; - fetchPrice(); - _transferOwnership(_initialOwner); } diff --git a/contracts/test/FXPriceFeed.t.sol b/contracts/test/FXPriceFeed.t.sol index 0dd3c2802..d2701cc82 100644 --- a/contracts/test/FXPriceFeed.t.sol +++ b/contracts/test/FXPriceFeed.t.sol @@ -199,7 +199,6 @@ contract FXPriceFeedTest is Test { assertEq(address(newFeed.borrowerOperations()), address(mockBorrowerOperations)); assertEq(newFeed.watchdogAddress(), watchdog); assertEq(newFeed.owner(), owner); - assertEq(newFeed.lastValidPrice(), 5e18); } function test_initialize_whenCalledTwice_shouldRevert() public { @@ -452,4 +451,4 @@ contract FXPriceFeedTest is Test { bool result = fxPriceFeed.isL2SequencerUp(); assertFalse(result); } -} +} \ No newline at end of file