Skip to content

Commit

Permalink
Use more general interface for token transfer (#11216)
Browse files Browse the repository at this point in the history
  • Loading branch information
m-chrzan authored Sep 20, 2024
1 parent df84c5d commit c85d594
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/protocol/contracts-0.8/common/EpochManager.sol
Original file line number Diff line number Diff line change
@@ -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";
Expand Down Expand Up @@ -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");
Expand Down

0 comments on commit c85d594

Please sign in to comment.