defaultBridgeSlippagefor route can be set b/w 0% - 100% & passed in /quote . This slippage value also needs to be passed in /build-tx or /build-next-tx when building the transaction data.
- If a bridge doesn't support slippage,
bridgeSlippagevalue is returned as 0 in the quote response and users may receive an amount less than expected from slippage.
- If a bridge supports slippage & the receiving amount is less than expected from slippage, the destination tx doesn't go.
- In this case, users need to redeem their funds via fallback mechanisms. This varies from bridge to bridge. Find these fallback mechanisms here
- Socket also supports same chain swaps in addition to cross chain swaps
toChainIdin the quote needs to set to the same chain
isOnlySwapRouteparameter in a route is set to true for same chain swaps