Swap Context

The HOT utilizes swapContext to pass HOT Quotes and AMM state updates to the HOT Liquidity Module, full documentation can be viewed in Sovereign Pool Documentation: Swap Context. In an HOT-enabled pool, the presence of non-empty swapContext differentiates between the two types of swaps:

  1. 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.

  2. 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.

Last updated