ETH Price: $2,569.94 (+1.15%)

Contract

0x88658024635F3fA0d84e87822Dd840dbcfD7F110
 

Overview

ETH Balance

0 ETH

Eth Value

$0.00

Multichain Info

No addresses found
Transaction Hash
Method
Block
From
To
Earn138475192021-12-21 8:43:121005 days ago1640076192IN
0x88658024...bcfD7F110
0 ETH0.0076081244.1932041
Earn135410942021-11-03 1:53:521053 days ago1635904432IN
0x88658024...bcfD7F110
0 ETH0.02495276144.94277733
Harvest134468772021-10-19 7:30:321068 days ago1634628632IN
0x88658024...bcfD7F110
0 ETH0.017272943.3252297
Earn134457122021-10-19 3:11:051068 days ago1634613065IN
0x88658024...bcfD7F110
0 ETH0.0089897944.17026263
0x60806040134404802021-10-18 7:29:461069 days ago1634542186IN
 Create: StrategyCompound
0 ETH0.0915789649.64006093

Latest 25 internal transactions (View All)

Advanced mode:
Parent Transaction Hash Block From To
203547622024-07-21 11:57:5962 days ago1721563079
0x88658024...bcfD7F110
0 ETH
203547622024-07-21 11:57:5962 days ago1721563079
0x88658024...bcfD7F110
0 ETH
203547622024-07-21 11:57:5962 days ago1721563079
0x88658024...bcfD7F110
0 ETH
203547552024-07-21 11:56:3562 days ago1721562995
0x88658024...bcfD7F110
0 ETH
203547552024-07-21 11:56:3562 days ago1721562995
0x88658024...bcfD7F110
0 ETH
203547552024-07-21 11:56:3562 days ago1721562995
0x88658024...bcfD7F110
0 ETH
174821932023-06-15 2:01:35464 days ago1686794495
0x88658024...bcfD7F110
0 ETH
174821932023-06-15 2:01:35464 days ago1686794495
0x88658024...bcfD7F110
0 ETH
174821932023-06-15 2:01:35464 days ago1686794495
0x88658024...bcfD7F110
0 ETH
161652742022-12-12 1:13:47649 days ago1670807627
0x88658024...bcfD7F110
0 ETH
161652742022-12-12 1:13:47649 days ago1670807627
0x88658024...bcfD7F110
0 ETH
161652742022-12-12 1:13:47649 days ago1670807627
0x88658024...bcfD7F110
0 ETH
155697142022-09-19 19:44:11733 days ago1663616651
0x88658024...bcfD7F110
0 ETH
155697142022-09-19 19:44:11733 days ago1663616651
0x88658024...bcfD7F110
0 ETH
155697142022-09-19 19:44:11733 days ago1663616651
0x88658024...bcfD7F110
0 ETH
149583512022-06-13 22:11:46830 days ago1655158306
0x88658024...bcfD7F110
0 ETH
149583512022-06-13 22:11:46830 days ago1655158306
0x88658024...bcfD7F110
0 ETH
149583512022-06-13 22:11:46830 days ago1655158306
0x88658024...bcfD7F110
0 ETH
149402572022-06-10 19:54:30834 days ago1654890870
0x88658024...bcfD7F110
0 ETH
149402572022-06-10 19:54:30834 days ago1654890870
0x88658024...bcfD7F110
0 ETH
149402572022-06-10 19:54:30834 days ago1654890870
0x88658024...bcfD7F110
0 ETH
148261492022-05-22 23:09:43852 days ago1653260983
0x88658024...bcfD7F110
0 ETH
148261492022-05-22 23:09:43852 days ago1653260983
0x88658024...bcfD7F110
0 ETH
148261492022-05-22 23:09:43852 days ago1653260983
0x88658024...bcfD7F110
0 ETH
143399482022-03-07 13:25:49929 days ago1646659549
0x88658024...bcfD7F110
0 ETH
View All Internal Transactions
Loading...
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
StrategyCompound

Compiler Version
v0.6.12+commit.27d51765

Optimization Enabled:
Yes with 200 runs

Other Settings:
default evmVersion, MIT license

Contract Source Code (Solidity)

/**
 *Submitted for verification at Etherscan.io on 2021-10-18
*/

// SPDX-License-Identifier: MIT

pragma solidity 0.6.12;



// Part: ICToken

interface ICToken {
    function mint(uint256 mintAmount) external returns (uint256);
    function redeem(uint256 redeemTokens) external returns (uint256);
    function redeemUnderlying(uint256 redeemAmount) external returns (uint256);
    function exchangeRateStored() external view returns (uint256);
    function balanceOf(address _owner) external view returns (uint256);
}

// Part: ICompController

interface ICompController {
    function claimComp(address holder, address[] calldata cTokens) external;
    function claimComp(address[] calldata holders, address[] calldata cTokens, bool borrowers, bool suppliers) external;
}

// Part: IController

interface IController {
    function mint(address, uint256) external;
    function withdraw(address, uint256) external;
    function withdrawVote(address, uint256) external;
    function deposit(address, uint256) external;
    function depositVote(address, uint256) external;
    function totalAssets(address) external view returns (uint256);
    function rewards() external view returns (address);
    function strategies(address) external view returns (address);
    function vaults(address) external view returns (address);
    function setHarvestInfo(address _token, uint256 _harvestReward) external;
}

// Part: OpenZeppelin/[email protected]/Address

/**
 * @dev Collection of functions related to the address type
 */
library Address {
    /**
     * @dev Returns true if `account` is a contract.
     *
     * [IMPORTANT]
     * ====
     * It is unsafe to assume that an address for which this function returns
     * false is an externally-owned account (EOA) and not a contract.
     *
     * Among others, `isContract` will return false for the following
     * types of addresses:
     *
     *  - an externally-owned account
     *  - a contract in construction
     *  - an address where a contract will be created
     *  - an address where a contract lived, but was destroyed
     * ====
     */
    function isContract(address account) internal view returns (bool) {
        // According to EIP-1052, 0x0 is the value returned for not-yet created accounts
        // and 0xc5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a470 is returned
        // for accounts without code, i.e. `keccak256('')`
        bytes32 codehash;
        bytes32 accountHash = 0xc5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a470;
        // solhint-disable-next-line no-inline-assembly
        assembly { codehash := extcodehash(account) }
        return (codehash != accountHash && codehash != 0x0);
    }

    /**
     * @dev Replacement for Solidity's `transfer`: sends `amount` wei to
     * `recipient`, forwarding all available gas and reverting on errors.
     *
     * https://eips.ethereum.org/EIPS/eip-1884[EIP1884] increases the gas cost
     * of certain opcodes, possibly making contracts go over the 2300 gas limit
     * imposed by `transfer`, making them unable to receive funds via
     * `transfer`. {sendValue} removes this limitation.
     *
     * https://diligence.consensys.net/posts/2019/09/stop-using-soliditys-transfer-now/[Learn more].
     *
     * IMPORTANT: because control is transferred to `recipient`, care must be
     * taken to not create reentrancy vulnerabilities. Consider using
     * {ReentrancyGuard} or the
     * https://solidity.readthedocs.io/en/v0.5.11/security-considerations.html#use-the-checks-effects-interactions-pattern[checks-effects-interactions pattern].
     */
    function sendValue(address payable recipient, uint256 amount) internal {
        require(address(this).balance >= amount, "Address: insufficient balance");

        // solhint-disable-next-line avoid-low-level-calls, avoid-call-value
        (bool success, ) = recipient.call{ value: amount }("");
        require(success, "Address: unable to send value, recipient may have reverted");
    }

    /**
     * @dev Performs a Solidity function call using a low level `call`. A
     * plain`call` is an unsafe replacement for a function call: use this
     * function instead.
     *
     * If `target` reverts with a revert reason, it is bubbled up by this
     * function (like regular Solidity function calls).
     *
     * Returns the raw returned data. To convert to the expected return value,
     * use https://solidity.readthedocs.io/en/latest/units-and-global-variables.html?highlight=abi.decode#abi-encoding-and-decoding-functions[`abi.decode`].
     *
     * Requirements:
     *
     * - `target` must be a contract.
     * - calling `target` with `data` must not revert.
     *
     * _Available since v3.1._
     */
    function functionCall(address target, bytes memory data) internal returns (bytes memory) {
      return functionCall(target, data, "Address: low-level call failed");
    }

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], but with
     * `errorMessage` as a fallback revert reason when `target` reverts.
     *
     * _Available since v3.1._
     */
    function functionCall(address target, bytes memory data, string memory errorMessage) internal returns (bytes memory) {
        return _functionCallWithValue(target, data, 0, errorMessage);
    }

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],
     * but also transferring `value` wei to `target`.
     *
     * Requirements:
     *
     * - the calling contract must have an ETH balance of at least `value`.
     * - the called Solidity function must be `payable`.
     *
     * _Available since v3.1._
     */
    function functionCallWithValue(address target, bytes memory data, uint256 value) internal returns (bytes memory) {
        return functionCallWithValue(target, data, value, "Address: low-level call with value failed");
    }

    /**
     * @dev Same as {xref-Address-functionCallWithValue-address-bytes-uint256-}[`functionCallWithValue`], but
     * with `errorMessage` as a fallback revert reason when `target` reverts.
     *
     * _Available since v3.1._
     */
    function functionCallWithValue(address target, bytes memory data, uint256 value, string memory errorMessage) internal returns (bytes memory) {
        require(address(this).balance >= value, "Address: insufficient balance for call");
        return _functionCallWithValue(target, data, value, errorMessage);
    }

    function _functionCallWithValue(address target, bytes memory data, uint256 weiValue, string memory errorMessage) private returns (bytes memory) {
        require(isContract(target), "Address: call to non-contract");

        // solhint-disable-next-line avoid-low-level-calls
        (bool success, bytes memory returndata) = target.call{ value: weiValue }(data);
        if (success) {
            return returndata;
        } else {
            // Look for revert reason and bubble it up if present
            if (returndata.length > 0) {
                // The easiest way to bubble the revert reason is using memory via assembly

                // solhint-disable-next-line no-inline-assembly
                assembly {
                    let returndata_size := mload(returndata)
                    revert(add(32, returndata), returndata_size)
                }
            } else {
                revert(errorMessage);
            }
        }
    }
}

// Part: OpenZeppelin/[email protected]/IERC20

/**
 * @dev Interface of the ERC20 standard as defined in the EIP.
 */
interface IERC20 {
    /**
     * @dev Returns the amount of tokens in existence.
     */
    function totalSupply() external view returns (uint256);

    /**
     * @dev Returns the amount of tokens owned by `account`.
     */
    function balanceOf(address account) external view returns (uint256);

    /**
     * @dev Moves `amount` tokens from the caller's account to `recipient`.
     *
     * Returns a boolean value indicating whether the operation succeeded.
     *
     * Emits a {Transfer} event.
     */
    function transfer(address recipient, uint256 amount) external returns (bool);

    /**
     * @dev Returns the remaining number of tokens that `spender` will be
     * allowed to spend on behalf of `owner` through {transferFrom}. This is
     * zero by default.
     *
     * This value changes when {approve} or {transferFrom} are called.
     */
    function allowance(address owner, address spender) external view returns (uint256);

    /**
     * @dev Sets `amount` as the allowance of `spender` over the caller's tokens.
     *
     * Returns a boolean value indicating whether the operation succeeded.
     *
     * IMPORTANT: Beware that changing an allowance with this method brings the risk
     * that someone may use both the old and the new allowance by unfortunate
     * transaction ordering. One possible solution to mitigate this race
     * condition is to first reduce the spender's allowance to 0 and set the
     * desired value afterwards:
     * https://github.com/ethereum/EIPs/issues/20#issuecomment-263524729
     *
     * Emits an {Approval} event.
     */
    function approve(address spender, uint256 amount) external returns (bool);

    /**
     * @dev Moves `amount` tokens from `sender` to `recipient` using the
     * allowance mechanism. `amount` is then deducted from the caller's
     * allowance.
     *
     * Returns a boolean value indicating whether the operation succeeded.
     *
     * Emits a {Transfer} event.
     */
    function transferFrom(address sender, address recipient, uint256 amount) external returns (bool);

    /**
     * @dev Emitted when `value` tokens are moved from one account (`from`) to
     * another (`to`).
     *
     * Note that `value` may be zero.
     */
    event Transfer(address indexed from, address indexed to, uint256 value);

    /**
     * @dev Emitted when the allowance of a `spender` for an `owner` is set by
     * a call to {approve}. `value` is the new allowance.
     */
    event Approval(address indexed owner, address indexed spender, uint256 value);
}

// Part: OpenZeppelin/[email protected]/SafeMath

/**
 * @dev Wrappers over Solidity's arithmetic operations with added overflow
 * checks.
 *
 * Arithmetic operations in Solidity wrap on overflow. This can easily result
 * in bugs, because programmers usually assume that an overflow raises an
 * error, which is the standard behavior in high level programming languages.
 * `SafeMath` restores this intuition by reverting the transaction when an
 * operation overflows.
 *
 * Using this library instead of the unchecked operations eliminates an entire
 * class of bugs, so it's recommended to use it always.
 */
library SafeMath {
    /**
     * @dev Returns the addition of two unsigned integers, reverting on
     * overflow.
     *
     * Counterpart to Solidity's `+` operator.
     *
     * Requirements:
     *
     * - Addition cannot overflow.
     */
    function add(uint256 a, uint256 b) internal pure returns (uint256) {
        uint256 c = a + b;
        require(c >= a, "SafeMath: addition overflow");

        return c;
    }

    /**
     * @dev Returns the subtraction of two unsigned integers, reverting on
     * overflow (when the result is negative).
     *
     * Counterpart to Solidity's `-` operator.
     *
     * Requirements:
     *
     * - Subtraction cannot overflow.
     */
    function sub(uint256 a, uint256 b) internal pure returns (uint256) {
        return sub(a, b, "SafeMath: subtraction overflow");
    }

    /**
     * @dev Returns the subtraction of two unsigned integers, reverting with custom message on
     * overflow (when the result is negative).
     *
     * Counterpart to Solidity's `-` operator.
     *
     * Requirements:
     *
     * - Subtraction cannot overflow.
     */
    function sub(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) {
        require(b <= a, errorMessage);
        uint256 c = a - b;

        return c;
    }

    /**
     * @dev Returns the multiplication of two unsigned integers, reverting on
     * overflow.
     *
     * Counterpart to Solidity's `*` operator.
     *
     * Requirements:
     *
     * - Multiplication cannot overflow.
     */
    function mul(uint256 a, uint256 b) internal pure returns (uint256) {
        // Gas optimization: this is cheaper than requiring 'a' not being zero, but the
        // benefit is lost if 'b' is also tested.
        // See: https://github.com/OpenZeppelin/openzeppelin-contracts/pull/522
        if (a == 0) {
            return 0;
        }

        uint256 c = a * b;
        require(c / a == b, "SafeMath: multiplication overflow");

        return c;
    }

    /**
     * @dev Returns the integer division of two unsigned integers. Reverts on
     * division by zero. The result is rounded towards zero.
     *
     * Counterpart to Solidity's `/` operator. Note: this function uses a
     * `revert` opcode (which leaves remaining gas untouched) while Solidity
     * uses an invalid opcode to revert (consuming all remaining gas).
     *
     * Requirements:
     *
     * - The divisor cannot be zero.
     */
    function div(uint256 a, uint256 b) internal pure returns (uint256) {
        return div(a, b, "SafeMath: division by zero");
    }

    /**
     * @dev Returns the integer division of two unsigned integers. Reverts with custom message on
     * division by zero. The result is rounded towards zero.
     *
     * Counterpart to Solidity's `/` operator. Note: this function uses a
     * `revert` opcode (which leaves remaining gas untouched) while Solidity
     * uses an invalid opcode to revert (consuming all remaining gas).
     *
     * Requirements:
     *
     * - The divisor cannot be zero.
     */
    function div(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) {
        require(b > 0, errorMessage);
        uint256 c = a / b;
        // assert(a == b * c + a % b); // There is no case in which this doesn't hold

        return c;
    }

    /**
     * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo),
     * Reverts when dividing by zero.
     *
     * Counterpart to Solidity's `%` operator. This function uses a `revert`
     * opcode (which leaves remaining gas untouched) while Solidity uses an
     * invalid opcode to revert (consuming all remaining gas).
     *
     * Requirements:
     *
     * - The divisor cannot be zero.
     */
    function mod(uint256 a, uint256 b) internal pure returns (uint256) {
        return mod(a, b, "SafeMath: modulo by zero");
    }

    /**
     * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo),
     * Reverts with custom message when dividing by zero.
     *
     * Counterpart to Solidity's `%` operator. This function uses a `revert`
     * opcode (which leaves remaining gas untouched) while Solidity uses an
     * invalid opcode to revert (consuming all remaining gas).
     *
     * Requirements:
     *
     * - The divisor cannot be zero.
     */
    function mod(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) {
        require(b != 0, errorMessage);
        return a % b;
    }
}

// Part: OpenZeppelin/[email protected]/SafeERC20

/**
 * @title SafeERC20
 * @dev Wrappers around ERC20 operations that throw on failure (when the token
 * contract returns false). Tokens that return no value (and instead revert or
 * throw on failure) are also supported, non-reverting calls are assumed to be
 * successful.
 * To use this library you can add a `using SafeERC20 for IERC20;` statement to your contract,
 * which allows you to call the safe operations as `token.safeTransfer(...)`, etc.
 */
library SafeERC20 {
    using SafeMath for uint256;
    using Address for address;

    function safeTransfer(IERC20 token, address to, uint256 value) internal {
        _callOptionalReturn(token, abi.encodeWithSelector(token.transfer.selector, to, value));
    }

    function safeTransferFrom(IERC20 token, address from, address to, uint256 value) internal {
        _callOptionalReturn(token, abi.encodeWithSelector(token.transferFrom.selector, from, to, value));
    }

    /**
     * @dev Deprecated. This function has issues similar to the ones found in
     * {IERC20-approve}, and its usage is discouraged.
     *
     * Whenever possible, use {safeIncreaseAllowance} and
     * {safeDecreaseAllowance} instead.
     */
    function safeApprove(IERC20 token, address spender, uint256 value) internal {
        // safeApprove should only be called when setting an initial allowance,
        // or when resetting it to zero. To increase and decrease it, use
        // 'safeIncreaseAllowance' and 'safeDecreaseAllowance'
        // solhint-disable-next-line max-line-length
        require((value == 0) || (token.allowance(address(this), spender) == 0),
            "SafeERC20: approve from non-zero to non-zero allowance"
        );
        _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, value));
    }

    function safeIncreaseAllowance(IERC20 token, address spender, uint256 value) internal {
        uint256 newAllowance = token.allowance(address(this), spender).add(value);
        _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, newAllowance));
    }

    function safeDecreaseAllowance(IERC20 token, address spender, uint256 value) internal {
        uint256 newAllowance = token.allowance(address(this), spender).sub(value, "SafeERC20: decreased allowance below zero");
        _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, newAllowance));
    }

    /**
     * @dev Imitates a Solidity high-level call (i.e. a regular function call to a contract), relaxing the requirement
     * on the return value: the return value is optional (but if data is returned, it must not be false).
     * @param token The token targeted by the call.
     * @param data The call data (encoded using abi.encode or one of its variants).
     */
    function _callOptionalReturn(IERC20 token, bytes memory data) private {
        // We need to perform a low level call here, to bypass Solidity's return data size checking mechanism, since
        // we're implementing it ourselves. We use {Address.functionCall} to perform this call, which verifies that
        // the target address contains contract code and also asserts for success in the low-level call.

        bytes memory returndata = address(token).functionCall(data, "SafeERC20: low-level call failed");
        if (returndata.length > 0) { // Return data is optional
            // solhint-disable-next-line max-line-length
            require(abi.decode(returndata, (bool)), "SafeERC20: ERC20 operation did not succeed");
        }
    }
}

// File: StrategyCompound.sol

contract StrategyCompound {
    using SafeERC20 for IERC20;
    using SafeMath for uint256;

    address public governance;
    address public pendingGovernance;
    address public controller;
    address public strategist;

    uint256 public debt;
    bool public claim;
    uint256 public performanceFee = 500;
    uint256 constant public performanceMax = 10000;

    address constant public want   = address(0xc00e94Cb662C3520282E6f5717214004A7f26888);
    address constant public cComp  = address(0x70e36f6BF80a52b3B46b3aF8e106CC0ed743E8e4);
    address constant public dToken = address(0xD7ff7290C83a4B82AcCDf68247e47cF8a1589e51);
    address constant public eToken = address(0xC56e2a2455fFb19906ee6BA0CC7d4B9a4cE2c38C);

    ICompController constant public compController = ICompController(0x3d9819210A31b4961b30EF54bE2aeD79B9c9Cd3B);

    constructor(address _controller) public {
        governance = msg.sender;
        strategist = msg.sender;
        controller = _controller;
    }

    function getName() external pure returns (string memory) {
        return "StrategyCompound";
    }

    function acceptGovernance() external {
        require(msg.sender == pendingGovernance, "!pendingGovernance");
        governance = msg.sender;
        pendingGovernance = address(0);
    }
    function setPendingGovernance(address _pendingGovernance) external {
        require(msg.sender == governance, "!governance");
        pendingGovernance = _pendingGovernance;
    }
    function setController(address _controller) external {
        require(msg.sender == governance, "!governance");
        controller = _controller;
    }
    function setStrategist(address _strategist) external {
        require(msg.sender == strategist || msg.sender == governance, "!strategist");
        strategist = _strategist;
    }
    function setClaim(bool _claim) external {
        require(msg.sender == strategist || msg.sender == governance, "!strategist");
        claim = _claim;
    }
    function setPerformanceFee(uint256 _performanceFee) external {
        require(msg.sender == governance, "!governance");
        require(_performanceFee <= performanceMax, "!_performanceFee");
        performanceFee = _performanceFee;
    }

    function addDebt(uint256 _amount) external {
        require(msg.sender == controller, "!controller");
        uint256 _balance = IERC20(want).balanceOf(address(this));
        require(_balance >= _amount, "_balance < _amount");
        debt = debt.add(_amount);
    }

    // Withdraw partial funds, normally used with a vault withdrawal
    function withdraw(address _receiver, uint256 _amount) external {
        require(msg.sender == controller, "!controller");
        debt = debt.sub(_amount);
        _withdraw(_receiver, _amount);
    }

    function withdrawVote(address _receiver, uint256 _amount) external {
        require(msg.sender == controller, "!controller");
        _withdraw(_receiver, _amount);
    }

    function _withdraw(address _receiver, uint256 _amount) internal {
        uint256 _balance = IERC20(want).balanceOf(address(this));
        if (_balance < _amount) {
            ICToken(cComp).redeemUnderlying(_amount.sub(_balance));
            _balance = IERC20(want).balanceOf(address(this));
            if (_balance < _amount) {
                _amount = _balance;
            }
        }
        IERC20(want).safeTransfer(_receiver, _amount);
    }

    // Withdraw all funds, normally used when migrating strategies
    function withdrawAll(address _receiver) external returns (uint256 _balance) {
        require(msg.sender == controller, "!controller");
        uint256 _amount = balanceCComp();
        if (_amount > 0) {
            ICToken(cComp).redeem(_amount);
        }
        debt = 0;
        _balance = IERC20(want).balanceOf(address(this));
        IERC20(want).safeTransfer(_receiver, _balance);
    }

    function withdraw(address _asset) external returns (uint256 _balance) {
        require(msg.sender == controller, "!controller");
        require(want != address(_asset), "want");
        require(cComp != address(_asset), "cComp");
        _balance = IERC20(_asset).balanceOf(address(this));
        IERC20(_asset).safeTransfer(controller, _balance);
    }

    function earn() external {
        require(msg.sender == strategist || msg.sender == governance, "!strategist");
        uint256 _balance = IERC20(want).balanceOf(address(this));
        if (_balance > 0) {
            IERC20(want).approve(cComp, _balance);
            ICToken(cComp).mint(_balance);
        }
    }

    function harvest() external {
        require(msg.sender == strategist || msg.sender == governance, "!strategist");
        if (claim) {
            address[] memory holders = new address[](1);
            holders[0] = address(this);
            address[] memory cTokens = new address[](1);
            cTokens[0] = cComp;
            compController.claimComp(holders, cTokens, false, true);
        }
        uint256 _assets = totalAssets();
        if (_assets > debt){
            uint256 _amount = _assets - debt;
            IController(controller).mint(want, _amount);
            debt = _assets;

            address _vault = IController(controller).vaults(want);
            require(_vault != address(0), "address(0)");
            uint256 _fee = _amount.mul(performanceFee).div(performanceMax);
            uint256 _reward = _amount - _fee;
            IERC20(eToken).safeTransfer(_vault, _reward);
            IController(controller).setHarvestInfo(want, _reward);
            IERC20(eToken).safeTransfer(IController(controller).rewards(), _fee);
            IERC20(dToken).safeTransfer(IController(controller).rewards(), _amount);
        }
    }

    function balanceWant() public view returns (uint256) {
        return IERC20(want).balanceOf(address(this));
    }

    function balanceCCompToWant() public view returns (uint256) {
        uint256 _amount = balanceCComp();
        if (_amount > 0) {
            _amount = _amount.mul(ICToken(cComp).exchangeRateStored()).div(1e18);
        }
        return _amount;
    }

    function balanceCComp() public view returns (uint256) {
        return IERC20(cComp).balanceOf(address(this));
    }

    function totalAssets() public view returns (uint256) {
        return balanceWant().add(balanceCCompToWant());
    }

    function eTokenTotalSupply() public view returns (uint256) {
        return IERC20(eToken).totalSupply();
    }
    function dTokenTotalSupply() public view returns (uint256) {
        return IERC20(dToken).totalSupply();
    }

}

Contract Security Audit

Contract ABI

[{"inputs":[{"internalType":"address","name":"_controller","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[],"name":"acceptGovernance","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"addDebt","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"balanceCComp","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"balanceCCompToWant","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"balanceWant","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"cComp","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"claim","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"compController","outputs":[{"internalType":"contract ICompController","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"controller","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"dToken","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"dTokenTotalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"debt","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"eToken","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"eTokenTotalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"earn","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"getName","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"pure","type":"function"},{"inputs":[],"name":"governance","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"harvest","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"pendingGovernance","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"performanceFee","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"performanceMax","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bool","name":"_claim","type":"bool"}],"name":"setClaim","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_controller","type":"address"}],"name":"setController","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_pendingGovernance","type":"address"}],"name":"setPendingGovernance","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_performanceFee","type":"uint256"}],"name":"setPerformanceFee","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_strategist","type":"address"}],"name":"setStrategist","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"strategist","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalAssets","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"want","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_asset","type":"address"}],"name":"withdraw","outputs":[{"internalType":"uint256","name":"_balance","type":"uint256"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_receiver","type":"address"},{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"withdraw","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_receiver","type":"address"}],"name":"withdrawAll","outputs":[{"internalType":"uint256","name":"_balance","type":"uint256"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_receiver","type":"address"},{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"withdrawVote","outputs":[],"stateMutability":"nonpayable","type":"function"}]

60806040526101f460065534801561001657600080fd5b50604051611f4a380380611f4a8339818101604052602081101561003957600080fd5b505160008054336001600160a01b0319918216811783556003805483169091179055600280549091166001600160a01b0390931692909217909155611ec690819061008490396000f3fe608060405234801561001057600080fd5b50600436106101fb5760003560e01c806370897b231161011a578063c7b9d530116100ad578063f39c38a01161007c578063f39c38a014610452578063f3fef3a31461045a578063f60edfc214610486578063f77c4791146104b2578063fa09e630146104ba576101fb565b8063c7b9d53014610414578063d389800f1461043a578063d9d7858a14610442578063dcbf281b1461044a576101fb565b806392eefe9b116100e957806392eefe9b146103d6578063953064c8146103fc578063953d9cf1146104045780639cdd05f31461040c576101fb565b806370897b231461038c5780637cc79113146103a957806384837dc5146103b157806387788782146103ce576101fb565b80632cc5e2e31161019257806351cff8d91161016157806351cff8d91461034e578063553e185a146103745780635aa6e6751461037c57806367f3c52914610384576101fb565b80632cc5e2e31461031a5780633e7b4544146103225780634641257d1461032a5780634e71d92d14610332576101fb565b80631f1fcd51116101ce5780631f1fcd51146102c75780631fe4a686146102eb578063211418ab146102f3578063238efcbc14610312576101fb565b806301e1d114146102005780630abb60351461021a5780630dca59c11461024257806317d7de7c1461024a575b600080fd5b6102086104e0565b60408051918252519081900360200190f35b6102406004803603602081101561023057600080fd5b50356001600160a01b0316610500565b005b61020861056f565b610252610575565b6040805160208082528351818301528351919283929083019185019080838360005b8381101561028c578181015183820152602001610274565b50505050905090810190601f1680156102b95780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b6102cf61059f565b604080516001600160a01b039092168252519081900360200190f35b6102cf6105b1565b6102406004803603602081101561030957600080fd5b503515156105c0565b610240610635565b6102086106a9565b6102cf610729565b610240610741565b61033a610ccc565b604080519115158252519081900360200190f35b6102086004803603602081101561036457600080fd5b50356001600160a01b0316610cd5565b610208610e68565b6102cf610eb7565b610208610ec6565b610240600480360360208110156103a257600080fd5b5035610f1b565b610208610fb7565b610240600480360360208110156103c757600080fd5b5035610fbd565b6102086110e5565b610240600480360360208110156103ec57600080fd5b50356001600160a01b03166110eb565b61020861115a565b6102cf611202565b6102cf61121a565b6102406004803603602081101561042a57600080fd5b50356001600160a01b0316611232565b6102406112b6565b6102cf6114b2565b6102086114ca565b6102cf611519565b6102406004803603604081101561047057600080fd5b506001600160a01b038135169060200135611528565b6102406004803603604081101561049c57600080fd5b506001600160a01b038135169060200135611593565b6102cf6115ea565b610208600480360360208110156104d057600080fd5b50356001600160a01b03166115f9565b60006104fb6104ed61115a565b6104f56106a9565b90611782565b905090565b6000546001600160a01b0316331461054d576040805162461bcd60e51b815260206004820152600b60248201526a21676f7665726e616e636560a81b604482015290519081900360640190fd5b600180546001600160a01b0319166001600160a01b0392909216919091179055565b60045481565b60408051808201909152601081526f14dd1c985d1959de50dbdb5c1bdd5b9960821b602082015290565b600080516020611e2683398151915281565b6003546001600160a01b031681565b6003546001600160a01b03163314806105e357506000546001600160a01b031633145b610622576040805162461bcd60e51b815260206004820152600b60248201526a085cdd1c985d1959da5cdd60aa1b604482015290519081900360640190fd5b6005805460ff1916911515919091179055565b6001546001600160a01b03163314610689576040805162461bcd60e51b81526020600482015260126024820152712170656e64696e67476f7665726e616e636560701b604482015290519081900360640190fd5b600080546001600160a01b03199081163317909155600180549091169055565b604080516370a0823160e01b81523060048201529051600091600080516020611e26833981519152916370a0823191602480820192602092909190829003018186803b1580156106f857600080fd5b505afa15801561070c573d6000803e3d6000fd5b505050506040513d602081101561072257600080fd5b5051905090565b733d9819210a31b4961b30ef54be2aed79b9c9cd3b81565b6003546001600160a01b031633148061076457506000546001600160a01b031633145b6107a3576040805162461bcd60e51b815260206004820152600b60248201526a085cdd1c985d1959da5cdd60aa1b604482015290519081900360640190fd5b60055460ff161561096c576040805160018082528183019092526060916020808301908036833701905050905030816000815181106107de57fe5b6001600160a01b0392909216602092830291909101909101526040805160018082528183019092526060918160200160208202803683370190505090507370e36f6bf80a52b3b46b3af8e106cc0ed743e8e48160008151811061083d57fe5b60200260200101906001600160a01b031690816001600160a01b031681525050733d9819210a31b4961b30ef54be2aed79b9c9cd3b6001600160a01b0316636810dfa68383600060016040518563ffffffff1660e01b815260040180806020018060200185151581526020018415158152602001838103835287818151815260200191508051906020019060200280838360005b838110156108e95781810151838201526020016108d1565b50505050905001838103825286818151815260200191508051906020019060200280838360005b83811015610928578181015183820152602001610910565b505050509050019650505050505050600060405180830381600087803b15801561095157600080fd5b505af1158015610965573d6000803e3d6000fd5b5050505050505b60006109766104e0565b9050600454811115610cc95760048054600254604080516340c10f1960e01b8152600080516020611e268339815191529481019490945291840360248401819052915191926001600160a01b03909116916340c10f199160448082019260009290919082900301818387803b1580156109ee57600080fd5b505af1158015610a02573d6000803e3d6000fd5b505050600483815560025460408051632988bb9f60e21b8152600080516020611e268339815191529381019390935251600093506001600160a01b039091169163a622ee7c916024808301926020929190829003018186803b158015610a6757600080fd5b505afa158015610a7b573d6000803e3d6000fd5b505050506040513d6020811015610a9157600080fd5b505190506001600160a01b038116610add576040805162461bcd60e51b815260206004820152600a6024820152696164647265737328302960b01b604482015290519081900360640190fd5b6000610b00612710610afa600654866117e390919063ffffffff16565b9061183c565b9050808303610b2473c56e2a2455ffb19906ee6ba0cc7d4b9a4ce2c38c848361187e565b600254604080516335c5d1cd60e21b8152600080516020611e2683398151915260048201526024810184905290516001600160a01b039092169163d71747349160448082019260009290919082900301818387803b158015610b8557600080fd5b505af1158015610b99573d6000803e3d6000fd5b50505050610c36600260009054906101000a90046001600160a01b03166001600160a01b0316639ec5a8946040518163ffffffff1660e01b815260040160206040518083038186803b158015610bee57600080fd5b505afa158015610c02573d6000803e3d6000fd5b505050506040513d6020811015610c1857600080fd5b505173c56e2a2455ffb19906ee6ba0cc7d4b9a4ce2c38c908461187e565b600254604080516327b16a2560e21b81529051610cc4926001600160a01b031691639ec5a894916004808301926020929190829003018186803b158015610c7c57600080fd5b505afa158015610c90573d6000803e3d6000fd5b505050506040513d6020811015610ca657600080fd5b505173d7ff7290c83a4b82accdf68247e47cf8a1589e51908661187e565b505050505b50565b60055460ff1681565b6002546000906001600160a01b03163314610d25576040805162461bcd60e51b815260206004820152600b60248201526a10b1b7b73a3937b63632b960a91b604482015290519081900360640190fd5b600080516020611e268339815191526001600160a01b0383161415610d7a576040805162461bcd60e51b815260206004808301919091526024820152631dd85b9d60e21b604482015290519081900360640190fd5b7370e36f6bf80a52b3b46b3af8e106cc0ed743e8e46001600160a01b0383161415610dd4576040805162461bcd60e51b8152602060048201526005602482015264063436f6d760dc1b604482015290519081900360640190fd5b604080516370a0823160e01b815230600482015290516001600160a01b038416916370a08231916024808301926020929190829003018186803b158015610e1a57600080fd5b505afa158015610e2e573d6000803e3d6000fd5b505050506040513d6020811015610e4457600080fd5b5051600254909150610e63906001600160a01b0384811691168361187e565b919050565b600073d7ff7290c83a4b82accdf68247e47cf8a1589e516001600160a01b03166318160ddd6040518163ffffffff1660e01b815260040160206040518083038186803b1580156106f857600080fd5b6000546001600160a01b031681565b604080516370a0823160e01b815230600482015290516000917370e36f6bf80a52b3b46b3af8e106cc0ed743e8e4916370a0823191602480820192602092909190829003018186803b1580156106f857600080fd5b6000546001600160a01b03163314610f68576040805162461bcd60e51b815260206004820152600b60248201526a21676f7665726e616e636560a81b604482015290519081900360640190fd5b612710811115610fb2576040805162461bcd60e51b815260206004820152601060248201526f215f706572666f726d616e636546656560801b604482015290519081900360640190fd5b600655565b61271081565b6002546001600160a01b0316331461100a576040805162461bcd60e51b815260206004820152600b60248201526a10b1b7b73a3937b63632b960a91b604482015290519081900360640190fd5b604080516370a0823160e01b81523060048201529051600091600080516020611e26833981519152916370a0823191602480820192602092909190829003018186803b15801561105957600080fd5b505afa15801561106d573d6000803e3d6000fd5b505050506040513d602081101561108357600080fd5b50519050818110156110d1576040805162461bcd60e51b815260206004820152601260248201527117d8985b185b98d9480f0817d85b5bdd5b9d60721b604482015290519081900360640190fd5b6004546110de9083611782565b6004555050565b60065481565b6000546001600160a01b03163314611138576040805162461bcd60e51b815260206004820152600b60248201526a21676f7665726e616e636560a81b604482015290519081900360640190fd5b600280546001600160a01b0319166001600160a01b0392909216919091179055565b600080611165610ec6565b905080156104fb576111fc670de0b6b3a7640000610afa7370e36f6bf80a52b3b46b3af8e106cc0ed743e8e46001600160a01b031663182df0f56040518163ffffffff1660e01b815260040160206040518083038186803b1580156111c957600080fd5b505afa1580156111dd573d6000803e3d6000fd5b505050506040513d60208110156111f357600080fd5b505184906117e3565b92915050565b73c56e2a2455ffb19906ee6ba0cc7d4b9a4ce2c38c81565b7370e36f6bf80a52b3b46b3af8e106cc0ed743e8e481565b6003546001600160a01b031633148061125557506000546001600160a01b031633145b611294576040805162461bcd60e51b815260206004820152600b60248201526a085cdd1c985d1959da5cdd60aa1b604482015290519081900360640190fd5b600380546001600160a01b0319166001600160a01b0392909216919091179055565b6003546001600160a01b03163314806112d957506000546001600160a01b031633145b611318576040805162461bcd60e51b815260206004820152600b60248201526a085cdd1c985d1959da5cdd60aa1b604482015290519081900360640190fd5b604080516370a0823160e01b81523060048201529051600091600080516020611e26833981519152916370a0823191602480820192602092909190829003018186803b15801561136757600080fd5b505afa15801561137b573d6000803e3d6000fd5b505050506040513d602081101561139157600080fd5b505190508015610cc9576040805163095ea7b360e01b81527370e36f6bf80a52b3b46b3af8e106cc0ed743e8e46004820152602481018390529051600080516020611e268339815191529163095ea7b39160448083019260209291908290030181600087803b15801561140357600080fd5b505af1158015611417573d6000803e3d6000fd5b505050506040513d602081101561142d57600080fd5b50506040805163140e25ad60e31b81526004810183905290517370e36f6bf80a52b3b46b3af8e106cc0ed743e8e49163a0712d689160248083019260209291908290030181600087803b15801561148357600080fd5b505af1158015611497573d6000803e3d6000fd5b505050506040513d60208110156114ad57600080fd5b505050565b73d7ff7290c83a4b82accdf68247e47cf8a1589e5181565b600073c56e2a2455ffb19906ee6ba0cc7d4b9a4ce2c38c6001600160a01b03166318160ddd6040518163ffffffff1660e01b815260040160206040518083038186803b1580156106f857600080fd5b6001546001600160a01b031681565b6002546001600160a01b03163314611575576040805162461bcd60e51b815260206004820152600b60248201526a10b1b7b73a3937b63632b960a91b604482015290519081900360640190fd5b60045461158290826118d0565b60045561158f8282611912565b5050565b6002546001600160a01b031633146115e0576040805162461bcd60e51b815260206004820152600b60248201526a10b1b7b73a3937b63632b960a91b604482015290519081900360640190fd5b61158f8282611912565b6002546001600160a01b031681565b6002546000906001600160a01b03163314611649576040805162461bcd60e51b815260206004820152600b60248201526a10b1b7b73a3937b63632b960a91b604482015290519081900360640190fd5b6000611653610ec6565b905080156116e2577370e36f6bf80a52b3b46b3af8e106cc0ed743e8e46001600160a01b031663db006a75826040518263ffffffff1660e01b815260040180828152602001915050602060405180830381600087803b1580156116b557600080fd5b505af11580156116c9573d6000803e3d6000fd5b505050506040513d60208110156116df57600080fd5b50505b60006004908155604080516370a0823160e01b8152309281019290925251600080516020611e26833981519152916370a08231916024808301926020929190829003018186803b15801561173557600080fd5b505afa158015611749573d6000803e3d6000fd5b505050506040513d602081101561175f57600080fd5b5051915061177c600080516020611e26833981519152848461187e565b50919050565b6000828201838110156117dc576040805162461bcd60e51b815260206004820152601b60248201527f536166654d6174683a206164646974696f6e206f766572666c6f770000000000604482015290519081900360640190fd5b9392505050565b6000826117f2575060006111fc565b828202828482816117ff57fe5b04146117dc5760405162461bcd60e51b8152600401808060200182810382526021815260200180611e466021913960400191505060405180910390fd5b60006117dc83836040518060400160405280601a81526020017f536166654d6174683a206469766973696f6e206279207a65726f000000000000815250611abb565b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663a9059cbb60e01b1790526114ad908490611b5d565b60006117dc83836040518060400160405280601e81526020017f536166654d6174683a207375627472616374696f6e206f766572666c6f770000815250611c0e565b604080516370a0823160e01b81523060048201529051600091600080516020611e26833981519152916370a0823191602480820192602092909190829003018186803b15801561196157600080fd5b505afa158015611975573d6000803e3d6000fd5b505050506040513d602081101561198b57600080fd5b5051905081811015611aa2577370e36f6bf80a52b3b46b3af8e106cc0ed743e8e463852a12e36119bb84846118d0565b6040518263ffffffff1660e01b815260040180828152602001915050602060405180830381600087803b1580156119f157600080fd5b505af1158015611a05573d6000803e3d6000fd5b505050506040513d6020811015611a1b57600080fd5b5050604080516370a0823160e01b81523060048201529051600080516020611e26833981519152916370a08231916024808301926020929190829003018186803b158015611a6857600080fd5b505afa158015611a7c573d6000803e3d6000fd5b505050506040513d6020811015611a9257600080fd5b5051905081811015611aa2578091505b6114ad600080516020611e26833981519152848461187e565b60008183611b475760405162461bcd60e51b81526004018080602001828103825283818151815260200191508051906020019080838360005b83811015611b0c578181015183820152602001611af4565b50505050905090810190601f168015611b395780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b506000838581611b5357fe5b0495945050505050565b6060611bb2826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b0316611c689092919063ffffffff16565b8051909150156114ad57808060200190516020811015611bd157600080fd5b50516114ad5760405162461bcd60e51b815260040180806020018281038252602a815260200180611e67602a913960400191505060405180910390fd5b60008184841115611c605760405162461bcd60e51b8152602060048201818152835160248401528351909283926044909101919085019080838360008315611b0c578181015183820152602001611af4565b505050900390565b6060611c778484600085611c7f565b949350505050565b6060611c8a85611dec565b611cdb576040805162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e7472616374000000604482015290519081900360640190fd5b60006060866001600160a01b031685876040518082805190602001908083835b60208310611d1a5780518252601f199092019160209182019101611cfb565b6001836020036101000a03801982511681845116808217855250505050505090500191505060006040518083038185875af1925050503d8060008114611d7c576040519150601f19603f3d011682016040523d82523d6000602084013e611d81565b606091505b50915091508115611d95579150611c779050565b805115611da55780518082602001fd5b60405162461bcd60e51b8152602060048201818152865160248401528651879391928392604401919085019080838360008315611b0c578181015183820152602001611af4565b6000813f7fc5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a470818114801590611c7757505015159291505056fe000000000000000000000000c00e94cb662c3520282e6f5717214004a7f26888536166654d6174683a206d756c7469706c69636174696f6e206f766572666c6f775361666545524332303a204552433230206f7065726174696f6e20646964206e6f742073756363656564a2646970667358221220289f68d626155b8ba3a5b1683d4a90e061647a3ff3fe8d543a86a0bb6f6aa16564736f6c634300060c00330000000000000000000000007500d68d6d69f2ddb52655d4e4c983c7c809af6d

Deployed Bytecode

0x608060405234801561001057600080fd5b50600436106101fb5760003560e01c806370897b231161011a578063c7b9d530116100ad578063f39c38a01161007c578063f39c38a014610452578063f3fef3a31461045a578063f60edfc214610486578063f77c4791146104b2578063fa09e630146104ba576101fb565b8063c7b9d53014610414578063d389800f1461043a578063d9d7858a14610442578063dcbf281b1461044a576101fb565b806392eefe9b116100e957806392eefe9b146103d6578063953064c8146103fc578063953d9cf1146104045780639cdd05f31461040c576101fb565b806370897b231461038c5780637cc79113146103a957806384837dc5146103b157806387788782146103ce576101fb565b80632cc5e2e31161019257806351cff8d91161016157806351cff8d91461034e578063553e185a146103745780635aa6e6751461037c57806367f3c52914610384576101fb565b80632cc5e2e31461031a5780633e7b4544146103225780634641257d1461032a5780634e71d92d14610332576101fb565b80631f1fcd51116101ce5780631f1fcd51146102c75780631fe4a686146102eb578063211418ab146102f3578063238efcbc14610312576101fb565b806301e1d114146102005780630abb60351461021a5780630dca59c11461024257806317d7de7c1461024a575b600080fd5b6102086104e0565b60408051918252519081900360200190f35b6102406004803603602081101561023057600080fd5b50356001600160a01b0316610500565b005b61020861056f565b610252610575565b6040805160208082528351818301528351919283929083019185019080838360005b8381101561028c578181015183820152602001610274565b50505050905090810190601f1680156102b95780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b6102cf61059f565b604080516001600160a01b039092168252519081900360200190f35b6102cf6105b1565b6102406004803603602081101561030957600080fd5b503515156105c0565b610240610635565b6102086106a9565b6102cf610729565b610240610741565b61033a610ccc565b604080519115158252519081900360200190f35b6102086004803603602081101561036457600080fd5b50356001600160a01b0316610cd5565b610208610e68565b6102cf610eb7565b610208610ec6565b610240600480360360208110156103a257600080fd5b5035610f1b565b610208610fb7565b610240600480360360208110156103c757600080fd5b5035610fbd565b6102086110e5565b610240600480360360208110156103ec57600080fd5b50356001600160a01b03166110eb565b61020861115a565b6102cf611202565b6102cf61121a565b6102406004803603602081101561042a57600080fd5b50356001600160a01b0316611232565b6102406112b6565b6102cf6114b2565b6102086114ca565b6102cf611519565b6102406004803603604081101561047057600080fd5b506001600160a01b038135169060200135611528565b6102406004803603604081101561049c57600080fd5b506001600160a01b038135169060200135611593565b6102cf6115ea565b610208600480360360208110156104d057600080fd5b50356001600160a01b03166115f9565b60006104fb6104ed61115a565b6104f56106a9565b90611782565b905090565b6000546001600160a01b0316331461054d576040805162461bcd60e51b815260206004820152600b60248201526a21676f7665726e616e636560a81b604482015290519081900360640190fd5b600180546001600160a01b0319166001600160a01b0392909216919091179055565b60045481565b60408051808201909152601081526f14dd1c985d1959de50dbdb5c1bdd5b9960821b602082015290565b600080516020611e2683398151915281565b6003546001600160a01b031681565b6003546001600160a01b03163314806105e357506000546001600160a01b031633145b610622576040805162461bcd60e51b815260206004820152600b60248201526a085cdd1c985d1959da5cdd60aa1b604482015290519081900360640190fd5b6005805460ff1916911515919091179055565b6001546001600160a01b03163314610689576040805162461bcd60e51b81526020600482015260126024820152712170656e64696e67476f7665726e616e636560701b604482015290519081900360640190fd5b600080546001600160a01b03199081163317909155600180549091169055565b604080516370a0823160e01b81523060048201529051600091600080516020611e26833981519152916370a0823191602480820192602092909190829003018186803b1580156106f857600080fd5b505afa15801561070c573d6000803e3d6000fd5b505050506040513d602081101561072257600080fd5b5051905090565b733d9819210a31b4961b30ef54be2aed79b9c9cd3b81565b6003546001600160a01b031633148061076457506000546001600160a01b031633145b6107a3576040805162461bcd60e51b815260206004820152600b60248201526a085cdd1c985d1959da5cdd60aa1b604482015290519081900360640190fd5b60055460ff161561096c576040805160018082528183019092526060916020808301908036833701905050905030816000815181106107de57fe5b6001600160a01b0392909216602092830291909101909101526040805160018082528183019092526060918160200160208202803683370190505090507370e36f6bf80a52b3b46b3af8e106cc0ed743e8e48160008151811061083d57fe5b60200260200101906001600160a01b031690816001600160a01b031681525050733d9819210a31b4961b30ef54be2aed79b9c9cd3b6001600160a01b0316636810dfa68383600060016040518563ffffffff1660e01b815260040180806020018060200185151581526020018415158152602001838103835287818151815260200191508051906020019060200280838360005b838110156108e95781810151838201526020016108d1565b50505050905001838103825286818151815260200191508051906020019060200280838360005b83811015610928578181015183820152602001610910565b505050509050019650505050505050600060405180830381600087803b15801561095157600080fd5b505af1158015610965573d6000803e3d6000fd5b5050505050505b60006109766104e0565b9050600454811115610cc95760048054600254604080516340c10f1960e01b8152600080516020611e268339815191529481019490945291840360248401819052915191926001600160a01b03909116916340c10f199160448082019260009290919082900301818387803b1580156109ee57600080fd5b505af1158015610a02573d6000803e3d6000fd5b505050600483815560025460408051632988bb9f60e21b8152600080516020611e268339815191529381019390935251600093506001600160a01b039091169163a622ee7c916024808301926020929190829003018186803b158015610a6757600080fd5b505afa158015610a7b573d6000803e3d6000fd5b505050506040513d6020811015610a9157600080fd5b505190506001600160a01b038116610add576040805162461bcd60e51b815260206004820152600a6024820152696164647265737328302960b01b604482015290519081900360640190fd5b6000610b00612710610afa600654866117e390919063ffffffff16565b9061183c565b9050808303610b2473c56e2a2455ffb19906ee6ba0cc7d4b9a4ce2c38c848361187e565b600254604080516335c5d1cd60e21b8152600080516020611e2683398151915260048201526024810184905290516001600160a01b039092169163d71747349160448082019260009290919082900301818387803b158015610b8557600080fd5b505af1158015610b99573d6000803e3d6000fd5b50505050610c36600260009054906101000a90046001600160a01b03166001600160a01b0316639ec5a8946040518163ffffffff1660e01b815260040160206040518083038186803b158015610bee57600080fd5b505afa158015610c02573d6000803e3d6000fd5b505050506040513d6020811015610c1857600080fd5b505173c56e2a2455ffb19906ee6ba0cc7d4b9a4ce2c38c908461187e565b600254604080516327b16a2560e21b81529051610cc4926001600160a01b031691639ec5a894916004808301926020929190829003018186803b158015610c7c57600080fd5b505afa158015610c90573d6000803e3d6000fd5b505050506040513d6020811015610ca657600080fd5b505173d7ff7290c83a4b82accdf68247e47cf8a1589e51908661187e565b505050505b50565b60055460ff1681565b6002546000906001600160a01b03163314610d25576040805162461bcd60e51b815260206004820152600b60248201526a10b1b7b73a3937b63632b960a91b604482015290519081900360640190fd5b600080516020611e268339815191526001600160a01b0383161415610d7a576040805162461bcd60e51b815260206004808301919091526024820152631dd85b9d60e21b604482015290519081900360640190fd5b7370e36f6bf80a52b3b46b3af8e106cc0ed743e8e46001600160a01b0383161415610dd4576040805162461bcd60e51b8152602060048201526005602482015264063436f6d760dc1b604482015290519081900360640190fd5b604080516370a0823160e01b815230600482015290516001600160a01b038416916370a08231916024808301926020929190829003018186803b158015610e1a57600080fd5b505afa158015610e2e573d6000803e3d6000fd5b505050506040513d6020811015610e4457600080fd5b5051600254909150610e63906001600160a01b0384811691168361187e565b919050565b600073d7ff7290c83a4b82accdf68247e47cf8a1589e516001600160a01b03166318160ddd6040518163ffffffff1660e01b815260040160206040518083038186803b1580156106f857600080fd5b6000546001600160a01b031681565b604080516370a0823160e01b815230600482015290516000917370e36f6bf80a52b3b46b3af8e106cc0ed743e8e4916370a0823191602480820192602092909190829003018186803b1580156106f857600080fd5b6000546001600160a01b03163314610f68576040805162461bcd60e51b815260206004820152600b60248201526a21676f7665726e616e636560a81b604482015290519081900360640190fd5b612710811115610fb2576040805162461bcd60e51b815260206004820152601060248201526f215f706572666f726d616e636546656560801b604482015290519081900360640190fd5b600655565b61271081565b6002546001600160a01b0316331461100a576040805162461bcd60e51b815260206004820152600b60248201526a10b1b7b73a3937b63632b960a91b604482015290519081900360640190fd5b604080516370a0823160e01b81523060048201529051600091600080516020611e26833981519152916370a0823191602480820192602092909190829003018186803b15801561105957600080fd5b505afa15801561106d573d6000803e3d6000fd5b505050506040513d602081101561108357600080fd5b50519050818110156110d1576040805162461bcd60e51b815260206004820152601260248201527117d8985b185b98d9480f0817d85b5bdd5b9d60721b604482015290519081900360640190fd5b6004546110de9083611782565b6004555050565b60065481565b6000546001600160a01b03163314611138576040805162461bcd60e51b815260206004820152600b60248201526a21676f7665726e616e636560a81b604482015290519081900360640190fd5b600280546001600160a01b0319166001600160a01b0392909216919091179055565b600080611165610ec6565b905080156104fb576111fc670de0b6b3a7640000610afa7370e36f6bf80a52b3b46b3af8e106cc0ed743e8e46001600160a01b031663182df0f56040518163ffffffff1660e01b815260040160206040518083038186803b1580156111c957600080fd5b505afa1580156111dd573d6000803e3d6000fd5b505050506040513d60208110156111f357600080fd5b505184906117e3565b92915050565b73c56e2a2455ffb19906ee6ba0cc7d4b9a4ce2c38c81565b7370e36f6bf80a52b3b46b3af8e106cc0ed743e8e481565b6003546001600160a01b031633148061125557506000546001600160a01b031633145b611294576040805162461bcd60e51b815260206004820152600b60248201526a085cdd1c985d1959da5cdd60aa1b604482015290519081900360640190fd5b600380546001600160a01b0319166001600160a01b0392909216919091179055565b6003546001600160a01b03163314806112d957506000546001600160a01b031633145b611318576040805162461bcd60e51b815260206004820152600b60248201526a085cdd1c985d1959da5cdd60aa1b604482015290519081900360640190fd5b604080516370a0823160e01b81523060048201529051600091600080516020611e26833981519152916370a0823191602480820192602092909190829003018186803b15801561136757600080fd5b505afa15801561137b573d6000803e3d6000fd5b505050506040513d602081101561139157600080fd5b505190508015610cc9576040805163095ea7b360e01b81527370e36f6bf80a52b3b46b3af8e106cc0ed743e8e46004820152602481018390529051600080516020611e268339815191529163095ea7b39160448083019260209291908290030181600087803b15801561140357600080fd5b505af1158015611417573d6000803e3d6000fd5b505050506040513d602081101561142d57600080fd5b50506040805163140e25ad60e31b81526004810183905290517370e36f6bf80a52b3b46b3af8e106cc0ed743e8e49163a0712d689160248083019260209291908290030181600087803b15801561148357600080fd5b505af1158015611497573d6000803e3d6000fd5b505050506040513d60208110156114ad57600080fd5b505050565b73d7ff7290c83a4b82accdf68247e47cf8a1589e5181565b600073c56e2a2455ffb19906ee6ba0cc7d4b9a4ce2c38c6001600160a01b03166318160ddd6040518163ffffffff1660e01b815260040160206040518083038186803b1580156106f857600080fd5b6001546001600160a01b031681565b6002546001600160a01b03163314611575576040805162461bcd60e51b815260206004820152600b60248201526a10b1b7b73a3937b63632b960a91b604482015290519081900360640190fd5b60045461158290826118d0565b60045561158f8282611912565b5050565b6002546001600160a01b031633146115e0576040805162461bcd60e51b815260206004820152600b60248201526a10b1b7b73a3937b63632b960a91b604482015290519081900360640190fd5b61158f8282611912565b6002546001600160a01b031681565b6002546000906001600160a01b03163314611649576040805162461bcd60e51b815260206004820152600b60248201526a10b1b7b73a3937b63632b960a91b604482015290519081900360640190fd5b6000611653610ec6565b905080156116e2577370e36f6bf80a52b3b46b3af8e106cc0ed743e8e46001600160a01b031663db006a75826040518263ffffffff1660e01b815260040180828152602001915050602060405180830381600087803b1580156116b557600080fd5b505af11580156116c9573d6000803e3d6000fd5b505050506040513d60208110156116df57600080fd5b50505b60006004908155604080516370a0823160e01b8152309281019290925251600080516020611e26833981519152916370a08231916024808301926020929190829003018186803b15801561173557600080fd5b505afa158015611749573d6000803e3d6000fd5b505050506040513d602081101561175f57600080fd5b5051915061177c600080516020611e26833981519152848461187e565b50919050565b6000828201838110156117dc576040805162461bcd60e51b815260206004820152601b60248201527f536166654d6174683a206164646974696f6e206f766572666c6f770000000000604482015290519081900360640190fd5b9392505050565b6000826117f2575060006111fc565b828202828482816117ff57fe5b04146117dc5760405162461bcd60e51b8152600401808060200182810382526021815260200180611e466021913960400191505060405180910390fd5b60006117dc83836040518060400160405280601a81526020017f536166654d6174683a206469766973696f6e206279207a65726f000000000000815250611abb565b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663a9059cbb60e01b1790526114ad908490611b5d565b60006117dc83836040518060400160405280601e81526020017f536166654d6174683a207375627472616374696f6e206f766572666c6f770000815250611c0e565b604080516370a0823160e01b81523060048201529051600091600080516020611e26833981519152916370a0823191602480820192602092909190829003018186803b15801561196157600080fd5b505afa158015611975573d6000803e3d6000fd5b505050506040513d602081101561198b57600080fd5b5051905081811015611aa2577370e36f6bf80a52b3b46b3af8e106cc0ed743e8e463852a12e36119bb84846118d0565b6040518263ffffffff1660e01b815260040180828152602001915050602060405180830381600087803b1580156119f157600080fd5b505af1158015611a05573d6000803e3d6000fd5b505050506040513d6020811015611a1b57600080fd5b5050604080516370a0823160e01b81523060048201529051600080516020611e26833981519152916370a08231916024808301926020929190829003018186803b158015611a6857600080fd5b505afa158015611a7c573d6000803e3d6000fd5b505050506040513d6020811015611a9257600080fd5b5051905081811015611aa2578091505b6114ad600080516020611e26833981519152848461187e565b60008183611b475760405162461bcd60e51b81526004018080602001828103825283818151815260200191508051906020019080838360005b83811015611b0c578181015183820152602001611af4565b50505050905090810190601f168015611b395780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b506000838581611b5357fe5b0495945050505050565b6060611bb2826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b0316611c689092919063ffffffff16565b8051909150156114ad57808060200190516020811015611bd157600080fd5b50516114ad5760405162461bcd60e51b815260040180806020018281038252602a815260200180611e67602a913960400191505060405180910390fd5b60008184841115611c605760405162461bcd60e51b8152602060048201818152835160248401528351909283926044909101919085019080838360008315611b0c578181015183820152602001611af4565b505050900390565b6060611c778484600085611c7f565b949350505050565b6060611c8a85611dec565b611cdb576040805162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e7472616374000000604482015290519081900360640190fd5b60006060866001600160a01b031685876040518082805190602001908083835b60208310611d1a5780518252601f199092019160209182019101611cfb565b6001836020036101000a03801982511681845116808217855250505050505090500191505060006040518083038185875af1925050503d8060008114611d7c576040519150601f19603f3d011682016040523d82523d6000602084013e611d81565b606091505b50915091508115611d95579150611c779050565b805115611da55780518082602001fd5b60405162461bcd60e51b8152602060048201818152865160248401528651879391928392604401919085019080838360008315611b0c578181015183820152602001611af4565b6000813f7fc5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a470818114801590611c7757505015159291505056fe000000000000000000000000c00e94cb662c3520282e6f5717214004a7f26888536166654d6174683a206d756c7469706c69636174696f6e206f766572666c6f775361666545524332303a204552433230206f7065726174696f6e20646964206e6f742073756363656564a2646970667358221220289f68d626155b8ba3a5b1683d4a90e061647a3ff3fe8d543a86a0bb6f6aa16564736f6c634300060c0033

Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)

0000000000000000000000007500d68d6d69f2ddb52655d4e4c983c7c809af6d

-----Decoded View---------------
Arg [0] : _controller (address): 0x7500d68d6D69F2dDB52655d4e4c983c7c809aF6d

-----Encoded View---------------
1 Constructor Arguments found :
Arg [0] : 0000000000000000000000007500d68d6d69f2ddb52655d4e4c983c7c809af6d


Deployed Bytecode Sourcemap

19466:6760:0:-:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;25863:118;;;:::i;:::-;;;;;;;;;;;;;;;;20801:183;;;;;;;;;;;;;;;;-1:-1:-1;20801:183:0;-1:-1:-1;;;;;20801:183:0;;:::i;:::-;;19704:19;;;:::i;20493:101::-;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;19851:84;;;:::i;:::-;;;;-1:-1:-1;;;;;19851:84:0;;;;;;;;;;;;;;19670:25;;;:::i;21340:160::-;;;;;;;;;;;;;;;;-1:-1:-1;21340:160:0;;;;:::i;20602:193::-;;;:::i;25347:116::-;;;:::i;20217:108::-;;;:::i;24158:1181::-;;;:::i;19730:17::-;;;:::i;:::-;;;;;;;;;;;;;;;;;;23457:362;;;;;;;;;;;;;;;;-1:-1:-1;23457:362:0;-1:-1:-1;;;;;23457:362:0;;:::i;26108:113::-;;;:::i;19567:25::-;;;:::i;25737:118::-;;;:::i;21506:244::-;;;;;;;;;;;;;;;;-1:-1:-1;21506:244:0;;:::i;19796:46::-;;;:::i;21758:273::-;;;;;;;;;;;;;;;;-1:-1:-1;21758:273:0;;:::i;19754:35::-;;;:::i;20990:155::-;;;;;;;;;;;;;;;;-1:-1:-1;20990:155:0;-1:-1:-1;;;;;20990:155:0;;:::i;25471:258::-;;;:::i;20124:84::-;;;:::i;19942:::-;;;:::i;21151:183::-;;;;;;;;;;;;;;;;-1:-1:-1;21151:183:0;-1:-1:-1;;;;;21151:183:0;;:::i;23827:323::-;;;:::i;20033:84::-;;;:::i;25989:113::-;;;:::i;19599:32::-;;;:::i;22109:205::-;;;;;;;;;;;;;;;;-1:-1:-1;;;;;;22109:205:0;;;;;;;;:::i;22322:174::-;;;;;;;;;;;;;;;;-1:-1:-1;;;;;;22322:174:0;;;;;;;;:::i;19638:25::-;;;:::i;23044:405::-;;;;;;;;;;;;;;;;-1:-1:-1;23044:405:0;-1:-1:-1;;;;;23044:405:0;;:::i;25863:118::-;25907:7;25934:39;25952:20;:18;:20::i;:::-;25934:13;:11;:13::i;:::-;:17;;:39::i;:::-;25927:46;;25863:118;:::o;20801:183::-;20901:10;;-1:-1:-1;;;;;20901:10:0;20887;:24;20879:48;;;;;-1:-1:-1;;;20879:48:0;;;;;;;;;;;;-1:-1:-1;;;20879:48:0;;;;;;;;;;;;;;;20938:17;:38;;-1:-1:-1;;;;;;20938:38:0;-1:-1:-1;;;;;20938:38:0;;;;;;;;;;20801:183::o;19704:19::-;;;;:::o;20493:101::-;20561:25;;;;;;;;;;;;-1:-1:-1;;;20561:25:0;;;;20493:101;:::o;19851:84::-;-1:-1:-1;;;;;;;;;;;19851:84:0;:::o;19670:25::-;;;-1:-1:-1;;;;;19670:25:0;;:::o;21340:160::-;21413:10;;-1:-1:-1;;;;;21413:10:0;21399;:24;;:52;;-1:-1:-1;21441:10:0;;-1:-1:-1;;;;;21441:10:0;21427;:24;21399:52;21391:76;;;;;-1:-1:-1;;;21391:76:0;;;;;;;;;;;;-1:-1:-1;;;21391:76:0;;;;;;;;;;;;;;;21478:5;:14;;-1:-1:-1;;21478:14:0;;;;;;;;;;21340:160::o;20602:193::-;20672:17;;-1:-1:-1;;;;;20672:17:0;20658:10;:31;20650:62;;;;;-1:-1:-1;;;20650:62:0;;;;;;;;;;;;-1:-1:-1;;;20650:62:0;;;;;;;;;;;;;;;20723:10;:23;;-1:-1:-1;;;;;;20723:23:0;;;20736:10;20723:23;;;;;20757:30;;;;;;;20602:193::o;25347:116::-;25418:37;;;-1:-1:-1;;;25418:37:0;;25449:4;25418:37;;;;;;25391:7;;-1:-1:-1;;;;;;;;;;;19892:42:0;25418:22;;:37;;;;;;;;;;;;;;;19892:42;25418:37;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;25418:37:0;;-1:-1:-1;25347:116:0;:::o;20217:108::-;20282:42;20217:108;:::o;24158:1181::-;24219:10;;-1:-1:-1;;;;;24219:10:0;24205;:24;;:52;;-1:-1:-1;24247:10:0;;-1:-1:-1;;;;;24247:10:0;24233;:24;24205:52;24197:76;;;;;-1:-1:-1;;;24197:76:0;;;;;;;;;;;;-1:-1:-1;;;24197:76:0;;;;;;;;;;;;;;;24288:5;;;;24284:283;;;24337:16;;;24351:1;24337:16;;;;;;;;;24310:24;;24337:16;;;;;;;;;;;-1:-1:-1;24337:16:0;24310:43;;24389:4;24368:7;24376:1;24368:10;;;;;;;;-1:-1:-1;;;;;24368:26:0;;;;:10;;;;;;;;;;;:26;24436:16;;;24450:1;24436:16;;;;;;;;;24409:24;;24436:16;;;;;;;;;;;;-1:-1:-1;24436:16:0;24409:43;;19983:42;24467:7;24475:1;24467:10;;;;;;;;;;;;;:18;-1:-1:-1;;;;;24467:18:0;;;-1:-1:-1;;;;;24467:18:0;;;;;20282:42;-1:-1:-1;;;;;24500:24:0;;24525:7;24534;24543:5;24550:4;24500:55;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;24284:283;;;24577:15;24595:13;:11;:13::i;:::-;24577:31;;24633:4;;24623:7;:14;24619:713;;;24681:4;;;24712:10;;24700:43;;;-1:-1:-1;;;24700:43:0;;-1:-1:-1;;;;;;;;;;;24700:43:0;;;;;;;24671:14;;;24700:43;;;;;;;;24671:14;;-1:-1:-1;;;;;24712:10:0;;;;24700:28;;:43;;;;;24653:15;;24700:43;;;;;;;;24653:15;24712:10;24700:43;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;24758:4:0;:14;;;24818:10;;24806:36;;;-1:-1:-1;;;24806:36:0;;-1:-1:-1;;;;;;;;;;;24806:36:0;;;;;;;;24789:14;;-1:-1:-1;;;;;;24818:10:0;;;;24806:30;;:36;;;;;;;;;;;;;;24818:10;24806:36;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;24806:36:0;;-1:-1:-1;;;;;;24865:20:0;;24857:43;;;;;-1:-1:-1;;;24857:43:0;;;;;;;;;;;;-1:-1:-1;;;24857:43:0;;;;;;;;;;;;;;;24915:12;24930:47;19837:5;24930:27;24942:14;;24930:7;:11;;:27;;;;:::i;:::-;:31;;:47::i;:::-;24915:62;-1:-1:-1;25010:14:0;;;25039:44;20165:42;25067:6;25010:14;25039:27;:44::i;:::-;25110:10;;25098:53;;;-1:-1:-1;;;25098:53:0;;-1:-1:-1;;;;;;;;;;;25098:53:0;;;;;;;;;;;;-1:-1:-1;;;;;25110:10:0;;;;25098:38;;:53;;;;;25110:10;;25098:53;;;;;;;;25110:10;;25098:53;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;25166:68;25206:10;;;;;;;;;-1:-1:-1;;;;;25206:10:0;-1:-1:-1;;;;;25194:31:0;;:33;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;25194:33:0;20165:42;;25229:4;25166:27;:68::i;:::-;25289:10;;25277:33;;;-1:-1:-1;;;25277:33:0;;;;25249:71;;-1:-1:-1;;;;;25289:10:0;;25277:31;;:33;;;;;;;;;;;;;;25289:10;25277:33;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;25277:33:0;20074:42;;25312:7;25249:27;:71::i;:::-;24619:713;;;;;24158:1181;:::o;19730:17::-;;;;;;:::o;23457:362::-;23560:10;;23509:16;;-1:-1:-1;;;;;23560:10:0;23546;:24;23538:48;;;;;-1:-1:-1;;;23538:48:0;;;;;;;;;;;;-1:-1:-1;;;23538:48:0;;;;;;;;;;;;;;;-1:-1:-1;;;;;;;;;;;;;;;;23605:23:0;;;;23597:40;;;;;-1:-1:-1;;;23597:40:0;;;;;;;;;;;;;;;-1:-1:-1;;;23597:40:0;;;;;;;;;;;;;;;19983:42;-1:-1:-1;;;;;23656:24:0;;;;23648:42;;;;;-1:-1:-1;;;23648:42:0;;;;;;;;;;;;-1:-1:-1;;;23648:42:0;;;;;;;;;;;;;;;23712:39;;;-1:-1:-1;;;23712:39:0;;23745:4;23712:39;;;;;;-1:-1:-1;;;;;23712:24:0;;;;;:39;;;;;;;;;;;;;;:24;:39;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;23712:39:0;23790:10;;23712:39;;-1:-1:-1;23762:49:0;;-1:-1:-1;;;;;23762:27:0;;;;23790:10;23712:39;23762:27;:49::i;:::-;23457:362;;;:::o;26108:113::-;26158:7;20074:42;-1:-1:-1;;;;;26185:26:0;;:28;;;;;;;;;;;;;;;;;;;;;;;;;;;;;19567:25;;;-1:-1:-1;;;;;19567:25:0;;:::o;25737:118::-;25809:38;;;-1:-1:-1;;;25809:38:0;;25841:4;25809:38;;;;;;25782:7;;19983:42;;25809:23;;:38;;;;;;;;;;;;;;;19983:42;25809:38;;;;;;;;;;21506:244;21600:10;;-1:-1:-1;;;;;21600:10:0;21586;:24;21578:48;;;;;-1:-1:-1;;;21578:48:0;;;;;;;;;;;;-1:-1:-1;;;21578:48:0;;;;;;;;;;;;;;;19837:5;21645:15;:33;;21637:62;;;;;-1:-1:-1;;;21637:62:0;;;;;;;;;;;;-1:-1:-1;;;21637:62:0;;;;;;;;;;;;;;;21710:14;:32;21506:244::o;19796:46::-;19837:5;19796:46;:::o;21758:273::-;21834:10;;-1:-1:-1;;;;;21834:10:0;21820;:24;21812:48;;;;;-1:-1:-1;;;21812:48:0;;;;;;;;;;;;-1:-1:-1;;;21812:48:0;;;;;;;;;;;;;;;21890:37;;;-1:-1:-1;;;21890:37:0;;21921:4;21890:37;;;;;;21871:16;;-1:-1:-1;;;;;;;;;;;19892:42:0;21890:22;;:37;;;;;;;;;;;;;;;19892:42;21890:37;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;21890:37:0;;-1:-1:-1;21946:19:0;;;;21938:50;;;;;-1:-1:-1;;;21938:50:0;;;;;;;;;;;;-1:-1:-1;;;21938:50:0;;;;;;;;;;;;;;;22006:4;;:17;;22015:7;22006:8;:17::i;:::-;21999:4;:24;-1:-1:-1;;21758:273:0:o;19754:35::-;;;;:::o;20990:155::-;21076:10;;-1:-1:-1;;;;;21076:10:0;21062;:24;21054:48;;;;;-1:-1:-1;;;21054:48:0;;;;;;;;;;;;-1:-1:-1;;;21054:48:0;;;;;;;;;;;;;;;21113:10;:24;;-1:-1:-1;;;;;;21113:24:0;-1:-1:-1;;;;;21113:24:0;;;;;;;;;;20990:155::o;25471:258::-;25522:7;25542:15;25560:14;:12;:14::i;:::-;25542:32;-1:-1:-1;25589:11:0;;25585:112;;25627:58;25680:4;25627:48;19983:42;-1:-1:-1;;;;;25639:33:0;;:35;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;25639:35:0;25627:7;;:11;:48::i;:58::-;25617:68;25471:258;-1:-1:-1;;25471:258:0:o;20124:84::-;20165:42;20124:84;:::o;19942:::-;19983:42;19942:84;:::o;21151:183::-;21237:10;;-1:-1:-1;;;;;21237:10:0;21223;:24;;:52;;-1:-1:-1;21265:10:0;;-1:-1:-1;;;;;21265:10:0;21251;:24;21223:52;21215:76;;;;;-1:-1:-1;;;21215:76:0;;;;;;;;;;;;-1:-1:-1;;;21215:76:0;;;;;;;;;;;;;;;21302:10;:24;;-1:-1:-1;;;;;;21302:24:0;-1:-1:-1;;;;;21302:24:0;;;;;;;;;;21151:183::o;23827:323::-;23885:10;;-1:-1:-1;;;;;23885:10:0;23871;:24;;:52;;-1:-1:-1;23913:10:0;;-1:-1:-1;;;;;23913:10:0;23899;:24;23871:52;23863:76;;;;;-1:-1:-1;;;23863:76:0;;;;;;;;;;;;-1:-1:-1;;;23863:76:0;;;;;;;;;;;;;;;23969:37;;;-1:-1:-1;;;23969:37:0;;24000:4;23969:37;;;;;;23950:16;;-1:-1:-1;;;;;;;;;;;19892:42:0;23969:22;;:37;;;;;;;;;;;;;;;19892:42;23969:37;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;23969:37:0;;-1:-1:-1;24021:12:0;;24017:126;;24050:37;;;-1:-1:-1;;;24050:37:0;;19983:42;24050:37;;;;;;;;;;;;-1:-1:-1;;;;;;;;;;;19892:42:0;24050:20;;:37;;;;;;;;;;;;;;-1:-1:-1;19892:42:0;24050:37;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;24102:29:0;;;-1:-1:-1;;;24102:29:0;;;;;;;;;;19983:42;;24102:19;;:29;;;;;24050:37;;24102:29;;;;;;;-1:-1:-1;19983:42:0;24102:29;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;23827:323:0;:::o;20033:84::-;20074:42;20033:84;:::o;25989:113::-;26039:7;20165:42;-1:-1:-1;;;;;26066:26:0;;:28;;;;;;;;;;;;;;;;;;;;;;;;;;;;;19599:32;;;-1:-1:-1;;;;;19599:32:0;;:::o;22109:205::-;22205:10;;-1:-1:-1;;;;;22205:10:0;22191;:24;22183:48;;;;;-1:-1:-1;;;22183:48:0;;;;;;;;;;;;-1:-1:-1;;;22183:48:0;;;;;;;;;;;;;;;22249:4;;:17;;22258:7;22249:8;:17::i;:::-;22242:4;:24;22277:29;22287:9;22298:7;22277:9;:29::i;:::-;22109:205;;:::o;22322:174::-;22422:10;;-1:-1:-1;;;;;22422:10:0;22408;:24;22400:48;;;;;-1:-1:-1;;;22400:48:0;;;;;;;;;;;;-1:-1:-1;;;22400:48:0;;;;;;;;;;;;;;;22459:29;22469:9;22480:7;22459:9;:29::i;19638:25::-;;;-1:-1:-1;;;;;19638:25:0;;:::o;23044:405::-;23153:10;;23102:16;;-1:-1:-1;;;;;23153:10:0;23139;:24;23131:48;;;;;-1:-1:-1;;;23131:48:0;;;;;;;;;;;;-1:-1:-1;;;23131:48:0;;;;;;;;;;;;;;;23190:15;23208:14;:12;:14::i;:::-;23190:32;-1:-1:-1;23237:11:0;;23233:74;;19983:42;-1:-1:-1;;;;;23265:21:0;;23287:7;23265:30;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;23233:74:0;23324:1;23317:4;:8;;;23347:37;;;-1:-1:-1;;;23347:37:0;;23378:4;23347:37;;;;;;;;-1:-1:-1;;;;;;;;;;;19892:42:0;23347:22;;:37;;;;;;;;;;;;;;19892:42;23347:37;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;23347:37:0;;-1:-1:-1;23395:46:0;-1:-1:-1;;;;;;;;;;;23421:9:0;23347:37;23395:25;:46::i;:::-;23044:405;;;;:::o;11277:181::-;11335:7;11367:5;;;11391:6;;;;11383:46;;;;;-1:-1:-1;;;11383:46:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;11449:1;11277:181;-1:-1:-1;;;11277:181:0:o;12631:471::-;12689:7;12934:6;12930:47;;-1:-1:-1;12964:1:0;12957:8;;12930:47;13001:5;;;13005:1;13001;:5;:1;13025:5;;;;;:10;13017:56;;;;-1:-1:-1;;;13017:56:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;13578:132;13636:7;13663:39;13667:1;13670;13663:39;;;;;;;;;;;;;;;;;:3;:39::i;16360:177::-;16470:58;;;-1:-1:-1;;;;;16470:58:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;16470:58:0;-1:-1:-1;;;16470:58:0;;;16443:86;;16463:5;;16443:19;:86::i;11741:136::-;11799:7;11826:43;11830:1;11833;11826:43;;;;;;;;;;;;;;;;;:3;:43::i;22504:464::-;22598:37;;;-1:-1:-1;;;22598:37:0;;22629:4;22598:37;;;;;;22579:16;;-1:-1:-1;;;;;;;;;;;19892:42:0;22598:22;;:37;;;;;;;;;;;;;;;19892:42;22598:37;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;22598:37:0;;-1:-1:-1;22650:18:0;;;22646:259;;;19983:42;22685:31;22717:21;:7;22729:8;22717:11;:21::i;:::-;22685:54;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;22765:37:0;;;-1:-1:-1;;;22765:37:0;;22796:4;22765:37;;;;;;-1:-1:-1;;;;;;;;;;;19892:42:0;22765:22;;:37;;;;;22685:54;;22765:37;;;;;;;19892:42;22765:37;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;22765:37:0;;-1:-1:-1;22821:18:0;;;22817:77;;;22870:8;22860:18;;22817:77;22915:45;-1:-1:-1;;;;;;;;;;;22941:9:0;22952:7;22915:25;:45::i;14206:278::-;14292:7;14327:12;14320:5;14312:28;;;;-1:-1:-1;;;14312:28:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;14351:9;14367:1;14363;:5;;;;;;;14206:278;-1:-1:-1;;;;;14206:278:0:o;18665:761::-;19089:23;19115:69;19143:4;19115:69;;;;;;;;;;;;;;;;;19123:5;-1:-1:-1;;;;;19115:27:0;;;:69;;;;;:::i;:::-;19199:17;;19089:95;;-1:-1:-1;19199:21:0;19195:224;;19341:10;19330:30;;;;;;;;;;;;;;;-1:-1:-1;19330:30:0;19322:85;;;;-1:-1:-1;;;19322:85:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;12180:192;12266:7;12302:12;12294:6;;;;12286:29;;;;-1:-1:-1;;;12286:29:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;12338:5:0;;;12180:192::o;5237:196::-;5340:12;5372:53;5395:6;5403:4;5409:1;5412:12;5372:22;:53::i;:::-;5365:60;5237:196;-1:-1:-1;;;;5237:196:0:o;6614:979::-;6744:12;6777:18;6788:6;6777:10;:18::i;:::-;6769:60;;;;;-1:-1:-1;;;6769:60:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;6903:12;6917:23;6944:6;-1:-1:-1;;;;;6944:11:0;6964:8;6975:4;6944:36;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;6944:36:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;6902:78;;;;6995:7;6991:595;;;7026:10;-1:-1:-1;7019:17:0;;-1:-1:-1;7019:17:0;6991:595;7140:17;;:21;7136:439;;7403:10;7397:17;7464:15;7451:10;7447:2;7443:19;7436:44;7351:148;7539:20;;-1:-1:-1;;;7539:20:0;;;;;;;;;;;;;;;;;7546:12;;7539:20;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;2122:619;2182:4;2650:20;;2493:66;2690:23;;;;;;:42;;-1:-1:-1;;2717:15:0;;;2682:51;-1:-1:-1;;2122:619:0:o

Swarm Source

ipfs://289f68d626155b8ba3a5b1683d4a90e061647a3ff3fe8d543a86a0bb6f6aa165

Block Transaction Difficulty Gas Used Reward
View All Blocks Produced

Block Uncle Number Difficulty Gas Used Reward
View All Uncles
Loading...
Loading
Loading...
Loading

Validator Index Block Amount
View All Withdrawals

Transaction Hash Block Value Eth2 PubKey Valid
View All Deposits
Loading...
Loading
[ Download: CSV Export  ]

A contract address hosts a smart contract, which is a set of code stored on the blockchain that runs when predetermined conditions are met. Learn more about addresses in our Knowledge Base.