Auto Slippage #16
Reference in New Issue
Block a user
No description provided.
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
If the user sets slippage to "Auto", we can query swapAmounts() without a limit price to see what the unlimited slippage would be for the current input size. We can then increase that number with a little buffer, alert the user if the slippage is very high (above 1-2%), and cap the slippage at no more than 2% in all cases, even under Auto.
For the buffer we need to add to the reported current slippage, let's add 20% to the reported slippage, and make the minimum Auto slippage be not less than the swap fee. For example, if the swap fee is 0.20% we would also have a minimum Auto slippage of 0.2%