This is currently a bit hidden. You have to set the sdkConfig in the widget configuration: https://docs.li.fi/integrate-li.fi-widget/widget-api-reference
It allows you to set defaultRouteOptions https://docs.li.fi/integrate-li.fi-js-sdk/set-up-the-sdk
Part of the defaultRouteOptions is the slippage: https://docs.li.fi/integrate-li.fi-js-sdk/request-a-route/set-route-options
Example configuration:
const widgetConfig: WidgetConfig = {
integrator: 'Ten Finance',
containerStyle: {
border: '1px solid rgb(234, 234, 234)',
borderRadius: '16px',
},
fromChain: 56,
toChain: 137,
variant: 'expandable',
sdkConfig: { //sdkConfig Not working above configs works
defaultRouteOptions: {
slippage: 0.02,
order: 'SAFEST',
}
},
};