Overview
TrustWork solves the core trust problem in remote work: clients are reluctant to prepay, freelancers fear non-payment after delivery, and centralized platforms charge 10–20% with opaque dispute processes. TrustWork replaces that with transparent, code-enforced escrow.
A client deposits USDC and posts a job with defined milestones. A freelancer is selected, and for each completed milestone they submit proof; on the client's approval the freelancer is paid instantly (92% of the milestone), with the platform fee handled in basis points. The whole job lifecycle (OPEN → ACTIVE → COMPLETED / DISPUTED / CANCELLED) lives on-chain.
Disputes freeze funds and activate a DisputeDAO: three randomly-selected arbitrators — who have staked USDC — vote within a fixed window. The majority decides the outcome; minority and non-voting arbitrators are slashed, and majority voters split the arbitration fee. It's an incentive design that rewards honest voting and resists manipulation.
Reputation is captured as soulbound (non-transferable) ERC-721 tier badges earned at job thresholds, alongside an on-chain flagging system where repeat dispute losses lead to a ban. I worked as part of a five-person team building the system end to end.
Key highlights
- Four-contract system: EscrowPlatform (job & milestone lifecycle), DisputeDAO (staked arbitration), soulbound ReputationNFT, and a ProfileRegistry mapping wallets to IPFS profiles.
- Randomized arbitrator selection (Fisher-Yates shuffle seeded from block entropy) with stake-slashing for minority/non-voters — a neutral, manipulation-resistant court.
- Per-job balance isolation (jobBalance[jobId]) so funds can never leak across jobs; balances must zero out on completion or cancellation.
- ERC-2771 meta-transactions for gasless UX, with raw msg.sender enforced on sensitive paths to block forwarder impersonation.
What it does
- Milestone-based escrow with instant payout on client approval
- DAO-arbitrated disputes with staked, randomly-assigned jurors and a fixed voting window
- Soulbound reputation tiers (Rising Talent → Legend) and a transparent 3-strike flag/ban system
- Job board across 14 categories with on-chain applications and selection
- ReentrancyGuard + SafeERC20 + checks-effects-interactions on every USDC movement; try/catch so reputation bugs never block payouts