Skip to content

Separate swap-guard restriction from the generator verdict #32

Description

@mfw78

The registry overwrites the generator verdict with INVALID + SwapGuardRestricted.selector when the swap guard blocks an order. This destroys the true verdict and makes INVALID non-uniform: terminal from handlers, owner-reversible from the guard — consumers need a hardcoded selector branch for control flow.

Make it structural: PollResult gains a registry-level Restriction restriction overlay (NONE | SWAP_GUARD), the generator verdict is never overwritten (a guarded POST stays visible, signature withheld), and INVALID becomes uniformly terminal as an invariant. Unpark is event-driven via the existing SwapGuardSet (clear = address(0)).

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions