From f33087d1861929b0170751e292a56b182706b1b6 Mon Sep 17 00:00:00 2001 From: Cosimo Bassi <65770425+cusma@users.noreply.github.com> Date: Sat, 2 Sep 2023 02:37:15 +0200 Subject: [PATCH] Enable PPoS HHI (#6) --- README.md | 4 ++-- src/ppos_dex_data.py | 4 +--- 2 files changed, 3 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index 4b5adcc..0d6ea5e 100644 --- a/README.md +++ b/README.md @@ -183,8 +183,8 @@ Let's try first to define an **ideal theoretical conditions of decentralization* Then, everything deviating from those conditions will make PPoS more real and far from platonic ideality. -_NOTE_: Refer to this [article](https://t.co/aLVGnbgNTZ) for additional -considerations over blockchain decentralization. +> 💡 _NOTE: Refer to this [article](https://t.co/aLVGnbgNTZ) for additional +considerations over blockchain decentralization._ ### Definitions We will say that PPoS is **"completely decentralized"** if and only if: diff --git a/src/ppos_dex_data.py b/src/ppos_dex_data.py index 2145c60..1f1bc7f 100644 --- a/src/ppos_dex_data.py +++ b/src/ppos_dex_data.py @@ -73,9 +73,7 @@ def post_ppos_dex_data( ppos_theil_l = idx.theil_l(online_stakes) ppos_theil_t = idx.theil_t(online_stakes) ppos_hhi = idx.herfindahl_hirschman(online_stakes) - ppos_dex = ( - algo_dynamics * ppos_online_stake * ppos_online_accounts * (1 - ppos_gini) - ) + ppos_dex = algo_dynamics * ppos_online_stake * ppos_online_accounts * (1 - ppos_hhi) ppos_dex_data = { "algo_threshold": algo_threshold,