diff --git a/src/contracts/misc/GhoAaveSteward.sol b/src/contracts/misc/GhoAaveSteward.sol index 1bb39544..c625be60 100644 --- a/src/contracts/misc/GhoAaveSteward.sol +++ b/src/contracts/misc/GhoAaveSteward.sol @@ -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, diff --git a/src/contracts/misc/GhoCcipSteward.sol b/src/contracts/misc/GhoCcipSteward.sol index 607580e5..fb9d16b4 100644 --- a/src/contracts/misc/GhoCcipSteward.sol +++ b/src/contracts/misc/GhoCcipSteward.sol @@ -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. @@ -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, @@ -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) { diff --git a/src/contracts/misc/interfaces/IGhoCcipSteward.sol b/src/contracts/misc/interfaces/IGhoCcipSteward.sol index 1e673229..9f5c1330 100644 --- a/src/contracts/misc/interfaces/IGhoCcipSteward.sol +++ b/src/contracts/misc/interfaces/IGhoCcipSteward.sol @@ -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