-
Notifications
You must be signed in to change notification settings - Fork 158
Target rate update #265
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
Target rate update #265
Conversation
| using UInt256Lib for uint256; | ||
|
|
||
| /// @notice DEPRECATED. | ||
| event LogRebase( |
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.
We need to update and redeploy the subgraph index based on either LogRebase and Rebase.
ca56426 to
ad58b29
Compare
contracts/UFragmentsPolicy.sol
Outdated
| uint256 currentRate; | ||
| bool currentRateValid; | ||
| (currentRate, currentRateValid) = marketOracle.getData(); | ||
| require(currentRateValid); |
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.
can we keep names as is :) ?
3403bb9 to
3296e35
Compare
fd5d900 to
cf50107
Compare
brandoniles
left a comment
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
| uint256 reportDelaySec_, | ||
| uint256 minimumProviders_ | ||
| uint256 minimumProviders_, | ||
| uint256 scalar_ |
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.
Thinking about this more I think we need different scalar for different providers when using different sources for target price (we can do that in a later change though)
Co-authored-by: Brandon Iles <brandon.iles@gmail.com>
a7b2581 to
6800a35
Compare
output = median*scalar