Skip to main content

Payments

MVP payments use prepaid credits in PaymentVault.

Flow

  1. Consumer approves PaymentVault to spend OLYMP.
  2. Consumer deposits credits on-chain.
  3. Gateway verifies request signature + nonce.
  4. Gateway calls consumeCredits(consumer, cost, requestId).
  5. Gateway returns data + receipt.

Future (v2): batched settlement with signed usage receipts.

Fee collection

Usage fees are collected in ProtocolFeeCollector and routed to:

  • FounderRevenueSplitter (time-limited)
  • RewardDistributor (provider + gateway)
  • Treasury (optional)