@gearbox-protocol/periphery-v3 1.3.13 → 1.3.15

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.
@@ -10,6 +10,8 @@ import {
10
10
  import {IDegenNFTV2} from "@gearbox-protocol/core-v2/contracts/interfaces/IDegenNFTV2.sol";
11
11
  import {IDegenDistributorV3} from "../interfaces/IDegenDistributorV3.sol";
12
12
 
13
+ bytes32 constant AP_DEGEN_NFT = "DEGEN_NFT";
14
+
13
15
  contract DegenDistributorV3 is IDegenDistributorV3 {
14
16
  uint256 version = 3_00;
15
17
 
@@ -33,9 +35,9 @@ contract DegenDistributorV3 is IDegenDistributorV3 {
33
35
  _;
34
36
  }
35
37
 
36
- constructor(address addressProvider, address _degenNFT) {
37
- degenNFT = _degenNFT;
38
+ constructor(address addressProvider) {
38
39
  treasury = IAddressProviderV3(addressProvider).getAddressOrRevert(AP_TREASURY, NO_VERSION_CONTROL);
40
+ degenNFT = IAddressProviderV3(addressProvider).getAddressOrRevert(AP_DEGEN_NFT, 2);
39
41
  }
40
42
 
41
43
  function updateMerkleRoot(bytes32 newRoot) external treasuryOnly {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gearbox-protocol/periphery-v3",
3
- "version": "1.3.13",
3
+ "version": "1.3.15",
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>",