Amount to be used in zap.
The asset that will be used in zap.
Liquidity Addition object that will be executed during the zap.
All amounts used in swap and add liquidity transactions.
The pool the zap is going to be performed in.
The maximum amount of slippage allowed in performing the swap.
The swap object that will be executed during the zap.
Creates the transactions needed to perform zap and returns them as a transaction group ready to be signed and committed.
The account that will be performing the zap.
A transaction group that when executed will perform the zap.
Generated using TypeDoc
Zap class represents a zap trade on a particular pool, which allows to exchange single asset for PLP token.
Zap performs a swap to get second asset from the pool and then adds liquidity using both of those assets. Users may be left with some leftovers due to rounding and slippage settings.
Zaps are meant only for Constant Product pools; For Stableswaps, adding only one asset works out of the box.
Typically, users don't have to manually instantiate this class. Use Pool.prepareZap instead.