Skip to content

BM-2449: Pre-lock check before lock tx#1669

Merged
capossele merged 35 commits intomainfrom
angelo/bm-2449-check-gas-prices-at-lock-skip
Feb 24, 2026
Merged

BM-2449: Pre-lock check before lock tx#1669
capossele merged 35 commits intomainfrom
angelo/bm-2449-check-gas-prices-at-lock-skip

Conversation

@capossele
Copy link
Contributor

@capossele capossele commented Feb 19, 2026

Before sending a lock transaction, we re-check that gas cost is within the order’s current price. If not, we skip locking (and, potentially, retry later). This avoids locking when gas has spiked.

@linear
Copy link

linear bot commented Feb 19, 2026

@austinabell
Copy link
Contributor

My intuition is that during pricing, you have the gas estimated that will be used, so you could just pull gas price and check profitability that way? We are * by gas price currently but could change or add another field to OrderRequest to avoid duplicate calculations. Seems like it would be a cheap way to do this check?

@capossele capossele changed the title Pre-lock check before lock tx Pre-lock check before lock tx [WIP] Feb 20, 2026
Base automatically changed from austin/estimate_gas_consistent to main February 20, 2026 11:43
@github-actions github-actions bot changed the title Pre-lock check before lock tx [WIP] BM-2449: Pre-lock check before lock tx [WIP] Feb 20, 2026
@capossele capossele changed the title BM-2449: Pre-lock check before lock tx [WIP] BM-2449: Pre-lock check before lock tx Feb 20, 2026
@capossele capossele marked this pull request as ready for review February 20, 2026 11:45
@capossele capossele merged commit 08d0375 into main Feb 24, 2026
25 checks passed
@capossele capossele deleted the angelo/bm-2449-check-gas-prices-at-lock-skip branch February 24, 2026 16:32
willpote pushed a commit that referenced this pull request Feb 25, 2026
Before sending a lock transaction, we re-check that gas cost is within
the order’s current price. If not, we skip locking (and, potentially,
retry later). This avoids locking when gas has spiked.

---------

Co-authored-by: austinabell <austinabell8@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants