Skip to content

Commit

Permalink
fix: Remove duplicated requires
Browse files Browse the repository at this point in the history
  • Loading branch information
bingen committed Apr 23, 2024
1 parent 7a58b01 commit 54105e9
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions contracts/src/BorrowerOperations.sol
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down

0 comments on commit 54105e9

Please sign in to comment.