A bot which uses simulated annealing to find optimal allocations into EulerEarn strategies. It simulates reallocations and calculates impact on the lending and rewards APYs, searching for global optimum.
- Node.js
- pnpm package manager
- Install dependencies:
pnpm install
- Set up environment variables:
cp .env.example .env
# Edit .env with your configuration
or
pnpm run doppler:syncprod
See constants for details.
- Run
pnpm run dev
#or
pnpm run build & pnpm start
For pretty logs in development, set NODE_ENV=dev
The bot can send notifications through Telegram or Slack. See src/constants/notificationConstants.ts
This project uses Prettier for code formatting. The configuration can be found in .prettierrc
. To maintain consistent code style:
- Test your code before committing:
pnpm test
- Format your code before committing:
pnpm format