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
  • Benefits of the Spread Inflator Curve
  • How the Spread Inflator Curve works
  1. Technical Reference
  2. Bonding Curves

Customizable spread curves

PreviousHow are the parameters used in each of the bonding curves?NextGithub Repos & Addresses

Last updated 1 year ago

The Spread Inflator Curve is an innovative bonding curve implementation designed to give users full control over the bid-ask spread, allowing liquidity providers to capture more value from buy and sell transactions. This is particularly useful for NFT projects with deep liquidity provision, as it enables a more attractive return on investment. By default, the spread inflator is percent-based, and a round trip trade will yield a 2% return on the trade price.

The Spread Inflator Curve allows for the capturing of a positive bid-ask spread by ensuring that the t0-ask minus the t-1 bid (without any fees) is always greater than zero. It enables the capturing of the bid-ask spread through either a percentage inflator or a flat amount inflator, giving pool creators more control over the bid-ask spread and its effect on liquidity provision.

The flat amount inflator is likely to be more intuitive for most users. For example, with a flat amount of X, every buy-sell trade pair will increase the collateral by X.

The Spread Inflator Curve is particularly useful for pools with low APRs and deep liquidity provision range. By utilizing the spread inflator, pool creators can achieve APRs that are multiples of the base value.

Benefits of the Spread Inflator Curve

  1. Customizable bid-ask spread: The spread inflator curve allows you to set an additional spread between the buying and selling price for each pool, enabling liquidity providers to control the compensation they get from the trade through the spread they get from each trade.

  2. Flexible spread settings: You can customize the spread inflator using either a flat amount or a percentage, giving you full control over the spread

  3. Increased returns: With the spread inflator curve, liquidity providers can potentially achieve higher returns, making it more appealing for NFT projects looking to incentivize their community to provide liquidity.

  4. Adaptable for various NFT projects: The spread inflator curve can be customized to each NFT project, allowing project creators to maximize their returns and provide more value to their communities.

How the Spread Inflator Curve works

The Spread Inflator Curve uses two additional parameters, a boolean bidAskInflatorIsFlatAmount and a uint248 inflator. These parameters can be set during pool creation or edited later, giving you full control over the spread inflation.

The bidAskInflatorIsFlatAmount parameter is a boolean that determines whether the inflator is flat amount or percent-based. The inflator parameter is a uint248 that specifies the amount or percentage of the spread inflation.

The spread captured is separate from the fees and will be contributed back to the pool's collateral. This allows the spread captured during the trade to be auto-compounded into the pool. This is opposed to fees which are accounted for separately and is not auto-compounded back into the pool.

The linear and exponential spread inflator curves have been deployed at the following addresses:

  • LinearCurveWithSpreadInflator:

  • ExponentialCurveWithSpreadInflator:

0x44e5c01baff15059254bf4b797fcfaed70d84942
0x82f518ef627a992a7b38678b1358cd94cec35bb0