The default value of epsilon differs from what is stated in the whitepaper
Source: https://github.com/sherlock-audit/2024-06-allora-judging/issues/15
The protocol has acknowledged this issue.
Found by
volodya
Summary
The default value of epsilon differs from what is stated in the whitepaper
Vulnerability Detail
According to docs
We ask that auditors look for both typical security vulnerabilities, but also departures of the codebase from the intentions defined in the whitepaper. This includes but is not limited to functions not correctly implemented or tied together as defined in the whitepaper. This requires an understanding of the math of the whitepaper, which we urge auditors to develop.
Epsilon: alloraMath.MustNewDecFromString("0.0001")
x/emissions/types/params.go#L24
stdDevRegretsPlusMedianTimesFTolerancePlusEpsilon, err := stdDevRegretsPlusMedianTimesFTolerance.Add(p.Epsilon)
Impact
Precision will be tight
Code Snippet
Tool used
Manual Review
Recommendation
-Epsilon: alloraMath.MustNewDecFromString("0.0001")
+Epsilon: alloraMath.MustNewDecFromString("0.01")
Discussion
sherlock-admin3
1 comment(s) were left on this issue during the judging contest.
0xmystery commented:
The default value of epsilon is different from whitepaper
Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.
What is known
A medium-severity business logic bug in Allora. Sherlock made it public on 10 August 2024. Found in the 454 audit contest (finding M-3).
About Business logic
The application works as coded but not as intended: a negative price, a skipped payment step, a limit that can be crossed.
Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.
What is Business logic?
The application works as coded but not as intended: a negative price, a skipped payment step, a limit that can be crossed.