OFAC payout hold (0005): time-boxed Safe holds, freeze without confiscation #1
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 (taskuler/docs 0005). Not deployed.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 is a renewal that may only extend.liftHold(account, reasonHash, reasonURI)ends it early. Views:isHeld,holdUntil,reviewEndsAt.withdrawrevertsAccountHeld(account). Credits still land inclaimable; nothing isredirected, and no admin path to escrow exists.
releaseAfterReviewis blocked while the builder is held; a held customer's review clock restarts 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.clears only after a fresh re-screen plus a written review recorded by the Safe (
liftHoldreason URI), so the Safe signs off.Max hold 30 days, DECIDED.
Tests and coverage
forge test: 136 passed, 0 failed (newtest/OfacHold.t.sol, 23 tests; invariantinvariant_HeldFundsNeverLeavewith hold/renew/lift actions).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).PROVISIONAL defaults (George decision pending)
refundAfterDeadlinestill resolves while the customer is held; the refund sits frozen.Replaced by #4 (#4), reopened under the taskuler-bot account. Please review there.
Pull request closed