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
  • Getting Started
  • About Hybrid Order Type (HOT)
  • AMM Stale-Quote Fee
  • What's covered in these Hybrid Order Type (HOT) Docs?

Was this helpful?

Hybrid Order Type (HOT)

PreviousFlash LoansNextUnderstanding HOT: A Graphical Overview

Last updated 11 months ago

Was this helpful?

Getting Started


About Hybrid Order Type (HOT)

Hybrid Order Type (HOT) is a special type of execution for a Valantis pool.

HOT-enabled pools have two swap execution modes:

  • A permissionless AMM, closely mimicking a single concentrated liquidity position as implemented in UniV3. This AMM is endowed with a dynamic swap fee mechanism (to be described below) and offers native support for rebase tokens (such as stETH and aTokens).

  • Hybrid Order Type (HOT) Quotes. Solvers obtain an HOT Quote from the pool’s Liquidity Manager via an , as a signed intent. These quotes include a volume and price the Solver can directly fill from the pool before expiry. The HOT Quotes also contain an update to the AMM state: spot price and fee parameters are reset after processing the HOT swap.

A Liquidity Manager Protocol exposes an API to market-make directly to Solvers. The Liquidity Manager can include AMM spot price and volatility-dependent swap fee updates inside these quotes.

AMM Stale-Quote Fee

A time-based dynamic fee ensures that AMM swaps receive a minimum fee following a spot price update. The pool is protected against arbitrage opened up by the spot price becoming stale. The AMM fee increases at a rate defined by the Liquidity Manager, corresponding to the pairs current expected volatility.

Benefits

  • Solvers integrate with a deterministic source of liquidity (no slippage), providing competitive pricing net gas. This source of liquidity offers a fixed price and partially fillable order for a reasonable amount of time.

  • LPs receive extra non-toxic volume from filling Solvers directly, which otherwise might have not been accessible to them.

  • Any actor can execute low-gas AMM swaps at a minimum fee if the signed HOT quote quickly lands onchain. This is because, upon a HOT swap being quickly executed onchain, the AMM's spot price will reset to the most accurate and recently observed value (as observed off-chain by the Liquidity Manager), and the swap fee parameter will be reset to its minimum possible value.

  • LPs can maximize their non-toxic volume while reducing exposure to Top-of-Block arbitrage.

  • Solvers can submit more than one HOT quote per block without worrying about reverted transactions, except on rare edge cases where the wrong input data is signed or the proposed price is significantly different from a reference onchain Oracle.


What's covered in these Hybrid Order Type (HOT) Docs?

The following documentation covers the HOT smart contract architecture, which acts as both a Liquidity Module and a Swap Fee Module, plugged into a Valantis Sovereign Pool. Moreover, we also describe the API which connects Liquidity Managers and Solvers for the broadcasting of HOT Quotes as intents.

Construct a Swap

Communicate using The Valantis API For Solvers

API

Deposit & Withdraw Liquidity for liquidity managers Learn how to build a periphery contract to tokenize users' liquidity positions.

Standard AMM swaps, for normal users. For solvers looking for deterministic prices.

For Liquidity Managers

Deposit Liquidity >
Withdraw Liquidity >
Implement a Signer>
AMM Swaps Docs >
HOT Swap Docs >
Docs for HOT Quote Parameters >
Request an HOT Quote >
Explore an example workflow: Solvers Requesting a Quote >
Return an HOT Quote >