Skip to content

Check exponent range #179

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jun 29, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion program/src/oracle/oracle.h
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,9 @@ extern "C" {
#define PC_PUBKEY_SIZE_64 (PC_PUBKEY_SIZE/sizeof(uint64_t))
#define PC_MAP_TABLE_SIZE 640
#define PC_COMP_SIZE 32
#define PC_MAX_NUM_DECIMALS 16
// Bound on the range of the exponent in price accounts. This number is set such that the
// PD-based EMA computation does not lose too much precision.
#define PC_MAX_NUM_DECIMALS 8
#define PC_PROD_ACC_SIZE 512
#define PC_EXP_DECAY -9
// If ci > price / PC_MAX_CI_DIVISOR, set publisher status to unknown.
Expand Down