flashbots / flashbots/ethers-provider-flashbots-bundle

getConflictingBundle compares gas used, but should it be comparing effective gas price instead?

Open
#64 0 comments 1 reaction 0 assignees View on GitHub
Dominant language
TypeScript
Stars
566
Forks
211
PR merge metrics
No merged PRs in 30d

Description

https://github.com/flashbots/ethers-provider-flashbots-bundle/blob/2b98fbe4b1f11ea4d3d13f82e1e5aeeaa5e39561/src/index.ts#L658

After trying to troubleshoot some tx of mine that weren't included:

From the docs:
Effective Priority Fee - A bundle cannot significantly reduce its priority fee between simulating at the top of the block and when it is selected for inclusion. This commonly occurs when a bundle is operating on an arbitrage for which it pays a % of the profit to the miner, with an earlier bundle taking part, but not all, of the arbitrage opportunity.

It seems that getConflictingBundle should be comparing effective gas price, but instead its comparing gas used.
getConflictingBundle will give me an error when the initial sim shows that the tx used a certain amount of gas, and uses less gas when simulated after another bundle? Is this the correct behavior?

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.