paraswap-dex-lib icon indicating copy to clipboard operation
paraswap-dex-lib copied to clipboard

Feature: VirtuSwap integration

Open AlexanderPokhilenko opened this issue 9 months ago • 0 comments

This PR adds support for a new DEX: VirtuSwap.

VirtuSwap VirtuSwap mitigates the problem of high trading costs in pairs for which liquidity pools are small or inexistent. VirtuSwap solution relies on virtual liquidity pools, trades on which are executed by creating limited (in size and time) reserves of tokens that are not native to a pool. This novel pool architecture allows each pool to serve multiple trading pairs, increasing the returns to liquidity provision, and solving the problem of triangular trading costs. A more detailed description is available in the whitepaper: https://virtuswap.io/docs/whitepaper.pdf

Deployment Addresses VirtuSwap DEX contracts deployed on Polygon and Arbitrum, addresses can be found here: https://docs.virtuswap.io/virtuswap-documentation/technical-reference/deployment-addresses

Contract Code and Documentation The contract code can be found in this repository: https://github.com/Virtuswap/v1-core The documentation can be found on GitBook: https://docs.virtuswap.io/virtuswap-documentation

Integration Since VirtuSwap is not a fork of another protocol, we had to develop our own adapter to support virtual pools: VirtuSwapAdapter.sol. This contract implements both interfaces: IAdapter and IBuyAdapter, and contains swapOnVirtuSwap and buyOnVirtuSwap functions for easier integration.

AlexanderPokhilenko avatar May 13 '24 10:05 AlexanderPokhilenko