ETH Price: $3,438.21 (-1.32%)

Contract

0x6454333B2ff0D2B64a9445Bd322D04D2C8a9eE1e
 

Overview

ETH Balance

0 ETH

Eth Value

$0.00

Token Holdings

Multichain Info

No addresses found
Transaction Hash
Method
Block
From
To
Withdraw113793552020-12-03 11:28:081483 days ago1606994888IN
0x6454333B...2C8a9eE1e
0 ETH0.0036448440
Withdraw113759272020-12-02 22:51:171484 days ago1606949477IN
0x6454333B...2C8a9eE1e
0 ETH0.002642529
Withdraw113759212020-12-02 22:49:591484 days ago1606949399IN
0x6454333B...2C8a9eE1e
0 ETH0.0024605927
Withdraw113759122020-12-02 22:48:331484 days ago1606949313IN
0x6454333B...2C8a9eE1e
0 ETH0.0028247531
Withdraw113759052020-12-02 22:47:041484 days ago1606949224IN
0x6454333B...2C8a9eE1e
0 ETH0.0033714737
Withdraw113758942020-12-02 22:45:321484 days ago1606949132IN
0x6454333B...2C8a9eE1e
0 ETH0.0028247531
Withdraw113758832020-12-02 22:42:291484 days ago1606948949IN
0x6454333B...2C8a9eE1e
0 ETH0.0026461529.04
Withdraw113758582020-12-02 22:37:041484 days ago1606948624IN
0x6454333B...2C8a9eE1e
0 ETH0.0026461529.04
Withdraw113757902020-12-02 22:21:501484 days ago1606947710IN
0x6454333B...2C8a9eE1e
0 ETH0.0028065230.8
Withdraw113757692020-12-02 22:17:151484 days ago1606947435IN
0x6454333B...2C8a9eE1e
0 ETH0.0028247531
Withdraw113757532020-12-02 22:14:221484 days ago1606947262IN
0x6454333B...2C8a9eE1e
0 ETH0.0028577831.3625
Withdraw113757172020-12-02 22:06:391484 days ago1606946799IN
0x6454333B...2C8a9eE1e
0 ETH0.0024496233
Withdraw113757172020-12-02 22:06:391484 days ago1606946799IN
0x6454333B...2C8a9eE1e
0 ETH0.0030069933
Withdraw113692132020-12-01 21:49:481485 days ago1606859388IN
0x6454333B...2C8a9eE1e
0 ETH0.0019135421
Withdraw113691872020-12-01 21:42:121485 days ago1606858932IN
0x6454333B...2C8a9eE1e
0 ETH0.0022287921
Withdraw113642862020-12-01 3:43:051486 days ago1606794185IN
0x6454333B...2C8a9eE1e
0 ETH0.0063793170.00000156
Withdraw113633342020-12-01 0:12:221486 days ago1606781542IN
0x6454333B...2C8a9eE1e
0 ETH0.0023606730.25
Withdraw113598072020-11-30 11:11:111486 days ago1606734671IN
0x6454333B...2C8a9eE1e
0 ETH0.0028342331.1
Withdraw113478982020-11-28 15:40:021488 days ago1606578002IN
0x6454333B...2C8a9eE1e
0 ETH0.0022603721.3
Withdraw113419112020-11-27 17:37:391489 days ago1606498659IN
0x6454333B...2C8a9eE1e
0 ETH0.0042826847
Withdraw113419092020-11-27 17:37:001489 days ago1606498620IN
0x6454333B...2C8a9eE1e
0 ETH0.0042826847
Withdraw113419062020-11-27 17:36:131489 days ago1606498573IN
0x6454333B...2C8a9eE1e
0 ETH0.0044649249
Withdraw113419012020-11-27 17:34:241489 days ago1606498464IN
0x6454333B...2C8a9eE1e
0 ETH0.0051999249
Stake113258582020-11-25 6:11:241492 days ago1606284684IN
0x6454333B...2C8a9eE1e
0 ETH0.0019931921.1
Withdraw113248982020-11-25 2:39:021492 days ago1606271942IN
0x6454333B...2C8a9eE1e
0 ETH0.0042832547
View all transactions

View more zero value Internal Transactions in Advanced View mode

Advanced mode:
Loading...
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
FeVaultV2

Compiler Version
v0.5.17+commit.d19bba13

Optimization Enabled:
Yes with 200 runs

Other Settings:
default evmVersion, Unlicense license

Contract Source Code (Solidity)

/**
 *Submitted for verification at Etherscan.io on 2020-11-06
*/

pragma solidity ^0.5.0;

/**
 * @dev Standard math utilities missing in the Solidity language.
 */
library Math {
    /**
     * @dev Returns the largest of two numbers.
     */
    function max(uint256 a, uint256 b) internal pure returns (uint256) {
        return a >= b ? a : b;
    }

    /**
     * @dev Returns the smallest of two numbers.
     */
    function min(uint256 a, uint256 b) internal pure returns (uint256) {
        return a < b ? a : b;
    }

    /**
     * @dev Returns the average of two numbers. The result is rounded towards
     * zero.
     */
    function average(uint256 a, uint256 b) internal pure returns (uint256) {
        // (a + b) / 2 can overflow, so we distribute
        return (a / 2) + (b / 2) + (((a % 2) + (b % 2)) / 2);
    }
}

// File: @openzeppelin/contracts/math/SafeMath.sol

pragma solidity ^0.5.0;

/**
 * @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.
     *
     * _Available since v2.4.0._
     */
    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.
     *
     * _Available since v2.4.0._
     */
    function div(
        uint256 a,
        uint256 b,
        string memory errorMessage
    ) internal pure returns (uint256) {
        // Solidity only automatically asserts when dividing by 0
        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.
     *
     * _Available since v2.4.0._
     */
    function mod(
        uint256 a,
        uint256 b,
        string memory errorMessage
    ) internal pure returns (uint256) {
        require(b != 0, errorMessage);
        return a % b;
    }
}

// File: @openzeppelin/contracts/GSN/Context.sol

pragma solidity ^0.5.0;

/*
 * @dev Provides information about the current execution context, including the
 * sender of the transaction and its data. While these are generally available
 * via msg.sender and msg.data, they should not be accessed in such a direct
 * manner, since when dealing with GSN meta-transactions the account sending and
 * paying for execution may not be the actual sender (as far as an application
 * is concerned).
 *
 * This contract is only required for intermediate, library-like contracts.
 */
contract Context {
    // Empty internal constructor, to prevent people from mistakenly deploying
    // an instance of this contract, which should be used via inheritance.
    constructor() internal {}

    // solhint-disable-previous-line no-empty-blocks

    function _msgSender() internal view returns (address payable) {
        return msg.sender;
    }

    function _msgData() internal view returns (bytes memory) {
        this;
        // silence state mutability warning without generating bytecode - see https://github.com/ethereum/solidity/issues/2691
        return msg.data;
    }
}

// File: @openzeppelin/contracts/ownership/Ownable.sol

pragma solidity ^0.5.0;

/**
 * @dev Contract module which provides a basic access control mechanism, where
 * there is an account (an owner) that can be granted exclusive access to
 * specific functions.
 *
 * This module is used through inheritance. It will make available the modifier
 * `onlyOwner`, which can be applied to your functions to restrict their use to
 * the owner.
 */
contract Ownable is Context {
    address private _owner;

    event OwnershipTransferred(
        address indexed previousOwner,
        address indexed newOwner
    );

    /**
     * @dev Initializes the contract setting the deployer as the initial owner.
     */
    constructor() internal {
        _owner = _msgSender();
        emit OwnershipTransferred(address(0), _owner);
    }

    /**
     * @dev Returns the address of the current owner.
     */
    function owner() public view returns (address) {
        return _owner;
    }

    /**
     * @dev Throws if called by any account other than the owner.
     */
    modifier onlyOwner() {
        require(isOwner(), "Ownable: caller is not the owner");
        _;
    }

    /**
     * @dev Returns true if the caller is the current owner.
     */
    function isOwner() public view returns (bool) {
        return _msgSender() == _owner;
    }

    /**
     * @dev Leaves the contract without owner. It will not be possible to call
     * `onlyOwner` functions anymore. Can only be called by the current owner.
     *
     * NOTE: Renouncing ownership will leave the contract without an owner,
     * thereby removing any functionality that is only available to the owner.
     */
    function renounceOwnership() public onlyOwner {
        emit OwnershipTransferred(_owner, address(0));
        _owner = address(0);
    }

    /**
     * @dev Transfers ownership of the contract to a new account (`newOwner`).
     * Can only be called by the current owner.
     */
    function transferOwnership(address newOwner) public onlyOwner {
        _transferOwnership(newOwner);
    }

    /**
     * @dev Transfers ownership of the contract to a new account (`newOwner`).
     */
    function _transferOwnership(address newOwner) internal {
        require(
            newOwner != address(0),
            "Ownable: new owner is the zero address"
        );
        emit OwnershipTransferred(_owner, newOwner);
        _owner = newOwner;
    }
}

// File: @openzeppelin/contracts/token/ERC20/IERC20.sol

pragma solidity ^0.5.0;

/**
 * @dev Interface of the ERC20 standard as defined in the EIP. Does not include
 * the optional functions; to access them see {ERC20Detailed}.
 */
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);

    function mint(address account, uint256 amount) external;

    /**
     * @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
    );
}

// File: @openzeppelin/contracts/utils/Address.sol

pragma solidity ^0.5.5;

/**
 * @dev Collection of functions related to the address type
 */
library Address {
    /**
     * @dev Returns true if `account` is a contract.
     *
     * This test is non-exhaustive, and there may be false-negatives: during the
     * execution of a contract's constructor, its address will be reported as
     * not containing 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.
     */
    function isContract(address account) internal view returns (bool) {
        // This method relies in extcodesize, which returns 0 for contracts in
        // construction, since the code is only stored at the end of the
        // constructor execution.

        // 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 != 0x0 && codehash != accountHash);
    }

    /**
     * @dev Converts an `address` into `address payable`. Note that this is
     * simply a type cast: the actual underlying value is not changed.
     *
     * _Available since v2.4.0._
     */
    function toPayable(address account)
        internal
        pure
        returns (address payable)
    {
        return address(uint160(account));
    }

    /**
     * @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].
     *
     * _Available since v2.4.0._
     */
    function sendValue(address payable recipient, uint256 amount) internal {
        require(
            address(this).balance >= amount,
            "Address: insufficient balance"
        );

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

// File: @openzeppelin/contracts/token/ERC20/SafeERC20.sol

pragma solidity ^0.5.0;

/**
 * @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 ERC20;` 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)
        );
    }

    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.

        // A Solidity high level call has three parts:
        //  1. The target address is checked to verify it contains contract code
        //  2. The call itself is made, and success asserted
        //  3. The return value is decoded, which in turn checks the size of the returned data.
        // solhint-disable-next-line max-line-length
        require(address(token).isContract(), "SafeERC20: call to non-contract");

        // solhint-disable-next-line avoid-low-level-calls
        (bool success, bytes memory returndata) = address(token).call(data);
        require(success, "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: contracts/IGovernanceAddressRecipient.sol

pragma solidity ^0.5.0;

contract IGovernanceAddressRecipient is Ownable {
    address GovernanceAddress;

    modifier onlyGovernanceAddress() {
        require(
            _msgSender() == GovernanceAddress,
            "Caller is not reward distribution"
        );
        _;
    }

    function setGovernanceAddress(address _GovernanceAddress)
        external
        onlyOwner
    {
        GovernanceAddress = _GovernanceAddress;
    }
}

// File: contracts/Rewards.sol

pragma solidity ^0.5.0;

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

    IERC20 public stakeToken;

    uint256 private _totalSupply;
    mapping(address => uint256) private _balances;

    constructor(address _stakeToken) public {
        stakeToken = IERC20(_stakeToken);
    }

    function totalSupply() public view returns (uint256) {
        return _totalSupply;
    }

    function balanceOf(address account) public view returns (uint256) {
        return _balances[account];
    }

    function stake(uint256 amount) public {
        _totalSupply = _totalSupply.add(amount);
        _balances[msg.sender] = _balances[msg.sender].add(amount);
        stakeToken.safeTransferFrom(msg.sender, address(this), amount);
    }

    function withdraw(uint256 amount) public {
        _totalSupply = _totalSupply.sub(amount);
        _balances[msg.sender] = _balances[msg.sender].sub(amount);
        stakeToken.safeTransfer(msg.sender, amount);
    }
}

contract FeVaultV2 is
    StakeTokenWrapper(0x1C48b1DEF1404750359D3ff5a765a90C3F702999),
    IGovernanceAddressRecipient
{
    IERC20 public FECORE = IERC20(0x704b5267FAE30C40Fd0A4b14D83E414B4A920afA);

    uint256 public constant DURATION = 180 days;

    uint256 public initReward = 0;
    uint256 public startTime = 0;
    uint256 public periodFinish = 0;
    uint256 public rewardRate = 0;
    uint256 public lastUpdateTime;
    bool public stakeable = false;
    uint256 public rewardPerTokenStored;
    mapping(address => uint256) public userRewardPerTokenPaid;
    mapping(address => uint256) public rewards;
    address public FEE_ADDRESS;

    event DepositStake(uint256 reward);
    event StartStaking(uint256 time);
    event StopStaking(uint256 time);
    event Staked(address indexed user, uint256 amount);
    event Withdrawn(address indexed user, uint256 amount);
    event RewardPaid(address indexed user, uint256 reward);

    modifier updateReward(address account) {
        rewardPerTokenStored = rewardPerToken();
        lastUpdateTime = lastTimeRewardApplicable();
        if (account != address(0)) {
            rewards[account] = earned(account);
            userRewardPerTokenPaid[account] = rewardPerTokenStored;
        }
        _;
    }

    modifier checkStart() {
        require(initReward > 0, "No reward to stake.");
        require(stakeable, "Staking is not started.");
        _;
    }

    constructor() public {
        GovernanceAddress = _msgSender();
        FEE_ADDRESS = _msgSender();
    }

    function setFeeAddress(address _feeAddress) public onlyGovernanceAddress {
        FEE_ADDRESS = _feeAddress;
    }

    function lastTimeRewardApplicable() public view returns (uint256) {
        return Math.min(block.timestamp, periodFinish);
    }

    function remainingReward() public view returns (uint256) {
        return FECORE.balanceOf(address(this));
    }

    function stop() public onlyGovernanceAddress {
        require(stakeable, "Staking is not started.");
        FECORE.safeTransfer(
            address(0x489B689850999F751760a38d03693Bd979C4A690),
            remainingReward()
        );
        stakeable = false;
        initReward = 0;
        rewardRate = 0;
        emit StopStaking(block.timestamp);
    }

    function rewardPerToken() public view returns (uint256) {
        if (totalSupply() == 0) {
            return rewardPerTokenStored;
        }
        return
            rewardPerTokenStored.add(
                lastTimeRewardApplicable()
                    .sub(lastUpdateTime)
                    .mul(rewardRate)
                    .mul(1e18)
                    .div(totalSupply())
            );
    }

    function earned(address account) public view returns (uint256) {
        return
            balanceOf(account)
                .mul(rewardPerToken().sub(userRewardPerTokenPaid[account]))
                .div(1e18)
                .add(rewards[account]);
    }

    function start() public onlyGovernanceAddress {
        require(!stakeable, "Staking is started.");
        require(initReward > 0, "Cannot start. Require initReward");
        periodFinish = block.timestamp.add(DURATION);
        stakeable = true;
        startTime = block.timestamp;
        emit StartStaking(block.timestamp);
    }

    function depositReward(uint256 amount) public onlyGovernanceAddress {
        require(!stakeable, "Staking is started.");
        require(amount > 0, "Cannot deposit 0");
        FECORE.safeTransferFrom(_msgSender(), address(this), amount);
        initReward = amount;
        rewardRate = initReward.div(DURATION);
        emit DepositStake(amount);
    }

    // stake visibility is public as overriding LPTokenWrapper's stake() function
    function stake(uint256 amount)
        public
        updateReward(_msgSender())
        checkStart
    {
        require(amount > 0, "Cannot stake 0");
        super.stake(amount);
        emit Staked(_msgSender(), amount);
    }

    function withdraw(uint256 amount)
        public
        updateReward(_msgSender())
        checkStart
    {
        require(amount > 0, "Cannot withdraw 0");
        super.withdraw(amount);
        emit Withdrawn(_msgSender(), amount);
    }

    function exitStake() external {
        withdraw(balanceOf(_msgSender()));
        getReward();
    }

    uint256 public FEE_RATE = 1;
    uint256 public constant PERCENTS_DIVIDER = 1000;

    function getReward() public updateReward(_msgSender()) checkStart {
        uint256 reward = earned(_msgSender());
        if (reward > 0) {
            uint256 fee = reward.div(PERCENTS_DIVIDER).mul(FEE_RATE);
            rewards[_msgSender()] = 0;
            FECORE.safeTransfer(FEE_ADDRESS, fee);
            FECORE.safeTransfer(_msgSender(), reward.sub(fee));
            emit RewardPaid(_msgSender(), reward);
        }
    }
}

Contract Security Audit

Contract ABI

[{"inputs":[],"payable":false,"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"reward","type":"uint256"}],"name":"DepositStake","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"user","type":"address"},{"indexed":false,"internalType":"uint256","name":"reward","type":"uint256"}],"name":"RewardPaid","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"user","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"Staked","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"time","type":"uint256"}],"name":"StartStaking","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"time","type":"uint256"}],"name":"StopStaking","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"user","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"Withdrawn","type":"event"},{"constant":true,"inputs":[],"name":"DURATION","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"FECORE","outputs":[{"internalType":"contract IERC20","name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"FEE_ADDRESS","outputs":[{"internalType":"address","name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"FEE_RATE","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"PERCENTS_DIVIDER","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"depositReward","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"earned","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[],"name":"exitStake","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[],"name":"getReward","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"initReward","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"isOwner","outputs":[{"internalType":"bool","name":"","type":"bool"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"lastTimeRewardApplicable","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"lastUpdateTime","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"periodFinish","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"remainingReward","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[],"name":"renounceOwnership","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"rewardPerToken","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"rewardPerTokenStored","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"rewardRate","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"rewards","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"internalType":"address","name":"_feeAddress","type":"address"}],"name":"setFeeAddress","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"internalType":"address","name":"_GovernanceAddress","type":"address"}],"name":"setGovernanceAddress","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"stake","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"stakeToken","outputs":[{"internalType":"contract IERC20","name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"stakeable","outputs":[{"internalType":"bool","name":"","type":"bool"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[],"name":"start","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"startTime","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[],"name":"stop","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"userRewardPerTokenPaid","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"withdraw","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"}]

6080604052600580546001600160a01b03191673704b5267fae30c40fd0a4b14d83e414b4a920afa1790556000600681905560078190556008819055600955600b805460ff19169055600160105534801561005957600080fd5b50600080546001600160a01b031916731c48b1def1404750359d3ff5a765a90c3f7029991790556100916001600160e01b0361013b16565b600380546001600160a01b0319166001600160a01b0392831617908190556040519116906000907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908290a36100ee6001600160e01b0361013b16565b600480546001600160a01b0319166001600160a01b039290921691909117905561011661013b565b600f80546001600160a01b0319166001600160a01b039290921691909117905561013f565b3390565b6119188061014e6000396000f3fe608060405234801561001057600080fd5b50600436106102055760003560e01c80637b0a47ee1161011a578063be9a6555116100ad578063df136d651161007c578063df136d6514610429578063e1c4c9fe14610431578063eb1edd6114610439578063ebe2b12b14610441578063f2fde38b1461044957610205565b8063be9a6555146103eb578063c8f33c91146103f3578063cd3daf9d146103fb578063cfc162541461040357610205565b80638da5cb5b116100e95780638da5cb5b146103b65780638f32d59b146103be5780639bfffad7146103c6578063a694fc3a146103ce57610205565b80637b0a47ee1461035a57806380faa57d146103625780638705fcd41461036a5780638b8763471461039057610205565b80632d11c58a1161019d57806351ed6a301161016c57806351ed6a301461030057806370a0823114610308578063715018a61461032e57806375a776d61461033657806378e979251461035257610205565b80632d11c58a146102cb5780632e1a7d4d146102d35780633882f742146102f05780633d18b912146102f857610205565b806318160ddd116101d957806318160ddd1461027a5780631be05289146102825780631e2720ff1461028a5780632942e773146102a757610205565b80628cc2621461020a57806301c234a8146102425780630700037d1461024a57806307da68f514610270575b600080fd5b6102306004803603602081101561022057600080fd5b50356001600160a01b031661046f565b60408051918252519081900360200190f35b6102306104f5565b6102306004803603602081101561026057600080fd5b50356001600160a01b03166104fb565b61027861050d565b005b610230610639565b610230610640565b610278600480360360208110156102a057600080fd5b5035610647565b6102af6107ac565b604080516001600160a01b039092168252519081900360200190f35b6102306107bb565b610278600480360360208110156102e957600080fd5b50356107c1565b61027861095f565b610278610981565b6102af610b6a565b6102306004803603602081101561031e57600080fd5b50356001600160a01b0316610b79565b610278610b94565b61033e610c37565b604080519115158252519081900360200190f35b610230610c40565b610230610c46565b610230610c4c565b6102786004803603602081101561038057600080fd5b50356001600160a01b0316610c5f565b610230600480360360208110156103a657600080fd5b50356001600160a01b0316610cda565b6102af610cec565b61033e610cfb565b610230610d21565b610278600480360360208110156103e457600080fd5b5035610d27565b610278610ec2565b61023061101d565b610230611023565b6102786004803603602081101561041957600080fd5b50356001600160a01b0316611077565b6102306110f2565b6102306110f8565b6102af611174565b610230611183565b6102786004803603602081101561045f57600080fd5b50356001600160a01b0316611189565b6001600160a01b0381166000908152600e6020908152604080832054600d9092528220546104ef91906104e390670de0b6b3a7640000906104d7906104c2906104b6611023565b9063ffffffff6111ee16565b6104cb88610b79565b9063ffffffff61123716565b9063ffffffff61129016565b9063ffffffff6112d216565b92915050565b6103e881565b600e6020526000908152604090205481565b6004546001600160a01b031661052161132c565b6001600160a01b0316146105665760405162461bcd60e51b81526004018080602001828103825260218152602001806118996021913960400191505060405180910390fd5b600b5460ff166105b7576040805162461bcd60e51b815260206004820152601760248201527629ba30b5b4b7339034b9903737ba1039ba30b93a32b21760491b604482015290519081900360640190fd5b6105f073489b689850999f751760a38d03693bd979c4a6906105d76110f8565b6005546001600160a01b0316919063ffffffff61133016565b600b805460ff19169055600060068190556009556040805142815290517f844769bc94a2b0b6e18c8649b94e6dea9460cf27630e50da40b24bec16d898ab9181900360200190a1565b6001545b90565b62ed4e0081565b6004546001600160a01b031661065b61132c565b6001600160a01b0316146106a05760405162461bcd60e51b81526004018080602001828103825260218152602001806118996021913960400191505060405180910390fd5b600b5460ff16156106ee576040805162461bcd60e51b815260206004820152601360248201527229ba30b5b4b7339034b99039ba30b93a32b21760691b604482015290519081900360640190fd5b60008111610736576040805162461bcd60e51b815260206004820152601060248201526f043616e6e6f74206465706f73697420360841b604482015290519081900360640190fd5b61075b61074161132c565b6005546001600160a01b031690308463ffffffff61138716565b60068190556107738162ed4e0063ffffffff61129016565b6009556040805182815290517f054a903637a366320c31e23f961726344072ccf4de8c6cb7944791b9b1229dee9181900360200190a150565b6005546001600160a01b031681565b60105481565b6107c961132c565b6107d1611023565b600c556107dc610c4c565b600a556001600160a01b03811615610823576107f78161046f565b6001600160a01b0382166000908152600e6020908152604080832093909355600c54600d909152919020555b600060065411610870576040805162461bcd60e51b81526020600482015260136024820152722737903932bbb0b932103a379039ba30b5b29760691b604482015290519081900360640190fd5b600b5460ff166108c1576040805162461bcd60e51b815260206004820152601760248201527629ba30b5b4b7339034b9903737ba1039ba30b93a32b21760491b604482015290519081900360640190fd5b6000821161090a576040805162461bcd60e51b8152602060048201526011602482015270043616e6e6f74207769746864726177203607c1b604482015290519081900360640190fd5b610913826113e7565b61091b61132c565b6001600160a01b03167f7084f5476618d8e60b11ef0d7d3f06914655adb8793e28ff7f018d4c76d505d5836040518082815260200191505060405180910390a25050565b61097761097261096d61132c565b610b79565b6107c1565b61097f610981565b565b61098961132c565b610991611023565b600c5561099c610c4c565b600a556001600160a01b038116156109e3576109b78161046f565b6001600160a01b0382166000908152600e6020908152604080832093909355600c54600d909152919020555b600060065411610a30576040805162461bcd60e51b81526020600482015260136024820152722737903932bbb0b932103a379039ba30b5b29760691b604482015290519081900360640190fd5b600b5460ff16610a81576040805162461bcd60e51b815260206004820152601760248201527629ba30b5b4b7339034b9903737ba1039ba30b93a32b21760491b604482015290519081900360640190fd5b6000610a93610a8e61132c565b61046f565b90508015610b6657601054600090610ab7906104cb846103e863ffffffff61129016565b90506000600e6000610ac761132c565b6001600160a01b039081168252602082019290925260400160002091909155600f54600554610b019290811691168363ffffffff61133016565b610b1c610b0c61132c565b6105d7848463ffffffff6111ee16565b610b2461132c565b6001600160a01b03167fe2403640ba68fed3a2f88b7557551d1993f84b99bb10ff833f0cf8db0c5e0486836040518082815260200191505060405180910390a2505b5050565b6000546001600160a01b031681565b6001600160a01b031660009081526002602052604090205490565b610b9c610cfb565b610bed576040805162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015290519081900360640190fd5b6003546040516000916001600160a01b0316907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908390a3600380546001600160a01b0319169055565b600b5460ff1681565b60075481565b60095481565b6000610c5a42600854611448565b905090565b6004546001600160a01b0316610c7361132c565b6001600160a01b031614610cb85760405162461bcd60e51b81526004018080602001828103825260218152602001806118996021913960400191505060405180910390fd5b600f80546001600160a01b0319166001600160a01b0392909216919091179055565b600d6020526000908152604090205481565b6003546001600160a01b031690565b6003546000906001600160a01b0316610d1261132c565b6001600160a01b031614905090565b60065481565b610d2f61132c565b610d37611023565b600c55610d42610c4c565b600a556001600160a01b03811615610d8957610d5d8161046f565b6001600160a01b0382166000908152600e6020908152604080832093909355600c54600d909152919020555b600060065411610dd6576040805162461bcd60e51b81526020600482015260136024820152722737903932bbb0b932103a379039ba30b5b29760691b604482015290519081900360640190fd5b600b5460ff16610e27576040805162461bcd60e51b815260206004820152601760248201527629ba30b5b4b7339034b9903737ba1039ba30b93a32b21760491b604482015290519081900360640190fd5b60008211610e6d576040805162461bcd60e51b815260206004820152600e60248201526d043616e6e6f74207374616b6520360941b604482015290519081900360640190fd5b610e768261145e565b610e7e61132c565b6001600160a01b03167f9e71bc8eea02a63969f509818f2dafb9254532904319f9dbda79b67bd34a5f3d836040518082815260200191505060405180910390a25050565b6004546001600160a01b0316610ed661132c565b6001600160a01b031614610f1b5760405162461bcd60e51b81526004018080602001828103825260218152602001806118996021913960400191505060405180910390fd5b600b5460ff1615610f69576040805162461bcd60e51b815260206004820152601360248201527229ba30b5b4b7339034b99039ba30b93a32b21760691b604482015290519081900360640190fd5b600060065411610fc0576040805162461bcd60e51b815260206004820181905260248201527f43616e6e6f742073746172742e205265717569726520696e6974526577617264604482015290519081900360640190fd5b610fd34262ed4e0063ffffffff6112d216565b600855600b805460ff1916600117905542600781905560408051918252517f35f87ec121777dc0cc72cd4066439fd5218001344ebdadccc8cfcf3c3dee61089181900360200190a1565b600a5481565b600061102d610639565b61103a5750600c5461063d565b610c5a611068611048610639565b6104d7670de0b6b3a76400006104cb6009546104cb600a546104b6610c4c565b600c549063ffffffff6112d216565b61107f610cfb565b6110d0576040805162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015290519081900360640190fd5b600480546001600160a01b0319166001600160a01b0392909216919091179055565b600c5481565b600554604080516370a0823160e01b815230600482015290516000926001600160a01b0316916370a08231916024808301926020929190829003018186803b15801561114357600080fd5b505afa158015611157573d6000803e3d6000fd5b505050506040513d602081101561116d57600080fd5b5051905090565b600f546001600160a01b031681565b60085481565b611191610cfb565b6111e2576040805162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015290519081900360640190fd5b6111eb816114c0565b50565b600061123083836040518060400160405280601e81526020017f536166654d6174683a207375627472616374696f6e206f766572666c6f770000815250611561565b9392505050565b600082611246575060006104ef565b8282028284828161125357fe5b04146112305760405162461bcd60e51b81526004018080602001828103825260218152602001806118786021913960400191505060405180910390fd5b600061123083836040518060400160405280601a81526020017f536166654d6174683a206469766973696f6e206279207a65726f0000000000008152506115f8565b600082820183811015611230576040805162461bcd60e51b815260206004820152601b60248201527f536166654d6174683a206164646974696f6e206f766572666c6f770000000000604482015290519081900360640190fd5b3390565b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663a9059cbb60e01b17905261138290849061165d565b505050565b604080516001600160a01b0385811660248301528416604482015260648082018490528251808303909101815260849091019091526020810180516001600160e01b03166323b872dd60e01b1790526113e190859061165d565b50505050565b6001546113fa908263ffffffff6111ee16565b6001553360009081526002602052604090205461141d908263ffffffff6111ee16565b3360008181526002602052604081209290925590546111eb916001600160a01b039091169083611330565b60008183106114575781611230565b5090919050565b600154611471908263ffffffff6112d216565b60015533600090815260026020526040902054611494908263ffffffff6112d216565b3360008181526002602052604081209290925590546111eb916001600160a01b03909116903084611387565b6001600160a01b0381166115055760405162461bcd60e51b81526004018080602001828103825260268152602001806118526026913960400191505060405180910390fd5b6003546040516001600160a01b038084169216907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a3600380546001600160a01b0319166001600160a01b0392909216919091179055565b600081848411156115f05760405162461bcd60e51b81526004018080602001828103825283818151815260200191508051906020019080838360005b838110156115b557818101518382015260200161159d565b50505050905090810190601f1680156115e25780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b505050900390565b600081836116475760405162461bcd60e51b81526020600482018181528351602484015283519092839260449091019190850190808383600083156115b557818101518382015260200161159d565b50600083858161165357fe5b0495945050505050565b61166f826001600160a01b0316611815565b6116c0576040805162461bcd60e51b815260206004820152601f60248201527f5361666545524332303a2063616c6c20746f206e6f6e2d636f6e747261637400604482015290519081900360640190fd5b60006060836001600160a01b0316836040518082805190602001908083835b602083106116fe5780518252601f1990920191602091820191016116df565b6001836020036101000a0380198251168184511680821785525050505050509050019150506000604051808303816000865af19150503d8060008114611760576040519150601f19603f3d011682016040523d82523d6000602084013e611765565b606091505b5091509150816117bc576040805162461bcd60e51b815260206004820181905260248201527f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564604482015290519081900360640190fd5b8051156113e1578080602001905160208110156117d857600080fd5b50516113e15760405162461bcd60e51b815260040180806020018281038252602a8152602001806118ba602a913960400191505060405180910390fd5b6000813f7fc5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a47081158015906118495750808214155b94935050505056fe4f776e61626c653a206e6577206f776e657220697320746865207a65726f2061646472657373536166654d6174683a206d756c7469706c69636174696f6e206f766572666c6f7743616c6c6572206973206e6f742072657761726420646973747269627574696f6e5361666545524332303a204552433230206f7065726174696f6e20646964206e6f742073756363656564a265627a7a72315820d6af8bc2e86643d4b675f0c2923265ddb93fecd6363cf6dad82792796583221464736f6c63430005110032

Deployed Bytecode

0x608060405234801561001057600080fd5b50600436106102055760003560e01c80637b0a47ee1161011a578063be9a6555116100ad578063df136d651161007c578063df136d6514610429578063e1c4c9fe14610431578063eb1edd6114610439578063ebe2b12b14610441578063f2fde38b1461044957610205565b8063be9a6555146103eb578063c8f33c91146103f3578063cd3daf9d146103fb578063cfc162541461040357610205565b80638da5cb5b116100e95780638da5cb5b146103b65780638f32d59b146103be5780639bfffad7146103c6578063a694fc3a146103ce57610205565b80637b0a47ee1461035a57806380faa57d146103625780638705fcd41461036a5780638b8763471461039057610205565b80632d11c58a1161019d57806351ed6a301161016c57806351ed6a301461030057806370a0823114610308578063715018a61461032e57806375a776d61461033657806378e979251461035257610205565b80632d11c58a146102cb5780632e1a7d4d146102d35780633882f742146102f05780633d18b912146102f857610205565b806318160ddd116101d957806318160ddd1461027a5780631be05289146102825780631e2720ff1461028a5780632942e773146102a757610205565b80628cc2621461020a57806301c234a8146102425780630700037d1461024a57806307da68f514610270575b600080fd5b6102306004803603602081101561022057600080fd5b50356001600160a01b031661046f565b60408051918252519081900360200190f35b6102306104f5565b6102306004803603602081101561026057600080fd5b50356001600160a01b03166104fb565b61027861050d565b005b610230610639565b610230610640565b610278600480360360208110156102a057600080fd5b5035610647565b6102af6107ac565b604080516001600160a01b039092168252519081900360200190f35b6102306107bb565b610278600480360360208110156102e957600080fd5b50356107c1565b61027861095f565b610278610981565b6102af610b6a565b6102306004803603602081101561031e57600080fd5b50356001600160a01b0316610b79565b610278610b94565b61033e610c37565b604080519115158252519081900360200190f35b610230610c40565b610230610c46565b610230610c4c565b6102786004803603602081101561038057600080fd5b50356001600160a01b0316610c5f565b610230600480360360208110156103a657600080fd5b50356001600160a01b0316610cda565b6102af610cec565b61033e610cfb565b610230610d21565b610278600480360360208110156103e457600080fd5b5035610d27565b610278610ec2565b61023061101d565b610230611023565b6102786004803603602081101561041957600080fd5b50356001600160a01b0316611077565b6102306110f2565b6102306110f8565b6102af611174565b610230611183565b6102786004803603602081101561045f57600080fd5b50356001600160a01b0316611189565b6001600160a01b0381166000908152600e6020908152604080832054600d9092528220546104ef91906104e390670de0b6b3a7640000906104d7906104c2906104b6611023565b9063ffffffff6111ee16565b6104cb88610b79565b9063ffffffff61123716565b9063ffffffff61129016565b9063ffffffff6112d216565b92915050565b6103e881565b600e6020526000908152604090205481565b6004546001600160a01b031661052161132c565b6001600160a01b0316146105665760405162461bcd60e51b81526004018080602001828103825260218152602001806118996021913960400191505060405180910390fd5b600b5460ff166105b7576040805162461bcd60e51b815260206004820152601760248201527629ba30b5b4b7339034b9903737ba1039ba30b93a32b21760491b604482015290519081900360640190fd5b6105f073489b689850999f751760a38d03693bd979c4a6906105d76110f8565b6005546001600160a01b0316919063ffffffff61133016565b600b805460ff19169055600060068190556009556040805142815290517f844769bc94a2b0b6e18c8649b94e6dea9460cf27630e50da40b24bec16d898ab9181900360200190a1565b6001545b90565b62ed4e0081565b6004546001600160a01b031661065b61132c565b6001600160a01b0316146106a05760405162461bcd60e51b81526004018080602001828103825260218152602001806118996021913960400191505060405180910390fd5b600b5460ff16156106ee576040805162461bcd60e51b815260206004820152601360248201527229ba30b5b4b7339034b99039ba30b93a32b21760691b604482015290519081900360640190fd5b60008111610736576040805162461bcd60e51b815260206004820152601060248201526f043616e6e6f74206465706f73697420360841b604482015290519081900360640190fd5b61075b61074161132c565b6005546001600160a01b031690308463ffffffff61138716565b60068190556107738162ed4e0063ffffffff61129016565b6009556040805182815290517f054a903637a366320c31e23f961726344072ccf4de8c6cb7944791b9b1229dee9181900360200190a150565b6005546001600160a01b031681565b60105481565b6107c961132c565b6107d1611023565b600c556107dc610c4c565b600a556001600160a01b03811615610823576107f78161046f565b6001600160a01b0382166000908152600e6020908152604080832093909355600c54600d909152919020555b600060065411610870576040805162461bcd60e51b81526020600482015260136024820152722737903932bbb0b932103a379039ba30b5b29760691b604482015290519081900360640190fd5b600b5460ff166108c1576040805162461bcd60e51b815260206004820152601760248201527629ba30b5b4b7339034b9903737ba1039ba30b93a32b21760491b604482015290519081900360640190fd5b6000821161090a576040805162461bcd60e51b8152602060048201526011602482015270043616e6e6f74207769746864726177203607c1b604482015290519081900360640190fd5b610913826113e7565b61091b61132c565b6001600160a01b03167f7084f5476618d8e60b11ef0d7d3f06914655adb8793e28ff7f018d4c76d505d5836040518082815260200191505060405180910390a25050565b61097761097261096d61132c565b610b79565b6107c1565b61097f610981565b565b61098961132c565b610991611023565b600c5561099c610c4c565b600a556001600160a01b038116156109e3576109b78161046f565b6001600160a01b0382166000908152600e6020908152604080832093909355600c54600d909152919020555b600060065411610a30576040805162461bcd60e51b81526020600482015260136024820152722737903932bbb0b932103a379039ba30b5b29760691b604482015290519081900360640190fd5b600b5460ff16610a81576040805162461bcd60e51b815260206004820152601760248201527629ba30b5b4b7339034b9903737ba1039ba30b93a32b21760491b604482015290519081900360640190fd5b6000610a93610a8e61132c565b61046f565b90508015610b6657601054600090610ab7906104cb846103e863ffffffff61129016565b90506000600e6000610ac761132c565b6001600160a01b039081168252602082019290925260400160002091909155600f54600554610b019290811691168363ffffffff61133016565b610b1c610b0c61132c565b6105d7848463ffffffff6111ee16565b610b2461132c565b6001600160a01b03167fe2403640ba68fed3a2f88b7557551d1993f84b99bb10ff833f0cf8db0c5e0486836040518082815260200191505060405180910390a2505b5050565b6000546001600160a01b031681565b6001600160a01b031660009081526002602052604090205490565b610b9c610cfb565b610bed576040805162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015290519081900360640190fd5b6003546040516000916001600160a01b0316907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908390a3600380546001600160a01b0319169055565b600b5460ff1681565b60075481565b60095481565b6000610c5a42600854611448565b905090565b6004546001600160a01b0316610c7361132c565b6001600160a01b031614610cb85760405162461bcd60e51b81526004018080602001828103825260218152602001806118996021913960400191505060405180910390fd5b600f80546001600160a01b0319166001600160a01b0392909216919091179055565b600d6020526000908152604090205481565b6003546001600160a01b031690565b6003546000906001600160a01b0316610d1261132c565b6001600160a01b031614905090565b60065481565b610d2f61132c565b610d37611023565b600c55610d42610c4c565b600a556001600160a01b03811615610d8957610d5d8161046f565b6001600160a01b0382166000908152600e6020908152604080832093909355600c54600d909152919020555b600060065411610dd6576040805162461bcd60e51b81526020600482015260136024820152722737903932bbb0b932103a379039ba30b5b29760691b604482015290519081900360640190fd5b600b5460ff16610e27576040805162461bcd60e51b815260206004820152601760248201527629ba30b5b4b7339034b9903737ba1039ba30b93a32b21760491b604482015290519081900360640190fd5b60008211610e6d576040805162461bcd60e51b815260206004820152600e60248201526d043616e6e6f74207374616b6520360941b604482015290519081900360640190fd5b610e768261145e565b610e7e61132c565b6001600160a01b03167f9e71bc8eea02a63969f509818f2dafb9254532904319f9dbda79b67bd34a5f3d836040518082815260200191505060405180910390a25050565b6004546001600160a01b0316610ed661132c565b6001600160a01b031614610f1b5760405162461bcd60e51b81526004018080602001828103825260218152602001806118996021913960400191505060405180910390fd5b600b5460ff1615610f69576040805162461bcd60e51b815260206004820152601360248201527229ba30b5b4b7339034b99039ba30b93a32b21760691b604482015290519081900360640190fd5b600060065411610fc0576040805162461bcd60e51b815260206004820181905260248201527f43616e6e6f742073746172742e205265717569726520696e6974526577617264604482015290519081900360640190fd5b610fd34262ed4e0063ffffffff6112d216565b600855600b805460ff1916600117905542600781905560408051918252517f35f87ec121777dc0cc72cd4066439fd5218001344ebdadccc8cfcf3c3dee61089181900360200190a1565b600a5481565b600061102d610639565b61103a5750600c5461063d565b610c5a611068611048610639565b6104d7670de0b6b3a76400006104cb6009546104cb600a546104b6610c4c565b600c549063ffffffff6112d216565b61107f610cfb565b6110d0576040805162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015290519081900360640190fd5b600480546001600160a01b0319166001600160a01b0392909216919091179055565b600c5481565b600554604080516370a0823160e01b815230600482015290516000926001600160a01b0316916370a08231916024808301926020929190829003018186803b15801561114357600080fd5b505afa158015611157573d6000803e3d6000fd5b505050506040513d602081101561116d57600080fd5b5051905090565b600f546001600160a01b031681565b60085481565b611191610cfb565b6111e2576040805162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015290519081900360640190fd5b6111eb816114c0565b50565b600061123083836040518060400160405280601e81526020017f536166654d6174683a207375627472616374696f6e206f766572666c6f770000815250611561565b9392505050565b600082611246575060006104ef565b8282028284828161125357fe5b04146112305760405162461bcd60e51b81526004018080602001828103825260218152602001806118786021913960400191505060405180910390fd5b600061123083836040518060400160405280601a81526020017f536166654d6174683a206469766973696f6e206279207a65726f0000000000008152506115f8565b600082820183811015611230576040805162461bcd60e51b815260206004820152601b60248201527f536166654d6174683a206164646974696f6e206f766572666c6f770000000000604482015290519081900360640190fd5b3390565b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663a9059cbb60e01b17905261138290849061165d565b505050565b604080516001600160a01b0385811660248301528416604482015260648082018490528251808303909101815260849091019091526020810180516001600160e01b03166323b872dd60e01b1790526113e190859061165d565b50505050565b6001546113fa908263ffffffff6111ee16565b6001553360009081526002602052604090205461141d908263ffffffff6111ee16565b3360008181526002602052604081209290925590546111eb916001600160a01b039091169083611330565b60008183106114575781611230565b5090919050565b600154611471908263ffffffff6112d216565b60015533600090815260026020526040902054611494908263ffffffff6112d216565b3360008181526002602052604081209290925590546111eb916001600160a01b03909116903084611387565b6001600160a01b0381166115055760405162461bcd60e51b81526004018080602001828103825260268152602001806118526026913960400191505060405180910390fd5b6003546040516001600160a01b038084169216907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a3600380546001600160a01b0319166001600160a01b0392909216919091179055565b600081848411156115f05760405162461bcd60e51b81526004018080602001828103825283818151815260200191508051906020019080838360005b838110156115b557818101518382015260200161159d565b50505050905090810190601f1680156115e25780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b505050900390565b600081836116475760405162461bcd60e51b81526020600482018181528351602484015283519092839260449091019190850190808383600083156115b557818101518382015260200161159d565b50600083858161165357fe5b0495945050505050565b61166f826001600160a01b0316611815565b6116c0576040805162461bcd60e51b815260206004820152601f60248201527f5361666545524332303a2063616c6c20746f206e6f6e2d636f6e747261637400604482015290519081900360640190fd5b60006060836001600160a01b0316836040518082805190602001908083835b602083106116fe5780518252601f1990920191602091820191016116df565b6001836020036101000a0380198251168184511680821785525050505050509050019150506000604051808303816000865af19150503d8060008114611760576040519150601f19603f3d011682016040523d82523d6000602084013e611765565b606091505b5091509150816117bc576040805162461bcd60e51b815260206004820181905260248201527f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564604482015290519081900360640190fd5b8051156113e1578080602001905160208110156117d857600080fd5b50516113e15760405162461bcd60e51b815260040180806020018281038252602a8152602001806118ba602a913960400191505060405180910390fd5b6000813f7fc5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a47081158015906118495750808214155b94935050505056fe4f776e61626c653a206e6577206f776e657220697320746865207a65726f2061646472657373536166654d6174683a206d756c7469706c69636174696f6e206f766572666c6f7743616c6c6572206973206e6f742072657761726420646973747269627574696f6e5361666545524332303a204552433230206f7065726174696f6e20646964206e6f742073756363656564a265627a7a72315820d6af8bc2e86643d4b675f0c2923265ddb93fecd6363cf6dad82792796583221464736f6c63430005110032

Deployed Bytecode Sourcemap

22527:5007:0:-;;;;8:9:-1;5:2;;;30:1;27;20:12;5:2;22527:5007:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;25307:265;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;25307:265:0;-1:-1:-1;;;;;25307:265:0;;:::i;:::-;;;;;;;;;;;;;;;;27035:47;;;:::i;23115:42::-;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;23115:42:0;-1:-1:-1;;;;;23115:42:0;;:::i;24501:370::-;;;:::i;:::-;;21837:91;;;:::i;22740:43::-;;;:::i;25930:364::-;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;25930:364:0;;:::i;22658:73::-;;;:::i;:::-;;;;-1:-1:-1;;;;;22658:73:0;;;;;;;;;;;;;;27001:27;;;:::i;26631:250::-;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;26631:250:0;;:::i;26889:104::-;;;:::i;27091:440::-;;;:::i;21616:24::-;;;:::i;21936:110::-;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;21936:110:0;-1:-1:-1;;;;;21936:110:0;;:::i;9368:140::-;;;:::i;22973:29::-;;;:::i;:::-;;;;;;;;;;;;;;;;;;22828:28;;;:::i;22901:29::-;;;:::i;24240:131::-;;;:::i;24115:117::-;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;24115:117:0;-1:-1:-1;;;;;24115:117:0;;:::i;23051:57::-;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;23051:57:0;-1:-1:-1;;;;;23051:57:0;;:::i;8557:79::-;;;:::i;8923:94::-;;;:::i;22792:29::-;;;:::i;26385:238::-;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;26385:238:0;;:::i;25580:342::-;;;:::i;22937:29::-;;;:::i;24879:420::-;;;:::i;21289:157::-;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;21289:157:0;-1:-1:-1;;;;;21289:157:0;;:::i;23009:35::-;;;:::i;24379:114::-;;;:::i;23164:26::-;;;:::i;22863:31::-;;;:::i;9663:109::-;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;9663:109:0;-1:-1:-1;;;;;9663:109:0;;:::i;25307:265::-;-1:-1:-1;;;;;25547:16:0;;25361:7;25547:16;;;:7;:16;;;;;;;;;25463:22;:31;;;;;;25401:163;;25547:16;25401:123;;25519:4;;25401:95;;25442:53;;:16;:14;:16::i;:::-;:20;:53;:20;:53;:::i;:::-;25401:18;25411:7;25401:9;:18::i;:::-;:40;:95;:40;:95;:::i;:::-;:117;:123;:117;:123;:::i;:::-;:145;:163;:145;:163;:::i;:::-;25381:183;25307:265;-1:-1:-1;;25307:265:0:o;27035:47::-;27078:4;27035:47;:::o;23115:42::-;;;;;;;;;;;;;:::o;24501:370::-;21183:17;;-1:-1:-1;;;;;21183:17:0;21167:12;:10;:12::i;:::-;-1:-1:-1;;;;;21167:33:0;;21145:116;;;;-1:-1:-1;;;21145:116:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;24565:9;;;;24557:45;;;;;-1:-1:-1;;;24557:45:0;;;;;;;;;;;;-1:-1:-1;;;24557:45:0;;;;;;;;;;;;;;;24613:128;24655:42;24713:17;:15;:17::i;:::-;24613:6;;-1:-1:-1;;;;;24613:6:0;;:128;;:19;:128;:::i;:::-;24752:9;:17;;-1:-1:-1;;24752:17:0;;;24764:5;24780:10;:14;;;24805:10;:14;24835:28;;;24847:15;24835:28;;;;;;;;;;;;;24501:370::o;21837:91::-;21908:12;;21837:91;;:::o;22740:43::-;22775:8;22740:43;:::o;25930:364::-;21183:17;;-1:-1:-1;;;;;21183:17:0;21167:12;:10;:12::i;:::-;-1:-1:-1;;;;;21167:33:0;;21145:116;;;;-1:-1:-1;;;21145:116:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;26018:9;;;;26017:10;26009:42;;;;;-1:-1:-1;;;26009:42:0;;;;;;;;;;;;-1:-1:-1;;;26009:42:0;;;;;;;;;;;;;;;26079:1;26070:6;:10;26062:39;;;;;-1:-1:-1;;;26062:39:0;;;;;;;;;;;;-1:-1:-1;;;26062:39:0;;;;;;;;;;;;;;;26112:60;26136:12;:10;:12::i;:::-;26112:6;;-1:-1:-1;;;;;26112:6:0;;26158:4;26165:6;26112:60;:23;:60;:::i;:::-;26183:10;:19;;;26226:24;26196:6;22775:8;26226:24;:14;:24;:::i;:::-;26213:10;:37;26266:20;;;;;;;;;;;;;;;;;25930:364;:::o;22658:73::-;;;-1:-1:-1;;;;;22658:73:0;;:::o;27001:27::-;;;;:::o;26631:250::-;26703:12;:10;:12::i;:::-;23570:16;:14;:16::i;:::-;23547:20;:39;23614:26;:24;:26::i;:::-;23597:14;:43;-1:-1:-1;;;;;23655:21:0;;;23651:157;;23712:15;23719:7;23712:6;:15::i;:::-;-1:-1:-1;;;;;23693:16:0;;;;;;:7;:16;;;;;;;;:34;;;;23776:20;;23742:22;:31;;;;;;:54;23651:157;23889:1;23876:10;;:14;23868:46;;;;;-1:-1:-1;;;23868:46:0;;;;;;;;;;;;-1:-1:-1;;;23868:46:0;;;;;;;;;;;;;;;23933:9;;;;23925:45;;;;;-1:-1:-1;;;23925:45:0;;;;;;;;;;;;-1:-1:-1;;;23925:45:0;;;;;;;;;;;;;;;26770:1;26761:6;:10;26753:40;;;;;-1:-1:-1;;;26753:40:0;;;;;;;;;;;;-1:-1:-1;;;26753:40:0;;;;;;;;;;;;;;;26804:22;26819:6;26804:14;:22::i;:::-;26852:12;:10;:12::i;:::-;-1:-1:-1;;;;;26842:31:0;;26866:6;26842:31;;;;;;;;;;;;;;;;;;26631:250;;:::o;26889:104::-;26930:33;26939:23;26949:12;:10;:12::i;:::-;26939:9;:23::i;:::-;26930:8;:33::i;:::-;26974:11;:9;:11::i;:::-;26889:104::o;27091:440::-;27132:12;:10;:12::i;:::-;23570:16;:14;:16::i;:::-;23547:20;:39;23614:26;:24;:26::i;:::-;23597:14;:43;-1:-1:-1;;;;;23655:21:0;;;23651:157;;23712:15;23719:7;23712:6;:15::i;:::-;-1:-1:-1;;;;;23693:16:0;;;;;;:7;:16;;;;;;;;:34;;;;23776:20;;23742:22;:31;;;;;;:54;23651:157;23889:1;23876:10;;:14;23868:46;;;;;-1:-1:-1;;;23868:46:0;;;;;;;;;;;;-1:-1:-1;;;23868:46:0;;;;;;;;;;;;;;;23933:9;;;;23925:45;;;;;-1:-1:-1;;;23925:45:0;;;;;;;;;;;;-1:-1:-1;;;23925:45:0;;;;;;;;;;;;;;;27168:14;27185:20;27192:12;:10;:12::i;:::-;27185:6;:20::i;:::-;27168:37;-1:-1:-1;27220:10:0;;27216:308;;27294:8;;27247:11;;27261:42;;:28;:6;27078:4;27261:28;:10;:28;:::i;:42::-;27247:56;;27342:1;27318:7;:21;27326:12;:10;:12::i;:::-;-1:-1:-1;;;;;27318:21:0;;;;;;;;;;;;;;-1:-1:-1;27318:21:0;:25;;;;27378:11;;27358:6;;:37;;:6;;;;27378:11;27391:3;27358:37;:19;:37;:::i;:::-;27410:50;27430:12;:10;:12::i;:::-;27444:15;:6;27455:3;27444:15;:10;:15;:::i;27410:50::-;27491:12;:10;:12::i;:::-;-1:-1:-1;;;;;27480:32:0;;27505:6;27480:32;;;;;;;;;;;;;;;;;;27216:308;;23981:1;27091:440;:::o;21616:24::-;;;-1:-1:-1;;;;;21616:24:0;;:::o;21936:110::-;-1:-1:-1;;;;;22020:18:0;21993:7;22020:18;;;:9;:18;;;;;;;21936:110::o;9368:140::-;8769:9;:7;:9::i;:::-;8761:54;;;;;-1:-1:-1;;;8761:54:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;9451:6;;9430:40;;9467:1;;-1:-1:-1;;;;;9451:6:0;;9430:40;;9467:1;;9430:40;9481:6;:19;;-1:-1:-1;;;;;;9481:19:0;;;9368:140::o;22973:29::-;;;;;;:::o;22828:28::-;;;;:::o;22901:29::-;;;;:::o;24240:131::-;24297:7;24324:39;24333:15;24350:12;;24324:8;:39::i;:::-;24317:46;;24240:131;:::o;24115:117::-;21183:17;;-1:-1:-1;;;;;21183:17:0;21167:12;:10;:12::i;:::-;-1:-1:-1;;;;;21167:33:0;;21145:116;;;;-1:-1:-1;;;21145:116:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;24199:11;:25;;-1:-1:-1;;;;;;24199:25:0;-1:-1:-1;;;;;24199:25:0;;;;;;;;;;24115:117::o;23051:57::-;;;;;;;;;;;;;:::o;8557:79::-;8622:6;;-1:-1:-1;;;;;8622:6:0;8557:79;:::o;8923:94::-;9003:6;;8963:4;;-1:-1:-1;;;;;9003:6:0;8987:12;:10;:12::i;:::-;-1:-1:-1;;;;;8987:22:0;;8980:29;;8923:94;:::o;22792:29::-;;;;:::o;26385:238::-;26454:12;:10;:12::i;:::-;23570:16;:14;:16::i;:::-;23547:20;:39;23614:26;:24;:26::i;:::-;23597:14;:43;-1:-1:-1;;;;;23655:21:0;;;23651:157;;23712:15;23719:7;23712:6;:15::i;:::-;-1:-1:-1;;;;;23693:16:0;;;;;;:7;:16;;;;;;;;:34;;;;23776:20;;23742:22;:31;;;;;;:54;23651:157;23889:1;23876:10;;:14;23868:46;;;;;-1:-1:-1;;;23868:46:0;;;;;;;;;;;;-1:-1:-1;;;23868:46:0;;;;;;;;;;;;;;;23933:9;;;;23925:45;;;;;-1:-1:-1;;;23925:45:0;;;;;;;;;;;;-1:-1:-1;;;23925:45:0;;;;;;;;;;;;;;;26521:1;26512:6;:10;26504:37;;;;;-1:-1:-1;;;26504:37:0;;;;;;;;;;;;-1:-1:-1;;;26504:37:0;;;;;;;;;;;;;;;26552:19;26564:6;26552:11;:19::i;:::-;26594:12;:10;:12::i;:::-;-1:-1:-1;;;;;26587:28:0;;26608:6;26587:28;;;;;;;;;;;;;;;;;;26385:238;;:::o;25580:342::-;21183:17;;-1:-1:-1;;;;;21183:17:0;21167:12;:10;:12::i;:::-;-1:-1:-1;;;;;21167:33:0;;21145:116;;;;-1:-1:-1;;;21145:116:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;25646:9;;;;25645:10;25637:42;;;;;-1:-1:-1;;;25637:42:0;;;;;;;;;;;;-1:-1:-1;;;25637:42:0;;;;;;;;;;;;;;;25711:1;25698:10;;:14;25690:59;;;;;-1:-1:-1;;;25690:59:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;25775:29;:15;22775:8;25775:29;:19;:29;:::i;:::-;25760:12;:44;25815:9;:16;;-1:-1:-1;;25815:16:0;25827:4;25815:16;;;25854:15;25842:9;:27;;;25885:29;;;;;;;;;;;;;;;;25580:342::o;22937:29::-;;;;:::o;24879:420::-;24926:7;24950:13;:11;:13::i;:::-;24946:78;;-1:-1:-1;24992:20:0;;24985:27;;24946:78;25054:237;25097:179;25262:13;:11;:13::i;:::-;25097:138;25230:4;25097:106;25192:10;;25097:68;25150:14;;25097:26;:24;:26::i;:179::-;25054:20;;;:237;:24;:237;:::i;21289:157::-;8769:9;:7;:9::i;:::-;8761:54;;;;;-1:-1:-1;;;8761:54:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;21400:17;:38;;-1:-1:-1;;;;;;21400:38:0;-1:-1:-1;;;;;21400:38:0;;;;;;;;;;21289:157::o;23009:35::-;;;;:::o;24379:114::-;24454:6;;:31;;;-1:-1:-1;;;24454:31:0;;24479:4;24454:31;;;;;;24427:7;;-1:-1:-1;;;;;24454:6:0;;:16;;:31;;;;;;;;;;;;;;:6;:31;;;5:2:-1;;;;30:1;27;20:12;5:2;24454:31:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;24454:31:0;;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;24454:31:0;;-1:-1:-1;24379:114:0;:::o;23164:26::-;;;-1:-1:-1;;;;;23164:26:0;;:::o;22863:31::-;;;;:::o;9663:109::-;8769:9;:7;:9::i;:::-;8761:54;;;;;-1:-1:-1;;;8761:54:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;9736:28;9755:8;9736:18;:28::i;:::-;9663:109;:::o;2172:136::-;2230:7;2257:43;2261:1;2264;2257:43;;;;;;;;;;;;;;;;;:3;:43::i;:::-;2250:50;2172:136;-1:-1:-1;;;2172:136:0:o;3122:471::-;3180:7;3425:6;3421:47;;-1:-1:-1;3455:1:0;3448:8;;3421:47;3492:5;;;3496:1;3492;:5;:1;3516:5;;;;;:10;3508:56;;;;-1:-1:-1;;;3508:56:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;4061:132;4119:7;4146:39;4150:1;4153;4146:39;;;;;;;;;;;;;;;;;:3;:39::i;1716:181::-;1774:7;1806:5;;;1830:6;;;;1822:46;;;;;-1:-1:-1;;;1822:46:0;;;;;;;;;;;;;;;;;;;;;;;;;;;7273:98;7353:10;7273:98;:::o;17138:247::-;17308:58;;;-1:-1:-1;;;;;17308:58:0;;;;;;;;;;;;;;;26:21:-1;;;22:32;;;6:49;;17308:58:0;;;;;;;;25:18:-1;;61:17;;-1:-1;;;;;182:15;-1:-1;;;179:29;160:49;;17255:122:0;;17288:5;;17255:18;:122::i;:::-;17138:247;;;:::o;17393:284::-;17590:68;;;-1:-1:-1;;;;;17590:68:0;;;;;;;;;;;;;;;;;;;;;;26:21:-1;;;22:32;;;6:49;;17590:68:0;;;;;;;;25:18:-1;;61:17;;-1:-1;;;;;182:15;-1:-1;;;179:29;160:49;;17537:132:0;;17570:5;;17537:18;:132::i;:::-;17393:284;;;;:::o;22299:221::-;22366:12;;:24;;22383:6;22366:24;:16;:24;:::i;:::-;22351:12;:39;22435:10;22425:21;;;;:9;:21;;;;;;:33;;22451:6;22425:33;:25;:33;:::i;:::-;22411:10;22401:21;;;;:9;:21;;;;;:57;;;;22469:10;;:43;;-1:-1:-1;;;;;22469:10:0;;;;22505:6;22469:23;:43::i;374:106::-;432:7;463:1;459;:5;:13;;471:1;459:13;;;-1:-1:-1;467:1:0;;374:106;-1:-1:-1;374:106:0:o;22054:237::-;22118:12;;:24;;22135:6;22118:24;:16;:24;:::i;:::-;22103:12;:39;22187:10;22177:21;;;;:9;:21;;;;;;:33;;22203:6;22177:33;:25;:33;:::i;:::-;22163:10;22153:21;;;;:9;:21;;;;;:57;;;;22221:10;;:62;;-1:-1:-1;;;;;22221:10:0;;;;22269:4;22276:6;22221:27;:62::i;9878:266::-;-1:-1:-1;;;;;9966:22:0;;9944:110;;;;-1:-1:-1;;;9944:110:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;10091:6;;10070:38;;-1:-1:-1;;;;;10070:38:0;;;;10091:6;;10070:38;;10091:6;;10070:38;10119:6;:17;;-1:-1:-1;;;;;;10119:17:0;-1:-1:-1;;;;;10119:17:0;;;;;;;;;;9878:266::o;2645:226::-;2765:7;2801:12;2793:6;;;;2785:29;;;;-1:-1:-1;;;2785:29:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;23:1:-1;8:100;33:3;30:1;27:10;8:100;;;90:11;;;84:18;71:11;;;64:39;52:2;45:10;8:100;;;12:14;2785:29:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;2837:5:0;;;2645:226::o;4723:379::-;4843:7;4945:12;4938:5;4930:28;;;;-1:-1:-1;;;4930:28:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;27:10:-1;;8:100;;90:11;;;84:18;71:11;;;64:39;52:2;45:10;8:100;;4930:28:0;;4969:9;4985:1;4981;:5;;;;;;;4723:379;-1:-1:-1;;;;;4723:379:0:o;19748:1176::-;20352:27;20360:5;-1:-1:-1;;;;;20352:25:0;;:27::i;:::-;20344:71;;;;;-1:-1:-1;;;20344:71:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;20489:12;20503:23;20538:5;-1:-1:-1;;;;;20530:19:0;20550:4;20530:25;;;;;;;;;;;;;36:153:-1;66:2;61:3;58:11;36:153;;176:10;;164:23;;-1:-1;;139:12;;;;98:2;89:12;;;;114;36:153;;;274:1;267:3;263:2;259:12;254:3;250:22;246:30;315:4;311:9;305:3;299:10;295:26;356:4;350:3;344:10;340:21;389:7;380;377:20;372:3;365:33;3:399;;;20530:25:0;;;;;;;;;;;;;;;;;;;;;;;;14:1:-1;21;16:31;;;;75:4;69:11;64:16;;144:4;140:9;133:4;115:16;111:27;107:43;104:1;100:51;94:4;87:65;169:16;166:1;159:27;225:16;222:1;215:4;212:1;208:12;193:49;7:242;;16:31;36:4;31:9;;7:242;;20488:67:0;;;;20574:7;20566:52;;;;;-1:-1:-1;;;20566:52:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;20635:17;;:21;20631:286;;20808:10;20797:30;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;20797:30:0;20771:134;;;;-1:-1:-1;;;20771:134:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;13836:850;13896:4;14586:20;;14416:66;14635:15;;;;;:42;;;14666:11;14654:8;:23;;14635:42;14627:51;13836:850;-1:-1:-1;;;;13836:850:0:o

Swarm Source

bzzr://d6af8bc2e86643d4b675f0c2923265ddb93fecd6363cf6dad827927965832214

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.