Something cleaner can be done here, but for a fixed emissions curve this should work.
Installation process:
- create local environment
# just on the first time do this
python3 -m venv .venv # sets up the venv first time
# do this every time before starting the server
source .venv/bin/activate
# OR this if you use fish as a shell
source .venv/bin/activate.fish
- Install required packages
pip install -r requirements.txt
- Run the file
python3 vesting_csv.py
Definitions:
- token_quantity: percentage of total distributed tokens
- start_month: month where tokens start to unlock
- lock_period: how long tokens are locked for
- unlock_period:
token_quantity / lock_period
- lists with NULL values mean cliff month active
To-do:
- convert txt to csv
- chart the emissions schedule