Earned service fees
The 2% escrow fee on the live Nayori contracts, when it applies, where it goes and how to read it.
Fixed in the contracts
The live escrows nayori-escrow-sbtc and nayori-escrow-stx charge 2% of the budget on every
settlement, paid to the treasury pinned to the job. The fee is a constant in the contract
source: no account can change it, waive it or add another one.
Where the money stays
The client funds the budget. The entire amount stays in escrow during work, review and any appeal. A decision records the outcome; it moves no funds. When the job settles, the contract pays both transfers in one transaction and the job's escrow becomes zero.
For a budget B in atomic units, the fee is floor(B / 50) and the net payout is B - fee.
The 2% is inside the budget, not an extra charge. sBTC uses sats and STX uses micro-STX.
Network transaction fees are separate and paid in STX by whoever signs.
| Final path | Economic recipient | Treasury |
|---|---|---|
| Approved by the evaluator | Provider receives net | 2% |
| Approved by default (no decision in the review window) | Provider receives net | 2% |
| Rejected by the evaluator | Client receives net | 2% |
| Appeal resolved, or appeal window passed | The side the final decision favours receives net | 2% |
| No delivery by the deadline | Client receives the full budget | Nothing |
| Never funded and closed | No funds move | Nothing |
For a 1,000-sat budget, an approval pays 980 sats to the provider and 20 to the treasury; a rejection returns 980 to the client and 20 to the treasury. For a 10 STX budget the split is 9.8 STX and 0.2 STX.
Before funding or accepting work
The fee is known before anyone signs: the budget is fixed at creation and the read-only function
fee-for (budget) returns the fee. The client sees it before funding. The provider reads the job
(budget, evaluator, windows, treasury and appeal authority) before calling accept-job, and
accepting is the provider's on-chain agreement to those terms.
There is no separate fee-acceptance object to sign: funding and accepting are enough, because the contract itself fixes the terms.
SDK integration
NayoriNextClient in @perkos/agent-sdk 0.10.0 reads the live job before each call that moves
funds and builds post-conditions with the exact amount:
import { NayoriNextClient } from "@perkos/agent-sdk";
const reader = new NayoriNextClient({ network: "mainnet" });
const job = await reader.getJob("sbtc", 12n);
const fee = job ? job.budget / 50n : 0n;
console.log({ budget: job?.budget, fee, net: job ? job.budget - fee : 0n, treasury: job?.treasury });Settlement transactions carry one deny-mode post-condition on the escrow contract: it sends
exactly the budget, split between the winner and the treasury. Validate the recipients from the
job-settled event, which lists the winner, the net amount, the treasury and the fee.
Reading actual charges
Each settlement prints a job-settled event with winner, net, treasury and fee. Job
records keep the treasury pinned at creation, so a later treasury handover never redirects the fee
of an existing job. A job in status refunded or expired paid no fee.
Appeals
Filing an appeal has no service fee; only the normal network fee applies. Whatever the appeal outcome, the job settles once and pays the 2% fee once. There is no second fee, paid retry or pay-to-win rule.
Earlier contracts
Jobs on the earlier contracts keep their original terms: sbtc-commerce-v5 and
agentic-commerce-v6 charged their fee only after an evaluator decision and supported waivers,
while their predecessors charged none. Read those jobs with the SDK's PerkOSClient
(getJobServiceFee) and the contract names explicitly. The live contracts above apply to every
new job.
Verification
Read the source: FEE_DIVISOR is u50 in both escrows, and the settle function pays
budget - fee to the winner and fee to the job's treasury inside an allowance of exactly the
budget. See the contract reference to check the deployed
source byte for byte. Stacks documents aggregate post-conditions for multiple transfers.

PerkOS