WorkChain Whitepaper
Abstract
WorkChain is a freelance marketplace where the client's payment is locked in a smart contract before the work starts. When the freelancer delivers, a validator drawn at random among staked participants — using Chainlink VRF verifiable randomness — checks the delivery against the agreed criteria. The contract then pays the freelancer, the validator and the platform automatically. Both parties can contest the validator's decision; an arbiter decides the split, and validators who judged wrongly lose part of their stake. Applications and messages are end-to-end encrypted. The WCHN token is used for validator staking, reduced fees and governance.
1. Problem
Online freelancing relies on trust between strangers. Freelancers deliver and are not always paid; clients pay upfront and are not always delivered; centralised platforms charge 10–20% and settle disputes in ways neither side can verify. Existing escrow services move the trust to a single company.
WorkChain replaces that trust with three mechanisms: funds locked by code, independent validation by randomly drawn, financially committed validators, and public rules enforced by smart contracts on Base.
2. Protocol
2.1 Job lifecycle
| Step | Actor | What happens on-chain |
|---|---|---|
| Post | Client | Locks the amount (USDC or WCHN) in JobEscrow. Fees, bond and thresholds are frozen for this job. |
| Apply | Freelancer | Sends an encrypted application; only its fingerprint (wc-enc:<keccak256>) is stored. |
| Hire & accept | Both | The client records the fingerprint of the generated contract; the freelancer accepts the exact same fingerprint before working. |
| Deliver | Freelancer | Publishes the deliverable link; a random validator is requested from Chainlink VRF. |
| Validate | Validator | Approves or rejects within 7 days. |
| Settle | Anyone | After the 3-day contest window, or the arbiter's decision, the contract pays every party. |
2.2 Guarantees
- Nobody — including the founder or a governance vote — can move funds locked in a job outside these rules.
- A freelancer who never delivers is refunded to the client after the deadline; a silent validator earns nothing and gets a no-show strike.
- If an address cannot receive (e.g. blocked by the token issuer), its share is kept for later withdrawal and the rest of the settlement goes through.
2.3 Architecture
3. Validators
3.1 Staking
Anyone can become a validator by staking at least 10,000 WCHN. Governance can change this minimum only between 1,000 and 100,000 WCHN. Withdrawing requires a delay of at least 7 days (never shorter, by design) and no job in progress, so a validator's stake is always available for a penalty.
3.2 Random draw
On delivery, the escrow requests a random number from Chainlink VRF v2.5, which returns it with a cryptographic proof. The validator is drawn in the same transaction, with odds proportional to stake, excluding the client and the freelancer:
Because the number only appears in the transaction that uses it, nobody can know the result in advance or change stakes to influence it. If Chainlink does not answer within one hour, anyone can start a backup draw seeded by the hash of a future block; stakes are frozen during that backup draw only.
3.3 Penalties
A validator found at fault loses its fee and a growing share of its stake:
Proven fraud or collusion can be punished harder, up to the whole stake. A stake falling below the minimum removes the validator from future draws.
3.4 Why honest validation pays
With a 2% fee per job, a validator earns a few dollars to a few dozen per honest decision, while one wrong decision costs at least 1% of a 10,000 WCHN stake and a fraud attempt risks all of it. Since the validator is unknown until delivery and drawn at random, arranging a friendly validator in advance is not possible.
4. Disputes
- Freelancer: may contest a rejection within 3 days.
- Client: may contest an approval within 3 days by depositing a bond (2% of the job by default). The bond goes back to the client if the validator was wrong, otherwise to the freelancer as compensation for the delay.
- Arbiter: only sets the freelancer's share of the payment. Fault follows automatically: the work counts as acceptable if the share is at least 80%; a validator who approved unacceptable work, or rejected acceptable work, is at fault.
- Deadline: if the arbiter does not decide within 30 days, anyone can settle by default — the validator's decision stands.
During the testnet the arbiter is the founder's wallet. Before mainnet it will become a multisig, then a jury of randomly drawn validators.
5. Fees
| Fee | Default | Paid by / to |
|---|---|---|
| Validation fee | 2% of the job | From the job amount to the validator |
| Platform fee | 3% (1% if paid in WCHN) | From the freelancer's share to the treasury |
| Client contest bond | 2% of the job | Deposit, returned or paid to the freelancer |
All rates are frozen when a job is posted; later votes only affect new jobs.
6. The WCHN token
WCHN ("WorkChain") is an ERC-20 token on Base with a fixed supply of 100,000,000, voting capabilities (ERC20Votes) and permit signatures. It is not required to use WorkChain: clients can pay in USDC.
- Staking: validators lock WCHN to be drawn and lose part of it when they judge wrongly.
- Reduced fees: paying a job in WCHN lowers the platform fee from 3% to 1%.
- Governance: 1 WCHN = 1 vote on platform settings.
7. Governance
WCHN holders propose and vote through an OpenZeppelin Governor with a Timelock: 1-day delay, 5-day vote, then a 2-day safety delay before execution. Proposing a vote requires 10,000 WCHN of voting power, and a vote only counts if at least 4% of the supply takes part (quorum). Votes can change, within limits written in the contracts:
| Setting | Default | Limits |
|---|---|---|
| Platform fee | 3% / 1% in WCHN | ≤ 10%, WCHN rate ≤ USDC rate |
| Validation fee | 2% | ≤ 10% |
| Penalty step / cap | 1% / 10% | step > 0, cap ≤ 100% |
| Client contest bond | 2% | ≤ 10% |
| Acceptable work threshold | 80% | 1–100% |
| Minimum validator stake | 10,000 WCHN | 1,000 – 100,000 WCHN |
| Per-job cap, accepted tokens | 10,000 USDC | — |
Some settings are reserved to the founder and cannot be changed by a vote: pausing new deposits in an emergency, choosing the arbiter and the treasury, Chainlink VRF settings, and handing the role over (e.g. to a multisig). The withdrawal delay is never shortened below 7 days.
8. Privacy
Applications and messages are encrypted in the browser (NaCl box) with keys derived from a wallet signature — nothing to back up. The storage servers only hold ciphertext; every write is signed, and the server checks on-chain that a message comes from the job's client or freelancer while the job is running. Only fingerprints go on-chain. Messaging opens when the client chooses a freelancer and becomes read-only once the job is settled.
9. Security
- Tests: 52 automated tests, including invariant tests over random job lifecycles checking that no token is ever lost or created.
- Internal review: one high-severity issue (steerable draw) and the medium ones were fixed — Chainlink VRF, payments that cannot block a job, an arbiter deadline, recourse when the validator is silent.
- Verified code: all contracts are verified on Basescan.
- Still to do before mainnet: external audit and bug bounty, multisig arbiter, static analysis (Slither, Aderyn), launch with low per-job caps.
| Testnet contract | Address (Base Sepolia) |
|---|---|
| JobEscrow | 0xf50201923067C3f744301C2aaE76a399b7477ce8 |
| ValidatorRegistry | 0x6f18cB284aabC32388ba1518231BA8D6AFF70846 |
| WorkToken (WCHN) | 0x3ed11312D9b7Eb43798a296aaB5E065236f11260 |
| WorkGovernor | 0x4FC62E5fA114406eB7378444bB4DC57799fECF41 |
| TimelockController | 0x2e8a3916c6F0cd50deA1CC017E3843782F36529A |
| Test USDC (testnet only) | 0xFce80f731cd02861215CB08090AB92e3A7d5c391 |
| WCHN test faucet (testnet only) | 0x851CeB05cF5c624009C8A4E41829a344Ee3a935A |
10. Roadmap
| Phase | Content | Status |
|---|---|---|
| Testnet | Escrow, encrypted applications and chat, Chainlink VRF draws, recourse, governance, test-token faucets and a step-by-step guide for testers | Live |
| Open testing | Guided delivery notes, visible validator reports, mobile wallets (WalletConnect) | Next |
| Hardening | External audit, bug bounty, multisig arbiter, automatic settlement of expired deadlines (Chainlink Automation: payout after the 3-day window, backup draws, refunds), token distribution and legal review | Planned |
| Mainnet | Launch on Base with low per-job caps, raised progressively | After audit |
11. Legal notice
This draft is for information only. It is not an offer to sell or a solicitation to buy any crypto-asset, nor investment, legal or tax advice. The testnet uses tokens with no value. Before any public offering or listing of WCHN in the European Union, a white paper compliant with Regulation (EU) 2023/1114 (MiCA) would be prepared and notified to the competent authority. Freelancers remain responsible for declaring their income in their country. The smart contracts have not been externally audited: never use them with real funds.