Configure Route Settings
Configure Bridges, Swap Venues, Smart Swap options for querying Swap routes.
By default, Elements supports all bridges and swap venues supported by Skip API. Check out the following links to get the same
However, if you'd like to restrict either of them, you can use RouteSettingsProvider
component.
Here's an example where we want to allow IBC and AXELAR Bridges and Swaps via Osmosis DEX and Terra Astroport.
Props
bridges
(optional)
bridges
(optional)Accepts an array of bridges. Bridges are defined in the BRIDGES enum.
swapVenues
(optional)
swapVenues
(optional)Accepts an array of swap venues. SwapVenue is an object with a chain_id and name. You can get all possible swap venues from Skip API - https://docs.skip.build/go/api-reference/prod/fungible/get-v2fungiblevenues.
enableSmartSwaps
(optional) - default false
Enables third party routers for swaps. To know more about how Skip API does this, check this out.
Last updated