Skip to content
T

Trustlance

Secure milestone payments for freelance work

Created on 27th September 2026

•

T

Trustlance

Secure milestone payments for freelance work

The problem Trustlance solves

This makes freelance collaboration safer and easier by:

Reducing payment risk for freelancers through prepaid milestone escrow.
Protecting clients by releasing funds only after work is submitted and approved.
Preventing endless approval delays with automatic release after 7 days of client inactivity.
Improving transparency because deposits, submissions, approvals, fees, refunds, and disputes are recorded onchain.
Supporting dispute freezes so funds cannot move while a milestone is being challenged.
Using USDC for stable, predictable payments instead of volatile tokens.
Linking deliverables to IPFS so submitted work can be referenced transparently and permanently.

Challenges I ran into

One major challenge was designing the escrow flow so that it was fair to both sides without making the contract too complex. The client needs protection from unfinished work, but the freelancer also needs protection from delayed or ignored approvals. I solved this by using a milestone-based model where each milestone is funded separately, the freelancer submits proof with an IPFS link, and the client has a 7-day review window before the freelancer can trigger auto-release.

Another challenge was handling security around fund movement. Since the contract transfers USDC during approvals, refunds, dispute resolution, and auto-release, I added a ReentrancyGuard and wrote a reentrancy test using a malicious mock USDC token. This helped verify that payout functions cannot be exploited through token callbacks.

The dispute system was also tricky because normal escrow actions should stop immediately once there is a disagreement. I added a dispute freeze state that blocks deposits, submissions, approvals, refunds, and auto-release while a dispute is active. For the MVP, dispute resolution is client-controlled, but the README clearly notes that a production version should replace this with arbitration, a multisig, or DAO-controlled resolver.

On the frontend side, the hardest part was wiring live blockchain data into a clean dashboard. I integrated the generated escrow ABI with wagmi hooks, added contract reads for milestone data, and built transaction flows for deposit, submit, approve, refund, auto-release, and dispute actions. I also added transaction toasts and countdown timers so users can understand what is happening onchain in real time.

Tracks Applied (1)

Cybersecurity tools

Cheer Project

Cheering for a project means supporting a project you like with as little as 0.0025 ETH. Right now, you can Cheer using ETH on Arbitrum, Optimism and Base.

Discussion

Builders also viewed

See more projects on Devfolio