@@ -3,7 +3,7 @@ pragma solidity ^0.8.22;
33
44import {ReentrancyGuard} from "@openzeppelin/contracts/utils/ReentrancyGuard.sol " ;
55import {ISmartnodesCore} from "./interfaces/ISmartnodesCore.sol " ;
6- import {ISmartnodesToken } from "./interfaces/ISmartnodesToken .sol " ;
6+ import {ISmartnodesERC20 } from "./interfaces/ISmartnodesERC20 .sol " ;
77
88/**
99 * @title SmartnodesCoordinator
@@ -31,7 +31,7 @@ contract SmartnodesCoordinator is ReentrancyGuard {
3131
3232 // ============= State Variables ==============
3333 ISmartnodesCore private immutable i_smartnodesCore;
34- ISmartnodesToken private immutable i_smartnodesToken;
34+ ISmartnodesERC20 private immutable i_smartnodesToken;
3535 uint8 private immutable i_requiredApprovalsPercentage;
3636
3737 // Packed time-related variables
@@ -134,7 +134,7 @@ contract SmartnodesCoordinator is ReentrancyGuard {
134134 }
135135
136136 i_smartnodesCore = ISmartnodesCore (_smartnodesCore);
137- i_smartnodesToken = ISmartnodesToken (_smartnodesToken);
137+ i_smartnodesToken = ISmartnodesERC20 (_smartnodesToken);
138138 i_requiredApprovalsPercentage = _requiredApprovalsPercentage;
139139
140140 timeConfig = TimeConfig ({
@@ -269,7 +269,6 @@ contract SmartnodesCoordinator is ReentrancyGuard {
269269
270270 // Verify proposal data integrity
271271 bytes32 computedHash = _computeProposalHash (
272- proposalId,
273272 merkleRoot,
274273 validatorsToRemove,
275274 jobHashes,
@@ -557,7 +556,6 @@ contract SmartnodesCoordinator is ReentrancyGuard {
557556 }
558557
559558 function _computeProposalHash (
560- uint8 proposalId ,
561559 bytes32 merkleRoot ,
562560 address [] calldata validatorsToRemove ,
563561 bytes32 [] calldata jobHashes ,
@@ -567,7 +565,6 @@ contract SmartnodesCoordinator is ReentrancyGuard {
567565 return
568566 keccak256 (
569567 abi.encode (
570- proposalId,
571568 merkleRoot,
572569 validatorsToRemove,
573570 jobHashes,
0 commit comments