Skip to content

Commit

Permalink
Enable PPoS HHI (#6)
Browse files Browse the repository at this point in the history
  • Loading branch information
cusma authored Sep 2, 2023
1 parent ba81510 commit f33087d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
4 changes: 1 addition & 3 deletions src/ppos_dex_data.py
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit f33087d

Please sign in to comment.