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

Feat/lp zapping #1596

Open
wants to merge 61 commits into
base: develop
Choose a base branch
from
Open

Feat/lp zapping #1596

wants to merge 61 commits into from

Conversation

karczuRF
Copy link
Contributor

@karczuRF karczuRF commented Nov 23, 2022

Summary

Fixes #491

Beta version of LP-Zapping feature!

LP-Zapping allows to swap any erc-20 token (but native currency is also supported!) for 2 different tokens and add liquidity to the pool with just 1-click!
It works also in another direction, so allows to remove liquidity from the pool and swap pool's tokens to any different token, ofc also with 1-click.

image

Important node
Since this is quite complex feature there still can be bugs which I couldn't find, so keep in mind this is still Beta version!
Designs still needs to be created (eg zap details, slippage etc) and will be added as soon as we have them.
The latest version of zap contract can be found here: https://github.com/ImpeccableHQ/swapr-lp-zapping/blob/main/contracts/Zap.sol

Test Zap contract was deployed on Gnosis only, so for any other network zap is not yet available!
Contract details can be found here: https://blockscout.com/xdai/mainnet/address/0x618471C54443586E97FD81cDc357DCB9a1db8f87

To Test

  1. Open Swapr
  2. Go to Zap page. This can be done with different ways:
  • simply go to Zap tab
  • use Liquidity tab and '+ZAP'
  • use Liquidity tab, select any Pair and if this pair is supported for Zap, the button Zap will be active
  1. Select token / pair for zapping
  2. Check approval flow
  3. Check if transactions passed/failed
  4. Check button/popup texts and colors
  5. Check account's details if zap tx is listed
  6. Play around and have fun!

@github-actions github-actions bot temporarily deployed to feat-lp-zapping December 13, 2022 11:31 Destroyed
@github-actions github-actions bot temporarily deployed to feat-lp-zapping December 13, 2022 15:40 Destroyed
@github-actions github-actions bot temporarily deployed to feat-lp-zapping December 14, 2022 12:06 Destroyed
@github-actions github-actions bot temporarily deployed to feat-lp-zapping December 14, 2022 12:41 Destroyed
@github-actions github-actions bot temporarily deployed to feat-lp-zapping December 14, 2022 13:47 Destroyed
@github-actions github-actions bot temporarily deployed to feat-lp-zapping December 14, 2022 14:34 Destroyed
@github-actions github-actions bot temporarily deployed to feat-lp-zapping December 15, 2022 11:13 Destroyed
@github-actions github-actions bot temporarily deployed to feat-lp-zapping December 16, 2022 09:43 Destroyed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

One click ZAP
3 participants