SJIP: Remove the min/maxAnser
guideline
#25
WangSecurity
started this conversation in
Judging
Replies: 1 comment 12 replies
-
The docs say, |
Beta Was this translation helpful? Give feedback.
12 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Description
Remove the guideline about
min/maxAnswer
checks being a valid issue and make it invalidJudging Guidelines PR
https://github.com/sherlock-protocol/sherlock-v2-docs/pull/53/files
Rationale
The reason for removing is because the price below
minAnswer
or abovemaxAnswer
cannot be reported. If the price falls out of the range, the oracle will return the last price inside the range.For example, if the
minAnswer
is 100, the price at T20 is 107, but at T21 the price is 90, the oracle will return the price 107 and timestamp T20. Hence, even if the oracle returns price 107 and timestamp T20, theminAnswer
check will not help here and the contract will use this price until T20 becomes stale. Hence, the checks aboutminAnswer
andmaxAnswer
will not help.Ultimately, we're making a guideline to make those issues invalid. If you need more technical details about the above, please ask it in the comments.
Relevant Issue Discussions
The specific discussion was on Private contest.
Update
Based on the discussion, it was decided to leave this type of issues valid, but rather change the wording of the guideline to make the reports about these issues better.
Beta Was this translation helpful? Give feedback.
All reactions