elesto-dao / elesto

The ElestoDAO node
Apache License 2.0
4 stars 1 forks source link

fix: revert to epoch based inflation schedule #239

Closed noandrea closed 1 year ago

noandrea commented 1 year ago

This PR is meant to address the issues identified by the OAK audit

please have a look specifically to the abci_test.go to see if tests for supply can be improved.

beside the tests you can launch the chain and run the following commands to verify the suppluy:

verify total supply

elestod query bank  total --height 2

verify community tax amount

elestod query distribution community-pool --height 2

beware that the community tax amount is set on the 00_start_chain.sh script.

you can check the values looking at the distribuiton excel https://docs.google.com/spreadsheets/d/1sXwR-cYHS98in1aMzBabF7FNjqikbA3btnPMlFqgQ50/edit#gid=0

noandrea commented 1 year ago

a weird behavior is that at block 1 the community tax amount is not correct, but it falls back to the expectations from block 2