From 54105e9ec87565b9860784890279304fa5723e8e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=9Fingen?= Date: Tue, 23 Apr 2024 18:02:05 +0100 Subject: [PATCH] fix: Remove duplicated requires --- contracts/src/BorrowerOperations.sol | 3 --- 1 file changed, 3 deletions(-) diff --git a/contracts/src/BorrowerOperations.sol b/contracts/src/BorrowerOperations.sol index beb62139..3dffedb2 100644 --- a/contracts/src/BorrowerOperations.sol +++ b/contracts/src/BorrowerOperations.sol @@ -277,14 +277,11 @@ contract BorrowerOperations is LiquityBase, Ownable, CheckContract, IBorrowerOpe uint256 _lowerHint ) external { _requireValidAnnualInterestRate(_newAnnualInterestRate); - ITroveManager troveManagerCached = troveManager; - _requireTroveisActive(troveManagerCached, _troveId); // TODO: Delegation functionality _requireIsOwner(_troveId); ContractsCacheTMAP memory contractsCache = ContractsCacheTMAP(troveManager, activePool); - _requireValidAnnualInterestRate(_newAnnualInterestRate); _requireTroveisActive(contractsCache.troveManager, _troveId); uint256 entireTroveDebt = _updateActivePoolTrackersNoDebtChange(