AmbireTech / adex-validator

AdEx validator stack reference implementation: sentry, validator worker
https://www.adex.network
GNU Affero General Public License v3.0
8 stars 11 forks source link

AIP #61 AdEx v5: Unified precision (8) #342

Open elpiel opened 3 years ago

elpiel commented 3 years ago

https://github.com/AdExNetwork/aips/issues/61

Rust reference:

Issue: https://github.com/AdExNetwork/adex-validator-stack-rust/issues/384 PRs: https://github.com/AdExNetwork/adex-validator-stack-rust/pull/386


Create a Unified Precision number (UnifiedNum) with precision of 8 that will be used for all calculations, except when we are creating the MerkleTree, where we need the actual precision of the token in order of the MerkleTree to be calculated properly.