diff --git a/site/docs/pages/buy/types.mdx b/site/docs/pages/buy/types.mdx index 75ac277f67..4179033ebd 100644 --- a/site/docs/pages/buy/types.mdx +++ b/site/docs/pages/buy/types.mdx @@ -14,7 +14,13 @@ type BuyReact = { maxSlippage: number; // Maximum acceptable slippage for a swap (e.g., 3 for 3%). This is a percentage, not basis points. }; experimental?: { - useAggregator: boolean; // Whether to use a DEX aggregator. (default: false) + /** + * Whether to use a DEX aggregator. + * true - 0x Aggregator + * false - Uniswap V3 + * @default false + */ + useAggregator: boolean; }; isSponsored?: boolean; // An optional setting to sponsor swaps with a Paymaster. (default: false) onError?: (error: SwapError) => void; // An optional callback function that handles errors within the provider. diff --git a/site/docs/pages/swap/swap.mdx b/site/docs/pages/swap/swap.mdx index 0a438668fb..19bff63377 100644 --- a/site/docs/pages/swap/swap.mdx +++ b/site/docs/pages/swap/swap.mdx @@ -191,6 +191,15 @@ export default function SwapComponents() { The swap will execute and work out of the box when you implement the component in your own app. ::: +### Supported Swap Routers + +The `Swap` component supports two swap routers: + +- [Uniswap V3](https://app.uniswap.org/) (default) +- [0x Aggregator](https://0x.org/) + +To use the 0x Aggregator, set the `experimental.useAggregator` prop to `true`. + ### Sponsor gas with Paymaster To sponsor swap transactions for your users, toggle the Paymaster using the `isSponsored` prop. diff --git a/site/docs/pages/swap/types.mdx b/site/docs/pages/swap/types.mdx index 66fd5474bc..25e8033195 100644 --- a/site/docs/pages/swap/types.mdx +++ b/site/docs/pages/swap/types.mdx @@ -143,7 +143,13 @@ type SwapReact = { maxSlippage: number; // Maximum acceptable slippage for a swap (e.g., 3 for 3%). This is a percentage, not basis points; }; experimental?: { - useAggregator: boolean; // Whether to use a DEX aggregator. (default: false) + /** + * Whether to use a DEX aggregator. + * true - 0x Aggregator + * false - Uniswap V3 + * @default false + */ + useAggregator: boolean; }; isSponsored?: boolean; // An optional setting to sponsor swaps with a Paymaster. (default: false) onError?: (error: SwapError) => void; // An optional callback function that handles errors within the provider.