Skip to content

IndigoProtocol/dynamic-lp-fees

Repository files navigation

Dynamic LP Fees

Dynamic LP Fee Calculator for Stablepool LP fees.

Overview

This project implements a bot that calculates and manages dynamic liquidity provider fees for stable pools.

Prerequisites

  • Node.js (v18 or higher recommended)
  • pnpm (v10.18.1 or higher)

Installation

pnpm install

Configuration

Create a .env file in the root directory with the following variables:

LOG_LEVEL=info

Available log levels: error, warn, info, http, debug

Usage

Build the project

pnpm build

Run the bot

pnpm start

This will build and start the bot loop.

Development

Type checking

pnpm type-check

Linting

pnpm lint

Formatting

# Check formatting
pnpm format:check

# Auto-format code
pnpm format

Testing

pnpm test

Project Structure

dynamic-lp-fees/
├── src/
│   ├── index.ts      # Entry point
│   ├── config.ts     # Configuration
│   ├── logger.ts     # Logging setup
│   └── loop.ts       # Main bot loop
├── tests/            # Test files
└── package.json      # Project dependencies and scripts

License

ISC

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •