joshstevens19 / simple-uniswap-sdk

Uniswap SDK which handles the routes automatically for you, changes in trade quotes reactive subscriptions, exposure to formatted easy to understand information, bringing back the best trade quotes automatically, generating transactions for you and much more.
MIT License
188 stars 95 forks source link

"gas is missing" even tho I have async getGas function in the pairSettings #21

Closed csidi90 closed 2 years ago

csidi90 commented 2 years ago

I keep getting no gas used errors when trying to execute a trade even tho I stock to the docs.

gasSettings      : {
            getGasPrice : async () => {
                return '133';
            }
        },
joshstevens19 commented 2 years ago

you dont need these settings.. remove them and try again. You only need these settings if you want to do very custom stuff with the SDK which it doesn't sound like you do. If it does not work please supply code so I can look. Closing for now thanks