Skip to content
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

Fee antehandler audit and refactor #2090

Closed
5 tasks
yaruwangway opened this issue Jan 27, 2023 · 2 comments
Closed
5 tasks

Fee antehandler audit and refactor #2090

yaruwangway opened this issue Jan 27, 2023 · 2 comments
Labels
admin: epic An EPIC -- meta issue used to track a body of work type: tech-debt Slows down development in the long run

Comments

@yaruwangway
Copy link
Contributor

yaruwangway commented Jan 27, 2023

Summary

Global Fee (or Global Min Fee) is a gaia module which was supplied by TGrade which defines a fee all transactions have to satisfy (except by-pass-msg).

Currently, Gaia has two fees setups: the mininum_gas_price in config/app.toml and a global fee (a list of coins) in param store.

Gaia fee antehandler takes min_gas_price, Global fee into a combined fee requirement. The combined fee:

  • takes the higher fees betweenmin_gas_price and global fee if min_gas_price and global_fee have the same denom. Otherwise, take the global fee
  • consider the global fee denom as required denom even if global fee is zero coin

Gaia fee antehandler also can bypass bypass-msg(all msgs are bypass msg types and not exceed MaxBypassMinFeeMsgGasUsage), but if bypass-msg still pays fees, gaia fee antehandler will also check the denoms of the fee.

Type

Impact

Proposed Solution


For Admin Use

  • Not duplicate issue
  • Appropriate labels applied
  • Appropriate contributors tagged
  • Contributor assigned/self-assigned
  • Is a spike necessary to map out how the issue should be approached?
@yaruwangway yaruwangway changed the title fee antehandler audit Fee antehandler audit Jan 27, 2023
@mpoke mpoke added admin: epic An EPIC -- meta issue used to track a body of work type: tech-debt Slows down development in the long run labels Jan 27, 2023
@yaruwangway yaruwangway changed the title Fee antehandler audit Fee antehandler audit and refactor Feb 7, 2023
@yaruwangway
Copy link
Contributor Author

Refactor global fee module:

@yaruwangway
Copy link
Contributor Author

close, in favor of #2228

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
admin: epic An EPIC -- meta issue used to track a body of work type: tech-debt Slows down development in the long run
Projects
Status: ✅ Done
Development

No branches or pull requests

2 participants