@gearbox-protocol/periphery-v3 1.7.0-next.10 → 1.7.0-next.11

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -3,8 +3,6 @@
3
3
  // (c) Gearbox Foundation, 2024.
4
4
  pragma solidity ^0.8.17;
5
5
 
6
- import {Ownable} from "@openzeppelin/contracts/access/Ownable.sol";
7
-
8
6
  import {AddressIsNotContractException} from "@gearbox-protocol/core-v3/contracts/interfaces/IExceptions.sol";
9
7
  import {IPriceOracleV3, PriceFeedParams} from "@gearbox-protocol/core-v3/contracts/interfaces/IPriceOracleV3.sol";
10
8
  import {IPriceFeed, IUpdatablePriceFeed} from "@gearbox-protocol/core-v3/contracts/interfaces/base/IPriceFeed.sol";
@@ -37,7 +35,7 @@ interface IPriceOracleV3Legacy {
37
35
  /// @title Price feed compressor
38
36
  /// @notice Allows to fetch all useful data from price oracle in a single call
39
37
  /// @dev The contract is not gas optimized and is thus not recommended for on-chain use
40
- contract PriceFeedCompressor is IVersion, Ownable {
38
+ contract PriceFeedCompressor is IVersion {
41
39
  using NestedPriceFeeds for IPriceFeed;
42
40
 
43
41
  /// @notice Contract version
@@ -51,12 +49,9 @@ contract PriceFeedCompressor is IVersion, Ownable {
51
49
  event SetSerializer(uint8 indexed priceFeedType, address indexed serializer);
52
50
 
53
51
  /// @notice Constructor
54
- /// @param owner Contract owner
55
52
  /// @dev Sets serializers for existing price feed types.
56
53
  /// It is recommended to implement `IStateSerializer` in new price feeds.
57
- constructor(address owner) {
58
- transferOwnership(owner);
59
-
54
+ constructor() {
60
55
  address lpSerializer = address(new LPPriceFeedSerializer());
61
56
  // these types can be serialized as generic LP price feeds
62
57
  _setSerializer(uint8(PriceFeedType.BALANCER_STABLE_LP_ORACLE), lpSerializer);
@@ -78,12 +73,6 @@ contract PriceFeedCompressor is IVersion, Ownable {
78
73
  _setSerializer(uint8(PriceFeedType.REDSTONE_ORACLE), address(new RedstonePriceFeedSerializer()));
79
74
  }
80
75
 
81
- /// @notice Sets state serializer for a given price feed type (unsets if `serializer` is `address(0)`)
82
- function setSerializer(uint8 priceFeedType, address serializer) external onlyOwner {
83
- if (serializer != address(0) && serializer.code.length == 0) revert AddressIsNotContractException(serializer);
84
- _setSerializer(priceFeedType, serializer);
85
- }
86
-
87
76
  /// @notice Returns all potentially useful price feeds data for a given price oracle in the form of two arrays:
88
77
  /// - `priceFeedMap` is a set of entries in the map (token, reserve) => (priceFeed, stalenessPeirod).
89
78
  /// These are all the price feeds one can actually query via the price oracle.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gearbox-protocol/periphery-v3",
3
- "version": "1.7.0-next.10",
3
+ "version": "1.7.0-next.11",
4
4
  "main": "index.js",
5
5
  "repository": "git@github.com:Gearbox-protocol/periphery-v3.git",
6
6
  "author": "Mikael <26343374+0xmikko@users.noreply.github.com>",