Skip to content

Commit cf6ee42

Browse files
authored
fix: Add timelocks getter in GhoCcipSteward (#438)
* feat: timelock getter * fix: more in line with existing getters of other stewards * chore: update harness with new getter
1 parent a0dca17 commit cf6ee42

File tree

3 files changed

+15
-5
lines changed

3 files changed

+15
-5
lines changed

certora/steward/harness/GhoCcipSteward_Harness.sol

-4
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,4 @@ contract GhoCcipSteward_Harness is GhoCcipSteward {
1010
address riskCouncil,
1111
bool bridgeLimitEnabled
1212
) GhoCcipSteward(ghoToken, ghoTokenPool, riskCouncil, bridgeLimitEnabled) {}
13-
14-
function getCcipTimelocks() external view returns (CcipDebounce memory) {
15-
return _ccipTimelocks;
16-
}
1713
}

src/contracts/misc/GhoCcipSteward.sol

+6-1
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,12 @@ contract GhoCcipSteward is RiskCouncilControlled, IGhoCcipSteward {
130130
}
131131

132132
/// @inheritdoc IGhoCcipSteward
133-
function RISK_COUNCIL() public view override returns (address) {
133+
function getCcipTimelocks() external view override returns (CcipDebounce memory) {
134+
return _ccipTimelocks;
135+
}
136+
137+
/// @inheritdoc IGhoCcipSteward
138+
function RISK_COUNCIL() external view override returns (address) {
134139
return _riskCouncil;
135140
}
136141

src/contracts/misc/interfaces/IGhoCcipSteward.sol

+9
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;
@@ -41,6 +44,12 @@ interface IGhoCcipSteward {
4144
uint128 inboundRate
4245
) external;
4346

47+
/**
48+
* @notice Returns timestamp of the last update of Ccip parameters.
49+
* @return The CcipDebounce struct describing the last update of Ccip parameters.
50+
*/
51+
function getCcipTimelocks() external view returns (CcipDebounce memory);
52+
4453
/**
4554
* @notice Returns the minimum delay that must be respected between parameters update.
4655
* @return The minimum delay between parameter updates (in seconds)

0 commit comments

Comments
 (0)