Skip to content

Gas price is hardcoded in membership token transfer flow #5

@adklempner

Description

@adklempner

In the flow TRF ERC20 Token, node Contract Executor, the gas price is hard coded:

let overrides = {
    // The maximum units of gas for the transaction to use
    gasLimit: 800000,

    // The price (in wei) per unit of gas
    gasPrice: ethers.utils.parseUnits('8.0', 'gwei'),

};

As the average gas price on the network grew, I had to keep rewriting the value so that transactions for membership tokens would succeed relatively quickly. It would be easier if the gas price for this transaction (and perhaps other transactions?) was a global const. However, I'm not sure how this would interact with the other gas-related global constants, min_eth_for_gas_fee and gas_buffer

Ideally, the gas price would be determined by data from something like the Eth Gas Station API

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