BuilderBonus: immediate ignore for revoked Markets, timelocked re-honour #17
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "feat/revoked-hold-ignore"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Base
main: retargeted after #15 and #16 were merged (main @b19f21d). Security re-reviewed7a41b38(v2, 2026-11-16): OK for testnet, no High/Medium/Low. The approval at321d5b2predates7a41b38, so this needs a new approval at the current head.ffd8e53is docs only (the KNOWN-ISSUES review status line). Pre-mainnet follow-ups (Info-D/E/F) are in #19, stacked on this branch. The Sepolia set deployed in #18 does not include this change.Change (Info-2, DECIDED 2026-11-13; narrowed 2026-11-16 by George, L-6)
scheduleIgnoreHolds/executeIgnoreHolds/cancelIgnoreHolds).ignoreBrokenMarketHolds(m)(owner only) ignores it at once and emitsHoldsIgnoredSet(m, true). It callsm.isHeld(address(0))withHOLD_CHECK_GAS(50,000) and counts the Market as broken if that call reverts, runs out of gas, returns anything but exactly one 32-byte word 0 or 1, or returns true. Otherwise it revertsNotBroken(). A non-revoked, unknown or already ignored Market revertsBadMarket(); too little gas forwarded revertsInsufficientGas().scheduleHonourHolds(m)emitsHonourHoldsScheduled(m, eta).executeHonourHolds(m)works frometa(48 hours) untileta + 7 days; otherwiseTooEarly/RepointExpired. It emitsHoldsIgnoredSet(m, false).cancelHonourHolds(m)emitsHonourHoldsCancelled(m).honourHolds(m)revertsTimelocked()for such a Market.SafeCast.toUint64.DeployPhase1now assertsbonus.owner() == market.owner() == governanceafter deploy.ABI (BuilderBonus)
ignoreBrokenMarketHolds(address)0x4162c683,scheduleHonourHolds(address)0xec58aa91,executeHonourHolds(address)0x46ff3673,cancelHonourHolds(address)0x6a93d5d3.HonourHoldsScheduled(address indexed market, uint64 eta)0x2b111bde07a2d4d3bb32783563aaedc0d9042c458c1d9bc19ab9f15bc74a9cbbHonourHoldsCancelled(address indexed market)0x4694f9ca99f6d6a20180b2c677bf909dc680c6f4ca028049e00fccc62a152dafTimelocked()0x774ae17d,NotBroken()0x7de5dbf3.marketState(address)0xa7a9a62creturns a 6th field,honourHoldsEta.scheduleIgnoreHoldsno longer applies at once for revoked Markets.Tests
NotBroken, also while an ignore is scheduled); the 48-hour schedule works for it.BadMarket(not revoked, never current, already ignored) andInsufficientGas.honourHoldsrevertsTimelocked.forge testwith the fork RPC set: 348 passed, 0 failed, 0 skipped.Size
BuilderBonus is 15,366 B (9,210 B margin). TaskulerMarket is unchanged at 24,146 B (430 B margin).
Docs
7a41b38, v2, 2026-11-16).ignoreBrokenMarketHoldsvs the 48-hour schedule), re-place every active hold on the current Market before ignoring a revoked Market's holds, the shared-owner invariant (transfer both owners together) and its check in the post-deploy verification.until) is still accepted for testnet and remains a mainnet consideration pending George.New commits pushed, approval review dismissed automatically according to repository settings
7a41b38ffd8e536ff