Default User Settings
Default slippage: slippage
The default slippage must be selected from the slippage options, which are 0.5%
, 1%
, 1.5%
or 3%
.
Infinite Approval setting: infiniteApproval
When the user swaps tokens with the widget for the first time, they have to grant Squid permission to route the tokens on their behalf.
By enabling the Infinite Approval setting by default, you authorize Squid to route an unlimited amount of them. In some instances, unchecking the Infinite Approval option can improve the userβs security since it limits the amount that is approved by Squid's Router contract.
Instant execution setting: instantExec
Instant execution is a feature coming in early 2023 that makes any transaction up to only 10 seconds long. A small fee is associated with this setting.
Price impact warning trigger points: priceImpactWarnings
The user will receive a warning in the UI if the price impact percentage is over the warning
value, and will be unable to swap if the price impact is over the critical
value.
We recommend keeping these as default.
Last updated