Zapping on the Algofi DEX.
Zapping is a convenience function that enables 1-click access to liquidity pool tokens.
In the example below, the user is zapping 1 ALGO in .464327 ALGO-STBL LP tokens.
Example Zap
This transaction possible because of composability. Zap generates a group transaction to first swap ALGO into STBL and to then pool ALGO+STBL.
Note that the quote output is in LP tokens. Moreover, note that slippage tolerance is still a parameter. This will be passed to both the swap and pool transactions. Also, note that the fee tier of the pool is automatically specified according to expected token volatility.
Copy link