We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ecfd948 commit 16751b3Copy full SHA for 16751b3
contracts/InverseApi3ReaderProxyV1.sol
@@ -38,6 +38,10 @@ contract InverseApi3ReaderProxyV1 is IInverseApi3ReaderProxyV1 {
38
(int224 baseValue, uint32 baseTimestamp) = IApi3ReaderProxy(proxy)
39
.read();
40
41
+ if (baseValue == 0) {
42
+ revert DivisionByZero();
43
+ }
44
+
45
value = int224(1e36) / baseValue;
46
timestamp = baseTimestamp;
47
}
0 commit comments