Swap Context
Last updated
Was this helpful?
Last updated
Was this helpful?
The HOT utilizes swapContext
to pass HOT Quotes and AMM state updates to the HOT Liquidity Module, full documentation can be viewed in . In an HOT-enabled pool, the presence of non-empty swapContext
differentiates between the two types of swaps:
AMM Swaps: Permissionless swaps for all users, happening against a single concentrated liquidity position, according to a UniswapV3 like constant-product AMM (CPAMM) logic. Includes empty swapContext
.
Hot Swaps: Permissioned swaps that are only available to the solver with a valid HOT Quote that includes an EIP-712 signature from the HOT Signer. Includes non-empty swapContext
.
We will now discuss how to set the swapContext
correctly for each of these swap types.