@gearbox-protocol/periphery-v3 1.7.0 → 1.7.1

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.
package/README.md CHANGED
@@ -64,3 +64,9 @@ $ forge --help
64
64
  $ anvil --help
65
65
  $ cast --help
66
66
  ```
67
+
68
+
69
+
70
+ ### Important information for contributors
71
+
72
+ As a contributor to the Gearbox Protocol GitHub repository, your pull requests indicate acceptance of our Gearbox Contribution Agreement. This agreement outlines that you assign the Intellectual Property Rights of your contributions to the Gearbox Foundation. This helps safeguard the Gearbox protocol and ensure the accumulation of its intellectual property. Contributions become part of the repository and may be used for various purposes, including commercial. As recognition for your expertise and work, you receive the opportunity to participate in the protocol's development and the potential to see your work integrated within it. The full Gearbox Contribution Agreement is accessible within the [repository](/ContributionAgreement) for comprehensive understanding. [Let's innovate together!]
@@ -35,7 +35,7 @@ contract PriceFeedCompressor is BaseCompressor, IPriceFeedCompressor {
35
35
  using NestedPriceFeeds for IPriceFeed;
36
36
 
37
37
  /// @notice Contract version
38
- uint256 public constant override version = 3_10;
38
+ uint256 public constant override version = 3_11;
39
39
 
40
40
  /// @notice Contract type
41
41
  bytes32 public constant override contractType = AP_PRICE_FEED_COMPRESSOR;
@@ -275,7 +275,9 @@ contract PriceFeedCompressor is BaseCompressor, IPriceFeedCompressor {
275
275
  data.baseParams =
276
276
  priceFeed.getBaseParams(data.baseParams.contractType, serializers[data.baseParams.contractType]);
277
277
 
278
- data.decimals = IPriceFeed(priceFeed).decimals();
278
+ try IPriceFeed(priceFeed).decimals() returns (uint8 decimals) {
279
+ data.decimals = decimals;
280
+ } catch {}
279
281
 
280
282
  try IPriceFeed(priceFeed).skipPriceCheck() returns (bool skipCheck) {
281
283
  data.skipCheck = skipCheck;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gearbox-protocol/periphery-v3",
3
- "version": "1.7.0",
3
+ "version": "1.7.1",
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>",