Skip to content

Commit f9e9a5f

Browse files
committed
feat: IXEVT interface
1 parent e1c67a7 commit f9e9a5f

File tree

2 files changed

+9
-5
lines changed

2 files changed

+9
-5
lines changed

contracts/interfaces/IXEVT.sol

+6
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
// SPDX-License-Identifier: UNLICENSED
2+
pragma solidity ^0.8.19;
3+
4+
interface IXEVT {
5+
function isAllowed(address) external returns (bool);
6+
}

test/fuzz/MultiBlockHarvester.t.sol

+3-5
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,8 @@ import "contracts/helpers/MultiBlockHarvester.sol";
1717

1818
import "contracts/transmuter/Storage.sol";
1919

20+
import { IXEVT } from "interfaces/IXEVT.sol";
21+
2022
import { IERC4626 } from "oz/token/ERC20/extensions/ERC4626.sol";
2123
import { IAccessControl } from "oz/access/IAccessControl.sol";
2224

@@ -151,7 +153,7 @@ contract MultiBlockHarvestertTest is Fixture, FunctionUtils {
151153
// mock isAllowed(address) returns (bool) to transfer XEVT
152154
vm.mockCall(
153155
0x9019Fd383E490B4B045130707C9A1227F36F4636,
154-
abi.encodeWithSelector(Wow.isAllowed.selector),
156+
abi.encodeWithSelector(IXEVT.isAllowed.selector),
155157
abi.encode(true)
156158
);
157159

@@ -567,7 +569,3 @@ contract MultiBlockHarvestertTest is Fixture, FunctionUtils {
567569
harvester.setYieldBearingAssetData(yieldBearingAsset, stablecoin, targetExposure, minExposure, maxExposure, 1);
568570
}
569571
}
570-
571-
interface Wow {
572-
function isAllowed(address) external returns (bool);
573-
}

0 commit comments

Comments
 (0)