Collection.xyz Documentation
Collection.xyz
  • What is Collection.xyz?
  • Collection Concepts
    • Liquidity Pool
      • Advanced Pool
      • Basic Pool
    • Bonding Curve and Delta
    • Fee
    • Buy / Sell
    • APR
    • The Collection Whitepaper
    • Collection 1.00: Patch Notes
  • User Guides
    • Create a Trade Pool
    • Create a Buy Pool
    • Create a Sell Pool
    • Buy & Sell NFTs instantly
    • LP Strategy Guide
  • Technical Reference
    • NFT AMM
      • What Is A CollectionPool?
      • Differences Between Individual And Communal Liquidity Pool Model
      • How do I determine if a pool has sufficient liquidity to fulfil an order?
    • Fee Structure
      • Overview of the Fee Structure in NFT AMMs
      • Calculation and Collection of Fees
    • Royalties
      • How are royalties implemented?
      • Relation between Royalties and Fees in the AMMs
      • All Possible Royalty Scenarios
    • Airdrop Compatibility
      • Can Collection.xyz handle airdrops?
    • Pool Types
      • Definition of Pool Types In NFT AMMs
      • Comparison of Different Pool Types
    • Bonding Curves
      • Parameters of the bonding curves
      • Type of bonding curves
        • Linear Curve
        • Exponential Curve
        • Sigmoid Curve
      • How are the parameters used in each of the bonding curves?
      • Customizable spread curves
    • Github Repos & Addresses
    • Audit Reports
    • Technical User Flows
      • Technical Architecture
      • Create Pool
      • Swapping and Trading: User Buying NFT
      • Swapping and Trading: User Selling NFT
      • Bonding Curves and Pricing
Powered by GitBook
LogoLogo

Collection.xyz

  • Main Website
  • NFT DEX Testnet

Connect with us

  • Discord
  • Twitter
  • Blog

© 2023 Collection. All rights reserved

On this page
  1. Technical Reference
  2. Bonding Curves
  3. Type of bonding curves

Sigmoid Curve

Coming Soon on Collection.xyz

PreviousExponential CurveNextHow are the parameters used in each of the bonding curves?

Last updated 2 years ago

A Sigmoid function is a S-shaped function P(deltaN) that returns a value between minimum price P_min and maximum price P_max, with the midpoint of the two being the centre of the curve. A traditional sigmoid curve looks like the above. A sigmoid curve is most useful when we want to ensure liquidity is concentrated between two price levels, with delta being the slope of the curve as the midpoint (how fast it approaches the price floor or ceiling, a low delta value approaches P_min and P_max slowly, a high delta value quickly converges to P_min and P_max).

We’ve adapted the sigmoid function, which is given as P(deltaN) = P_min + (P_max - P_min) / (1 + 2 ** (k * deltaN)).While a traditional sigmoid uses e as the exponent base, this is equivalent to modifying the value of k so a value of 2 is used for convenience. delta here represents k * 2**10 as a uint128

As this curve requires a degree of memory of statefulness of where we are in the curve (it is meaningless if we assign the slope at the centre at every buy or sell order, that would not lead to a S-shaped curve), we use the state parameter to record how far we are from the original centre.

Sigmoid Curve