Aperture Finance
  • Aperture Introduction
    • ๐Ÿค–AI Powered Intents
  • $APTR Token
    • ๐Ÿ“ฌToken Info
    • ๐ŸฅงTokenomics
  • Liquidity Intents
    • ๐ŸฅžLP Tooling & Automation
    • ๐ŸŽ›๏ธSupported AMMs and Networks
    • โš–๏ธRecurring Rebalance Strategy
    • โš–๏ธAutomated Rebalance (One-time Move Range)
    • ๐ŸšชAutomated Position Closure (Prescheduled Positionย Close)
    • ๐Ÿฅ•Auto Compound
    • ๐Ÿ’ฐRevenue Earning Limit Orders
    • ๐ŸŒŠLiquidity Source
    • ๐Ÿ–๏ธDune Dashboard
    • โ”FAQ
  • MaaS (Market maker as a Service)
    • โ›ฉ๏ธIntro
    • ๐ŸฆพHow does MaaS work
  • ApertureSwap (DEX)
    • ๐ŸŒŠApertureSwap on Manta Pacific L2
  • Technical Docs
    • ๐ŸงฎOpen Source Code
    • ๐Ÿ–ฅ๏ธAPI Documentation
  • Transparency
    • ๐Ÿ’ฑFees
    • ๐ŸšœDeployed Contracts
    • ๐Ÿ”Security Audit
  • Community
    • ๐Ÿงžโ€โ™‚๏ธAnalytics
    • ๐Ÿ”—Links
  • Legacy Products
    • ๐Ÿฆ€Crab Market Leveraged Farming (Retired)
      • ๐ŸงฎRebalancer
    • ๐Ÿ‚Bull Market Leveraged Farming (Retired)
    • ๐Ÿš€Terra Classic Delta-Neutral Strategy (Retired)
      • Constant-product AMM
      • Position Open
      • Rebalance & Liquidation Protection
      • Fees & Minimum Investment Size
      • APR: A Day by Day Breakdown
    • ๐Ÿ“”Deployed Contracts
    • ๐Ÿ–ฅ๏ธIntegration Guide
      • Avalanche Pseudo-Delta-Neutral Leveraged Farming
      • Terra Classic Delta-Neutral Strategy (Retired)
  • PAST CAMPAIGN
    • โ˜๏ธINTENTional (Points) Campaign
  • Liquidity Academy
    • Tick, tick width and automation
Powered by GitBook
On this page
  1. Legacy Products
  2. Terra Classic Delta-Neutral Strategy (Retired)

Constant-product AMM

PreviousTerra Classic Delta-Neutral Strategy (Retired)NextPosition Open

Last updated 3 years ago

Terraswap and Astroport are automated market-maker (AMM) protocols implemented with smart contracts on the Terra blockchain. An AMM enables a decentralized on-chain exchange for the various assets involved in Terra ecosystem. For more details regarding these protocols, please refer to:

  • Terraswap documentation: .

  • Astroport documentation: .

The delta-neutral strategy uses constant-product AMMs offered by Terraswap and Astroport, to trade between UST and cw20 tokens, including mAsset, MIR and SPEC in the following situations:

  • mAsset -> UST (Terraswap): When mAsset short position is opened or increased (at delta-neutral position open and reinvestment events), the minted mAsset is swapped for UST by Mirror's smart contract; at rebalance events, moving from a net long state back to the neutral state;

  • UST -> mAsset (Terraswap): At rebalance events, moving from a net short state back to the neutral state;

  • MIR -> UST (Terraswap or Astroport): At reinvestment events, the Aperture delta-neutral smart contract swaps MIR reward for UST via Terraswap or Astroport, whichever provides the better rate;

  • SPEC -> UST (Terraswap, or potentially Astroport in the future): At reinvestment events, the Aperture delta-neutral smart contract swaps SPEC reward for UST via Terraswap; at this time there is no SPEC-UST liquidity pool on Astroport, but the Aperture delta-neutral contract is already implemented to check for such a pool on Astroport. As a result, when the SPEC-UST Astroport pool is created and provides a better rate than Terraswap, SPEC swaps will automatically be routed to Astroport.

To learn about the mechanism of a constant-product AMM, please refer to .

๐Ÿš€
https://docs.terraswap.io
https://docs.astroport.fi/astroport/astroport/astro-pools/constant-product-pools#how-constant-product-pools-work
https://docs.terraswap.io/docs/introduction/mechanism/