Giter Club home page Giter Club logo

augmented-bonding-curve's Introduction

Augmented Bonding Curve

Disclaimer: This is an open source app. None of the people or institutions involved in its development may be held accountable for how it is used. If you do use it please make sure you comply to the jurisdictions you may be jubjected to.

How does it work

This module provides market liquidity to the fundraising campaign by automatically matching all the buy and sell orders according to a bonding curve tied to the Bancor formula.

Initialization

Augmented Bonding Curve is initialized with:

  • _tokenManager The address of the token manager contract
  • _formula The address of the BancorFormula computation contract
  • _reserve The address of the reserve pool contract
  • _beneficiary The address of the common pool contract (to whom fees are to be sent)
  • _buyFeePct The entry tribute to be deducted from buy orders (in PCT_BASE)
  • _sellFeePct The exit tribute to be deducted from sell orders (in PCT_BASE)

Roles

The augmented bonding curve app implements the following roles:

  • MAKE_BUY_ORDER_ROLE: Necessary to convert collateral tokens into bonded tokens.
  • MAKE_SELL_ORDER_ROLE: Necessary to convert bonded tokens into collateral tokens.
  • MANAGE_COLLATERAL_TOKEN_ROLE: Used to manage more than one collateral (many bonding curves can be managed with just one instance of the app).
  • UPDATE_FORMULA_ROLE: Used in case we need to update the bonding curve formula.
  • UPDATE_BENEFICIARY_ROLE: Used in case we need to update the funding pool address.
  • UPDATE_FEES_ROLE: Used to change entry and exit fees/tributes.

The augmented bonding curve app should have the following roles:

  • MINT_ROLE and BURN_ROLE: It should be able to create and destroy tokens from Token Manager.
  • TRANSFER_ROLE: It should be able to transfer funds from the reserve pool.

Interface

Tokens can be converted using the convert frontend.

Contributing

We welcome community contributions!

Please check out our open Issues to get started.

If you discover something that could potentially impact security, please notify us immediately. The quickest way to reach us is via the #dev channel in our Discord chat. Just say hi and that you discovered a potential security vulnerability and we'll DM you to discuss details.

augmented-bonding-curve's People

Contributors

sembrestels avatar willjgriff avatar pjcolombo avatar bradleyc avatar 0xgabi avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.