Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Audit Fixes: QS-11 #41

Merged
merged 3 commits into from
Nov 29, 2023
Merged

Audit Fixes: QS-11 #41

merged 3 commits into from
Nov 29, 2023

Conversation

TechnoGeek01
Copy link
Contributor

@TechnoGeek01 TechnoGeek01 commented Nov 25, 2023

image

References:-
1.) https://blog.uniswap.org/uniswap-v3-oracles
2.) https://smartcontentpublication.medium.com/twap-oracles-vs-chainlink-price-feeds-a-comparative-analysis-8155a3483cbd

Notes:-
Most protocols use 30 min twap window. Too low value can be prone to manipulation and too high value can lead to price lag.

  • Add maperiod lower and upper boundaries
  • Add test cases

@TechnoGeek01 TechnoGeek01 self-assigned this Nov 25, 2023
Copy link

SPE-11

contracts/oracle/BaseUniOracle.sol Outdated Show resolved Hide resolved
@YashP16 YashP16 merged commit 943b95d into dev Nov 29, 2023
1 check passed
@YashP16 YashP16 deleted the fix/oracle-maperiod-validation branch January 17, 2024 10:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants