Skip to content

Fee Model Revision #3248

@alexanderbez

Description

@alexanderbez

Summary

Let's face it, the current fee model/structure is pretty rigid, confusing, and bit error prone. As it stands right now:

  • Validators set their minimum fees via a flag or config
  • Clients specify gas and fees
  • The ante handler ensures:
    • fees >= (gas / 10000) + minFees (why are we adding on top of minFees???)
    • fees are deducted from user's account

Proposal

  • A validator specifies minimum gas price (as suggested by @sunnya97)
  • A client/user provides gas and fees, where fees / gas = gasPrice
  • The ante handler ensures:
    • gasPrice >= minGasPrice
    • fees are deducted from user's account

e.g. gaiacli tx send ... --gas=200000 --fees="2stake"

/cc @sunnya97 @ValarDragon @cwgoes @zmanian

ref: #3044


For Admin Use

  • Not duplicate issue
  • Appropriate labels applied
  • Appropriate contributors tagged
  • Contributor assigned/self-assigned

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions