Technical FAQ
Questions frequently asked by developers
- Can I simulate a call with the calldata returned from https://li.quest/v1/quote/contractCall e.g. in Tenderly? Should I suppose to use the Executor contract & where to get the exact parameters for swapAndExecute or swapAndCompleteBridgeTokens ?
- Is there way to play (integrate) with swap widget on testnets (eg. Polygon Mumbai) ?
- Is the difference between toAmount and toAmountMin purely based on the slippage and if this is the case which is the default slippage when calling /quote route?
- How can I find get approve tx data and check for allowance?
- Do I have to always approve both the Executor and the Diamond in order to make a swap or will approve to the Diamond only will suffice?
- Can you share some insight on the fees structure of using LI.FI for a DApp?
- Who pays for gas cost on the source and destination chains?
- How to call the LI.FI contract from another contract?
- Can I use the current SDK in a react native app?
- We want to decode the callData returned by LI.FI SDK/API to assert or verify that the parameters like toAddress, etc., are correct.
- Where can I view the facets deployment addresses?
- How does LI.FI handle max approvals/allowances?
- Is it possible to add the LI.FI widget to Wordpress?
- Is sending transaction is only available through SDK or can this be done via API?
- How does slippage and toMinAmount works in routes with several steps?
- Does anyone have a schema for the getRoutes API/SDK request?
- Is the repository where custom implementations are added public?
- Are cross-chain swaps atomic?
- What's the best way of unsubscribing from the execution update callback? How do we know when the route has finished executing?
- Are you going to support test networks in production API as well?
- What is the LI.FI API rate limit?
- Would it be possible to get token price in EUR as well?
- Would it be possible to add a query param to fetch only specific tokens by addresses?
- I want to run the LI.FI web repo - what should I do?
- How can I test the widget while directly modifying it?
- When modifying the wallet-management package, do I have to link that to the widget package and the link the widget package to the example package Im using to test?
- How many validators/nodes does LI.FI have?
- Is it possible to use the widget with react-native?
- Are cross-chain contract calls supported between Arbitrum and Optimism network?
- Can we use testnets in widget?