ErrorReporter
event
Failure
Inputs
| Parameter | Type | Description |
|---|---|---|
| error | uint256 | |
| info | uint256 | |
| detail | uint256 |
Outputs
(void)
PriceOracle
function
_setPendingAnchor
nonpayable
Inputs
| Parameter | Type | Description |
|---|---|---|
| asset | address | |
| newScaledPrice | uint256 |
Outputs
| Type | Description |
|---|---|
| uint256 |
function
_acceptAnchorAdmin
nonpayable
Inputs
(void)
Outputs
| Type | Description |
|---|---|
| uint256 |
function
_setPendingAnchorAdmin
nonpayable
Inputs
| Parameter | Type | Description |
|---|---|---|
| newPendingAnchorAdmin | address |
Outputs
| Type | Description |
|---|---|
| uint256 |
function
setPrices
nonpayable
Inputs
| Parameter | Type | Description |
|---|---|---|
| assets | address[] | |
| requestedPriceMantissas | uint256[] |
Outputs
| Type | Description |
|---|---|
| uint256[] |
function
_setPaused
nonpayable
Inputs
| Parameter | Type | Description |
|---|---|---|
| requestedState | bool |
Outputs
| Type | Description |
|---|---|
| uint256 |
function
setPrice
nonpayable
Inputs
| Parameter | Type | Description |
|---|---|---|
| asset | address | |
| requestedPriceMantissa | uint256 |
Outputs
| Type | Description |
|---|---|
| uint256 |
function
assetPrices
view
Inputs
| Parameter | Type | Description |
|---|---|---|
| asset | address |
Outputs
| Type | Description |
|---|---|
| uint256 |
function
getPrice
view
Inputs
| Parameter | Type | Description |
|---|---|---|
| asset | address |
Outputs
| Type | Description |
|---|---|
| uint256 |
constructor
PriceOracle
nonpayable
Inputs
| Parameter | Type | Description |
|---|---|---|
| _poster | address | |
| addr0 | address | |
| reader0 | address | |
| addr1 | address | |
| reader1 | address |
Outputs
(void)
fallback
(fallback)
payable
Inputs
(void)
Outputs
(void)
event
NewAnchorAdmin
Inputs
| Parameter | Type | Description |
|---|---|---|
| oldAnchorAdmin | address | |
| newAnchorAdmin | address |
Outputs
(void)
event
NewPendingAnchorAdmin
Inputs
| Parameter | Type | Description |
|---|---|---|
| oldPendingAnchorAdmin | address | |
| newPendingAnchorAdmin | address |
Outputs
(void)
event
SetPaused
Inputs
| Parameter | Type | Description |
|---|---|---|
| newState | bool |
Outputs
(void)
event
CappedPricePosted
Inputs
| Parameter | Type | Description |
|---|---|---|
| asset | address | |
| requestedPriceMantissa | uint256 | |
| anchorPriceMantissa | uint256 | |
| cappedPriceMantissa | uint256 |
Outputs
(void)
event
PricePosted
Inputs
| Parameter | Type | Description |
|---|---|---|
| asset | address | |
| previousPriceMantissa | uint256 | |
| requestedPriceMantissa | uint256 | |
| newPriceMantissa | uint256 |
Outputs
(void)
event
NewPendingAnchor
Inputs
| Parameter | Type | Description |
|---|---|---|
| anchorAdmin | address | |
| asset | address | |
| oldScaledPrice | uint256 | |
| newScaledPrice | uint256 |
Outputs
(void)
event
OracleFailure
Inputs
| Parameter | Type | Description |
|---|---|---|
| msgSender | address | |
| asset | address | |
| error | uint256 | |
| info | uint256 | |
| detail | uint256 |
Outputs
(void)
function
maxSwing
view
Inputs
(void)
Outputs
| Type | Description |
|---|---|
| uint256 |
function
pendingAnchors
view
Inputs
| Parameter | Type | Description |
|---|---|---|
| address |
Outputs
| Type | Description |
|---|---|
| uint256 |
function
poster
view
Inputs
(void)
Outputs
| Type | Description |
|---|---|
| address |
function
anchors
view
Inputs
| Parameter | Type | Description |
|---|---|---|
| address |
Outputs
| Type | Description |
|---|---|
| uint256 | |
| uint256 |
function
paused
view
Inputs
(void)
Outputs
| Type | Description |
|---|---|
| bool |
function
readers
view
Inputs
| Parameter | Type | Description |
|---|---|---|
| address |
Outputs
| Type | Description |
|---|---|
| address |
function
numBlocksPerPeriod
view
Inputs
(void)
Outputs
| Type | Description |
|---|---|
| uint256 |
function
pendingAnchorAdmin
view
Inputs
(void)
Outputs
| Type | Description |
|---|---|
| address |
function
_assetPrices
view
Inputs
| Parameter | Type | Description |
|---|---|---|
| address |
Outputs
| Type | Description |
|---|---|
| uint256 |
function
maxSwingMantissa
view
Inputs
(void)
Outputs
| Type | Description |
|---|---|
| uint256 |
function
anchorAdmin
view
Inputs
(void)
Outputs
| Type | Description |
|---|---|
| address |