Skip to content

Commit

Permalink
Update srouter.js
Browse files Browse the repository at this point in the history
  • Loading branch information
rouzwelt committed Mar 8, 2024
1 parent 8c01838 commit 9681f0d
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/modes/srouter.js
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@ const srouterClear = async(
} balance, skipping...`;

let ethPrice;
const gasPrice = await signer.provider.getGasPrice();
const gasPrice = (await signer.provider.getGasPrice()).mul("11").div("10");
try {
if (gasCoveragePercentage !== "0") ethPrice = await getEthPrice(
config,
Expand Down Expand Up @@ -236,7 +236,7 @@ const srouterClear = async(
const rawtx = {
data: arb.interface.encodeFunctionData("arb", [takeOrdersConfigStruct, "0"]),
to: arb.address,
gasPrice : gasPrice.add(gasPrice.div("10"))
gasPrice
};
console.log("Block Number: " + await signer.provider.getBlockNumber(), "\n");
let gasLimit;
Expand Down Expand Up @@ -408,7 +408,7 @@ const srouterClear = async(
}
}
catch (error) {
console.log("error :",error)
console.log("error :",error);
succesOrFailure = false;
if (error !== "nomatch" && error !== "dryrun" && error !== "failed-exec") {
console.log("\x1b[31m%s\x1b[0m", ">>> Transaction failed due to:");
Expand Down

0 comments on commit 9681f0d

Please sign in to comment.