Skip to content

gasLimit seems not considered properly #16

@michael-spengler

Description

@michael-spengler

Hi compound-js team.

I'm very happy about your library and so far everything worked as documented and expected. One thing seems unclear to me:

I triggered a supply transaction with a gasLimit set to 250000 - however the gas price paid according to etherscan.io... was higher than 250000 GWEI --> 0.00025 Ether (if I understood things correctly):

        const trxOptions = { gasLimit, mantissa: false }

        try {
            const trx = await compound.supply(Compound.ETH, amountOfEtherToBeDeposited, trxOptions)
            console.log(`You can check the deposit to compound transaction at https://etherscan.io/tx/${trx.hash}`)
        } catch (error) {
            console.log(`Something went wrong while depositing Ether to compound.finance: ${error.message}`)
        }

So my inquiry is: Is it possible that the gasLimit is not taken into consideration properly by the implementation?

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