Skip to content

Create new production release#1133

Merged
ebma merged 6 commits intomainfrom
staging
May 5, 2026
Merged

Create new production release#1133
ebma merged 6 commits intomainfrom
staging

Conversation

@ebma
Copy link
Copy Markdown
Member

@ebma ebma commented May 4, 2026

No description provided.

@netlify
Copy link
Copy Markdown

netlify Bot commented May 4, 2026

Deploy Preview for vortex-sandbox ready!

Name Link
🔨 Latest commit 288c601
🔍 Latest deploy log https://app.netlify.com/projects/vortex-sandbox/deploys/69f9a4c89c6d740008d92b43
😎 Deploy Preview https://deploy-preview-1133--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
Copy link
Copy Markdown

netlify Bot commented May 4, 2026

Deploy Preview for vortexfi ready!

Name Link
🔨 Latest commit 288c601
🔍 Latest deploy log https://app.netlify.com/projects/vortexfi/deploys/69f9a4c85ace7b00080009e4
😎 Deploy Preview https://deploy-preview-1133--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.

Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

This PR updates the Alfredpay offramp flow to support ERC-20 tokens that do not implement EIP-2612 permit by introducing a “no-permit fallback” path, and adjusts logging/UX timing around related service calls and progress phases.

Changes:

  • Add new ramp phases + additionalData fields to carry user-submitted tx hashes for no-permit approve/swap/transfer flows.
  • Implement permit-support probing in the EVM→Alfredpay offramp route and generate fallback user-wallet transactions when permit isn’t available.
  • Update backend phase execution to accept/verify user-submitted tx hashes for the fallback path; reduce external API request logs from info to debug; slow Alfredpay polling interval.

Reviewed changes

Copilot reviewed 11 out of 11 changed files in this pull request and generated 3 comments.

Show a summary per file
File Description
packages/shared/src/services/brla/brlaApiService.ts Reduce BRLA outbound request logging level to debug.
packages/shared/src/services/alfredpay/alfredpayApiService.ts Reduce Alfredpay outbound request logging level to debug.
packages/shared/src/endpoints/ramp.endpoints.ts Extend RampPhase and UpdateRampRequest.additionalData with no-permit fallback phases/hashes.
apps/frontend/src/pages/progress/phaseMessages.ts Add progress messaging mappings for the new no-permit phases.
apps/frontend/src/pages/progress/index.tsx Add estimated durations for the new no-permit phases.
apps/frontend/src/machines/actors/sign.actor.ts Capture and report no-permit tx hashes back to the API via additionalData.
apps/api/src/api/services/transactions/validation.ts Skip presigned-tx validation for the new user-wallet no-permit phases.
apps/api/src/api/services/transactions/offramp/routes/evm-to-alfredpay.ts Probe permit support; generate fallback transactions (transfer or approve+swap) when unsupported; set metadata flags.
apps/api/src/api/services/phases/meta-state-types.ts Add metadata fields for no-permit fallback flag + hash storage.
apps/api/src/api/services/phases/handlers/squidrouter-permit-execution-handler.ts Add execution branch that waits for user-submitted hashes (no-permit fallback) before proceeding.
apps/api/src/api/services/phases/handlers/alfredpay-offramp-transfer-handler.ts Increase Alfredpay status poll interval from 5s to 30s.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment on lines +234 to +246
// Probe EIP-2612 support: tokens that don't implement nonces() (e.g. USDT on Base) revert here.
let userNonce: bigint | null = null;
try {
userNonce = (await publicClient.readContract({
abi: erc20Abi,
address: inputTokenAddress,
args: [userAddress],
functionName: "nonces"
})) as bigint;
} catch {
userNonce = null;
}
const supportsPermit = userNonce !== null;
Comment on lines +117 to +132
private async waitForUserHash(
state: RampState,
hash: `0x${string}` | undefined,
fromNetwork: EvmNetworks,
label: string
): Promise<void> {
if (!hash) {
throw this.createRecoverableError(`${label} hash not yet reported by frontend`);
}
const { publicClient } = this.getExecutorClients(fromNetwork);
const receipt = await publicClient.waitForTransactionReceipt({ hash });
if (!receipt || receipt.status !== "success") {
throw this.createRecoverableError(`${label} tx failed: ${hash}`);
}
logger.info(`${label} tx confirmed: ${hash}`);
}
Comment thread apps/frontend/src/pages/progress/phaseMessages.ts Outdated
@ebma
Copy link
Copy Markdown
Member Author

ebma commented May 4, 2026

@copilot apply changes based on the comments in this thread

Copy link
Copy Markdown
Contributor

Copilot AI commented May 4, 2026

@ebma I can’t apply these changes because the pull request’s branch is the repository’s default branch, which I’m not allowed to push to directly.

You can ask me to create a new pull request with the requested changes instead and I'll open a separate PR on a new branch.

@ebma
Copy link
Copy Markdown
Member Author

ebma commented May 4, 2026

@copilot please apply the requested changes for this thread in a new pull request against this branch.

Copy link
Copy Markdown
Contributor

Copilot AI commented May 4, 2026

@ebma I've opened a new pull request, #1134, to work on those changes. Once the pull request is ready, I'll request review from you.

Copy link
Copy Markdown
Contributor

Copilot AI commented May 4, 2026

@ebma I've opened a new pull request, #1135, to work on those changes. Once the pull request is ready, I'll request review from you.

@ebma ebma merged commit 1031af3 into main May 5, 2026
8 of 9 checks passed
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