bigdelys / customswap-dash

A hello world app in Flask for deploying to Heroku.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Customswap Simulation Dashboard

Customswap is a new decentralized finance (Defi) automated market-maker (AMM) algorithm introduced by Boot Finance (blog post, Litepaper).

This repository contains:

  • An implementation of Customswap in Python
  • An online interactive dashboard displaying the results of a trading simulation using Customswap. The user can change Customswap parameters and see the plots update in real-time:

https://customswap.herokuapp.com/

A live demo of the dashboard is available here. Here is how the simulation work:

  1. The simulation starts by creating an AMM pool containing 50,000 USDC and 50,000 Boot tokens.
  2. It then conducts 10 buy trades and 10 sell trades starting from this pool. The trades change the ratio of tokens in the pool and hence change the price of Boot tokens,
  3. Boot token price is plotted against the ratio of tokens in the pool in a log-log plot.
  4. The steps above are repeated for AMM pools using Customswap, Stableswap and Uniswap algorithms.

Heroku Deployment

About

A hello world app in Flask for deploying to Heroku.


Languages

Language:Python 80.5%Language:Jupyter Notebook 19.5%Language:Procfile 0.0%