Skip to content

Commit

Permalink
fix: minor fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
CheyenneAtapour committed Aug 6, 2024
1 parent fe8b115 commit 7daef90
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
1 change: 1 addition & 0 deletions src/contracts/misc/GhoAaveSteward.sol
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,7 @@ contract GhoAaveSteward is RiskCouncilControlled, IGhoAaveSteward {
* @param ghoToken The address of the GhoToken
* @param fixedRateStrategyFactory The address of the FixedRateStrategyFactory
* @param riskCouncil The address of the risk council
* @param riskConfig The initial risk configuration for the Gho reserve
*/
constructor(
address addressesProvider,
Expand Down
5 changes: 3 additions & 2 deletions src/contracts/misc/GhoCcipSteward.sol
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ contract GhoCcipSteward is RiskCouncilControlled, IGhoCcipSteward {
address public immutable GHO_TOKEN_POOL;

/// @inheritdoc IGhoCcipSteward
bool public BRIDGE_LIMIT_ENABLED;
bool public immutable BRIDGE_LIMIT_ENABLED;

/**
* @dev Only methods that are not timelocked can be called if marked by this modifier.
Expand All @@ -39,6 +39,7 @@ contract GhoCcipSteward is RiskCouncilControlled, IGhoCcipSteward {
* @param ghoToken The address of the GhoToken
* @param ghoTokenPool The address of the Gho CCIP Token Pool
* @param riskCouncil The address of the risk council
* @param bridgeLimitEnabled Whether the bridge limit is enabled
*/
constructor(
address ghoToken,
Expand All @@ -56,7 +57,7 @@ contract GhoCcipSteward is RiskCouncilControlled, IGhoCcipSteward {

/// @inheritdoc IGhoCcipSteward
function updateBridgeLimit(uint256 newBridgeLimit) external onlyRiskCouncil {
if (!BRIDGE_LIMIT_ENABLED) revert BridgeLimitDisabled();
require(BRIDGE_LIMIT_ENABLED, 'BRIDGE_LIMIT_DISABLED');

uint256 currentBridgeLimit = UpgradeableLockReleaseTokenPool(GHO_TOKEN_POOL).getBridgeLimit();
if (newBridgeLimit > currentBridgeLimit) {
Expand Down
2 changes: 0 additions & 2 deletions src/contracts/misc/interfaces/IGhoCcipSteward.sol
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,6 @@ pragma solidity ^0.8.10;
* @notice Defines the basic interface of the GhoCcipSteward
*/
interface IGhoCcipSteward {
error BridgeLimitDisabled();

/**
* @notice Returns the address of the Gho Token
* @return The address of the GhoToken
Expand Down

0 comments on commit 7daef90

Please sign in to comment.