Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

mobile: fix cross-chain send preview #1343

Merged
merged 1 commit into from
Sep 23, 2024
Merged

mobile: fix cross-chain send preview #1343

merged 1 commit into from
Sep 23, 2024

Conversation

dcposch
Copy link
Member

@dcposch dcposch commented Sep 23, 2024

I missed a commit last night in #1340

Copy link

vercel bot commented Sep 23, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
daimo-web 🔄 Building (Inspect) Visit Preview 💬 Add feedback Sep 23, 2024 7:56pm
daimo-web-stage 🔄 Building (Inspect) Visit Preview 💬 Add feedback Sep 23, 2024 7:56pm

amount: `${BigInt(route?.toAmount || pendingOp.amount)}`,
to: recipient.addr,
coin: toCoin,
};
Copy link
Member Author

Choose a reason for hiding this comment

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

this is the fix

from: account.address,
to: recipient.addr,
amount: Number(dollarsToAmount(dollarsStr)),
memo: fullMemo,
status: OpStatus.pending,
timestamp: 0,
};
if (isSwap || isBridge) {
pendingOp.postSwapTransfer = {
amount: `${BigInt(route?.toAmount || pendingOp.amount)}`,
Copy link
Member Author

Choose a reason for hiding this comment

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

  • send to ETH, etc: show destination token amount
  • (no swap route): show USDC send amount = same as fastCCTP received amount

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