ethermint-archive icon indicating copy to clipboard operation
ethermint-archive copied to clipboard

Gas Pricing Strategy

Open AdityaSripal opened this issue 7 years ago • 5 comments

Decide on a gas pricing strategy for Ethermint (i.e. how much gas does each operation cost). There are two obvious choices:

  1. Use SDK's pricing strategy
  2. Use Ethereum's pricing strategy

I think it makes sense to use Ethereum's pricing. We will probably use that anyway for the gas cost of each opcode during a smart contract call, so it makes sense to use it everywhere else as well.

AdityaSripal avatar Aug 22 '18 17:08 AdityaSripal

cc @alexanderbez

AdityaSripal avatar Aug 22 '18 18:08 AdityaSripal

Mind looping me in on the discussion as well? I'd like whatever we implement to be exposed via the usual Web3 RPC methods.

mslipper avatar Aug 22 '18 19:08 mslipper

For sure @mslipper

alexanderbez avatar Aug 22 '18 21:08 alexanderbez

~This is our chance to fix Etheruem's gas pricing! This is a known problem with ethereum. I think we should look at all the problems with Ethereum's existing gas pricing and incorporate fixes for them.~

Upon further thought, I think we should use Ethereums existing gas pricing, so all existing tooling and contracts "just work", and its not an annoying edge case thats a barrier to adoption. We can make a better pricing scheme after adoption (or make an easy way to alter the pricings)

ValarDragon avatar Aug 30 '18 02:08 ValarDragon

@ValarDragon yes, would love as much as your input as possible. But you hit the nail on the head:

Upon further thought, I think we should use Ethereums existing gas pricing, so all existing tooling and contracts "just work".

This is our ultimate aim at release.

alexanderbez avatar Aug 30 '18 13:08 alexanderbez