-
Notifications
You must be signed in to change notification settings - Fork 14
/
Copy pathWithRewards.sol
24 lines (18 loc) · 941 Bytes
/
WithRewards.sol
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
// SPDX-License-Identifier: GPL-3.0
// Docgen-SOLC: 0.8.15
pragma solidity ^0.8.15;
import { EIP165 } from "../../../utils/EIP165.sol";
import { OnlyStrategy } from "./OnlyStrategy.sol";
import { IWithRewards } from "../../../interfaces/vault/IWithRewards.sol";
import { IAdapter } from "../../../interfaces/vault/IAdapter.sol";
/// @notice Abstract base for adapters that have rewards
contract WithRewards is EIP165, OnlyStrategy {
function rewardTokens() external view virtual returns (address[] memory) {}
function claim() public virtual onlyStrategy {}
/*//////////////////////////////////////////////////////////////
EIP-165 LOGIC
//////////////////////////////////////////////////////////////*/
function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) {
return interfaceId == type(IWithRewards).interfaceId || interfaceId == type(IAdapter).interfaceId;
}
}