Repository navigation
docs(chain-fees): sync fee table with fee constants in code - #495
Open
IVANLI2412 wants to merge 1 commit into
Open
IVANLI2412 wants to merge 1 commit into
IVANLI2412 wants to merge 1 commit into
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Fixes #452
Closes #452
What changed
docs/chain-fees.mdnow matches the fee constants the code actually charges: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.src/chain/fees.rs,InclusionFeeStrategy::default()and itsDEFAULT_*constants).FeeStats::percentile(p50/p75/p90/p95/p99), the whole-stroops/no-fractional-rounding rule ofresource_fee_for, and thefloorsource when a percentile bid clamps down to the floor.Validation actually run
grep/Select-String: 18/18 fee numbers and constant names used in the edited doc were found insrc/chain/fees.rs,src/chain/simulate.rs,src/amounts.rs,src/chain/relayer.rs,src/chain/readiness.rsandsrc/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 referenceddocs/chain-fees.mdfee schedule no longer matches the constants in the fee module #452 before this one.cargo/rustcor test toolchain was invoked.Payment methods (Stellar Wave)