Ambient Docs
  • Introduction to Ambient
  • Concepts
    • AMMs
    • Concentrated Liquidity
    • Knockout Liquidity
    • Governance & Policy
    • Surplus Collateral
    • Permissioned Pools
    • Account Abstraction
  • Users
    • Swaps
    • LP Positions
    • Surplus Collateral
    • Dynamic Fees
    • Knockout Positions
    • Initializing Pools
    • Gasless Transactions
    • External Routers
  • Governance & Policy
    • Ops & Treasury Multisigs
    • Policy
    • Upgrading Code
    • Emergency
  • Developers
    • Deployed Contracts
    • Token Transfers
    • Type Conventions
    • DEX Contract Interface
      • userCmd Callpaths
      • Swaps
        • Hot Path Swap Migration
          • Directly Calling CrocSwapDex
          • External Swap Router
      • Flat LP Calls
      • Long Form Orders
      • Knockout LP Calls
      • Pool Initialization
      • Surplus Collateral
      • Router Calls
      • Relayer Calls
    • Query Contracts
      • CrocQuery Contract
      • CrocImpact Contract
    • Logs and Queries
    • Libraries and APIs
      • SDK
      • Indexer API
      • Subgraph
Powered by GitBook
On this page
  1. Users

Surplus Collateral

Users can directly deposit a static balance of tokens at the DEX contract. Surplus collateral can be used as a form of lightweight working capital with lower overhead and transaction costs than dealing with ERC20 token transfers on every swap, mint and burn operation.

Surplus collateral can either be directly deposited by a user by sending tokens directly to the DEX contract. Or it can be received as the output of a swap, burn or harvest operation. Surplus collateral can either be directly withdrawn, in which case the user receives the underlying tokens back to their wallet. Or it can be paid as the input into a swap or mint operation.

Surplus collateral can also be directly transferred between users.

PreviousLP PositionsNextDynamic Fees

Last updated 1 year ago