Skip to content

Commit 5c7abac

Browse files
committed
fix: more in line with existing getters of other stewards
1 parent 8463647 commit 5c7abac

File tree

2 files changed

+8
-11
lines changed

2 files changed

+8
-11
lines changed

src/contracts/misc/GhoCcipSteward.sol

+2-3
Original file line numberDiff line numberDiff line change
@@ -130,9 +130,8 @@ contract GhoCcipSteward is RiskCouncilControlled, IGhoCcipSteward {
130130
}
131131

132132
/// @inheritdoc IGhoCcipSteward
133-
function getTimeLockState() external view override returns (uint40, uint40) {
134-
CcipDebounce memory state = _ccipTimelocks;
135-
return (state.bridgeLimitLastUpdate, state.rateLimitLastUpdate);
133+
function getCcipTimelocks() external view override returns (CcipDebounce memory) {
134+
return _ccipTimelocks;
136135
}
137136

138137
/// @inheritdoc IGhoCcipSteward

src/contracts/misc/interfaces/IGhoCcipSteward.sol

+6-8
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,9 @@ pragma solidity ^0.8.10;
77
* @notice Defines the basic interface of the GhoCcipSteward
88
*/
99
interface IGhoCcipSteward {
10+
/**
11+
* @notice Struct storing the last update by the steward of the bridge and rate limit param.
12+
*/
1013
struct CcipDebounce {
1114
uint40 bridgeLimitLastUpdate;
1215
uint40 rateLimitLastUpdate;
@@ -42,15 +45,10 @@ interface IGhoCcipSteward {
4245
) external;
4346

4447
/**
45-
* @notice Returns the current time-lock state for the steward.
46-
* @dev `MINIMUM_DELAY` seconds needs to pass from the respective values
47-
* to successfully call their corresponding methods.
48-
* @return bridgeLimitLastUpdate The timestamp at which `updateBridgeLimit` was
49-
* last successfully executed.
50-
* @return rateLimitLastUpdate The timestamp at which `updateRateLimit` was
51-
* last successfully executed.
48+
* @notice Returns timestamp of the last update of Ccip parameters.
49+
* @return The CcipDebounce struct describing the last update of Ccip parameters.
5250
*/
53-
function getTimeLockState() external view returns (uint40, uint40);
51+
function getCcipTimelocks() external view returns (CcipDebounce memory);
5452

5553
/**
5654
* @notice Returns the minimum delay that must be respected between parameters update.

0 commit comments

Comments
 (0)