Fees
Request Fee
Each Profile defines its own fee model:
requestFee = baseFee + delay * delayFee
Callback Execution Fee
- Are charged separately from the request fee.
- Depend on the actual gas cost at execution time.
- If the requester does not have sufficient balance, the callback is skipped without affecting the randomness request itself.
- If the proof submitter does not provide sufficient gas or callback funding, the entire proof submission transaction reverts.
Collateral
Given a request with fee R.
When the request is created, the requester must deposit native coins equal to 1R.
When the request is assigned, the selected prover must provide collateral equal to 106R.
The collateral amount is chosen to ensure that all possible penalties can be fully covered.
The maximum possible penalties are:
- Up to 1R for failing to submit preview randomness on time.
- Up to 1R for failing to submit the final proof on time.
- Up to 5R for open-completion rewards and penalties.
- 100R for submitting preview randomness that differs from the final verified randomness.
Therefore, the maximum possible penalty is 107R (equal to the total collateral provided by the requester and prover).
Collateral is released once a valid proof has been successfully submitted.
Rewards, Penalties, and Compensation
For each assigned request, the prover must do the following to avoid being slashed:
- Submit preview randomness within
20 * delayTime * delayseconds. - Submit the final proof within:
20 * delayTime * delay + 1.5 * baseTimeseconds after assignment, or1.5 * baseTimeseconds after submitting preview randomness.
Violations result in the following penalties:
| Violation | Penalty |
|---|---|
| Late preview randomness | Up to 1R |
| Late final proof | Up to 1R |
| Preview randomness differs from the final verified randomness | 100R |
Open state
If no valid proof is submitted within:
20 * delayTime * delay + 3 * baseTimeafter assignment, or3 * baseTimeafter submitting preview randomness,
the request enters the Open state.
In the Open state:
- Anyone may submit a valid proof.
- The first successful submitter receives a reward between 1R and 3R (earlier submissions receive larger rewards).
- The original prover receives an additional penalty between 0 and 4R (earlier completion results in a smaller penalty).
The combined Open-state reward and penalty is always between 3R and 5R.
Collateral Distribution
- All penalties and rewards are paid from the locked collateral.
- Penalties compensate the requester.
- Open-completion rewards are paid to the first participant who successfully submits a valid proof.
- The Treasury Budget Fee is collected, up to the remaining available collateral.
- Any remaining collateral is returned to the assigned prover.