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

feat: set v2 as default API for Swap #1254

Merged
merged 3 commits into from
Sep 17, 2024
Merged

feat: set v2 as default API for Swap #1254

merged 3 commits into from
Sep 17, 2024

Conversation

0xAlec
Copy link
Contributor

@0xAlec 0xAlec commented Sep 13, 2024

What changed? Why?

  • turn off v1 aggregator API (0x and 1inch)
  • switch on v2 API by default (Uniswap)

Notes to reviewers

How has it been tested?

Copy link

vercel bot commented Sep 13, 2024

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

Name Status Preview Comments Updated (UTC)
onchainkit-coverage 🛑 Canceled (Inspect) Sep 13, 2024 4:08pm
onchainkit-playground ✅ Ready (Inspect) Visit Preview 💬 Add feedback Sep 13, 2024 4:08pm
onchainkit-routes ✅ Ready (Inspect) Visit Preview 💬 Add feedback Sep 13, 2024 4:08pm

@@ -17,7 +17,7 @@ export function Swap({
maxSlippage: DEFAULT_MAX_SLIPPAGE,
},
className,
experimental = { useAggregator: true },
experimental = { useAggregator: false },
Copy link
Contributor

Choose a reason for hiding this comment

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

If we are switching, why keep all this extra code?

If we are confident in how it works, we should just remove all experimental code.

Copy link
Contributor

Choose a reason for hiding this comment

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

Are we thinking to do that later? And later when?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

let's leave this option in for developers for now. will share the migration plan in Slack

@Zizzamia Zizzamia merged commit 8904699 into main Sep 17, 2024
16 checks passed
@Zizzamia Zizzamia deleted the alec/swap-v2-default branch September 17, 2024 15:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Development

Successfully merging this pull request may close these issues.

5 participants