We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9cefc2b commit 467641dCopy full SHA for 467641d
program/src/oracle/oracle.h
@@ -20,7 +20,9 @@ extern "C" {
20
#define PC_PUBKEY_SIZE_64 (PC_PUBKEY_SIZE/sizeof(uint64_t))
21
#define PC_MAP_TABLE_SIZE 640
22
#define PC_COMP_SIZE 32
23
-#define PC_MAX_NUM_DECIMALS 16
+// Bound on the range of the exponent in price accounts. This number is set such that the
24
+// PD-based EMA computation does not lose too much precision.
25
+#define PC_MAX_NUM_DECIMALS 8
26
#define PC_PROD_ACC_SIZE 512
27
#define PC_EXP_DECAY -9
28
// If ci > price / PC_MAX_CI_DIVISOR, set publisher status to unknown.
0 commit comments