/token-liquidity

koa web app providing liquidity for the PSF token

Primary LanguageJavaScriptMIT LicenseMIT

token-liquidity

This is an application for providing token liquidity, inspired by the pricing algorithm in the Bancor Whitepaper. While Bancor uses ERC20 tokens, this application focuses on the Simple Leger Protocol for creating tokens on the BCH network.

The idea is simple: This program has its own BCH public address. If you send BCH to the address, the program will send you tokens. If you send tokens to that address, the program will send you BCH. The app functions as an automated market-maker, providing perfect liquidity for the token. The exchange rate is determined by the price formula.

The price formula used in this program was inspired by the Bancor whitepaper, but those equations were ultimately thrown out and similar equations created. Experiments are preserved here in the spreadsheet, and a whitepaper will be created to explain the new equations in detail. Skip to the log-price-test sheet to see the final curve and breakdown that I settled on.

js-standard-style

Build Status

Coverage Status

semantic-release

IPFS

v2.3.0 uploaded to IPFS:

  • Get it: ipfs get QmUz4b2KwNLNvHZRTYcgrPCuKAhMB73XWN8vY8LLVVEYV1
  • Pin it: ipfs pin add -r QmUz4b2KwNLNvHZRTYcgrPCuKAhMB73XWN8vY8LLVVEYV1

License

MIT