LI.FI home pagelight logodark logo
  • Playground
  • Support
  • Get Started
  • Get Started
Home
Introduction
API Reference
SDK
Widget
Guides and FAQs
Changelog
Fees and Monetization
  • FAQs
Errors and Troubleshooting
  • Common issues
Integration Tips
  • API latency and optimization
  • Slippage and price impact
  • FAQs
Routing and Transaction Flow
  • Route availability
  • Token support and availability
Integration Tips

Slippage and price impact

Why is the toAmount lower than expected based on the slippage value?

toAmount is the estimated post-swap amount. toAmountMin is the minimum amount based on your slippage setting.

A lower toAmount can result from price impact or market fluctuations.

To filter out routes with high price impact, use the maxPriceImpact parameter.

What’s the difference between slippage and price impact?

  • Slippage: Difference between toAmount and toAmountMin
  • Price impact: Difference between the original quote and toAmount

Does increasing slippage protect against exchange rate changes?

No. Increasing slippage tolerance does not prevent rate changes. It only widens the acceptable range before failing the transaction.

What slippage tolerance should I use for stablecoins or major tokens?

Use 0.5%. Slippage is typically minimal unless the trade size is very small or very large.

What is the best slippage value for cross-chain swaps?

It depends on the token, chain, and amount. There is no universal value.

To reduce failures:

  • Execute the quote immediately
  • For Solana same-chain swaps, omit the slippage parameter to let LI.FI auto-calculate

How does LI.FI calculate price impact, and is there a minimum amount for filtering?

LI.FI calculates price impact using the difference in USD value between input and output tokens.

Price impact filtering does not apply to trades under $10.

How can I avoid slippage errors?

  • Execute the quote immediately
  • Refresh the quote if delayed
  • Increase the allowed slippage in your API request
API latency and optimizationFAQs
LI.FI home pagelight logodark logo
xgithubwebsite

Company

CareersBrand AssetsAbout

Tools

LI.FI Explorer

Legal

Privacy PolicyTerms of ServiceImprint
xgithubwebsite
Powered by Mintlify
Assistant
Responses are generated using AI and may contain mistakes.