Skip to content

Commit

Permalink
chore: improvements
Browse files Browse the repository at this point in the history
  • Loading branch information
albert-llimos committed Oct 16, 2023
1 parent 7b87dd2 commit 17caa2b
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions bouncer/shared/gaslimit_ccm.ts
Original file line number Diff line number Diff line change
Expand Up @@ -130,6 +130,8 @@ async function testGasLimitSwap(
},
() => swapScheduledObserved,
);

// eslint-disable-next-line @typescript-eslint/no-explicit-any
const broadcastIdToTxPayload: { [key: string]: any } = {};
const broadcastRequesthandle = observeEvent(
'ethereumBroadcaster:TransactionBroadcastRequest',
Expand Down Expand Up @@ -180,11 +182,6 @@ async function testGasLimitSwap(
const minGasLimitRequired = gasConsumption + MIN_BASE_GAS_OVERHEAD + byteLength * GAS_PER_BYTE;

// This is a very rough approximation for the gas limit required. A buffer is added to account for that.
console.log(
`${tag} Gas budget of ${gasLimitBudget}. minGasLimitRequired ${minGasLimitRequired}, total ${
minGasLimitRequired + BASE_GAS_OVERHEAD_BUFFER
}`,
);
if (minGasLimitRequired + BASE_GAS_OVERHEAD_BUFFER >= gasLimitBudget) {
observeCcmReceived(
sourceAsset,
Expand Down

0 comments on commit 17caa2b

Please sign in to comment.