Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make use of Connext LP Zapper #1299

Open
peetzweg opened this issue Feb 10, 2023 · 2 comments
Open

Make use of Connext LP Zapper #1299

peetzweg opened this issue Feb 10, 2023 · 2 comments
Assignees
Labels
💄 [UI] All Issues related to `packages/ui`

Comments

@peetzweg
Copy link
Contributor

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

@peetzweg peetzweg added the 💄 [UI] All Issues related to `packages/ui` label Feb 10, 2023
@peetzweg
Copy link
Contributor Author

LP Zapper is basically a use case of cross chain contract calls:

https://docs.li.fi/li.fi-api/xchain-contract-calls

From Ashk from Li.FI

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. :).

@peetzweg peetzweg self-assigned this Feb 13, 2023
@NikMidas NikMidas assigned rhlsthrm and unassigned peetzweg Mar 29, 2023
@NikMidas
Copy link
Collaborator

This is being supeceeded by another item that Rahul and Alex are working on

@NikMidas NikMidas changed the title Make use of Li.Fi LP Zapper Make use of Connext LP Zapper Apr 5, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
💄 [UI] All Issues related to `packages/ui`
Projects
None yet
Development

No branches or pull requests

4 participants
@peetzweg @rhlsthrm @NikMidas and others