-
Notifications
You must be signed in to change notification settings - Fork 14
Open
Milestone
Description
https://github.com/AdExNetwork/aips/issues/61
Rust reference:
Issue: AmbireTech/adex-validator-stack-rust#384
PRs: AmbireTech/adex-validator-stack-rust#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.
- 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 - Targeting rules DSL - use UnifiedNum instead of BigNum (see: V5 Targeting DSL - UnifiedNumber instead of BigNumber adex-protocol#67)