Skip to main content
DLN supports multiple quoting strategies that allow users to control how much is spent on the source chain and how much is received on the destination chain. Each strategy is defined by how the srcChainTokenInAmount and dstChainTokenOutAmount fields are set in the order input.

Quoting Strategies Overview

  • Default and most commonly used strategy.
  • User defines the exact input amount.
  • Protocol determines the best output amount.
✅ Recommended for most standard transfers. Requirements:
  • srcChainTokenInAmount = fixed numeric value
  • dstChainTokenOutAmount = “auto”

Market Order with Full Balance Utilization

  • Spends the full wallet balance.
  • Useful for account abstraction, batch transfers, smart wallets.
Requirements:
  • srcChainTokenInAmount = “max”
  • dstChainTokenOutAmount = “auto”
A hands-on example can be found here.

Reverse Market Order

  • User specifies how much to receive.
  • Protocol calculates how much must be spent.
  • Ideal for payment flows or contract interactions.
Requirements:
  • srcChainTokenInAmount = “auto”
  • dstChainTokenOutAmount = fixed numeric value
An interesting use-case is improving user experience by determining the minimum input token amount dynamically.

  • Defines both input and output amounts.
  • Treated as a limit order.
  • Will only be fulfilled if a solver accepts the exact terms.
Not recommended for production — risk of non-fulfillment.
Requirements:
  • Both values must be fixed.

Example: Order Input Structure


Choosing a Strategy