πŸ“’
Native Docs
  • 🦎About Native
    • πŸ—ΊοΈRoadmap
    • πŸ“žContact Us
    • πŸ”Security Audit
    • πŸ–ΌοΈBrand Assets
  • πŸŽ‰Campaigns
    • πŸ–ΌοΈOfficial NFTs
  • INTRODUCTION
    • πŸ”€Flexible Market Making
      • Pricing Models
        • On-chain Pricing
          • Constant Sum
          • Uniswap V2
        • Off-chain Pricing
          • Fixed Price
          • RFQ - Private Market Maker
    • πŸŽ’Self Custody
      • Externally Owned Account (EOA)
      • Hardware Wallet
      • Multi-signature Wallet
    • πŸ’ΉProject Owned DEX
  • GETTING STARTED
    • πŸš€Product Overview
    • πŸŽ“Tutorial
      • Accessing Native Portal
      • Creating A Private Pool
      • Adding Allowance
      • Creating A Public LP Pool
      • Adding LP Rewards
      • Getting Started with the Swap Widget
      • Changing Swap Widget Settings
    • πŸ™‹β€β™‚οΈFAQ
  • DEVLOPERS
    • 🧩Native V1
    • πŸ“±Widget
Powered by GitBook
On this page
  1. INTRODUCTION
  2. Flexible Market Making
  3. Pricing Models
  4. On-chain Pricing

Constant Sum

PreviousOn-chain PricingNextUniswap V2

Last updated 2 years ago

A constant sum pricing model is a straightforward implementation satisfies the equation:

Where R_i are the reserves of each asset and k is a constant. While this function produces β€œzero slippage”, it does not provide infinite liquidity and thus is likely unfit as a standalone implementation for a decentralized exchange use-case. In practice, what would happen is that any arbitrageur would always drain one of the reserves if the reference relative price of the reserve tokens is not one.

Constant Sum

A constant sum function forms a straight line when plotting two assets.

πŸ”€