-
Notifications
You must be signed in to change notification settings - Fork 57
Alm plugin #143
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
base: integral-v1.2.1
Are you sure you want to change the base?
Alm plugin #143
Conversation
| slowTwapTick = _getTwapTick(slowTwapPeriod); | ||
| fastTwapTick = _getTwapTick(fastTwapPeriod); | ||
| } else { | ||
| failedToObtainTWAP = true; |
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.
IMO filedToObtainTWAP handling should be completely removed then. If the only case when it is true is before slowTwapPeriod then we perhaps should just skip rebalance and not set pause and Special state
| require(!isAlmInitialized, 'Already initialized'); | ||
| isAlmInitialized = true; | ||
| paused = false; | ||
| // TODO: добавить require'ов |
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.
Add require statements:
- vault is not zero
- thresholds validation
No description provided.