You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The current way of calculating the owner deposit introduces some small errors since the value 5000 is divided first and then multiplied: ownerDeposit = 5000 / networkSize * committeeSize
For example, a network wide oracle deployed to 1205 identities has a ownerDeposit of 5000.0000000000000595 iDNA
Is there any reason why the multiplication is not done first in the oracle voting smart contract? Something like this: ownerDeposit = 5000 * committeeSize / networkSize
This would at least guarantee an exact amount for any network wide oracle.
I noticed this while developing the Oracle Loan tool since these really small float values can easily get discarded.
The text was updated successfully, but these errors were encountered:
The current way of calculating the owner deposit introduces some small errors since the value
5000
is divided first and then multiplied:ownerDeposit = 5000 / networkSize * committeeSize
For example, a network wide oracle deployed to 1205 identities has a ownerDeposit of
5000.0000000000000595 iDNA
Is there any reason why the multiplication is not done first in the oracle voting smart contract? Something like this:
ownerDeposit = 5000 * committeeSize / networkSize
This would at least guarantee an exact amount for any network wide oracle.
I noticed this while developing the Oracle Loan tool since these really small float values can easily get discarded.
The text was updated successfully, but these errors were encountered: