Skip to content

Commit

Permalink
fix: Fix naming of internal variables (#350)
Browse files Browse the repository at this point in the history
  • Loading branch information
miguelmtzinf authored Jun 13, 2023
1 parent 735cf12 commit 0e504cf
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions src/contracts/misc/GhoSteward.sol
Original file line number Diff line number Diff line change
Expand Up @@ -42,8 +42,8 @@ contract GhoSteward is Ownable, IGhoSteward {

Debounce internal _timelocks;
uint40 internal _stewardExpiration;
mapping(uint256 => address) internal strategiesByRate;
address[] internal strategies;
mapping(uint256 => address) internal _strategiesByRate;
address[] internal _strategies;

/**
* @dev Only Risk Council can call functions marked by this modifier.
Expand Down Expand Up @@ -100,7 +100,7 @@ contract GhoSteward is Ownable, IGhoSteward {

_timelocks.borrowRateLastUpdated = uint40(block.timestamp);

address cachedStrategyAddress = strategiesByRate[newBorrowRate];
address cachedStrategyAddress = _strategiesByRate[newBorrowRate];
// Deploy a new one if does not exist
if (cachedStrategyAddress == address(0)) {
GhoInterestRateStrategy newRateStrategy = new GhoInterestRateStrategy(
Expand All @@ -109,8 +109,8 @@ contract GhoSteward is Ownable, IGhoSteward {
);
cachedStrategyAddress = address(newRateStrategy);

strategiesByRate[newBorrowRate] = address(newRateStrategy);
strategies.push(address(newRateStrategy));
_strategiesByRate[newBorrowRate] = address(newRateStrategy);
_strategies.push(address(newRateStrategy));
}

IPoolConfigurator(IPoolAddressesProvider(POOL_ADDRESSES_PROVIDER).getPoolConfigurator())
Expand Down Expand Up @@ -165,7 +165,7 @@ contract GhoSteward is Ownable, IGhoSteward {

/// @inheritdoc IGhoSteward
function getAllStrategies() external view returns (address[] memory) {
return strategies;
return _strategies;
}

/**
Expand Down

0 comments on commit 0e504cf

Please sign in to comment.