Oracle
Retrieves underlying asset prices used for settling options.
Last updated
Retrieves underlying asset prices used for settling options.
Last updated
Defines the underlying asset symbol and oracle address for a pool. Only called by the owner.
Params:
Sets the price for an asset.
Params:
Gets and computes price from external oracles
Params:
Returns:
This internal helper function retrieves the underlying price from an external oracle.
Params:
Returns:
Returns the address of the chainlink oracle for an underlying asset
Params:
Returns:
Returns the phaseId from the given roundId used by the external oracle
Params:
Returns:
Returns the start roundId given a phaseId
Params:
Returns:
Helper for getting the
Params:
Returns:
Name
Type
Description
symbols
string
The asset symbol for which to retrieve price feed
oracles_
address
The external oracle address
Name
Type
Description
symbol
string The symbol of the asset for which the price is being set
ts
uint256
The timestamp associated with the asset price
price
uint256
The retrieved price of the asset
Name
Type
Description
cOracleAddr
address
The contract address for a chainlink price feed
ts
uint256
Timestamp for the asset price
Name
Type
Description
price
uint256
The retrieved price
actualTs
uint256
The timestamp at which the price is updated by the oracle
Name
Type
Description
cOracle
AggregatorV3Interface
Oracle interface for retrieving price feed
id
uint80
The roundId using which price is retrieved
ts
uint256
Timestamp for the asset price
decimalDiff
uint256
Precision differences for the number of decimal places
Name
Type
Description
finalPrice
uint256
The computed price
finalTs
uint256
The timestamp at which the price is updated by the oracle
Name
Type
Description
symbol
string
The symbol of the asset for which the price is being set
Type
Description
address
The contract address for a chainlink price feed
Name
Type
Description
roundId
uint80
The given roundId
Type
Description
uint80
The phaseId for the given round
Name
Type
Description
phaseId
uint80
The given phaseId
Type
Description
uint80
The start roundId
Name
Type
Description
cOracle
AggregatorV3Interface
Oracle interface for retrieving price feed
start
uint80
The start phaseId
end
uint80
The end phaseId
ts
uint256
Timestamp for the underlying price
decimalDiff
uint256
Precision differences for the number of decimal places
Name
Type
Description
Price
uint256
The computed price
actualTs
uint256
The timestamp at which the price is updated by the oracle