Skip to content

feat(sdk): sonic solver swap #130

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

Draft
wants to merge 2 commits into
base: main
Choose a base branch
from
Draft

Conversation

R0bi7
Copy link
Contributor

@R0bi7 R0bi7 commented Jun 23, 2025

Description

Sonic spoke implementation of solver.

Checklist

  • I have performed a self-review of my own code
  • My changes generate no new warnings
  • I have added tests that prove my fix is effective or that my feature works
  • I have run the unit tests
  • I only have one commit (if not, squash them into one commit).
  • I have a descriptive commit message that adheres to the commit message guidelines

@R0bi7 R0bi7 requested a review from AntonAndell June 23, 2025 17:44
Copy link

vercel bot commented Jun 23, 2025

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

Name Status Preview Comments Updated (UTC)
sodax-demo ❌ Failed (Inspect) Jun 23, 2025 5:45pm
sodax-web ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jun 23, 2025 5:45pm

Copy link
Contributor

@AntonAndell AntonAndell 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 except for canceling intents. Since the create will be the users router it will receive cancelled funds instead of the user itself. It would be much better if in create Intent we use the users wallet as creator instead of using the router. Then when cancelling calling also directly without the router

Comment on lines -548 to 557
const creatorHubWalletAddress = await EvmWalletAbstraction.getUserHubWalletAddress(
const creatorHubWalletAddress = await WalletAbstractionService.getUserHubWalletAddress(
params.srcChain,
walletAddressBytes,
this.hubProvider,
spokeProvider,
);

Copy link
Contributor

Choose a reason for hiding this comment

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

For intents we dont necessarily need to use a wallet abstraction as all but we can.
We just need to make sure cancel and intent results end up in the users wallets.

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.

2 participants