OracleRef
Last updated
Last updated
defines some utilities around interacting with the referenced oracle
OracleRef constructor
Name | Type | Description |
---|---|---|
sets the referenced oracle
sets the flag for whether to invert or not
sets the new decimalsNormalizer
sets the referenced backup oracle
invert a peg price
the inverted peg would be X per CHI
updates the referenced oracle
the peg price of the referenced oracle
the peg is defined as CHI per X with X being ETH, dollars, etc
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
_core
address
Chi Core to reference
_oracle
address
oracle to reference
_backupOracle
address
backup oracle to reference
_decimalsNormalizer
int256
number of decimals to normalize the oracle feed if necessary
_doInvert
bool
invert the oracle price if this flag is on
newOracle
address
the new oracle to reference
newDoInvert
bool
the new flag for whether to invert
newDecimalsNormalizer
int256
the new decimalsNormalizer
newBackupOracle
address
the new backup oracle to reference
price
struct Decimal.D256
the peg price to invert
[0]
struct Decimal.D256
the inverted peg as a Decimal
[0]
struct Decimal.D256
the peg as a Decimal
newOracle
address
newBackupOracle
address
newDoInvert
bool
newDecimalsNormalizer
int256
token
address