Repository navigation
feat: tune default min gas price from 100000usaf to 0.05usaf - #26
Merged
safrochain merged 1 commit intoMay 18, 2026
Merged
Conversation
The default of 100000usaf per gas unit set in Safrochain-Org#25 produced absurd per-tx fees: a MsgSend at the typical 80 000 gas would cost 8 000 SAF — more than any community validator's self-stake. This drops the default to 0.05usaf per gas, calibrated so: - MsgSend (80 000 gas) ~= 0.004 SAF - MsgDelegate (200 000 gas) ~= 0.010 SAF - IBC MsgTransfer (200 000 gas) ~= 0.010 SAF - Wasm contract call (1 M gas) ~= 0.050 SAF Validators still earn fee revenue (about 10x more per tx than the 0.005usaf I was evaluating against earlier) while keeping user-visible costs in the cent range. Operators can still override via app.toml `minimum-gas-prices`.
safrochain
self-requested a review
May 18, 2026 19:32
safrochain
approved these changes
May 18, 2026
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.
Summary
Follow-up to #25, which set the default
min-gas-pricesto100000usafper gas unit. At that rate, a typicalMsgSend(≈80 000 gas) costs 8 000 SAF — more than any community validator's self-stake. This PR drops the default to0.05usafper gas, putting per-tx user costs in the cent range while still meaningfully feeding validator fee revenue.Per-tx cost at the new default
MsgSendMsgDelegateMsgTransferNotes
app.tomlminimum-gas-prices— this only touches the default that ships with a freshsafrochaind init.safrochain-1(8 validators, height-1 boot viaInitGenesisis unaffected; this only changes the default Server config for newly-initialised homes).Test plan
safrochaind initon a fresh home writesminimum-gas-prices = "0.05usaf"to the generatedapp.tomlMsgSendat default fees is accepted on a local devnet