From 720e0dd25f21c513c16272309c1fb938e8d53d40 Mon Sep 17 00:00:00 2001 From: KillariDev Date: Thu, 26 Dec 2024 16:25:13 +0200 Subject: [PATCH] address comments --- app/ts/components/Settings.tsx | 2 +- app/ts/components/Submit.tsx | 2 +- app/ts/library/flashbots.ts | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/app/ts/components/Settings.tsx b/app/ts/components/Settings.tsx index 8818531..da5dac5 100644 --- a/app/ts/components/Settings.tsx +++ b/app/ts/components/Settings.tsx @@ -155,7 +155,7 @@ export const SettingsModal = ({ display, bouquetNetwork, bouquetSettings }: { di { relayMode.value.value === 'mempool' ? <> - +
Mempool Simulation RPC URL (an RPC with eth_simulateV1 support) ) => validateMempoolSimulationRpcEndpointInput(e.currentTarget.value)} value={mempoolSimulationRpcEndpoint.value.value} type='text' className='bg-transparent outline-none placeholder:text-gray-600' placeholder='https://' /> diff --git a/app/ts/components/Submit.tsx b/app/ts/components/Submit.tsx index 1f1fe78..4172b4f 100644 --- a/app/ts/components/Submit.tsx +++ b/app/ts/components/Submit.tsx @@ -275,7 +275,7 @@ export const Submit = ({
{ bouquetNetwork.value.relayMode === 'mempool' ? <>
- +

Gas: {formatUnits(getMaxBaseFeeInFutureBlock(blockInfo.value.baseFee, bouquetNetwork.value.blocksInFuture), 'gwei')} gwei + {formatUnits(bouquetNetwork.value.priorityFee.toString(), 'gwei')} gwei priority

Transaction Submit RPC: { bouquetNetwork.value.mempoolSubmitRpcEndpoint }

diff --git a/app/ts/library/flashbots.ts b/app/ts/library/flashbots.ts index 3ad41a3..4283707 100644 --- a/app/ts/library/flashbots.ts +++ b/app/ts/library/flashbots.ts @@ -188,7 +188,7 @@ export async function sendBundle(bundle: Bundle, targetBlock: bigint, fundingAmo console.log(response) if (response.error !== undefined) { if (attempt >= MAX_ATTEMPTS - 1) throw new Error(response.error.message) - await new Promise(r => setTimeout(r, 250)) + await new Promise(r => setTimeout(r, 50 + attempt * 50)) } else { break }