账户
0x0d...cad7
0x0D...CAd7

0x0D...CAd7

$500
此合同的源代码已经过验证!
合同元数据
编译器
0.6.12+commit.27d51765
语言
Solidity
合同源代码
文件 1 的 1:KeeperWrapper.sol
// 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();
    }
}
设置
{
  "compilationTarget": {
    "KeeperWrapper.sol": "KeeperWrapper"
  },
  "evmVersion": "istanbul",
  "libraries": {},
  "metadata": {
    "bytecodeHash": "ipfs"
  },
  "optimizer": {
    "enabled": true,
    "runs": 200
  },
  "remappings": []
}
ABI
[{"inputs":[{"internalType":"address","name":"_strategy","type":"address"}],"name":"harvest","outputs":[],"stateMutability":"nonpayable","type":"function"}]