From c85d594b8d284073a130fdce236e35b33b87bf46 Mon Sep 17 00:00:00 2001 From: Martin Date: Fri, 20 Sep 2024 21:19:13 +0200 Subject: [PATCH] Use more general interface for token transfer (#11216) --- packages/protocol/contracts-0.8/common/EpochManager.sol | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/protocol/contracts-0.8/common/EpochManager.sol b/packages/protocol/contracts-0.8/common/EpochManager.sol index f06273a273..aa6fa57f02 100644 --- a/packages/protocol/contracts-0.8/common/EpochManager.sol +++ b/packages/protocol/contracts-0.8/common/EpochManager.sol @@ -1,11 +1,11 @@ // SPDX-License-Identifier: LGPL-3.0-only pragma solidity >=0.8.7 <0.8.20; +import "@openzeppelin/contracts8/token/ERC20/IERC20.sol"; import "@openzeppelin/contracts8/security/ReentrancyGuard.sol"; import "@openzeppelin/contracts8/access/Ownable.sol"; import "./interfaces/IOracle.sol"; -import "./interfaces/IStableToken.sol"; import "../common/UsingRegistry.sol"; import "../../contracts/common/FixidityLib.sol"; @@ -277,7 +277,7 @@ contract EpochManager is .fromFixed(); uint256 validatorPayment = remainingPayment.fromFixed() - delegatedPayment; - IStableToken stableToken = IStableToken(getStableToken()); + IERC20 stableToken = IERC20(getStableToken()); if (validatorPayment > 0) { require(stableToken.transfer(validator, validatorPayment), "transfer failed to validator");