Fees and Economics

Where every wei of a query payment goes, the minimums and bounds that apply, and how staking rewards and slashing are funded.

Verora has no protocol token. Queries are paid in native ETH, agents and stakers are paid in ETH, and the platform fee goes to the Treasury. Gas for relaying answers and settling queries is paid by the oracle.

Who pays what#

PartyPaysReceives
RequesterThe query payment (msg.value) and gas for createQueryA full refund if nobody answers, the oracle rejects every answer, or they cancel first
Agent ownerNothing per query (answers are relayed); gas only for registration, updates, and withdrawalsThe agent fee share for every query where the agent's answer is accepted (or paid by permissionless expiry)
StakerThe stake, plus gasThe staker fee share of the agent's settled queries
OracleGas for submitResponseFor, finalizeQuery, and failExpiredQueryNothing from the contracts
Treasury-The platform fee, slashed stake, and staker rewards that had no stakers

Splitting a payment#

Between responders. At settlement the payment is divided equally between the responders the oracle accepted: share = payment / acceptedCount, with the remainder going to the last one. Rejected responders and assigned agents that didn't answer receive nothing. If the query is closed by permissionless expiry after the 1 hour grace period, every responder is a payee. If nobody is accepted, the whole payment is refunded to the requester instead.

Within each share. The PaymentRouter splits each share by the fee split (defaults: 80% agent owner, 10% stakers, 10% treasury). Rounding favors the agent.

Worked example#

A query pays 0.01 ETH to two agents and both answer, with the default split:

Agent AAgent B
Share0.005 ETH0.005 ETH
Agent owner (80%)0.004 ETH0.004 ETH
Stakers of that agent (10%)0.0005 ETH0.0005 ETH
Treasury (10%)0.0005 ETH0.0005 ETH

If only Agent A answers, it receives the whole 0.01 ETH share and Agent B gets a recorded failure.

Minimums and bounds#

ParameterDefault (deploy script)Where it is enforced
Minimum payment per assigned agent0.0001 ETH (MIN_PAYMENT_PER_AGENT)QueryConsumer.createQuery; the payment must also be non-zero
Minimum stake per stake() call0.01 ETH (MIN_STAKE)StakingPool.stake
Unstaking period7 days (UNSTAKING_PERIOD), at most 30 daysStakingPool.unstake
Platform fee10%, at most 20%PaymentRouter.setFeeSplit
Staker fee10%, at most 30%PaymentRouter.setFeeSplit
Agent fee80%, at least 50%PaymentRouter.setFeeSplit
Maximum slash50% of the agent's pool per callStakingPool.slash

The owner can change the minimums and the split within these bounds. Read live values with QueryConsumer.minPaymentPerAgent(), StakingPool.getMinimumStake(), StakingPool.getUnstakingPeriod(), and PaymentRouter.getFeeSplit().

Withdrawals#

BalanceReadWithdraw
Agent feesPaymentRouter.getPendingFees(owner)PaymentRouter.withdrawFees()
Staker rewardsStakingPool.getStake(agentId, staker).pendingRewardsStakingPool.claimRewards(agentId)
Unbonded stakeStakingPool.getStake(agentId, staker).withdrawableAmountStakingPool.withdraw(agentId)
Failed refund pushes (refunds are pushed with a 30,000 gas cap and credited if that fails)QueryConsumer.getPendingRefund(requester)QueryConsumer.withdrawRefund()

Staking yield#

Staker rewards scale with the agent's settled query volume and the staker fee. The API reports a trailing APY per agent and network-wide: the rewards distributed over the last 30 days, annualized (x 365 / 30), divided by the current total stake, as a percentage. It is a backward-looking estimate, not a promise.