lockdrop-simulation/lockdrop-calculations.ipynb
Prathamesh Musale 652c69cbee Move lockdrop calculations to a module and add a experimentation notebook (#2)
- Refactor lockdrop calculations and other helper code from the simulation notebook to a python module
- Add a notebook for experimenting with lockdrop calculations
  - Add widget buttons to run calculations and export results
  - Add a script a to setup and run the notebook

Reviewed-on: #2
Co-authored-by: Prathamesh Musale <prathamesh.musale0@gmail.com>
Co-committed-by: Prathamesh Musale <prathamesh.musale0@gmail.com>
2025-08-13 11:56:52 +00:00

91 lines
2.2 KiB
Plaintext

{
"cells": [
{
"cell_type": "markdown",
"id": "experimental-header",
"metadata": {},
"source": [
"# Z Token Lockdrop Distribution\n",
"\n",
"This notebook allows you to experiment with different participation distributions to see how they affect token allocations, bonus pools, and the penalty system.\n",
"\n",
"**Features:**\n",
"- Adjust star and galaxy participation numbers by lock duration\n",
"- Real-time calculation of allocations and bonus pools\n",
"- Preset scenarios available in dropdown (balanced, five-year focused, short-term focused, low participation)\n",
"- Visualization of results"
]
},
{
"cell_type": "code",
"execution_count": null,
"id": "setup-imports",
"metadata": {},
"outputs": [],
"source": [
"# Import shared calculation module\n",
"from lockdrop import (\n",
" configure_matplotlib, print_constants_summary,\n",
" create_experimental_interface\n",
")\n",
"\n",
"# Configure matplotlib\n",
"configure_matplotlib()"
]
},
{
"cell_type": "code",
"execution_count": null,
"id": "show-constants",
"metadata": {},
"outputs": [],
"source": [
"# Display core constants\n",
"print_constants_summary()"
]
},
{
"cell_type": "markdown",
"id": "input-section-header",
"metadata": {},
"source": [
"## 🎛️ Experimental Parameters\n",
"\n",
"Adjust the participation numbers below to experiment with different scenarios. Use the preset dropdown to quickly load common scenarios, or manually adjust the values for custom experiments."
]
},
{
"cell_type": "code",
"execution_count": null,
"id": "input-parameters",
"metadata": {},
"outputs": [],
"source": [
"# Create complete experimental interface\n",
"create_experimental_interface()"
]
}
],
"metadata": {
"kernelspec": {
"display_name": "venv",
"language": "python",
"name": "python3"
},
"language_info": {
"codemirror_mode": {
"name": "ipython",
"version": 3
},
"file_extension": ".py",
"mimetype": "text/x-python",
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.12.3"
}
},
"nbformat": 4,
"nbformat_minor": 5
}