Closed zmanian closed 3 months ago
The recent changes enhance the price oracle management system by introducing new oracles for TurboSteth and TurboGHO, expanding the allowed price oracles, and improving the validation function. These updates enable the inclusion of additional oracles and strengthen the robustness of the oracle validation process, thereby broadening the system's overall functionality.
Files | Change Summary |
---|---|
src/cellars.rs |
Introduced constants for TURBOSTETH_ORACLE1 and TURBOGHO_ORACLE1 along with their allowed oracles. Updated ALLOWED_TURBOSWETH_PRICE_ORACLES to six entries and expanded ALLOWED_V2_5_CATALOGUE_POSITIONS to eight entries. Modified validate_oracle to incorporate new checks for TurboSteth and TurboGHO. |
sequenceDiagram
participant User
participant Validator
participant PriceOracle
User->>Validator: Request oracle validation
Validator->>PriceOracle: Check if oracle is allowed
PriceOracle-->>Validator: Return validation result
Validator-->>User: Provide validation response
src/cellars.rs (4)
`27-31`: **LGTM!** The new constants `TURBOSTETH_ORACLE1` and `ALLOWED_TURBOSTETH_PRICE_ORACLES` are correctly defined with lowercase addresses. --- `34-39`: **LGTM!** The new constants `TURBOGHO_ORACLE1` and `ALLOWED_TURBOGHO_PRICE_ORACLES` are correctly defined with lowercase addresses. --- `64-75`: **LGTM!** The new constant `TURBOSWETH_ORACLE6` is correctly added to the `ALLOWED_TURBOSWETH_PRICE_ORACLES` array with a lowercase address. --- `170-178`: **LGTM!** The `ALLOWED_V2_5_CATALOGUE_POSITIONS` array has been correctly expanded to include new entries for `CELLAR_RYBTC` and `CELLAR_ETH_GROWTH`.
Summary by CodeRabbit
New Features
Improvements