-
Notifications
You must be signed in to change notification settings - Fork 173
feat: setting protocol controlled min gas price #1326
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
60 commits
Select commit
Hold shift + click to select a range
d619786
adding fee stats table
robert-zaremba 7061206
update
robert-zaremba 8b323d0
move app constants to app/params
robert-zaremba 9cd92d1
use appparams
robert-zaremba 3cede55
move prefix settings to appparams
robert-zaremba 150d566
markdown linting
robert-zaremba 195332a
check consensus min-gas-price in app creator
robert-zaremba ddaf886
fix e2e tests
robert-zaremba 895a3ad
remove MaxAddrLen
robert-zaremba 9df787f
use consensus protected gas price
robert-zaremba 5a75ad3
update tests
robert-zaremba 949b0ba
formatting
robert-zaremba 0adee69
test update
robert-zaremba a20feef
Merge branch 'main' into robert/tx-fees
robert-zaremba 20e6770
don't charge fee for txs in the first block (genesis)
robert-zaremba 3d65b32
Merge remote-tracking branch 'origin/main' into robert/tx-fees
robert-zaremba ebe83db
fix leverage tests
robert-zaremba e8ad4f5
update gas settings for leverage simtest
robert-zaremba 751d357
add coin math util lib
robert-zaremba 332f79a
update fee tests
robert-zaremba 42c7643
linting
robert-zaremba 9ddc855
adding new genmap module
robert-zaremba 83ad415
filter sim modules
robert-zaremba 4276147
add util/sim package
robert-zaremba 6cc051f
refactor sim module manager
robert-zaremba de9709e
add account funding to umee sim tests
robert-zaremba a3d355f
fix leverage query test
robert-zaremba 007f80c
comment back err check
robert-zaremba 9ccf670
Merge remote-tracking branch 'origin/main' into robert/tx-fees
robert-zaremba 994bf47
linting
robert-zaremba 10436c5
lint
robert-zaremba 225f338
fix: extra carriage-return, syntax
khoerling e0513c7
fix: syntax + lint
khoerling 8797415
style
robert-zaremba bc5c7b5
add log check to single node - testing ci
RafilxTenfen 742479b
set min gas price in app.toml to 0.05uumee
RafilxTenfen 40d8eca
update e2e to use uumee
RafilxTenfen f9c3d71
set fee to 10000uumee as needed by the transaction
RafilxTenfen c7e0628
improve dockerfile to have base-builder
RafilxTenfen 36e4274
add double check for non empty ibcStakeDenom, somehow was passing
RafilxTenfen 539e202
revoked the max_gas to 6000000 on hermes
RafilxTenfen cdc5129
add one more step to docker helping to cache more packages and improv…
RafilxTenfen c27c732
Update util/coin/math.go
RafilxTenfen 0fbeab0
fix lint
RafilxTenfen 898f627
reus mingasfee variable
robert-zaremba fb5df4d
update free gravity msg set
robert-zaremba 5fea4ea
update comment
robert-zaremba 8be6c1a
Merge branch 'main' into robert/tx-fees
adamewozniak 59e48dc
Merge branch 'main' into robert/tx-fees
RafilxTenfen 016e223
fix tests
adamewozniak a86b41f
Merge branch 'main' into robert/tx-fees
adamewozniak c630563
removed min-gas-price flag from upgrade test single node
RafilxTenfen 5b6d44f
add min gas price to app.toml
RafilxTenfen aa6ce4f
changelog
robert-zaremba dc3645b
removes print for CI performance
RafilxTenfen fc9fc23
Merge branch 'robert/tx-fees' of github.com:umee-network/umee into ro…
RafilxTenfen dfd339b
Merge branch 'main' into robert/tx-fees
mergify[bot] 732515d
increased time for workflow
RafilxTenfen ac1b015
set fees for tx msgs
RafilxTenfen ae93d1c
Merge branch 'robert/tx-fees' of github.com:umee-network/umee into ro…
RafilxTenfen File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
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
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
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,56 @@ | ||
| # Notes about Gas prices and gas used | ||
|
|
||
| NOTES: | ||
|
|
||
| - the gas used depends on the current state of the chain | ||
| - the gas records below are based on the empty state | ||
| - user is charged the gas-limit, even if tx consumed less gas | ||
|
|
||
| | operation | gas used | | ||
| | :--------------------------------------------- | -------: | | ||
| | x/bank send | 31'029 | | ||
| | x/group create | 68'908 | | ||
| | x/oracle MsgAggregateExchangeRateVote (3 curr) | 66'251 | | ||
| | x/oracle MsgAggregateExchangeRateVote (6 curr) | 69'726 | | ||
| | default gas limit | 200'000 | | ||
|
|
||
| ## Target price (in USD cent) for x/bank send | ||
|
|
||
| | umee price (usd cent) | gas price in uumee | fee (usd cent) | | ||
| | --------------------: | -----------------: | -------------: | | ||
| | 2 | 0.2 | 0.0124 | | ||
| | 2 | 0.1 | 0.0062 | | ||
| | 2 | 0.02 | 0.00124 | | ||
| | 5 | 0.2 | 0.031 | | ||
| | 5 | 0.1 | 0.0155 | | ||
| | 5 | 0.02 | 0.0031 | | ||
|
|
||
| ## Target price (in USD cent) for validator oracle txs (with 6 currencies) per day | ||
|
|
||
| There are roughly 10tx / minute and 14400 per day. | ||
| Validator has to do 2 tx (prevote and vote) every 5 blocks. | ||
RafilxTenfen marked this conversation as resolved.
Show resolved
Hide resolved
|
||
| Validator will need to do `5760 = 2*14400/5` tx. | ||
| In table below we assume the same price scheme as above, but in the code most likely we will apply a fixed discount (eg 10x). | ||
|
|
||
| The prices are indicative. For some transactions (especially oracle) fees can be disabled. | ||
| See fee.go file for details. | ||
|
|
||
| | umee price (usd cent) | gas price in uumee | fee (usd cent) | | ||
| | --------------------: | -----------------: | -------------: | | ||
| | 2 | 0.2 | 161.28 | | ||
| | 2 | 0.1 | 80.64 | | ||
| | 2 | 0.02 | 16.128 | | ||
| | 5 | 0.2 | 403.2 | | ||
| | 5 | 0.1 | 201.6 | | ||
| | 5 | 0.02 | 40.32 | | ||
|
|
||
| ## Target price (in USD) for default gas limit | ||
|
|
||
| | umee price (usd cent) | gas price in uumee | fee (usd cent) | | ||
| | --------------------: | -----------------: | -------------: | | ||
| | 2 | 0.2 | 0.08 | | ||
| | 2 | 0.1 | 0.04 | | ||
| | 2 | 0.02 | 0.008 | | ||
| | 5 | 0.2 | 0.2 | | ||
| | 5 | 0.1 | 0.1 | | ||
| | 5 | 0.02 | 0.02 | | ||
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
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
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
Oops, something went wrong.
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.
Uh oh!
There was an error while loading. Please reload this page.