Skip to content
This repository has been archived by the owner on Dec 21, 2023. It is now read-only.

Commit

Permalink
hotfix: increase gas price by 100% (double it)
Browse files Browse the repository at this point in the history
  • Loading branch information
hirbod committed Oct 30, 2023
1 parent e1e8426 commit f3323c4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/app/hooks/creator-token/use-creator-token-buy.ts
Original file line number Diff line number Diff line change
Expand Up @@ -80,8 +80,8 @@ export const useCreatorTokenBuy = (params: {
let currentGasPrice = await provider.getGasPrice();
console.log("current Gas price fetched from RPC", currentGasPrice);

// Adjust the gas price (increase it by 20% to be more competitive)
const paddedGasPrice = currentGasPrice.mul(120).div(100);
// Adjust the gas price (increase it by 100% to be more competitive, based on base crossmint suggestion)
const paddedGasPrice = currentGasPrice.mul(200).div(100);
console.log("padded gas price after calculation:", paddedGasPrice);

const paddedGasPriceBigInt = BigInt(paddedGasPrice.toString());
Expand Down

0 comments on commit f3323c4

Please sign in to comment.