-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
21 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
## 3 Contracts - | ||
|
||
### Contract 1 (Factory) | ||
|
||
- Create Pool | ||
|
||
### Contract 2 (Liquidity Token) | ||
|
||
### Contract 3 (Pool) | ||
|
||
- **Swap** | ||
|
||
Calculate amountOut ----------> take token from trader --------> loop path array ---------> Swap token | ||
|
||
- **Add Liquidity** | ||
|
||
Take tokens from liquidity provider --------> calculate tokens to be minted ---------> mint liquidity tokens | ||
|
||
- **Remove liquidity** | ||
|
||
Transfer liquidity token from provider -------> Calculate tokens to be burnt ---------> burnt liquidity tokens ------> send back his assests |