From 89046991f6459ed486399f28990a694c8bef6f4c Mon Sep 17 00:00:00 2001 From: alec <93971719+0xAlec@users.noreply.github.com> Date: Tue, 17 Sep 2024 11:15:08 -0400 Subject: [PATCH] feat: set `v2` as default API for `Swap` (#1254) --- .changeset/nervous-lamps-jog.md | 5 +++++ src/swap/components/Swap.tsx | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) create mode 100644 .changeset/nervous-lamps-jog.md diff --git a/.changeset/nervous-lamps-jog.md b/.changeset/nervous-lamps-jog.md new file mode 100644 index 0000000000..191eac4340 --- /dev/null +++ b/.changeset/nervous-lamps-jog.md @@ -0,0 +1,5 @@ +--- +'@coinbase/onchainkit': patch +--- + +**feat**: set v2 as default API for Swap. by @0xAlec #1254 diff --git a/src/swap/components/Swap.tsx b/src/swap/components/Swap.tsx index 32ed5a6367..55b4826a35 100644 --- a/src/swap/components/Swap.tsx +++ b/src/swap/components/Swap.tsx @@ -17,7 +17,7 @@ export function Swap({ maxSlippage: DEFAULT_MAX_SLIPPAGE, }, className, - experimental = { useAggregator: true }, + experimental = { useAggregator: false }, onError, onStatus, onSuccess,