fix(swap): climb failed simulates by 200k before signing #1362

Merged
PlasticDigits merged 1 commit from fix/1360-swap-auto-gas into main 2026-09-27 13:14:04 +00:00

Summary

Follow-up to merged #1361. That pull request was already merged, so the 200k climb was not in it.

When the first LCD simulate does not finish, raise the query gas from the static envelope by 200,000 until a simulate returns gas_used, then sign ceil(gas_used × 1.2). Three replies with no gas_used stop the climb and sign the static envelope. An included out-of-gas transaction is still not sent again.

Test plan

  • make verify-issue-1360
  • Signed Keplr swap remains a later wallet check
## Summary Follow-up to merged #1361. That pull request was already merged, so the 200k climb was not in it. When the first LCD simulate does not finish, raise the query gas from the static envelope by 200,000 until a simulate returns `gas_used`, then sign `ceil(gas_used × 1.2)`. Three replies with no `gas_used` stop the climb and sign the static envelope. An included out-of-gas transaction is still not sent again. ## Test plan - [x] `make verify-issue-1360` - [ ] Signed Keplr swap remains a later wallet check
fix(swap): climb failed simulates by 200k before signing
All checks were successful
ci/woodpecker/pr/woodpecker Pipeline was successful
84220c6484
When the first LCD simulate does not finish, raise the query gas from the static envelope in 200k steps until a simulate returns gas_used, then sign ceil of that use. Empty replies stop after three. An included out-of-gas result is still not resent.
Author
Owner

drain skip: no occupying job for rebase/fix-pr/CI-wait; remaining continue

drain skip: no occupying job for rebase/fix-pr/CI-wait; remaining continue
PlasticDigits deleted branch fix/1360-swap-auto-gas 2026-09-27 13:14:05 +00:00
Sign in to join this conversation.
No reviewers
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
code/cl8y-dex-terraclassic!1362
No description provided.