SJIP 14: Clarify High and Medium severities #14
Replies: 4 comments 34 replies
-
I have some concerns with judging the severity based only on percentage of funds lost. There are some cases when the amount lost is fixed (and small) regardless of the affected party balance / action size. So it's somewhat hard to judge the percentage loss. Some extreme example: there is a loss of 1 wei on most deposits. Watson can argue that on a deposit of 10 wei this will be a 10% loss, thus valid high (or medium). Same example not as extreme: the loss is fixed 0.001 USDC for some deposits. If user deposits 10 USDC (which is reasonable), this is a 0.01% loss. Can this be considered medium? What if the loss is 0.0001 USDC? Can a deposit of 1 USDC be considered reasonable with 0.01% loss? Where to draw the line? I believe the language should include both percentage and fixed amounts. For example:
I think this should clear all questions regarding the dust losses. |
Beta Was this translation helpful? Give feedback.
-
I think |
Beta Was this translation helpful? Give feedback.
-
Are there any limitations on how long it may take to reach the $10 loss? If it takes one year for minuscule amounts to add up to $10, but would require not much other activity to happen on the project, is that still valid? |
Beta Was this translation helpful? Give feedback.
-
|
Beta Was this translation helpful? Give feedback.
-
Description
Rephrase high and medium severities to limit the subjectivity
Judging Guidelines PR
https://github.com/sherlock-protocol/sherlock-v2-docs/pull/38/files
Rationale
The first change is for Medium severity to give an understanding of what means "exceeds small and finite amounts". It causes subjectivity since in different contexts it's hard to decide if the loss is small. For example, the protocol takes a fee of 0.00006 ETH, but the attacker can bypass it. On the one hand, the loss is only 0.00006 ETH, which is relatively small. On the other hand, if the attacker bypasses the fee, the protocol loses 100%, which is relatively high.
It leads to cases when Watsons and Judges have different views on the loss, resulting in unnecessary long discussions during the escalations and one of the sides losing (either escalation ratio or escalation penalty for Judges).
I propose to change it the following way:
Additionally, I propose to remove the part "and any amount relevant based on the precision or significance of the loss" since now we have a concrete number and this line only complicates the rule.
Hence, if the loss is <0.01%, then it can never be Medium or High severity.
The second change is for High severity. The main issue here is how to consider if the loss is highly constrained (Medium) or not. The result is the same as in the first case: unnecessary long discussions during the escalations and one of the sides losing (either escalation ratio or escalation penalty for Judges).
I propose the following change:
Hence, any loss less than 1% will never be a High severity impact, while the loss >=1% can be either High or Medium based on the constraints.
Additionally, I propose to remove the following line because it only creates more confusion and sounds like "serious insignificant losses":
I believe it solves the problem and will allow Watsons to objectively prove high severity and allow Judges to objectively decide if the loss is highly constrained or not.
Relevant Issue Discussions
sherlock-audit/2024-03-zivoe-judging#304
Beta Was this translation helpful? Give feedback.
All reactions