Skip to content

redefine minExitEscrowPeriod #3801

Merged
sveitser merged 18 commits intomainfrom
b04-fix
Dec 4, 2025
Merged

redefine minExitEscrowPeriod #3801
sveitser merged 18 commits intomainfrom
b04-fix

Conversation

@alysiahuggins
Copy link
Copy Markdown
Contributor

@alysiahuggins alysiahuggins commented Nov 26, 2025

Closes #<ISSUE_NUMBER>
The lower bound is dynamically set over a function call to lightClient.blocksPerEpoch() . If lightClient.blocksPerEpoch() returns a value where blocksPerEpoch() * 15 > 86400 * 14; // 14 days , the minimum would exceed the maximum, causing all calls to updateExitEscrowPeriod() to revert with ExitEscrowPeriodInvalid()

This PR:

makes the maximum dynamic based on light client parameters.

This PR does not:

Key places to review:


Comment thread contracts/src/StakeTableV2.sol Outdated
Comment thread contracts/src/StakeTableV2.sol Outdated
Comment thread contracts/src/StakeTableV2.sol Outdated
Comment thread contracts/src/StakeTableV2.sol Outdated
Comment thread contracts/src/StakeTableV2.sol Outdated
Comment thread contracts/src/StakeTableV2.sol Outdated
@sveitser
Copy link
Copy Markdown
Collaborator

sveitser commented Dec 2, 2025

@alysiahuggins I thought the conclusion is that we will only read from the LC in the initializer, validate there that min < max and set those limits there?

@alysiahuggins alysiahuggins changed the title add a dynamic max incase blocksPerEpoch is above current min redefine minExitEscrowPeriod Dec 3, 2025
Comment thread .env Outdated
Comment thread contracts/rust/deployer/src/lib.rs Outdated
@sveitser sveitser enabled auto-merge (squash) December 4, 2025 16:09
@sveitser sveitser merged commit 8228b3a into main Dec 4, 2025
116 checks passed
@sveitser sveitser deleted the b04-fix branch December 4, 2025 16:41
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 this pull request may close these issues.

2 participants