Minimum Automated Market Maker(AMM) on Flow Blockchain
Alley-oop is a decentralised exchange which allows you to swap tokens based on the price calculated by smartcontract without counter party.
- 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
go mod init alley-oop
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
- 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
- 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