# Token Flow Diagram

This section illustrates the economic pathway of the $ORBY token during a typical AI inference lifecycle. All payments, validations, and distributions are tightly coupled with zk-proof verification and on-chain enforcement.

***

**🧭 Flow Summary (Per 100 $ORBY Job):**

```
          [User / dApp]
                │
       Pays 100 $ORBY for zk-Inference
                ▼
     ┌─────────────────────┐
     │   Inference Engine  │
     │   + zkProof Gen     │
     └────────┬────────────┘
              │
              ▼
     ┌─────────────────────┐
     │ Verifier Contract   │
     │ + Proof Validation  │
     └────────┬────────────┘
              │
              ▼
     ┌────────────────────────────────────────────┐
     │     Settlement Contract (Ethereum)        │
     │  • Logs output + proof                     │
     │  • Distributes payment based on outcome    │
     └────────┬───────────────────────────────────┘
              ▼
     ┌────────────┬────────────┬────────────┐
     │  Model     │ Executor   │ Verifier   │
     │  Owner     │ Node       │ Node       │
     │ (or RWA)   │            │            │
     │  60 $ORBY  │  20 $ORBY  │  20 $ORBY  │
     └────────────┴────────────┴────────────┘
```

***

🔹 Settlement Logic

All $ORBY token transfers are executed automatically by smart contracts once a zk-proof is validated on-chain. If the proof is invalid or incomplete, no payout occurs, and staked parties may be slashed.

***

**🔄 On-Chain Settlement Process:**

1. **Verifier submits proof + validation metadata**
2. **zkRegistry checks:**
   * Is the model registered?
   * Does the proof match the model hash?
   * Was the inference properly routed?
3. **Settlement contract triggers payouts:**
   * Funds are sent atomically from escrow.
   * Usage history is updated for scoring/royalty tracking.
   * Events emitted for dashboard / RWA sync.

***

**⚠️ Failsafe Mechanisms:**

| Case               | Outcome                             |
| ------------------ | ----------------------------------- |
| Invalid proof      | No payout, potential slashing       |
| Delayed executor   | Penalty applied or job reassigned   |
| Unregistered model | Job rejected, refund issued to user |

***

**🌍 RWA Considerations:**

* **Royalty Streams:** Model owner payout can be redirected to RWA token contracts, distributing yield to token holders.
* **Auditability:** Every inference and reward is linked to an event + zk-proof → usable in dashboards, reporting, and compliance.
* **Trustless Execution:** Because every payment is proof-gated, RWA structures inherit the same integrity guarantees.

> Orby AI transforms payment logic from “reputation-based” to “proof-enforced” — ideal for powering tokenized, revenue-yielding AI assets on Ethereum.
