Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/BrownFi/BrownFi-AMM-ICP
innovative AMM with high Capital Efficiency and simple UX
https://github.com/BrownFi/BrownFi-AMM-ICP
defi icp
Last synced: 5 days ago
JSON representation
innovative AMM with high Capital Efficiency and simple UX
- Host: GitHub
- URL: https://github.com/BrownFi/BrownFi-AMM-ICP
- Owner: BrownFi
- License: mit
- Created: 2024-03-07T03:50:28.000Z (8 months ago)
- Default Branch: main
- Last Pushed: 2024-07-16T08:02:11.000Z (4 months ago)
- Last Synced: 2024-08-02T06:17:12.573Z (3 months ago)
- Topics: defi, icp
- Language: Motoko
- Homepage: https://browndex.io/
- Size: 2.2 MB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- awesome-internet-computer - BrownFi - Simple AMM with high Capital Effifiency (Decentralized Finance (DeFi) / Exchanges)
- awesome-motoko - BrownFi - Simple AMM Dex with high Capital Effifiency (Applications / Decentralized Finance)
README
# BrownFi AMM Introduction
A novel AMM protocol with high Capital Efficiency (aka liquidity concentration) & tailored market making strategies, while keeping a simple UX, fungibility, and reusability of LP tokens from Uniswap v2. Our simulation shows that BrownFi AMM offers capital efficiency 100X higher than UniswapV2.
For more information, please check the [BrownFi Introduction](https://github.com/BrownFi/BrownFi-AMM-ICP/blob/main/BrownFi.md).
Prototype deployed on ICP https://ehi6j-4yaaa-aaaak-qiouq-cai.icp0.io/## Installations
- `Nodejs` (v18.4.0 or newer): Download it [here](https://nodejs.org/en/download)
- `dfx` CLI tool: Please follow the instruction to install it [here](https://internetcomputer.org/docs/current/developer-docs/getting-started/install/)## Experimental Running (local)
- Clone this repository:
```bash
git clone https://github.com/BrownFi/BrownFi-AMM-ICP.git brownfi-amm
cd brownfi-amm
```- Local running
```bash
##### BrownFi AMM Core Canister ###### Start the replica and run in the background
dfx start --clean --background# Deploy II
dfx deploy internet_identity --specified-id rdmx6-jaaaa-aaaaa-aaadq-cai# Create identities using in the demo
dfx identity new alice --storage-mode plaintext
dfx identity new bob --storage-mode plaintext
dfx identity new owner --storage-mode plaintext
# OR When using the internet identity, you need to create a new identity for the canister
dfx identity import --seed-file owner.txt owner --storage-mode plaintext
dfx identity import --seed-file alice.txt alice --storage-mode plaintext
dfx identity import --seed-file bob.txt bob --storage-mode plaintextdfx identity use owner
# Run the demo script file
./demo.sh##### BrownFi AMM Front-end Canister #####
# Install dependencies
npm install# Build front-end
npm run builddfx deploy
```After completion, your output will appear similar to the following:
```bash
Deployed canisters.
URLs:
Frontend canister via browser
frontend: http://127.0.0.1:8080/?canisterId=avqkn-guaaa-aaaaa-qaaea-cai
Backend canister via Candid interface:
core: http://127.0.0.1:8080/?canisterId=bd3sg-teaaa-aaaaa-qaaba-cai&id=be2us-64aaa-aaaaa-qaabq-cai
router: http://127.0.0.1:8080/?canisterId=bd3sg-teaaa-aaaaa-qaaba-cai&id=bkyz2-fmaaa-aaaaa-qaaaq-cai
tokenA: http://127.0.0.1:8080/?canisterId=bd3sg-teaaa-aaaaa-qaaba-cai&id=br5f7-7uaaa-aaaaa-qaaca-cai
tokenB: http://127.0.0.1:8080/?canisterId=bd3sg-teaaa-aaaaa-qaaba-cai&id=bw4dl-smaaa-aaaaa-qaacq-cai
```