Skip to content

Speedy brl flow#1118

Open
gianfra-t wants to merge 62 commits intostagingfrom
speedy-brl-flow
Open

Speedy brl flow#1118
gianfra-t wants to merge 62 commits intostagingfrom
speedy-brl-flow

Conversation

@gianfra-t
Copy link
Copy Markdown
Contributor

@gianfra-t gianfra-t commented Apr 9, 2026

Issue: #1112

Description

Adds new transactions creators, phases and quote logic to handle BRLA onramps / offramps on Base.

New flow can be seen at the journey and fees diagram.

Review focus

Changes are focused on:

  • The quote engine logic files, starting with the two new strategies for onramp and offramp.

  • Transaction creation routes: onramp and offramp.

  • Phases logic modifications, and additions.

@netlify
Copy link
Copy Markdown

netlify Bot commented Apr 9, 2026

Deploy Preview for vortexfi ready!

Name Link
🔨 Latest commit b518fce
🔍 Latest deploy log https://app.netlify.com/projects/vortexfi/deploys/69fcad912378c30008664b7f
😎 Deploy Preview https://deploy-preview-1118--vortexfi.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

@netlify
Copy link
Copy Markdown

netlify Bot commented Apr 9, 2026

Deploy Preview for vortex-sandbox ready!

Name Link
🔨 Latest commit b518fce
🔍 Latest deploy log https://app.netlify.com/projects/vortex-sandbox/deploys/69fcad91e9082c0008a16678
😎 Deploy Preview https://deploy-preview-1118--vortex-sandbox.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

Comment thread apps/api/src/api/services/quote/engines/nabla-swap/offramp-evm.ts Fixed
Comment thread apps/api/src/api/services/quote/engines/nabla-swap/offramp-evm.ts Fixed
Comment thread apps/api/src/api/services/quote/engines/nabla-swap/onramp-evm.ts Fixed
throw new Error("NablaSwapPhaseHandler: Invalid EVM transaction data. This is a bug.");
}

const txHash = await baseClient.sendRawTransaction({
Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Caveat: not currently doing a swap simulation first.

gianfra-t and others added 4 commits April 15, 2026 16:07
…tion or class'

Co-authored-by: Copilot Autofix powered by AI <223894421+github-code-quality[bot]@users.noreply.github.com>
…tion or class'

Co-authored-by: Copilot Autofix powered by AI <223894421+github-code-quality[bot]@users.noreply.github.com>
…tion or class'

Co-authored-by: Copilot Autofix powered by AI <223894421+github-code-quality[bot]@users.noreply.github.com>
…routing, network params

- distribute-fees-handler: submit presigned raw EVM transaction instead of signing with funding account
- distribute-fees-handler: fix presigned tx lookup to use "distributeFeesEvm" for EVM flows
- distribute-fees-handler: pass explicit network to checkEvmTransactionStatus
- nabla.ts: import NABLA_ROUTER_BASE and NABLA_QUOTER_BASE from shared constants
- route-resolver: restore AssetHub→PIX routing using OfframpToPixStrategy

Agent-Logs-Url: https://github.com/pendulum-chain/vortex/sessions/9b62fc69-63f0-4f94-8dd5-eb0138bebf28
Copy link
Copy Markdown
Contributor

Copilot AI commented Apr 29, 2026

@copilot please address all the remaining/unresolved comments of this PR (review + code quality comments) with best effort and the solution that seems most sensical to you. For the com...

Addressed all remaining unresolved comments in commit d5594ce:

  1. distribute-fees-handler.ts - Changed to submit presigned raw EVM transactions via sendRawTransactionWithRetry instead of signing with the server funding account. Also fixed the presigned tx lookup to use "distributeFeesEvm" phase key for EVM flows (was incorrectly using "distributeFees"). Removed unused EvmTransactionData, privateKeyToAccount, and MOONBEAM_FUNDING_PRIVATE_KEY imports.
  2. distribute-fees-handler.ts - checkEvmTransactionStatus now requires explicit network parameter (removed default Networks.Base), and the caller passes it correctly.
  3. nabla.ts - Removed hard-coded NABLA_ROUTER_BASE and NABLA_QUOTER_BASE addresses. Both are now imported from @vortexfi/shared (added NABLA_QUOTER_BASE to shared constants alongside the existing NABLA_ROUTER_BASE).
  4. route-resolver.ts - Restored AssetHub→PIX routing bifurcation: OfframpToPixStrategy for ctx.from === Networks.AssetHub, OfframpToPixEvmStrategy for EVM sources.

The fee splitting concern (all fees going to vortex payout address) is left as-is since it's a design decision that would require additional partner payout infrastructure on EVM.

Copilot AI requested a review from ebma April 29, 2026 09:01
Copilot finished work on behalf of ebma April 29, 2026 09:01
ebma and others added 25 commits April 29, 2026 11:43
…p responses

to ensure that SDK users can't accidentally submit transactions too early
…ate related logic in fee distribution functions
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.

4 participants