Skip to main content

Route and Calldata

Slippage is an important concept in trading that can have a significant impact on your trading outcomes. It refers to the difference between the expected price of a trade and the actual price at which the trade is executed. Slippage can occur in various market conditions and for several reasons, and it’s crucial for traders to be aware of its potential effects.Fibrous uses slippage settings to prevent you from losing money; there is no need to increase your slippage when you spot an arbitrage opportunity.Fibrous is still in alpha version. Please make sure you have adjusted your slippage properly.

Usage on EVM Networks (Base, Citrea, HyperEVM, Monad)

Here’s how to execute a swap on EVM-compatible networks like Base, Citrea, HyperEVM and Monad:

Usage on Starknet

For Starknet, the process is slightly different due to its unique architecture:

Important Notes

  1. Always handle errors appropriately in production code
  2. Set a reasonable slippage value based on your trading strategy
  3. Make sure to have sufficient balance and approved tokens before executing swaps
  4. Monitor transaction status and implement proper error handling
  5. Consider implementing retry mechanisms for failed transactions
  6. Keep private keys secure and never expose them in your code