modagavr / pancake-wizard

🐱🪄🥞 Bot for PancakeSwap Prediction – 26 technical indicators. Make smarter predictions with Pancake Wizard – trust math, not emotions!
https://t.me/PancakeWizard
BSD 3-Clause "New" or "Revised" License
250 stars 125 forks source link

Customisable GAS fee #14

Closed MichielvLu closed 3 years ago

MichielvLu commented 3 years ago

Is it possible to increase the GAS of transactions so they go through faster? Rather than reducing the waiting time...

YveOms commented 3 years ago

Share your strategy man @MichielvLu :smile:

MichielvLu commented 3 years ago

Hahah well even in the current strategy you often end up worse off because the amount of late betters. But you cannot do it later or it will fail. Increasing gas would solve this, but I'm getting errors because I'm not familiar with the packages

modagavr commented 3 years ago
betBear(epoch, {
        value: parseEther(GLOBAL_CONFIG.AMOUNT_TO_BET),
      })

you can add gasPrice field here and for betBull

betBear(epoch, {
        value: parseEther(GLOBAL_CONFIG.AMOUNT_TO_BET),
        gasPrice: "20000000000", // 20 gwei
      });