-
Notifications
You must be signed in to change notification settings - Fork 3.6k
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
Refund fees #13135
Comments
There was a proposal in another issue that only refund |
good point! To be able to account in block we would need Tendermint update :/ |
Personally, I do not find fees or the UX confusing at all. It's all quite simple and everything is documented. Yes, we need The two big UX pain points are:
So it's not completely fair to say "pain in the ass". Anyway. I do agree that a refund mechanism is wanted. Also, we already have an issue for this if you searched: #2150 So we should close this one :) |
I think the right UX is following:
Instead, currently user has to think in terms of total fees (user has no idea what the total fee of a tx is) and might be afraid of setting higher gas limits. I consider this bad UX. Sometimes I need to manually increase gas limit for some transactions in Kepler to make them pass - that is super annoying. |
I've updated the proposal, and suggest to adopt the solution proposed by @yihuang : evmos/ethermint#1085 |
It's actually originally proposed by @ValarDragon, #2150 |
Yeah, we don't need to two issues. We can close this @robert-zaremba :) |
Closing in favor of #2150 |
Problem Definition
Setting tx fees is pain in the ass from the user perspective:
Proposal
Now, with 1) Tx prioritizaiton and 2) post ante handlers we can refund fees. Proposed flow
The gas charged should be
max(gas_limit / 2, gas_used) * gas_price
(same as proposed in evmos/ethermint#1085)gas_limit * gas_price
(in deliver-tx)gas_limit * gas_price - max(gas_limit / 2, gas_used) * gas_price
Let's talk about viability of this solution.
Related: #2150, evmos/ethermint#1085
The text was updated successfully, but these errors were encountered: