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

Surplus Collateral

Ambient provides the ability for users to directly deposit tokens in the DEX contract in the form of surplus collateral. Unlike collateral provided to support LP positions, surplus collateral sits idle and is not tied to any specific liquidity pool. At this point surplus collateral provides no yield, and will stay stable at its deposited amount without any rebalancing or loss.

Surplus collateral can be thought of as a form of light-weight working capital, that's significantly more flexible and efficient than the traditional model of holding tokens outside the DEX. In instant settlement mode, a Ambient swap, mint or burn operation will directly pay or collect tokens from the user's wallet.

Surplus collateral allows for debits or credits to be paid to the user's balance held inside the DEX contract. This avoids any token transfer associated with the swap, mint or burn, and instead involves a simple update of a single counter inside the DEX contract. An active trader can consolidate what would otherwise be a large number of token transfers across many trades, into a single net settlement at their convenience.

PreviousGovernance & PolicyNextPermissioned Pools

Last updated 1 year ago