Duality is a protocol-native orderbook integrated directly into Neutron’s core infrastructure that merges the strengths of orderbooks and AMMs into a unified, capital-efficient design. Unlike traditional orderbooks implemented as smart contracts, Duality is built at the protocol level, giving it significant performance advantages and deeper integration with other Neutron features.

Key Features

Dynamic Trade Routing & Order Types

Automatically finds the best price and mitigates extractive behaviors like sandwiching. Place limit orders directly on the orderbook or use the Market tab for instant token swaps with optimal execution.

Protocol Integration & Vault Partnerships

As a core protocol module rather than a smart contract, Duality gains performance advantages and serves as the base liquidity layer. Partners like Margined and Astroport enable passive LPs to participate in professional-grade trading strategies.

Technical Architecture

Duality is built directly into Neutron’s core infrastructure as a native protocol module, making it highly capital-efficient and integrated with other Neutron applications. It maintains a full limit orderbook for precise price discovery and execution while supporting diverse order types. Open composability ensures the fully open-source design allows other applications to build on top, enhancing overall ecosystem liquidity.
Explore the module code: For developers interested in the technical implementation, check out the Dex module documentation for a complete code breakdown of the Duality implementation.

Benefits for Users

Professional Market Makers: Advanced order types support better prices at higher frequencies with less risk of adverse selection. Traders: Better prices, less slippage, and protection from predatory trading behaviors like sandwiching and front-running. Passive LPs: Vault providers enable participation in sophisticated strategies without sacrificing convenience, offering professional-grade profitability.

Ecosystem Integration

Duality serves as the base layer for spot liquidity on Neutron, enhancing capital efficiency across the ecosystem:
  • Mars: Efficiently routes liquidations and onramping to positions through Duality to safely offer higher lending deposit caps and borrowing capacity.
  • Astroport: Increases LP rewards by enabling PCL pools to provide liquidity on Duality.
  • Margined: Enables off-chain market-making strategy vaults for Duality markets.
  • Drop: Collaborating with Margined and Supervaults to develop profitable market-making strategy vaults for dAsset markets.
  • Eclipse Fi: Coordinating with Margined to release arbitrage vaults for Duality pairs.

Trading on Duality

Limit Orders

Place buy and sell orders at specific prices, ensuring optimal execution. Duality supports expressive limit order types:

  • Fill-Or-Kill: Only execute if the entire order can be filled
  • Immediate-Or-Cancel: Execute as much as possible below limit price
  • Good-Til-Canceled: Maker order that sits on orderbook until filled or canceled
  • Good-Til-Time: Maker order with an expiration time
  • Just-In-Time: Good-Til-Time limit order that expires after exactly 1 block

Market Swaps

Execute instant token swaps with minimal slippage, making it easy to trade one token for another in just a few clicks.

MultiHopSwaps trade through multiple pairs in a single atomic trade, using on-chain route finding to find optimal trades and avoid front-running.

Get Started with Duality

Trade Now: Start trading NTRN, TIA, ATOM, WBTC, WETH, OSMO, DYDX and other assets on Duality Developer Integration: Learn how to integrate with and build on top of Duality in our developer docs Community: Discuss Duality in the Neutron Community Telegram group