Skip to content
gentpay
CA$GENTPAY · TBA
Open app
Prototype

The rules,exactly

What the contract enforces, what the site shows before you sign, which stablecoins were proven on Robinhood Chain, and what is still planned.

Non-custodial

The contract never holds a balance. Each payment is one transferFrom from the task owner's wallet to the provider's payout address, in the same transaction, within the owner's allowance.

Every limit on chain

Budget, per-call cap, provider cap, deadline, pause, approved providers and the agent key are all checked inside pay(). The site's check is the same view the contract runs.

Price protection

The agent passes the highest price per unit it accepts. If the provider raised its price after the quote, the payment is refused.

One payment per request

A request hash can be paid once per task. The sample provider recomputes it from the request it serves, so a receipt for one URL cannot unlock another.

Exact amounts

The provider's balance is measured before and after; anything but the exact cost reverts. Fee-on-transfer tokens are therefore refused. Tokens that return nothing (USDT style) work; tokens that return false are refused.

Owner only

Only the task owner changes budget, deadline, caps, providers or the agent key, pauses or closes. Pause and close apply from the next transaction in the same block. The agent can never raise its own limits.

No admin

No owner of the contract, no upgrade, no fee, no payable function. Native ETH is not accepted; gas is paid in ETH.

Receipts

Each payment stores task, provider, units, amount, price, token, payer, payee, caller, request hash, Robinhood Chain block and time, and emits a Paid log with the same facts.

Proven on Robinhood Chain

Live data
USDG Global Dollar0x5fc5360D0400a0Fd4f2af552ADD042D716F1d168 · 6 decimals · Proxy contract (EIP-1967). Its issuer can upgrade it; a blocked address cannot send or receive.supply —
Chainlink — USD
USDe USDe0x5d3a1Ff2b6BAb83b63cd9AD0787074081a52ef34 · 18 decimals · A synthetic dollar, not a fiat-backed coin: its price can move away from $1.supply —
Chainlink — USD
Latest block—
Gas price—
ETH / USD (Chainlink)—

Refusal reasons

checkPay returns a bitmask; pay() reverts with Refused(mask). Same bits in the contract, the site and the example agent.

bit 0 · NO_TASKThe task does not exist.
bit 1 · TASK_CLOSEDThe owner closed this task.
bit 2 · TASK_PAUSEDThe owner paused this task.
bit 3 · TASK_EXPIREDThe task's deadline has passed.
bit 4 · NOT_AGENTThis address is not the task's agent (or its owner).
bit 5 · PROVIDER_UNKNOWNNo provider is registered under this id.
bit 6 · PROVIDER_NOT_APPROVEDThe owner has not approved this provider for the task.
bit 7 · PROVIDER_PAUSEDThe provider has switched itself off.
bit 8 · NO_PRICEThe provider has no price for the task's token.
bit 9 · PRICE_ABOVE_MAXThe provider's price is above the most the agent accepts.
bit 10 · UNITS_INVALIDZero units, or more units than the provider sells per call.
bit 11 · OVER_CALL_CAPThe cost is above the task's per-call cap.
bit 12 · OVER_BUDGETThe cost is above what is left of the task budget.
bit 13 · OVER_PROVIDER_CAPThe cost is above what is left for this provider in the task.
bit 14 · REQUEST_USEDThis request already has a receipt in this task.
bit 15 · REQUEST_EMPTYThe request hash is empty.
bit 16 · ALLOWANCE_LOWThe owner's token allowance to the contract is below the cost.
bit 17 · BALANCE_LOWThe owner's wallet holds less than the cost.
bit 18 · PAYEE_IS_PAYERThe provider's payout address is the task owner itself.
bit 19 · COST_OVERFLOWPrice times units is too large.

The contract

NameGentpayTaskBudgets + library GentpayReceiptMath
Addressnot deployed yet
Deployment gasabout 2.7 million (forge)
Testsunit, hostile tokens, fuzz, invariants, Robinhood Chain fork
Outside security reviewnot yet: start with small budgets

Planned, not built

Concept
  • — A provider directory with terms and uptime (providers register on chain today).
  • — Signed spending through a session key with daily limits across tasks.
  • — Recurring or streaming payments.
  • — Native ETH payments.
  • — $GENTPAY utility: nothing is defined beyond "planned"; the product does not need the token.

What this does not do

Gentpay does not run agents, judge the quality of a provider's data, refund a payment, or make a provider honest: a receipt proves a payment, not the service. It is not affiliated with Robinhood. A provider can change its payout address; every receipt records where the money went. See also the provider flow.