Repository navigation
Let child universes fork at any time and move fork phases into Statoblast - #1905
Open
KillariDev wants to merge 2 commits into
Open
KillariDev wants to merge 2 commits into
KillariDev wants to merge 2 commits into
Conversation
…last Zoltar no longer has a parent-fork cooldown: a deployed child universe can fork immediately. getEarliestForkTime, getForkChoiceDeadline, getForkRecapitalizationDeadline and the FORK_*_TIME constants are removed. Statoblast's SecurityPoolForkCoordinator now owns the branch-choice and recapitalization schedule. Both start at the later of the native fork and the universe's own branch activation, so a child that forks early still gives pool owners the whole choice window. Fixes for issues the early-fork path exposed: - A native fork of a child no longer cancels that child's collateral repair auction; bidding and preparation price reports continue to the fixed close. - The question a parent fork fixed in a child is final from the branch's activation (the three-day wait is removed), even when the child forked before activating. Activation counts as one second of security pool time, and the escalation game decides finality and freezes its curve on that clock so it agrees with the reporter and settlement ledgers. - UI pre-send rechecks no longer treat a zero coordinator deadline as passed. Consumers (shared SDK, Statoblast and Zoltar UIs, chaos and liquidator bots, docs and docs tooling, pinned runtime hashes, deployment manifests) are updated.
…se-period # Conflicts: # bots/shared/src/contracts/abi.generated.ts # docs/mainnet-deployment-addresses.json # docs/mainnet-no-deployment-addresses.json # docs/sepolia-deployment-addresses.json # docs/sepolia-no-deployment-addresses.json # solidity/ts/tests/fixtures/escalationGameBytecode.snapshot.json # tooling/contracts/bootstrap-descendant-hashes.mts # tooling/contracts/deployment-plan.mts # tooling/docs/contract-reference-metadata.mts # ui/statoblastShared/ts/protocol/deployment.ts # ui/zoltarShared/ts/protocol/deployment.ts
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What and why
Zoltar should not know about Statoblast's fork phases. It had a 10-week parent-fork cooldown made of Statoblast's choice and recapitalization periods plus one more week. Forking a child immediately after its parent is intended, so the cooldown is removed and Statoblast now owns its own schedule.
Zoltar
forkUniversehas no cooldown: a deployed child can fork at any time. An unknown universe reverts withUnknown universe.getEarliestForkTime,getForkChoiceDeadline,getForkRecapitalizationDeadlineand theFORK_RESPONSE_TIME,FORK_CHOICE_TIMEandFORK_RECAPITALIZATION_TIMEconstants.Statoblast
SecurityPoolForkCoordinatorgetForkChoiceDeadline/getForkRecapitalizationDeadline. Both start at the later of the native fork and the universe's own branch activation, and return 0 until both have happened.Fixes for issues a security review found on the early-fork path
Each one has a regression test that failed before its fix.
Consumers
Shared Statoblast SDK, Statoblast and Zoltar UIs, the chaos and liquidator bots (the chaos bot now gates migration and claims on on-chain finality rather than native timestamps), docs and docs tooling, pinned runtime hashes, deployment manifests and bot ABIs.
UI
The Zoltar fork page for a child universe of a forked genesis (
forked-categoricalsimulation) no longer blocks forking with a "parent fork response" reason.Desktop, 1440×900:
Mobile, 390×844 (full-page capture, so the fixed bottom navigation is drawn mid-page):
Validation
bun run test:run: 6751 pass, 0 fail, 13 skipped (run after merging currentmain)bun run tsc,format:check,check,knip,check:generated-clean,git diff --check