ETH Price: $3,221.75 (-1.88%)

Contract Diff Checker

Contract Name:
KeeperWrapper

Contract Source Code:

File 1 of 1 : KeeperWrapper

// SPDX-License-Identifier: AGPL-3.0
pragma solidity 0.6.12;

interface IStrategy {
    function harvest() external;
}

/// @notice This contract allows anyone to harvest automated yearn strategies
/// @dev Automated yearn strategies do not swap tokens during harvests
contract KeeperWrapper {
    /// @notice Calls harvest on the strategy address entered
    /// @dev Will revert if the strategy's keeper is not set to this address
    /// @param _strategy Address of the strategy to harvest
    function harvest(address _strategy) external {
        IStrategy(_strategy).harvest();
    }
}

Please enter a contract address above to load the contract details and source code.

Context size (optional):