Skip to content

Commit 3508f1a

Browse files
authored
Remove emit ReportTimestampOutOfRange so getData is read only
Remove emit ReportTimestampOutOfRange so getData is read only
1 parent d6cbb02 commit 3508f1a

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

contracts/MedianOracle.sol

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -186,10 +186,10 @@ contract MedianOracle is OwnableUpgradeable, IOracle {
186186
.timestamp;
187187
if (reportTimestampPast < minValidTimestamp) {
188188
// Past report is too old.
189-
emit ReportTimestampOutOfRange(providerAddress);
189+
// Deprecated: emit ReportTimestampOutOfRange(providerAddress);
190190
} else if (reportTimestampPast > maxValidTimestamp) {
191191
// Past report is too recent.
192-
emit ReportTimestampOutOfRange(providerAddress);
192+
// Deprecated: emit ReportTimestampOutOfRange(providerAddress);
193193
} else {
194194
// Using past report.
195195
validReports[size++] = providerReports[providerAddress][index_past].payload;
@@ -198,7 +198,7 @@ contract MedianOracle is OwnableUpgradeable, IOracle {
198198
// Recent report is not too recent.
199199
if (reportTimestampRecent < minValidTimestamp) {
200200
// Recent report is too old.
201-
emit ReportTimestampOutOfRange(providerAddress);
201+
// Deprecated: emit ReportTimestampOutOfRange(providerAddress);
202202
} else {
203203
// Using recent report.
204204
validReports[size++] = providerReports[providerAddress][index_recent].payload;

0 commit comments

Comments
 (0)