Skip to content

[WIP] Refactor phase flow and quote logic for composability.#1232

Open
gianfra-t wants to merge 26 commits into
stagingfrom
refactor-phase-composability
Open

[WIP] Refactor phase flow and quote logic for composability.#1232
gianfra-t wants to merge 26 commits into
stagingfrom
refactor-phase-composability

Conversation

@gianfra-t

@gianfra-t gianfra-t commented Jun 18, 2026

Copy link
Copy Markdown
Contributor
  • Implements an explicit definition of phase flow using an array of phases.
    • Modifies all the phases to remove transition-specific logic, as it would be handled by the processor itself, based on the array.
  • Refactor idea that encompass logic currently in the quote engine.

@netlify

netlify Bot commented Jun 18, 2026

Copy link
Copy Markdown

Deploy Preview for vortex-sandbox ready!

Name Link
🔨 Latest commit 374bff3
🔍 Latest deploy log https://app.netlify.com/projects/vortex-sandbox/deploys/6a4c1190cd79b90008f45e1d
😎 Deploy Preview https://deploy-preview-1232--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.

@netlify

netlify Bot commented Jun 18, 2026

Copy link
Copy Markdown

Deploy Preview for vortexfi ready!

Name Link
🔨 Latest commit 374bff3
🔍 Latest deploy log https://app.netlify.com/projects/vortexfi/deploys/6a4c1190e73c9b0008127881
😎 Deploy Preview https://deploy-preview-1232--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.

const addressKey = `${token.network}-${token.erc20AddressSourceChain?.toLowerCase()}`;
const rawBalance = allEvmBalances.get(addressKey);

let balance = "0.00";
const rawBalance = allEvmBalances.get(addressKey);

let balance = "0.00";
let balanceUsd = "0.00";
@@ -1,4 +1,4 @@
import { AlfredpayFiatPaymentInstructions, ExtrinsicOptions, IbanPaymentData } from "@vortexfi/shared";
import { AlfredpayFiatPaymentInstructions, ExtrinsicOptions, IbanPaymentData, Networks, RampPhase } from "@vortexfi/shared";
Comment thread apps/api/src/api/services/quote/blocks/phases/distribute-fees.ts Fixed
@gianfra-t gianfra-t changed the title Refactor phase flow and quote logic for composability. [WIP] Refactor phase flow and quote logic for composability. Jun 18, 2026

await new Promise(resolve => setTimeout(resolve, SQUIDROUTER_INITIAL_DELAY_MS));

while (!isExecuted) {
logger.warn(`SquidRouterPayExecutor: No squidRouter status found for swap hash ${swapHash}.`);
} else if (squidRouterStatus.status === "success") {
logger.info(`SquidRouterPayExecutor: Transaction ${swapHash} successfully executed on Squidrouter.`);
isExecuted = true;
logger.info(`SquidRouterPayExecutor: Axelar status not found yet for hash ${swapHash}.`);
} else if (axelarScanStatus.status === "executed" || axelarScanStatus.status === "express_executed") {
logger.info(`SquidRouterPayExecutor: Transaction ${swapHash} successfully executed on Axelar.`);
isExecuted = true;
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