https://github.com/balancer/pool-math-simulator
Simulator of Pool Maths
https://github.com/balancer/pool-math-simulator
Last synced: about 2 months ago
JSON representation
Simulator of Pool Maths
- Host: GitHub
- URL: https://github.com/balancer/pool-math-simulator
- Owner: balancer
- Created: 2025-03-10T21:48:02.000Z (about 1 year ago)
- Default Branch: main
- Last Pushed: 2025-12-23T15:18:53.000Z (6 months ago)
- Last Synced: 2025-12-25T05:22:18.977Z (6 months ago)
- Language: TypeScript
- Size: 518 KB
- Stars: 0
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# pool-math-simulator
Simulator of Balancer's Pool Maths.
Currently, it supports the simulation of "Stable Surge" pools and "ReClamm" pools.
## How to run locally
Use node 22 to run `client` and `functions`.
In the client folder:
1. run `npm install`
2. run `npm start`
3. done! No other config is required
In the functions folder:
1. create a .env file
2. inside the .env file, create the variable `ALCHEMY_API_KEY`
3. go to alchemy.com, create an account and create an API KEY
4. copy the API key and paste in the variable
5. run `npm install`
6. run `npm run serve`
The functions project is only required if you want to fetch data from ReClamm pools.
## How to Deploy
First, build the client: access the client folder and type `npm run build`
Then, in the root folder of the project, run `firebase deploy`. If you have the permission to deploy to the project, this will deploy both site and functions to firebase.