Open hats-bug-reporter[bot] opened 1 year ago
Update: Still didn't change anything but the test is now passing again. I guess the delta used in the test is simply smaller than the actual price fluctuations. Therefore, I assume that this is indeed a problem because the delta value in the test wasn't chosen by accident and is, in practice, violated sometimes.
Update: Again, no change, but the test is failing again.
Hello, Thanks a lot for your attention.
This case happens sometimes because CoinGecko returns an average price for an asset between different sources.
In conclusion we have so to consider this issue as invalid.
Github username: @marcobesier Submission hash (on-chain): 0x4bfe1e8b973ba8f26fa69787cf016a60363e16f49645088e3fba6559de4b6719 Severity: medium
Description: Description\ While I didn't make any changes to the codebase, the "Should compute Token prices in $" test in test/mocked-assets/Oracles/CvgOracle/oracle-test.js suddenly started to return the following AssertionError:
I ran the test suite multiple times, and the issue continued to persist. My git diff is clear.
Attack Scenario\ Since this issue suddenly occurred with no changes in the codebase, I, unfortunately, can't provide a reproducible attack here other than running the existing test suite multiple times.
Attachments
Proof of Concept (PoC) File
The existing code base.
Revised Code File (Optional)