Skip to content

Conversation

@gianfra-t
Copy link
Contributor

No description provided.

@netlify
Copy link

netlify bot commented Jan 21, 2026

Deploy Preview for vortex-sandbox ready!

Name Link
🔨 Latest commit 35b1bbb
🔍 Latest deploy log https://app.netlify.com/projects/vortex-sandbox/deploys/6972830fc44bfc00089df44b
😎 Deploy Preview https://deploy-preview-1026--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

netlify bot commented Jan 21, 2026

Deploy Preview for vortexfi ready!

Name Link
🔨 Latest commit 35b1bbb
🔍 Latest deploy log https://app.netlify.com/projects/vortexfi/deploys/6972830fbab0c80008b7b3c1
😎 Deploy Preview https://deploy-preview-1026--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
Member

@ebma ebma left a comment

Choose a reason for hiding this comment

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

Looks good so far 👍


const txData: EvmTransactionData = {
data: transferCallData as `0x${string}`,
gas: "100000",
Copy link
Member

Choose a reason for hiding this comment

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

Is this always the right amount we need?

unsignedTxs.push({
meta: {},
network: toNetwork,
nonce: 0, // TODO nonce is NOT 0 if destination is Moonbeam itself, fix this.
Copy link
Member

Choose a reason for hiding this comment

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

But Moonbeam can never be the final destination so it doesn't matter or am I misunderstanding?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

True, dismiss the comment then.

Comment on lines +345 to +347
const multiSignedTxs = await signMultipleEvmTransactions(tx, client, tx.nonce);
const primaryTx = multiSignedTxs[0];
const txWithMeta = addAdditionalTransactionsToMeta(primaryTx, multiSignedTxs);
Copy link
Member

Choose a reason for hiding this comment

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

I don't understand this part, why are we only adding the first transaction to the meta?

phaseRegistry.registerHandler(pendulumToHydrationXcmPhaseHandler);
phaseRegistry.registerHandler(hydrationToAssethubXcmPhaseHandler);
phaseRegistry.registerHandler(hydrationSwapHandler);
phaseRegistry.registerHandler(finalSettlementSubsidy);
Copy link
Member

Choose a reason for hiding this comment

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

We are missing the registration of the other handler.

[EvmToken.AXLUSDC]: {
assetSymbol: "axlUSDC",
decimals: 6,
erc20AddressSourceChain: "0x....",
Copy link
Member

Choose a reason for hiding this comment

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

Do we not have a proper address here?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Couldn't find one yet! Must exist.

amountRaw: finalAmountRaw.toString(),
destinationNetwork: toNetwork as EvmNetworks,
toAddress: evmEphemeralEntry.address,
toAddress: destinationAddress,
Copy link
Member

Choose a reason for hiding this comment

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

Let's keep the evmEphemeralEntry.address as the destination of this backup transfer. If we do, we can try the squidrouter backup an infinite number of times (or at least as many times as we have backups with higher nonces). If we send it to the destination, we risk the swap failing again and then the funds are stuck on the destination instead of the ephemeral again.

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