Skip to content

[H3] Volume + savings: publisher write path, REST mirror, reconciliation (contract landed in #826) #873

Description

@BigManly4

Part of epic #808.

ROADMAP.md line 113. The corridor rate oracle proves a rate was correct at a point in time; this is the companion oracle that publishes cumulative volume routed and fees saved (vs. a naive baseline) so the "fees saved" number quoted anywhere in this product's marketing is independently checkable on-chain, not just a number this app's own backend asserts.

Scope

  • Define the baseline "fees saved" is measured against (e.g. worst quoted rate in the comparison set at execution time) and publish that methodology, not just the number
  • On-chain contract that accumulates volume + savings per settlement, written by the same publisher pipeline that already writes reputation outcomes (packages/publisher)
  • Public read path (contract read, mirrored in the REST API) so the aggregate is queryable without trusting this app's own database
  • Reconciliation: the on-chain aggregate must be derivable from the same outcome log reputation scoring already uses (lib/reputation/*), not a second, divergent accounting path

Depends on

  • The existing reputation/outcome-log pipeline (lib/reputation, packages/publisher) as the source of truth this oracle publishes from

Metadata

Metadata

Assignees

No one assigned

    Labels

    difficulty/hardMulti-day. Cross-module or requires design work first.featureNew capability. Expands what the product can do.module/oraclecontracts/reputation — Soroban reputation oracle.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions