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

Generic price data provider running. Looking to depeg next #143

Draft
wants to merge 13 commits into
base: earthquake-v2-sherlock-audit
Choose a base branch
from

Conversation

JustinGirard
Copy link


DO NOT PULL (in progress)

This is a running version of a generic controller, meaning the stake price is generic. However, the dpeg event is still anchored to price data, and I am working on generalizing that with a generic condition interface.

Interesting files: All in Controllers for now:
Controllers

  • ControllerGenericV2.sol - A controller with some work in progress around moving price out
  • ChainlinkPriceProvider.sol & IPriceProvider.sol - A first pass at a provider which provides on demand price data when requested
  • PriceBasedDepegCondition.sol_inprogress & IDepegCondition.sol - (in progress) a Generic Depeg condition trigger, that rests on top of any IPriceProvider.
  • EndToEndV2GenericTest.t.sol - Test case, which sets up the ControllerGenericV2 and tests it.

As I am still onboarding, I chose to create a new controller and independent EndToEndV2GenericTest, as to not disrupt any other class.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant