OFAC payout hold (0005): time-boxed Safe holds, freeze without confiscation #4
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "feat/ofac-payout-hold"
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:
feat/phase1-contracts· Head:feat/ofac-payout-hold· Decided by George 2026-11-09/10 (taskuler/docs 0005). Not deployed. Replaces #1.Design
placeHold(account, uint32 duration, bytes32 reasonHash, string reasonURI)(Safe only): hold for at mostMAX_HOLD_DURATION(immutable,
InitParams.maxHoldDuration, 1 s .. 30 days, default 30 days). On a held account it's a renewal and can only extend.liftHold(account, reasonHash, reasonURI)ends it early. Views:isHeld,holdUntil,reviewEndsAt.withdrawrevertsAccountHeld(account). Credits still land inclaimable; nothing isredirected, and there is no admin path to escrow.
releaseAfterReviewis blocked while the builder is held; a held customer's review clock restarts in full at hold end(
reviewEndsAt = max(deliveredAt, holdUntil[customer]) + reviewPeriod).refundAfterDeadline, settlements, cancel,withdrawBid,arbitration-excess credits and Kleros
rule()never revert because of a hold; the held party's share is credited and frozen.DECIDED
clears only after a fresh screen plus a written review recorded by the Safe (
liftHoldreason URI), so the Safe signs off.PROVISIONAL (George decision pending)
refundAfterDeadlinestill resolves while the customer is held; the refund sits frozen inclaimable.Tests and coverage
forge test: 136 passed, 0 failed (test/OfacHold.t.sol23 tests; invariantinvariant_HeldFundsNeverLeave).forge coverage --ir-minimum(invariants excluded): TaskulerMarket 99.75% lines, 99.37% statements, 97.89% branches, 100% functions; other src 100%.Indexer events
TreasurySet(treasury)andMaxHoldDurationSet(uint32 maxHoldDuration).HoldPlaced(address indexed account, uint64 until, bytes32 reasonHash, string reasonURI)HoldRenewed(address indexed account, uint64 until, bytes32 reasonHash, string reasonURI)HoldLifted(address indexed account, bytes32 reasonHash, string reasonURI)AccountHeld(address),NotHeld().InitParamsgainsmaxHoldDuration(last field).Changelog 2026-11-10