IPriceAggregator
Price aggregator interface
Functions
latestAnswer
Returns the last round price.
latestTimestamp
Returns the time of the last round price.
latestRound
Returns the count of rounds registered.
getAnswer
Returns the price at round roundId
Parameters
Parameter | Type | Description |
roundId | uint256 | Id of the round |
getTimestamp
Returns the time of the roundroundId
Parameters
Parameter | Type | Description |
roundId | uint256 | Id of the round |
Events
AnswerUpdated
Emmited when the answer was updated.
Parameters
Parameter | Type | Description |
current | uint256 | New price |
roundId | uint256 | New round id |
timestamp | uint256 | New time |
NewRound
Emmited when a new round starts.
Parameters
Parameter | Type | Description |
roundId | uint256 | New round id |
startedBy | address | Address of the starter |
startedAt | uint256 | New time |
Last updated