Skip to content

docs(chain-fees): sync fee table with fee constants in code - #495

Open
IVANLI2412 wants to merge 1 commit into
Zenith-options:mainfrom
IVANLI2412:docs/issue-452
Open

IVANLI2412 wants to merge 1 commit into
Zenith-options:mainfrom
IVANLI2412:docs/issue-452

Conversation

@IVANLI2412

Copy link
Copy Markdown

Fixes #452
Closes #452

What changed

docs/chain-fees.md now matches the fee constants the code actually charges:

  • Corrected the XLM equivalents using src/amounts.rs::STROOPS_PER_UNIT = 10_000_000: floor 100 stroops = 0.00001 XLM, ceiling 100_000 = 0.01 XLM, per-transaction cap 500_000 = 0.05 XLM, daily budget 5_000_000 = 0.5 XLM. The old parenthetical values were 10x too high.
  • Added a source-of-truth note above the table (src/chain/fees.rs, InclusionFeeStrategy::default() and its DEFAULT_* constants).
  • Added the percentile bucket mapping implemented by FeeStats::percentile (p50/p75/p90/p95/p99), the whole-stroops/no-fractional-rounding rule of resource_fee_for, and the floor source when a percentile bid clamps down to the floor.
  • Stroop constants were left untouched: 90 / 100 / 100_000 / 500_000 / 5_000_000, pricing 1 stroop per unit, 2-ledger footprint TTL, 15s poll interval, 30s cache TTL. Only the markdown file was edited.

Validation actually run

  • grep/Select-String: 18/18 fee numbers and constant names used in the edited doc were found in src/chain/fees.rs, src/chain/simulate.rs, src/amounts.rs, src/chain/relayer.rs, src/chain/readiness.rs and src/admin.rs; 0 failures.
  • git status --short: exactly one modified file (docs/chain-fees.md); no new files, no source or fee-constant changes. No open PR referenced docs/chain-fees.md fee schedule no longer matches the constants in the fee module #452 before this one.
  • Documentation-only: no cargo/rustc or test toolchain was invoked.

Payment methods (Stellar Wave)

  • Base Mainnet: 0xC5dD2Ea54FF138bb3f71D3466092eA31eF115868
  • Solana: DN3pfYEvdkoTBP4oaEVvemsr98fZPhDSAbfVfmewRGQ5
  • PayPal: ivanzenteno3@gmail.com

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

docs/chain-fees.md fee schedule no longer matches the constants in the fee module

1 participant