-
Notifications
You must be signed in to change notification settings - Fork 2
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
New range parameters #5
base: main
Are you sure you want to change the base?
Conversation
src/oracle/LBHooksOracle.sol
Outdated
/** | ||
* @title LB Hooks Oracle | ||
* @dev Abstract contract for the LB Hooks Oracle Rewarder | ||
* This contract allows to distribute rewardsto LPs of the [oracleId + deltaBinA, oracleId + deltaBinB[ bins |
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.
typo
src/oracle/OracleIdChainlink.sol
Outdated
if (answer <= 0 || uint256(answer) > type(uint128).max) revert OracleIdChainlink__InvalidPrice(); | ||
if (block.timestamp > updatedAt + _heartbeat) revert OracleIdChainlink__StalePrice(); | ||
|
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.
If this reverts it will prevent anyone from doing anything with the pair, isn't it a bit too much ? Of course we can disable the oracle but that would take a few hours, it might be more acceptable to just skip updating the id ? (meaning we store the previous answer of this function in the contract storage and use it if the oracle is failing for some reasons)
Refactor the contracts to allow different range settings: