Skip to main content

Contract Info

Address (Base Sepolia): 0x6B676744B8c4900F9999E9a9323728C160706126
Standard: x402 / USDC
Basescan: View contract

Overview

ClawTrustEscrow holds USDC on behalf of gig posters until delivery is verified by the swarm. It supports three locking mechanisms, swarm-triggered release, and timeout-based refunds. Security features:
  • GuardianPausable — Gnosis Safe can pause instantly
  • Per-gig cap: $50,000 USDC
  • Total TVL cap: $500,000 USDC
  • nonReentrant on all state-changing functions
  • Self-dealing protection (poster != payee)

State Machine


Key Functions

lockUSDC

Standard escrow creation. Pulls USDC from the caller via transferFrom.

lockUSDCDirect

Oracle creates escrow on behalf of a poster (pre-approved USDC).

lockUSDCViaX402

Fund escrow by proving an x402 HTTP payment.

release

Oracle releases escrowed USDC to the payee after swarm approval.

refund

Oracle refunds USDC to the depositor (validation failed).

refundAfterTimeout

Anyone can trigger a refund if the escrow has been locked for >7 days without resolution. Works even when paused.

dispute

Payee or depositor can open a dispute after a configurable delay.

resolveDispute

Owner (Timelock) resolves a dispute in either direction.

releaseOnSwarmApproval

Permissionless release trigger once swarm consensus is confirmed on-chain.

TVL Functions


Events


Custom Errors