DeFi Tools is an essential web-based tool designed for liquidity providers and yield farmers in the decentralized finance (DeFi) space. This tool helps users calculate the required amounts of tokens (Token A and Token B) to add to a liquidity pool, simulate positions, and analyze the impact when market prices move outside a chosen range.
- Liquidity Position Simulation: Calculate the amount of tokens needed to create a liquidity position within a specified price range.
- Price Range Analysis: Assess how your liquidity will be affected when market prices go outside the predefined range.
- User-Friendly Interface: Simple and intuitive UI for DeFi users.
To set up and run DeFi Tools locally, follow these steps:
-
Clone the repository:
git clone https://github.com/yourusername/defi-tools.git
-
Navigate to the project directory:
cd defi-tools
-
Open
index.html
in your browser: Simply double-click theindex.html
file, or use a local server like Live Server (VS Code extension) to run it.
- Enter the Token Symbols: Input the symbols for Token A and Token B (e.g., ETH, USDC).
- Select the Base Token: Choose the base token from the dropdown.
- Enter Investment and Prices: Fill in the total investment, current price, minimum price, and maximum price.
- Simulate Position: Click on the "Simulate Position" button to calculate the required token amounts and view the impact on your liquidity.
This project can be easily deployed using GitHub Pages:
- Push your code to a GitHub repository.
- Enable GitHub Pages in the repository settings.
- Access your deployed project via the GitHub Pages URL provided.
Contributions are welcome! If you'd like to contribute to DeFi Tools, please fork the repository and create a pull request with your changes.
This project is licensed under the MIT License - see the LICENSE file for details.
If you like DeFi Tools, consider supporting us by sending ETH on any blockchain to:
0x2170bc5E5eeb2bbF3172AbF2716D8BBB729D2ab6
- Built with ♥ by @camilosaka
- Inspired by the DeFi community and the need for better liquidity management tools.