Skip to content

Sk1mer12/TVL-APY-CALCULATOR

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 

Repository files navigation

TVL-APY-CALCULATOR

Welcome to TVL-APY-CALCULATOR! This is a Next.js project that fetches data from an API and calculates TVL (Total Value Locked) and APY (Annual Percentage Yield) for a Balancer pool.

Table of Contents

Introduction

This project utilizes Next.js to create a web application that fetches data from the Balancer API and calculates TVL and APY for a specific Balancer pool. It showcases the use of React hooks and useEffect to manage API calls and state in a functional component.

Installation

  1. Create a next app and copy the index.js file into that folder:
npx create-next-app next-table-example
  1. Install the dependencies:
npm install

Usage

  1. Replace the API URL in the useEffect hooks with the correct URL for your Balancer pool.

  2. Run your docker application.

  3. To start the development server, run:

npm run dev
  1. Open your web browser and go to http://localhost:3000 to see the application in action.

Contributing

Contributions are welcome! If you find any issues or want to enhance the project, feel free to open a pull request. Please ensure to follow the existing code style and commit conventions.

  1. Fork the repository.

  2. Create a new branch:

git checkout -b feature/your-feature-name
  1. Make your changes, commit them, and push to your forked repository.

  2. Open a pull request detailing your changes and improvements.

License

This project is licensed under the MIT License.


Feel free to customize the sections and content as needed to accurately represent your project. Make sure to replace placeholders like yourusername and project-name with actual values.

Remember that the quality of your README file can greatly impact how others perceive and interact with your project. Providing clear instructions, explanations, and examples will make it easier for others to understand and contribute to your code.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published