-
Notifications
You must be signed in to change notification settings - Fork 243
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
feat(target_chains/ethereum): add twap #2543
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎
5 Skipped Deployments
|
…tions for TWAP updates
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Very nice. I left some comments that are mostly minor but I like to see them addressed before approving.
…PythStructs and implementing calculateTwap function in PythUtils
… in TWAP calculations
…ckPyth contract and related ABIs
…yth contract tests
…nd adjust cumulative values calculation
…eConf types to price and conf
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice!
… MockPyth contract
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM!
Summary
TwapPriceFeed
,TwapPriceInfo
,TwapPriceFeedMessage
Rationale
These changes are necessary to:
How has this been tested?
Testing steps:
Added comprehensive positive test case for TWAP calculation verifying:
Added extensive negative test cases covering:
Manually verified: