You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
On the frontend, you just need a UI to select chain and tokens. And for each asset the user is trying to deposit you need to be able to generate callData to perform all the bridging/swapping.
For example, you wanna deposit into the Jarvis jFIAT pool and you need jSEK token. You'll have to swap to this token using LI.FI and then call the deposit function on your smart contract.
You're gonna have to let the user specify how much of jSEK they want to deposit. The toAmount. Say 100jSEK, you're gonna have to generate callData for your deposit function using this amount and pass this along with the fromToken and fromChain to our API.
You'll get a response and you'll just have to trigger the transaction from the user wallet. :).
No official docs yet available for the lp zapper but should show up here:
https://docs.li.fi/integrate-li.fi-js-sdk/li.fi-sdk-interface
The text was updated successfully, but these errors were encountered: