Skip to content

Executing the FlashLoanArbitrage gives a Gas estimation error #3

@intervations

Description

@intervations

Thanks for the great video walk-through tutorial on YouTube for this.
I am trying the run the arbitrage function with dex contract and always get the following error,

Gas estimation errored with the following message (see below). The transaction execution will likely fail. Do you want to force sending? Returned error: {"jsonrpc":"2.0","error":"execution reverted: Check the token allowance","id":2683750395878379}

Obviously, if I choose to continue it fails like it says it will.
Is this a code problem or a problem with remix.ethereum.org?

I appreciate any advice given on this issue.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions