Godex Wzap
Before Godex Wzap
In order to exit a liquidity position and enter a new one, a user must make a minimum of 4 transactions. Below is an example of going from a LP position in Uniswap V2 to another one. For this example, the pools will be WETH/DAI and USDC/UNI
Remove liquidity from WETH/DAI
Swap WETH for UNI
Swap DAI for USDC
Deposit liquidity into USDC/UNI pool
During these transactions, the market may move, or slippage may occur, resulting in less than a 50/50 split of assets.
After Godex Wzap
Godex simplifies the process of moving from an LP to another LP, but doing it perfectly and in a single, atomic transaction.
Supported Pools
Godex Wzapping supports Uniswap V2 and Solidly style pools, along with minting and burning of Curve LP tokens for StableSwap pools within the core Godex SOR.
Optimal Rebalancing
Godex strives to distribute your input evenly across a pool’s 50/50 ratio requirement. However, price fluctuations during the transaction can create an imbalance, resulting in a surplus that the pool won’t accept and could be lost. To avoid this, Godex Wzap employ two protective measures:
For standard Uniswap V2 pools: It calculates the exact swap amount to align your contribution with the current pool reserves, optimizing the use of your funds.
For non-standard pools: It can return any surplus tokens to your wallet, ensuring you’re only contributing what’s needed for LP tokens.
Since both options will have a small additional fixed gas cost, they will only be performed if the quantity of wasted assets is above a specified threshold.
Multi-input Zaps
With Godex Wzapping, users can adjust their investments across several liquidity pools or specific tokens in just one step. This tool is particularly handy for streamlining the process of selling off or reorganizing a set of LP tokens. You can go from many LP positions into a single position or into a combination of tokens.
A summary of what is possible with Godex Zaps:
Any number of tokens to a single LP
Any number of LPs to a single LP
Any number of LPs and tokens to a single LP
Any number of LPs and tokens to any number of tokens
Usage
Godex Wzap are accessible through the API and utilize the same smart contract router as the core SOR service. This commonality eliminates the requirement for additional approvals, minimizing security risks. Existing Godex SOR users can conveniently use Godex Wzap to manage their entry into and exit from liquidity positions with ease.
Fees
When using Godex Wzap, the swapMulti
function on the router is always employed, incurring a fee of 0.01%. It’s important to note that no additional fees are collected from positive slippage when swapMulti
is used.
Last updated