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. Stake Exchange (stHYPE AMM)
  2. Swap

New Stake (Native Token -> LST)

PreviousInstant Withdrawals (LST -> Native Token)NextLP Positions

Last updated 1 month ago

Was this helpful?

The AMM gives the same rate for new stake as 'minting' from the LST Protocol contracts directly. Routing 'new stake' to STEX AMM Pools is recommended over 'minting' through LST Protocol contracts, for the following:

  1. lower gas cost than 'minting'

  2. lower the pools fees for processing 'instant withdrawals'

Lowering the swap fees for Instant Withdrawals by routing New Stake to STEX AMM can result in significantly better execution for users and protocols who may be swapping large amounts of LST.

If the pool has liquid LST reserves, anyone can swap into the LST for the true rate.

The logical flow is simple with low gas overhead, and recommended for DEX aggregators and integrating protocols.

stHYPE AMM Native Integration

In the case of stHYPE AMM, stHYPE's protocol contracts route new stake into the stHYPE AMM pool before settling queued stHYPE withdrawal or validator deposits.

LPs in stHYPE AMM have their stHYPE reserves converted back to HYPE faster than any other user. Giving LPs priority withdrawals from stHYPE -> HYPE.

This native integration greatly boosts stHYPE AMMs effeciency:

  • stHYPE is sold to the pool for a fee

  • stHYPE is converted back to HYPE as quickly as possible

  • The pool is fully denominated in HYPE that can keep earning trading and lending yield.

stHYPE AMM only needs to trigger delayed withdrawals when there is a lack of net new stake and an excess of instant withdrawals across the entire stHYPE protocol. Reducing the times where LPs are entered into illiquid positions.