diff --git a/contracts/ProtocolFeesDistributor.sol b/contracts/ProtocolFeesDistributor.sol index cb16554..489f940 100644 --- a/contracts/ProtocolFeesDistributor.sol +++ b/contracts/ProtocolFeesDistributor.sol @@ -9,6 +9,7 @@ import {ReentrancyGuard} from "@looksrare/contracts-libs/contracts/ReentrancyGua import {MerkleProof} from "@openzeppelin/contracts/utils/cryptography/MerkleProof.sol"; import {IBlast, GasMode, YieldMode} from "./interfaces/IBlast.sol"; +import {IBlastPoints} from "./interfaces/IBlastPoints.sol"; /** * @title ProtocolFeesDistributor @@ -50,16 +51,21 @@ contract ProtocolFeesDistributor is Pausable, ReentrancyGuard, OwnableTwoSteps, * @param _weth address of the WETH token * @param _owner address of the owner * @param _blast address of the BLAST precompile + * @param _blastPoints The Blast points configuration. + * @param _blastPointsOperator The Blast points operator. */ constructor( address _weth, address _owner, - address _blast + address _blast, + address _blastPoints, + address _blastPointsOperator ) OwnableTwoSteps(_owner) { WETH = _weth; merkleRootUsed[bytes32(0)] = true; IBlast(_blast).configure(YieldMode.CLAIMABLE, GasMode.CLAIMABLE, _owner); + IBlastPoints(_blastPoints).configurePointsOperator(_blastPointsOperator); } /** diff --git a/contracts/interfaces/IBlastPoints.sol b/contracts/interfaces/IBlastPoints.sol new file mode 100644 index 0000000..ba24c16 --- /dev/null +++ b/contracts/interfaces/IBlastPoints.sol @@ -0,0 +1,6 @@ +// SPDX-License-Identifier: MIT +pragma solidity ^0.8.0; + +interface IBlastPoints { + function configurePointsOperator(address operator) external; +} diff --git a/test/protocolFeesDistributor.test.ts b/test/protocolFeesDistributor.test.ts index fe153e3..ec5fccc 100644 --- a/test/protocolFeesDistributor.test.ts +++ b/test/protocolFeesDistributor.test.ts @@ -23,7 +23,9 @@ describe("ProtocolFeesDistributor", () => { protocolFeesDistributor = await ProtocolFeesDistributor.deploy( "0x4200000000000000000000000000000000000023", admin.address, - "0x4300000000000000000000000000000000000002" + "0x4300000000000000000000000000000000000002", + "0x2fc95838c71e76ec69ff817983BFf17c710F34E0", + admin.address ); await protocolFeesDistributor.deployed(); });