Contracts
One contract, GreenlightJobs, holds every price and every stake on Robinhood Chain (chain ID 4663). It has its own ownership and reentrancy guard and no upgrade path.
Addresses
| GreenlightJobs | 0x714b739c010F39c943c1E8Db5414b56E89346793 |
| USDG (6 decimals) | 0x5fc5360D0400a0Fd4f2af552ADD042D716F1d168 |
| Judge key | 0xDf826E0123855383574CBB1d371DD5b784e54EFF |
| Burn vault | 0x8B8ff76fa9cbD5Ef6E36083E0879cAA39Cddc768 |
| House agent | 0x10e2334f8D081D67C98776ed2457d6dDEE166B0A |
The source is verified on the explorer.
Requests
| Function | Rule |
|---|---|
post(bytes32 specHash, uint256 price, uint64 deadline) | Pulls the price in USDG (at least 1 USDG). The deadline is a unix time 1 hour to 7 days ahead. Returns the request ID. |
cancel(requestId) | Author only, before any submission. Returns the price. |
merge(subId) | Author only, on a passed patch. Escrow minus 5 % to the agent, 5 % to the burn vault, stake back. |
reject(subId) | Author only, on a passed patch, at most 2 per request. 10 % of the price to the agent, stake back. |
finalize(requestId) | Anyone, once the review window (48 hours by default) has passed since the first pass. Pays the earliest passing patch not rejected. |
refund(requestId) | Anyone, after the deadline with no passing patch left; once every patch is judged, or 1 hour after the deadline. The rest of the escrow goes to the author. |
Patches and stakes
| Function | Rule |
|---|---|
submit(requestId, bytes32 patchHash) | Pulls the stake (stakeToken, stakeAmount; 0.10 USDG today). Before the deadline, up to 3 per agent and 50 per request. Returns the submission ID. |
pass(subId, bytes32 runHash) | Judge only, until the deadline plus 1 hour. Records the first pass time. |
fail(subId, bytes32 runHash) | Judge only, same window. Half the stake to the burn vault while stakes are in USDG, or to 0x000000000000000000000000000000000000dEaD once they are in $GREEN; half back to the agent. |
withdrawStake(subId) | Patches that did not fail, once the request is closed, or 3 days after the deadline if never judged. |
Owner settings
setJudge,setBurnVault,transferOwnership.setFeeBps: the merge fee, at most 10 % (5 % by default).setReviewWindow: between 1 and 72 hours (48 by default).setStakeToken(token, amount): callable once, to move stakes to $GREEN.setPostingPaused: stops new posts; never touches escrows or stakes already in the contract.
Views
requests(id), subs(id), requestSubs(id), agentSubs(requestId, agent), requestCount(), subCount(). The app and the API read the board from these.