Valantis Documentation
Valantis Website
  • Welcome to Valantis
  • Sovereign Pool
    • The Modules
      • Pool Manager
      • Liquidity Module
      • Swap Fee Module
      • Verifier Module
      • Oracle Module
      • Sovereign Vault
        • Rebase token support
      • Gauge
    • Interacting with Pools
      • Swap Parameters
      • Swap Steps
      • Multi Token Support
      • Deposit Liquidity
      • Withdraw Liquidity
      • Flash Loans
  • Hybrid Order Type (HOT)
    • Understanding HOT: A Graphical Overview
    • HOT API
      • HTTP request parameters
      • HTTP request response
      • Reasoning for Request structure
      • Solver Integration
      • Market Maker integration
    • HOT Smart Contracts
      • Interfaces
      • State variables and roles
      • AMM
      • HOT Swap
      • AMM Swap
      • Hybrid Order Type (HOT) struct parameters
      • Alternating Nonce Bitmap
      • Deposits
      • Withdrawals
      • Deployment Assumptions
    • Liquidity Manager Docs
      • Reference Oracle
      • Deposit
      • Withdraw
      • Signature
    • Swap
      • Swap Context
      • AMM Swap
      • HOT Swap
      • HOT Quote Parameters
        • Bitmap Nonce Instructions
    • Solver Docs
      • Solver Request
      • Simple HOT Swap Example
      • Partial Fill HOT Swap Example
    • Risks and Trust Assumptions
      • Roles
        • Sovereign Pool Manager
        • HOT Manager
        • HOT Signer
        • Liquidity Provider
      • Threats
        • Deposit Sandwich
        • Malicious Price Bound
        • Malicious Signer
        • Mispriced HOT Quote
  • Validly
    • Understanding Validly
    • Swap
    • Deposits and Withdrawals
    • Deployments
  • Stake Exchange (stHYPE AMM)
    • Swap
      • Instant Withdrawals (LST -> Native Token)
      • New Stake (Native Token -> LST)
    • LP Positions
      • LP Withdrawals Instant
      • LP Withdrawal Queued
    • Ratio Fee
    • Lending of Reserves
    • Smart contracts
      • STEXAMM.sol
      • StHYPEWithdrawalModule.sol
      • StexRatioSwapFeeModule.sol
      • DepositWrapper.sol
      • AaveLendingModule.sol
    • Risks and Trust Assumptions
    • Integration examples
  • Deploy and Build
  • Resources
    • Audits
    • Links
    • Get HYPE on HyperEVM
Powered by GitBook
On this page

Was this helpful?

  1. Hybrid Order Type (HOT)

Liquidity Manager Docs

PreviousDeployment AssumptionsNextReference Oracle

Last updated 10 months ago

Was this helpful?

The HOT AMM is a Liquidity Module (LM) attached to a Valantis Sovereign Pool. More information about the Sovereign Pool <> LM architecture can be found in the .

A Liquidity Module is the Sovereign Pool module that defines the pricing logic for swaps, as well as control of deposits and withdrawals into the pool.

Each Sovereign Pool has a unique and immutable Liquidity Module attached to it, in this case, it is the HOT AMM Liquidity Module.

The HOT AMM has the following roles:

  1. It holds the business logic for swaps. Although users interact with the Sovereign Pool as the entry point for swaps, the Sovereign Pool internally refers to the HOT AMM for pricing logic, i.e. the amount of input and output token that a user sends and receives, respectively.

  2. LPs deposit and withdraw liquidity through the HOT AMM contract. Although token reserves are stored in the Sovereign Pool itself.

  3. The HOT AMM is a special case of a Liquidity Module that also controls the swap fee logic, hence it also implements the Valantis Swap Fee Module interface. This means Sovereign Pool’s Swap Fee Module address is also set to the HOT AMM address.

Note: An HOT sovereign pool should be constructed so that

LiquidityModule address == SwapFeeModule address == HOT deployment address

or the system may not function as intended.

This section provides a detailed description of the different roles which are relevant to the HOT Liquidity Module, as well as expanding on the most important integration aspects and security assumptions from the perspective of a Liquidity Manager (also known as Market Maker).

Sovereign Pool documentation