Git Product home page Git Product logo

alley-oop's Introduction

alley-oop

Minimum Automated Market Maker(AMM) on Flow Blockchain

A quick summary

Alley-oop is a decentralised exchange which allows you to swap tokens based on the price calculated by smartcontract without counter party.

Flow playground

How to run the demo on the Flow playground

  • Deploy FlowToken as the first(0x01) account
  • Deploy BaloonToken as the second(0x02) account
  • Deploy Dex as the third(0x03) account
  • Run Transaction1.cdc with all accounts
  • Run Transaction2.cdc with all accounts
  • Run Transaction2.cdc with the first account(0x01)
  • Run Script1.cdc to run report

How to run locally

Initialisation

go mod init alley-oop

Start up server

Run each command in the different tab

flow emulator start -v
yarn dev-wallet
go run run.go
yarn start

After the frontend server is up, open the browser at https://localhost:3000

Current limitation and potential future addtion

Limitations

  • For the demo purpose, both tokens allow anyone to mint token which needs to be removed for production use.
  • The front-end chart is the fork of Minimum viable exchange tutorial post by Austin Griffith. The curve was mostly there for educational purpose and should be taken out for production use.
  • At source code level, Basketball token are named Baloon token following the example of the Minimum viable exchange

Future additions

  • Ability for anyone to add a pool
  • Ability to list any token
  • Ability to mint new token to allow crowd sale
  • Ability to list non fungible tokens as well as fungible tokens

alley-oop's People

Contributors

makoto avatar

Watchers

James Cloos 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.