modagavr/pancake-wizard

Customisable GAS fee

MichielvLu opened this issue · 3 comments

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

Share your strategy man @MichielvLu 😄

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

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
      });