Dynamic LP Fee Calculator for Stablepool LP fees.
This project implements a bot that calculates and manages dynamic liquidity provider fees for stable pools.
- Node.js (v18 or higher recommended)
- pnpm (v10.18.1 or higher)
pnpm installCreate a .env file in the root directory with the following variables:
LOG_LEVEL=infoAvailable log levels: error, warn, info, http, debug
pnpm buildpnpm startThis will build and start the bot loop.
pnpm type-checkpnpm lint# Check formatting
pnpm format:check
# Auto-format code
pnpm formatpnpm testdynamic-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
ISC