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.
[ ] Token configuration of actual precision (in the configuration of the whitelisted token addresses)
[ ] MerkleTree should use actual precision of the token (e.g. DAI - 18, USDT - 6, etc.)
[ ] Use Unified Precision - UnifiedNum (including DB) & floor all the calculations
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.UnifiedNum
(including DB) & floor all the calculations