# Revenue Layer

The revenue layer integrates the ERC-8004 Revenue Sharing Token Standard, which automates the distribution of economic value generated by robots and AI agents. Smart contracts in this layer handle trustless payouts to stakers, builders, infrastructure providers, and other contributors.&#x20;

<figure><img src="/files/y7BsGUawozsmHBFChlM5" alt=""><figcaption></figcaption></figure>

By embedding value distribution directly into the operating system, SynthOS ensures that all participants in the ecosystem are fairly rewarded. This creates a sustainable, circular economy where incentives drive continuous development, participation, and innovation.

ERC-80

04 enables **automatic revenue sharing** for builders, stakers, and infra providers.

* **Revenue formula:**

  ```javascript
  TotalRevenue = Σ(TaskRewards)
  ```
* **Split function:**

  ```javascript
  SplitRevenue(total) {
    stakers = total * α
    builders = total * β
    infra   = total * γ
    agent   = total * δ
    α+β+γ+δ = 1
  }
  ```
* Example split:

  ```javascript
  α = 20%   (Stakers)
  β = 40%   (Builders)
  γ = 20%   (Infra providers)
  δ = 20%   (Agent operator)
  ```
* **Smart contract logic:**

  ```javascript
  function distribute(address[] participants, uint[] shares) {
      for (i=0; i<participants.length; i++) {
          transfer(participants[i], shares[i]);
      }
  }
  ```


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.synthos.link/core-architecture/revenue-layer.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
