Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Getter for CcipSteward Timelock #437

Closed
DhairyaSethi opened this issue Jan 3, 2025 · 0 comments · Fixed by #438
Closed

Getter for CcipSteward Timelock #437

DhairyaSethi opened this issue Jan 3, 2025 · 0 comments · Fixed by #438

Comments

@DhairyaSethi
Copy link
Member

Feature Request

Currently there exists no public getter for the timelock state in GhoCcipSteward, while it is an unlikely requirement on-chain to be queried for any conditional logic, a getter can help existing RiskCouncil operators to easily get access to this data.
For reference, this value can be obtained on existing stewards w/o this offchain through: (pseudocode)

    uint256 ccipDebounceValue = uint256(vm.load(address(GHO_CCIP_STEWARD), bytes32(0)));
    IGhoCcipSteward.CcipDebounce memory ccipDebounce = IGhoCcipSteward.CcipDebounce({
      bridgeLimitLastUpdate: uint40(ccipDebounceValue >> 216),
      rateLimitLastUpdate: uint40(ccipDebounceValue >> 176)
    });
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant