Skip to content

Add Across Predict withdraw support#8593

Draft
pedronfigueiredo wants to merge 3 commits intopnf/gasless-acrossfrom
pnf/predict-withdraw-across
Draft

Add Across Predict withdraw support#8593
pedronfigueiredo wants to merge 3 commits intopnf/gasless-acrossfrom
pnf/predict-withdraw-across

Conversation

@pedronfigueiredo
Copy link
Copy Markdown
Contributor

@pedronfigueiredo pedronfigueiredo commented Apr 27, 2026

What changed

Adds Across support for post-quote Predict withdraw flows on top of the gasless Across branch.

  • Adds predictAcrossWithdraw as a transaction type.
  • Allows Across post-quote requests only for Predict withdraw transactions.
  • Builds post-quote Across quotes as exact-input bridge quotes with no destination actions, passes refundAddress, and includes the original Predict withdraw gas in quote gas accounting.
  • Applies gas station handling to Across post-quote flows when native balance is insufficient.
  • Prepends the original Predict withdraw transaction before the Across approval/swap transactions during submission, including batch gas-limit alignment and predictAcrossWithdraw typing for the Across leg.

Why

Predict withdraw source funds originate from the Predict proxy/Safe and only become available after the original withdraw transaction executes. Across needs the same post-quote structure as the Relay flow: execute the original withdrawal first, then execute the quote leg, with refunds routed back to the proxy when provided.

@pedronfigueiredo pedronfigueiredo self-assigned this Apr 27, 2026
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.

1 participant