AVAX Price: $22.87 (+12.09%)
Gas: 1.3 nAVAX
 

Overview

AVAX Balance

Avalanche C-Chain LogoAvalanche C-Chain LogoAvalanche C-Chain Logo0 AVAX

AVAX Value

$0.00

Token Holdings

Multichain Info

No addresses found
Transaction Hash
Method
Block
From
To
Withdraw587075882025-03-14 10:50:2940 days ago1741949429IN
0xA456bB3a...ed52d5bED
0 AVAX0.00020941.02482393
Withdraw All582021172025-03-04 10:51:2050 days ago1741085480IN
0xA456bB3a...ed52d5bED
0 AVAX0.000218751
Withdraw All580637442025-03-01 16:40:3152 days ago1740847231IN
0xA456bB3a...ed52d5bED
0 AVAX0.000546892.5
Withdraw577120602025-02-22 16:39:1659 days ago1740242356IN
0xA456bB3a...ed52d5bED
0 AVAX0.000204321
Withdraw560880782025-01-20 12:04:0992 days ago1737374649IN
0xA456bB3a...ed52d5bED
0 AVAX0.000204331
Withdraw All560478052025-01-19 17:49:3493 days ago1737308974IN
0xA456bB3a...ed52d5bED
0 AVAX0.000240631.1
Withdraw All549703802024-12-27 20:05:19116 days ago1735329919IN
0xA456bB3a...ed52d5bED
0 AVAX0.000218751
Withdraw548479862024-12-25 4:54:35119 days ago1735102475IN
0xA456bB3a...ed52d5bED
0 AVAX0.000204331
Withdraw547854812024-12-23 20:43:18120 days ago1734986598IN
0xA456bB3a...ed52d5bED
0 AVAX0.000204331
Withdraw544318202024-12-16 18:40:01127 days ago1734374401IN
0xA456bB3a...ed52d5bED
0 AVAX0.000204321
Withdraw All543211382024-12-14 3:29:50130 days ago1734146990IN
0xA456bB3a...ed52d5bED
0 AVAX0.0018781725
Withdraw All542630972024-12-12 18:21:24131 days ago1734027684IN
0xA456bB3a...ed52d5bED
0 AVAX0.0054689725
Withdraw All540527372024-12-07 18:18:12136 days ago1733595492IN
0xA456bB3a...ed52d5bED
0 AVAX0.0054689725
Withdraw538293642024-12-02 12:41:15141 days ago1733143275IN
0xA456bB3a...ed52d5bED
0 AVAX0.0051083525
Withdraw All536118272024-11-27 9:44:26147 days ago1732700666IN
0xA456bB3a...ed52d5bED
0 AVAX0.0046139725
Withdraw535314762024-11-25 12:39:58148 days ago1732538398IN
0xA456bB3a...ed52d5bED
0 AVAX0.0053446726.5
Withdraw534306012024-11-23 3:59:36151 days ago1732334376IN
0xA456bB3a...ed52d5bED
0 AVAX0.0019450525
Withdraw All534259552024-11-23 1:25:06151 days ago1732325106IN
0xA456bB3a...ed52d5bED
0 AVAX0.0050414725
Withdraw All533573292024-11-21 10:52:26153 days ago1732186346IN
0xA456bB3a...ed52d5bED
0 AVAX0.0054689725
Withdraw All533364252024-11-20 22:55:31153 days ago1732143331IN
0xA456bB3a...ed52d5bED
0 AVAX0.0018781725
Withdraw All530762962024-11-14 19:08:20159 days ago1731611300IN
0xA456bB3a...ed52d5bED
0 AVAX0.0054689725
Withdraw All529540952024-11-11 22:39:42162 days ago1731364782IN
0xA456bB3a...ed52d5bED
0 AVAX0.0018781725
Withdraw All528681062024-11-09 21:44:49164 days ago1731188689IN
0xA456bB3a...ed52d5bED
0 AVAX0.0053439626.5
Withdraw527830932024-11-07 19:45:03166 days ago1731008703IN
0xA456bB3a...ed52d5bED
0 AVAX0.0051083525
Withdraw517669872024-10-14 12:11:29190 days ago1728907889IN
0xA456bB3a...ed52d5bED
0 AVAX0.0051083525
View all transactions

Parent Transaction Hash Block From To
View All Internal Transactions
Loading...
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
LydVault

Compiler Version
v0.6.12+commit.27d51765

Optimization Enabled:
Yes with 50 runs

Other Settings:
default evmVersion, MIT license

Contract Source Code (Solidity)

/**
 *Submitted for verification at snowscan.xyz on 2021-12-08
*/

// Sources flattened with hardhat v2.2.1 https://hardhat.org

// File @openzeppelin/contracts/utils/[email protected]

// SPDX-License-Identifier: MIT

pragma solidity >=0.6.0 <0.8.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.
 */
abstract contract Context {
    function _msgSender() internal view virtual returns (address payable) {
        return msg.sender;
    }

    function _msgData() internal view virtual 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/access/[email protected]



pragma solidity >=0.6.0 <0.8.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.
 *
 * By default, the owner account will be the one that deploys the contract. This
 * can later be changed with {transferOwnership}.
 *
 * 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.
 */
abstract 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 {
        address msgSender = _msgSender();
        _owner = msgSender;
        emit OwnershipTransferred(address(0), msgSender);
    }

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

    /**
     * @dev Throws if called by any account other than the owner.
     */
    modifier onlyOwner() {
        require(owner() == _msgSender(), "Ownable: caller is not the 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 virtual 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 virtual onlyOwner {
        require(newOwner != address(0), "Ownable: new owner is the zero address");
        emit OwnershipTransferred(_owner, newOwner);
        _owner = newOwner;
    }
}


// File @openzeppelin/contracts/math/[email protected]



pragma solidity >=0.6.0 <0.8.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, with an overflow flag.
     *
     * _Available since v3.4._
     */
    function tryAdd(uint256 a, uint256 b) internal pure returns (bool, uint256) {
        uint256 c = a + b;
        if (c < a) return (false, 0);
        return (true, c);
    }

    /**
     * @dev Returns the substraction of two unsigned integers, with an overflow flag.
     *
     * _Available since v3.4._
     */
    function trySub(uint256 a, uint256 b) internal pure returns (bool, uint256) {
        if (b > a) return (false, 0);
        return (true, a - b);
    }

    /**
     * @dev Returns the multiplication of two unsigned integers, with an overflow flag.
     *
     * _Available since v3.4._
     */
    function tryMul(uint256 a, uint256 b) internal pure returns (bool, 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 (true, 0);
        uint256 c = a * b;
        if (c / a != b) return (false, 0);
        return (true, c);
    }

    /**
     * @dev Returns the division of two unsigned integers, with a division by zero flag.
     *
     * _Available since v3.4._
     */
    function tryDiv(uint256 a, uint256 b) internal pure returns (bool, uint256) {
        if (b == 0) return (false, 0);
        return (true, a / b);
    }

    /**
     * @dev Returns the remainder of dividing two unsigned integers, with a division by zero flag.
     *
     * _Available since v3.4._
     */
    function tryMod(uint256 a, uint256 b) internal pure returns (bool, uint256) {
        if (b == 0) return (false, 0);
        return (true, a % b);
    }

    /**
     * @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) {
        require(b <= a, "SafeMath: subtraction overflow");
        return a - b;
    }

    /**
     * @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) {
        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, reverting 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) {
        require(b > 0, "SafeMath: division by zero");
        return a / b;
    }

    /**
     * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo),
     * reverting 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) {
        require(b > 0, "SafeMath: modulo by zero");
        return a % b;
    }

    /**
     * @dev Returns the subtraction of two unsigned integers, reverting with custom message on
     * overflow (when the result is negative).
     *
     * CAUTION: This function is deprecated because it requires allocating memory for the error
     * message unnecessarily. For custom revert reasons use {trySub}.
     *
     * 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);
        return a - b;
    }

    /**
     * @dev Returns the integer division of two unsigned integers, reverting with custom message on
     * division by zero. The result is rounded towards zero.
     *
     * CAUTION: This function is deprecated because it requires allocating memory for the error
     * message unnecessarily. For custom revert reasons use {tryDiv}.
     *
     * 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);
        return a / b;
    }

    /**
     * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo),
     * reverting with custom message when dividing by zero.
     *
     * CAUTION: This function is deprecated because it requires allocating memory for the error
     * message unnecessarily. For custom revert reasons use {tryMod}.
     *
     * 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;
    }
}


// File @openzeppelin/contracts/token/ERC20/[email protected]



pragma solidity >=0.6.0 <0.8.0;

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


// File @openzeppelin/contracts/utils/[email protected]



pragma solidity >=0.6.2 <0.8.0;

/**
 * @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) {
        // This method relies on extcodesize, which returns 0 for contracts in
        // construction, since the code is only stored at the end of the
        // constructor execution.

        uint256 size;
        // solhint-disable-next-line no-inline-assembly
        assembly { size := extcodesize(account) }
        return size > 0;
    }

    /**
     * @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");
        require(isContract(target), "Address: call to non-contract");

        // solhint-disable-next-line avoid-low-level-calls
        (bool success, bytes memory returndata) = target.call{ value: value }(data);
        return _verifyCallResult(success, returndata, errorMessage);
    }

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],
     * but performing a static call.
     *
     * _Available since v3.3._
     */
    function functionStaticCall(address target, bytes memory data) internal view returns (bytes memory) {
        return functionStaticCall(target, data, "Address: low-level static call failed");
    }

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`],
     * but performing a static call.
     *
     * _Available since v3.3._
     */
    function functionStaticCall(address target, bytes memory data, string memory errorMessage) internal view returns (bytes memory) {
        require(isContract(target), "Address: static call to non-contract");

        // solhint-disable-next-line avoid-low-level-calls
        (bool success, bytes memory returndata) = target.staticcall(data);
        return _verifyCallResult(success, returndata, errorMessage);
    }

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],
     * but performing a delegate call.
     *
     * _Available since v3.4._
     */
    function functionDelegateCall(address target, bytes memory data) internal returns (bytes memory) {
        return functionDelegateCall(target, data, "Address: low-level delegate call failed");
    }

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`],
     * but performing a delegate call.
     *
     * _Available since v3.4._
     */
    function functionDelegateCall(address target, bytes memory data, string memory errorMessage) internal returns (bytes memory) {
        require(isContract(target), "Address: delegate call to non-contract");

        // solhint-disable-next-line avoid-low-level-calls
        (bool success, bytes memory returndata) = target.delegatecall(data);
        return _verifyCallResult(success, returndata, errorMessage);
    }

    function _verifyCallResult(bool success, bytes memory returndata, string memory errorMessage) private pure returns(bytes memory) {
        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);
            }
        }
    }
}


// File @openzeppelin/contracts/token/ERC20/[email protected]



pragma solidity >=0.6.0 <0.8.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 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 @openzeppelin/contracts/utils/[email protected]



pragma solidity >=0.6.0 <0.8.0;

/**
 * @dev Contract module which allows children to implement an emergency stop
 * mechanism that can be triggered by an authorized account.
 *
 * This module is used through inheritance. It will make available the
 * modifiers `whenNotPaused` and `whenPaused`, which can be applied to
 * the functions of your contract. Note that they will not be pausable by
 * simply including this module, only once the modifiers are put in place.
 */
abstract contract Pausable is Context {
    /**
     * @dev Emitted when the pause is triggered by `account`.
     */
    event Paused(address account);

    /**
     * @dev Emitted when the pause is lifted by `account`.
     */
    event Unpaused(address account);

    bool private _paused;

    /**
     * @dev Initializes the contract in unpaused state.
     */
    constructor () internal {
        _paused = false;
    }

    /**
     * @dev Returns true if the contract is paused, and false otherwise.
     */
    function paused() public view virtual returns (bool) {
        return _paused;
    }

    /**
     * @dev Modifier to make a function callable only when the contract is not paused.
     *
     * Requirements:
     *
     * - The contract must not be paused.
     */
    modifier whenNotPaused() {
        require(!paused(), "Pausable: paused");
        _;
    }

    /**
     * @dev Modifier to make a function callable only when the contract is paused.
     *
     * Requirements:
     *
     * - The contract must be paused.
     */
    modifier whenPaused() {
        require(paused(), "Pausable: not paused");
        _;
    }

    /**
     * @dev Triggers stopped state.
     *
     * Requirements:
     *
     * - The contract must not be paused.
     */
    function _pause() internal virtual whenNotPaused {
        _paused = true;
        emit Paused(_msgSender());
    }

    /**
     * @dev Returns to normal state.
     *
     * Requirements:
     *
     * - The contract must be paused.
     */
    function _unpause() internal virtual whenPaused {
        _paused = false;
        emit Unpaused(_msgSender());
    }
}


// File contracts/interfaces/IMasterChef.sol


pragma solidity >=0.6.12;

interface IMasterChef {
    function deposit(uint256 _pid, uint256 _amount) external;

    function withdraw(uint256 _pid, uint256 _amount) external;

    function enterStaking(uint256 _amount) external;

    function leaveStaking(uint256 _amount) external;

    function pendingLyd(uint256 _pid, address _user) external view returns (uint256);

    function userInfo(uint256 _pid, address _user) external view returns (uint256, uint256);

    function emergencyWithdraw(uint256 _pid) external;
}


// File contracts/LydVault.sol


pragma solidity >=0.6.12;






contract LydVault is Ownable, Pausable {
    using SafeERC20 for IERC20;
    using SafeMath for uint256;

    struct UserInfo {
        uint256 shares; // number of shares for a user
        uint256 lastDepositedTime; // keeps track of deposited time for potential penalty
        uint256 lydAtLastUserAction; // keeps track of lyd deposited at the last user action
        uint256 lastUserActionTime; // keeps track of the last user action time
    }

    IERC20 public immutable token; // Lyd token
    IERC20 public immutable receiptToken; // Electrum token

    IMasterChef public immutable masterchef;

    mapping(address => UserInfo) public userInfo;

    uint256 public totalShares;
    uint256 public lastHarvestedTime;
    address public admin;
    address public treasury;

    uint256 public constant MAX_PERFORMANCE_FEE = 5000; // 50%
    uint256 public constant MAX_CALL_FEE = 500; // 5%
    uint256 public constant MAX_WITHDRAW_FEE = 500; // 5%
    uint256 public constant MAX_WITHDRAW_FEE_PERIOD = 30 days; // 30 days

    uint256 public performanceFee = 1000; // 10%
    uint256 public callFee = 5; // 0.05%
    uint256 public withdrawFee = 600; // 6%
    uint256 public withdrawFeePeriod = 120 hours; // 5 days

    event Deposit(address indexed sender, uint256 amount, uint256 shares, uint256 lastDepositedTime);
    event Withdraw(address indexed sender, uint256 amount, uint256 shares);
    event Harvest(address indexed sender, uint256 performanceFee, uint256 callFee);
    event Pause();
    event Unpause();

    /**
     * @notice Constructor
     * @param _token: Lyd token contract
     * @param _receiptToken: Electrum token contract
     * @param _masterchef: MasterChef contract
     * @param _admin: address of the admin
     * @param _treasury: address of the treasury (collects fees)
     */
    constructor(
        IERC20 _token,
        IERC20 _receiptToken,
        IMasterChef _masterchef,
        address _admin,
        address _treasury
    ) public {
        token = _token;
        receiptToken = _receiptToken;
        masterchef = _masterchef;
        admin = _admin;
        treasury = _treasury;

        // Infinite approve
        IERC20(_token).safeApprove(address(_masterchef), uint256(-1));
    }

    /**
     * @notice Checks if the msg.sender is the admin address
     */
    modifier onlyAdmin() {
        require(msg.sender == admin, "admin: wut?");
        _;
    }

    /**
     * @notice Deposits funds into the Lyd Vault
     * @dev Only possible when contract not paused.
     * @param _amount: number of tokens to deposit (in LYD)
     */
    function deposit(uint256 _amount) external whenNotPaused {
        require(_amount > 0, "Nothing to deposit");

        uint256 pool = balanceOf();
        token.safeTransferFrom(msg.sender, address(this), _amount);
        uint256 currentShares = 0;
        if (totalShares != 0) {
            currentShares = (_amount.mul(totalShares)).div(pool);
        } else {
            currentShares = _amount;
        }
        UserInfo storage user = userInfo[msg.sender];

        user.shares = user.shares.add(currentShares);
        user.lastDepositedTime = block.timestamp;

        totalShares = totalShares.add(currentShares);

        user.lydAtLastUserAction = user.shares.mul(balanceOf()).div(totalShares);
        user.lastUserActionTime = block.timestamp;

        _earn();

        emit Deposit(msg.sender, _amount, currentShares, block.timestamp);
    }

    /**
     * @notice Withdraws all funds for a user
     */
    function withdrawAll() external {
        withdraw(userInfo[msg.sender].shares);
    }

    /**
     * @notice Reinvests LYD tokens into MasterChef
     * @dev Only possible when contract not paused.
     */
    function harvest() external whenNotPaused {
        IMasterChef(masterchef).leaveStaking(0);

        uint256 bal = available();
        uint256 currentPerformanceFee = bal.mul(performanceFee).div(10000);
        token.safeTransfer(treasury, currentPerformanceFee);

        uint256 currentCallFee = bal.mul(callFee).div(10000);
        token.safeTransfer(msg.sender, currentCallFee);

        _earn();

        lastHarvestedTime = block.timestamp;

        emit Harvest(msg.sender, currentPerformanceFee, currentCallFee);
    }

    /**
     * @notice Sets admin address
     * @dev Only callable by the contract owner.
     */
    function setAdmin(address _admin) external onlyOwner {
        require(_admin != address(0), "Cannot be zero address");
        admin = _admin;
    }

    /**
     * @notice Sets treasury address
     * @dev Only callable by the contract owner.
     */
    function setTreasury(address _treasury) external onlyOwner {
        require(_treasury != address(0), "Cannot be zero address");
        treasury = _treasury;
    }

    /**
     * @notice Sets performance fee
     * @dev Only callable by the contract admin.
     */
    function setPerformanceFee(uint256 _performanceFee) external onlyAdmin {
        require(_performanceFee <= MAX_PERFORMANCE_FEE, "performanceFee cannot be more than MAX_PERFORMANCE_FEE");
        performanceFee = _performanceFee;
    }

    /**
     * @notice Sets call fee
     * @dev Only callable by the contract admin.
     */
    function setCallFee(uint256 _callFee) external onlyAdmin {
        require(_callFee <= MAX_CALL_FEE, "callFee cannot be more than MAX_CALL_FEE");
        callFee = _callFee;
    }

    /**
     * @notice Sets withdraw fee
     * @dev Only callable by the contract admin.
     */
    function setWithdrawFee(uint256 _withdrawFee) external onlyAdmin {
        require(_withdrawFee <= MAX_WITHDRAW_FEE, "withdrawFee cannot be more than MAX_WITHDRAW_FEE");
        withdrawFee = _withdrawFee;
    }

    /**
     * @notice Sets withdraw fee period
     * @dev Only callable by the contract admin.
     */
    function setWithdrawFeePeriod(uint256 _withdrawFeePeriod) external onlyAdmin {
        require(
            _withdrawFeePeriod <= MAX_WITHDRAW_FEE_PERIOD,
            "withdrawFeePeriod cannot be more than MAX_WITHDRAW_FEE_PERIOD"
        );
        withdrawFeePeriod = _withdrawFeePeriod;
    }

    /**
     * @notice Withdraws from MasterChef to Vault without caring about rewards.
     * @dev EMERGENCY ONLY. Only callable by the contract admin.
     */
    function emergencyWithdraw() external onlyAdmin {
        IMasterChef(masterchef).emergencyWithdraw(0);
    }

    /**
     * @notice Withdraw unexpected tokens sent to the Lyd Vault
     */
    function inCaseTokensGetStuck(address _token) external onlyAdmin {
        require(_token != address(token), "Token cannot be same as deposit token");
        require(_token != address(receiptToken), "Token cannot be same as receipt token");

        uint256 amount = IERC20(_token).balanceOf(address(this));
        IERC20(_token).safeTransfer(msg.sender, amount);
    }

    /**
     * @notice Triggers stopped state
     * @dev Only possible when contract not paused.
     */
    function pause() external onlyAdmin whenNotPaused {
        _pause();
        emit Pause();
    }

    /**
     * @notice Returns to normal state
     * @dev Only possible when contract is paused.
     */
    function unpause() external onlyAdmin whenPaused {
        _unpause();
        emit Unpause();
    }

    /**
     * @notice Calculates the expected harvest reward from third party
     * @return Expected reward to collect in Lyd
     */
    function calculateHarvestLydRewards() external view returns (uint256) {
        uint256 amount = IMasterChef(masterchef).pendingLyd(0, address(this));
        amount = amount.add(available());
        uint256 currentCallFee = amount.mul(callFee).div(10000);

        return currentCallFee;
    }

    /**
     * @notice Calculates the total pending rewards that can be restaked
     * @return Returns total pending lyd rewards
     */
    function calculateTotalPendingLydRewards() external view returns (uint256) {
        uint256 amount = IMasterChef(masterchef).pendingLyd(0, address(this));
        amount = amount.add(available());

        return amount;
    }

    /**
     * @notice Calculates the price per share
     */
    function getPricePerFullShare() external view returns (uint256) {
        return totalShares == 0 ? 1e18 : balanceOf().mul(1e18).div(totalShares);
    }

    /**
     * @notice Withdraws from funds from the Lyd Vault
     * @param _shares: Number of shares to withdraw
     */
    function withdraw(uint256 _shares) public {
        UserInfo storage user = userInfo[msg.sender];
        require(_shares > 0, "Nothing to withdraw");
        require(_shares <= user.shares, "Withdraw amount exceeds balance");

        uint256 currentAmount = (balanceOf().mul(_shares)).div(totalShares);
        user.shares = user.shares.sub(_shares);
        totalShares = totalShares.sub(_shares);

        uint256 bal = available();
        if (bal < currentAmount) {
            uint256 balWithdraw = currentAmount.sub(bal);
            IMasterChef(masterchef).leaveStaking(balWithdraw);
            uint256 balAfter = available();
            uint256 diff = balAfter.sub(bal);
            if (diff < balWithdraw) {
                currentAmount = bal.add(diff);
            }
        }

        if (block.timestamp < user.lastDepositedTime.add(withdrawFeePeriod)) {
            uint256 currentWithdrawFee = currentAmount.mul(withdrawFee).div(10000);
            token.safeTransfer(treasury, currentWithdrawFee);
            currentAmount = currentAmount.sub(currentWithdrawFee);
        }

        if (user.shares > 0) {
            user.lydAtLastUserAction = user.shares.mul(balanceOf()).div(totalShares);
        } else {
            user.lydAtLastUserAction = 0;
        }

        user.lastUserActionTime = block.timestamp;

        token.safeTransfer(msg.sender, currentAmount);

        emit Withdraw(msg.sender, currentAmount, _shares);
    }

    /**
     * @notice Custom logic for how much the vault allows to be borrowed
     * @dev The contract puts 100% of the tokens to work.
     */
    function available() public view returns (uint256) {
        return token.balanceOf(address(this));
    }

    /**
     * @notice Calculates the total underlying tokens
     * @dev It includes tokens held by the contract and held in MasterChef
     */
    function balanceOf() public view returns (uint256) {
        (uint256 amount, ) = IMasterChef(masterchef).userInfo(0, address(this));
        return token.balanceOf(address(this)).add(amount);
    }

    /**
     * @notice Returns a specific account's share
     */
    function sharesOf(address account) public view returns (uint256) {
        UserInfo storage user = userInfo[account];

        return user.shares;
    }

    /**
     * @notice Deposits tokens into MasterChef to earn staking rewards
     */
    function _earn() internal {
        uint256 bal = available();
        if (bal > 0) {
            IMasterChef(masterchef).enterStaking(bal);
        }
    }
}

Contract Security Audit

Contract ABI

API
[{"inputs":[{"internalType":"contract IERC20","name":"_token","type":"address"},{"internalType":"contract IERC20","name":"_receiptToken","type":"address"},{"internalType":"contract IMasterChef","name":"_masterchef","type":"address"},{"internalType":"address","name":"_admin","type":"address"},{"internalType":"address","name":"_treasury","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"sender","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"shares","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"lastDepositedTime","type":"uint256"}],"name":"Deposit","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"sender","type":"address"},{"indexed":false,"internalType":"uint256","name":"performanceFee","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"callFee","type":"uint256"}],"name":"Harvest","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":[],"name":"Pause","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"account","type":"address"}],"name":"Paused","type":"event"},{"anonymous":false,"inputs":[],"name":"Unpause","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"account","type":"address"}],"name":"Unpaused","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"sender","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"shares","type":"uint256"}],"name":"Withdraw","type":"event"},{"inputs":[],"name":"MAX_CALL_FEE","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"MAX_PERFORMANCE_FEE","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"MAX_WITHDRAW_FEE","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"MAX_WITHDRAW_FEE_PERIOD","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"admin","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"available","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"calculateHarvestLydRewards","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"calculateTotalPendingLydRewards","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"callFee","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"deposit","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"emergencyWithdraw","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"getPricePerFullShare","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"harvest","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_token","type":"address"}],"name":"inCaseTokensGetStuck","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"lastHarvestedTime","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"masterchef","outputs":[{"internalType":"contract IMasterChef","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"pause","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"paused","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"performanceFee","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"receiptToken","outputs":[{"internalType":"contract IERC20","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_admin","type":"address"}],"name":"setAdmin","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_callFee","type":"uint256"}],"name":"setCallFee","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_performanceFee","type":"uint256"}],"name":"setPerformanceFee","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_treasury","type":"address"}],"name":"setTreasury","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_withdrawFee","type":"uint256"}],"name":"setWithdrawFee","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_withdrawFeePeriod","type":"uint256"}],"name":"setWithdrawFeePeriod","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"sharesOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"token","outputs":[{"internalType":"contract IERC20","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalShares","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"treasury","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"unpause","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"userInfo","outputs":[{"internalType":"uint256","name":"shares","type":"uint256"},{"internalType":"uint256","name":"lastDepositedTime","type":"uint256"},{"internalType":"uint256","name":"lydAtLastUserAction","type":"uint256"},{"internalType":"uint256","name":"lastUserActionTime","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_shares","type":"uint256"}],"name":"withdraw","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"withdrawAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"withdrawFee","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"withdrawFeePeriod","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"}]

60e06040526103e86006556005600755610258600855620697806009553480156200002957600080fd5b5060405162002a9138038062002a91833981810160405260a08110156200004f57600080fd5b5080516020820151604083015160608401516080909401519293919290919060006200007a6200014c565b600080546001600160a01b0319166001600160a01b0383169081178255604051929350917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908290a3506000805460ff60a01b191690556001600160601b0319606086811b821660805285811b821660a05284901b1660c052600480546001600160a01b038481166001600160a01b031992831617909255600580548484169216919091179055620001419086168460001962001a1b62000150602090811b91909117901c565b505050505062000563565b3390565b801580620001da575060408051636eb1769f60e11b81523060048201526001600160a01b03848116602483015291519185169163dd62ed3e91604480820192602092909190829003018186803b158015620001aa57600080fd5b505afa158015620001bf573d6000803e3d6000fd5b505050506040513d6020811015620001d657600080fd5b5051155b620002175760405162461bcd60e51b815260040180806020018281038252603681526020018062002a5b6036913960400191505060405180910390fd5b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b0390811663095ea7b360e01b179091526200026f9185916200027416565b505050565b6060620002d0826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b03166200033060201b62001b33179092919060201c565b8051909150156200026f57808060200190516020811015620002f157600080fd5b50516200026f5760405162461bcd60e51b815260040180806020018281038252602a81526020018062002a31602a913960400191505060405180910390fd5b60606200034184846000856200034b565b90505b9392505050565b6060824710156200038e5760405162461bcd60e51b815260040180806020018281038252602681526020018062002a0b6026913960400191505060405180910390fd5b6200039985620004b3565b620003eb576040805162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e7472616374000000604482015290519081900360640190fd5b60006060866001600160a01b031685876040518082805190602001908083835b602083106200042c5780518252601f1990920191602091820191016200040b565b6001836020036101000a03801982511681845116808217855250505050505090500191505060006040518083038185875af1925050503d806000811462000490576040519150601f19603f3d011682016040523d82523d6000602084013e62000495565b606091505b509092509050620004a8828286620004b9565b979650505050505050565b3b151590565b60608315620004ca57508162000344565b825115620004db5782518084602001fd5b8160405162461bcd60e51b81526004018080602001828103825283818151815260200191508051906020019080838360005b83811015620005275781810151838201526020016200050d565b50505050905090810190601f168015620005555780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b60805160601c60a05160601c60c05160601c612422620005e96000398061074f5280610a4f5280610eab528061112e5280611213528061155c52806119d55280611dd052508061169b52806117ad52508061084752806108c35280610b095280610b5e5280610bd45280610f735280611409528061162a52806119f952506124226000f3fe608060405234801561001057600080fd5b50600436106102085760003560e01c80638da5cb5b1161011b578063def68a9c116100a8578063def68a9c14610419578063df10b4e61461043f578063e941fa7814610447578063ec78e8321461044f578063f0f4426014610457578063f2fde38b1461047d578063f5eb42dc146104a3578063f851a440146104c9578063fb1db278146104d1578063fc0c546a146104d957610208565b80638da5cb5b146103a75780638e079434146103af57806390321e1a146103b7578063ab617fd0146103bf578063b60f0531146103c7578063b6ac642a146103cf578063b6b55f25146103ec578063bdca916514610409578063d4b0de2f14610295578063db2e21bc1461041157610208565b80635c975abb116101995780635c975abb146102f457806361d027b314610310578063704b6c021461033457806370897b231461035a578063715018a614610377578063722713f71461037f57806377c7b8fc146103875780638456cb591461038f578063853828b614610397578063877887821461039f57610208565b80631959a0021461020d5780631efac1b81461025957806326465826146102785780632ad5a53f146102955780632cfc5f01146102af5780632e1a7d4d146102b75780633a98ef39146102d45780633f4ba83a146102dc5780634641257d146102e457806348a0d754146102ec575b600080fd5b6102336004803603602081101561022357600080fd5b50356001600160a01b03166104e1565b604080519485526020850193909352838301919091526060830152519081900360800190f35b6102766004803603602081101561026f57600080fd5b5035610509565b005b6102766004803603602081101561028e57600080fd5b503561059d565b61029d610630565b60408051918252519081900360200190f35b61029d610636565b610276600480360360208110156102cd57600080fd5b503561063d565b61029d61092a565b610276610930565b610276610a00565b61029d610bd0565b6102fc610c70565b604080519115158252519081900360200190f35b610318610c80565b604080516001600160a01b039092168252519081900360200190f35b6102766004803603602081101561034a57600080fd5b50356001600160a01b0316610c8f565b6102766004803603602081101561037057600080fd5b5035610d67565b610276610dfa565b61029d610ea6565b61029d610ff2565b61027661102c565b6102766110f9565b61029d611114565b61031861111a565b61029d611129565b61029d611208565b61029d61120e565b61029d6112c0565b610276600480360360208110156103e557600080fd5b50356112c6565b6102766004803603602081101561040257600080fd5b5035611359565b61029d611507565b61027661150d565b6102766004803603602081101561042f57600080fd5b50356001600160a01b03166115db565b61029d61179f565b61029d6117a5565b6103186117ab565b6102766004803603602081101561046d57600080fd5b50356001600160a01b03166117cf565b6102766004803603602081101561049357600080fd5b50356001600160a01b03166118a7565b61029d600480360360208110156104b957600080fd5b50356001600160a01b03166119a9565b6103186119c4565b6103186119d3565b6103186119f7565b6001602081905260009182526040909120805491810154600282015460039092015490919084565b6004546001600160a01b03163314610556576040805162461bcd60e51b815260206004820152600b60248201526a61646d696e3a207775743f60a81b604482015290519081900360640190fd5b62278d008111156105985760405162461bcd60e51b815260040180806020018281038252603d815260200180612320603d913960400191505060405180910390fd5b600955565b6004546001600160a01b031633146105ea576040805162461bcd60e51b815260206004820152600b60248201526a61646d696e3a207775743f60a81b604482015290519081900360640190fd5b6101f481111561062b5760405162461bcd60e51b81526004018080602001828103825260288152602001806122816028913960400191505060405180910390fd5b600755565b6101f481565b62278d0081565b33600090815260016020526040902081610694576040805162461bcd60e51b81526020600482015260136024820152724e6f7468696e6720746f20776974686472617760681b604482015290519081900360640190fd5b80548211156106ea576040805162461bcd60e51b815260206004820152601f60248201527f576974686472617720616d6f756e7420657863656564732062616c616e636500604482015290519081900360640190fd5b600061070a600254610704856106fe610ea6565b90611b4c565b90611bae565b82549091506107199084611c12565b82556002546107289084611c12565b6002556000610735610bd0565b9050818110156107fe57600061074b8383611c12565b90507f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316631058d281826040518263ffffffff1660e01b815260040180828152602001915050600060405180830381600087803b1580156107b357600080fd5b505af11580156107c7573d6000803e3d6000fd5b5050505060006107d5610bd0565b905060006107e38285611c12565b9050828110156107fa576107f78482611c6f565b94505b5050505b600954600184015461080f91611c6f565b42101561087e57600061083361271061070460085486611b4c90919063ffffffff16565b600554909150610870906001600160a01b037f00000000000000000000000000000000000000000000000000000000000000008116911683611cc7565b61087a8382611c12565b9250505b8254156108a85761089e600254610704610896610ea6565b865490611b4c565b60028401556108b0565b600060028401555b4260038401556108ea6001600160a01b037f0000000000000000000000000000000000000000000000000000000000000000163384611cc7565b6040805183815260208101869052815133927ff279e6a1f5e320cca91135676d9cb6e44ca8a08c0b88342bcdb1144f6511b568928290030190a250505050565b60025481565b6004546001600160a01b0316331461097d576040805162461bcd60e51b815260206004820152600b60248201526a61646d696e3a207775743f60a81b604482015290519081900360640190fd5b610985610c70565b6109cd576040805162461bcd60e51b815260206004820152601460248201527314185d5cd8589b194e881b9bdd081c185d5cd95960621b604482015290519081900360640190fd5b6109d5611d19565b6040517f7805862f689e2f13df9f062ff482ad3ad112aca9e0847911ed832e158c525b3390600090a1565b610a08610c70565b15610a4d576040805162461bcd60e51b815260206004820152601060248201526f14185d5cd8589b194e881c185d5cd95960821b604482015290519081900360640190fd5b7f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316631058d28160006040518263ffffffff1660e01b815260040180828152602001915050600060405180830381600087803b158015610ab457600080fd5b505af1158015610ac8573d6000803e3d6000fd5b505050506000610ad6610bd0565b90506000610af561271061070460065485611b4c90919063ffffffff16565b600554909150610b32906001600160a01b037f00000000000000000000000000000000000000000000000000000000000000008116911683611cc7565b6000610b4f61271061070460075486611b4c90919063ffffffff16565b9050610b856001600160a01b037f0000000000000000000000000000000000000000000000000000000000000000163383611cc7565b610b8d611dbc565b426003556040805183815260208101839052815133927f71bab65ced2e5750775a0613be067df48ef06cf92a496ebf7663ae0660924954928290030190a2505050565b60007f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03166370a08231306040518263ffffffff1660e01b815260040180826001600160a01b0316815260200191505060206040518083038186803b158015610c3f57600080fd5b505afa158015610c53573d6000803e3d6000fd5b505050506040513d6020811015610c6957600080fd5b5051905090565b600054600160a01b900460ff1690565b6005546001600160a01b031681565b610c97611e50565b6001600160a01b0316610ca861111a565b6001600160a01b031614610cf1576040805162461bcd60e51b81526020600482018190526024820152600080516020612300833981519152604482015290519081900360640190fd5b6001600160a01b038116610d45576040805162461bcd60e51b815260206004820152601660248201527543616e6e6f74206265207a65726f206164647265737360501b604482015290519081900360640190fd5b600480546001600160a01b0319166001600160a01b0392909216919091179055565b6004546001600160a01b03163314610db4576040805162461bcd60e51b815260206004820152600b60248201526a61646d696e3a207775743f60a81b604482015290519081900360640190fd5b611388811115610df55760405162461bcd60e51b81526004018080602001828103825260368152602001806122a96036913960400191505060405180910390fd5b600655565b610e02611e50565b6001600160a01b0316610e1361111a565b6001600160a01b031614610e5c576040805162461bcd60e51b81526020600482018190526024820152600080516020612300833981519152604482015290519081900360640190fd5b600080546040516001600160a01b03909116907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908390a3600080546001600160a01b0319169055565b6000807f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03166393f1a40b6000306040518363ffffffff1660e01b815260040180838152602001826001600160a01b0316815260200192505050604080518083038186803b158015610f1e57600080fd5b505afa158015610f32573d6000803e3d6000fd5b505050506040513d6040811015610f4857600080fd5b5051604080516370a0823160e01b81523060048201529051919250610fec9183916001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016916370a0823191602480820192602092909190829003018186803b158015610fba57600080fd5b505afa158015610fce573d6000803e3d6000fd5b505050506040513d6020811015610fe457600080fd5b505190611c6f565b91505090565b600060025460001461101d57611018600254610704670de0b6b3a76400006106fe610ea6565b611027565b670de0b6b3a76400005b905090565b6004546001600160a01b03163314611079576040805162461bcd60e51b815260206004820152600b60248201526a61646d696e3a207775743f60a81b604482015290519081900360640190fd5b611081610c70565b156110c6576040805162461bcd60e51b815260206004820152601060248201526f14185d5cd8589b194e881c185d5cd95960821b604482015290519081900360640190fd5b6110ce611e54565b6040517f6985a02210a168e66602d3235cb6db0e70f92b3ba4d376a33c0f3d9434bff62590600090a1565b336000908152600160205260409020546111129061063d565b565b60065481565b6000546001600160a01b031690565b6000807f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03166338e45d5a6000306040518363ffffffff1660e01b815260040180838152602001826001600160a01b031681526020019250505060206040518083038186803b1580156111a257600080fd5b505afa1580156111b6573d6000803e3d6000fd5b505050506040513d60208110156111cc57600080fd5b505190506111e26111db610bd0565b8290611c6f565b9050600061120161271061070460075485611b4c90919063ffffffff16565b9250505090565b60075481565b6000807f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03166338e45d5a6000306040518363ffffffff1660e01b815260040180838152602001826001600160a01b031681526020019250505060206040518083038186803b15801561128757600080fd5b505afa15801561129b573d6000803e3d6000fd5b505050506040513d60208110156112b157600080fd5b50519050610fec6111db610bd0565b60035481565b6004546001600160a01b03163314611313576040805162461bcd60e51b815260206004820152600b60248201526a61646d696e3a207775743f60a81b604482015290519081900360640190fd5b6101f48111156113545760405162461bcd60e51b81526004018080602001828103825260308152602001806123876030913960400191505060405180910390fd5b600855565b611361610c70565b156113a6576040805162461bcd60e51b815260206004820152601060248201526f14185d5cd8589b194e881c185d5cd95960821b604482015290519081900360640190fd5b600081116113f0576040805162461bcd60e51b8152602060048201526012602482015271139bdd1a1a5b99c81d1bc819195c1bdcda5d60721b604482015290519081900360640190fd5b60006113fa610ea6565b90506114316001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016333085611edd565b600060025460001461145d576114568261070460025486611b4c90919063ffffffff16565b9050611460565b50815b336000908152600160205260409020805461147b9083611c6f565b81554260018201556002546114909083611c6f565b60028190556114ac906107046114a4610ea6565b845490611b4c565b60028201554260038201556114bf611dbc565b60408051858152602081018490524281830152905133917f36af321ec8d3c75236829c5317affd40ddb308863a1236d2d277a4025cccee1e919081900360600190a250505050565b61138881565b6004546001600160a01b0316331461155a576040805162461bcd60e51b815260206004820152600b60248201526a61646d696e3a207775743f60a81b604482015290519081900360640190fd5b7f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316635312ea8e60006040518263ffffffff1660e01b815260040180828152602001915050600060405180830381600087803b1580156115c157600080fd5b505af11580156115d5573d6000803e3d6000fd5b50505050565b6004546001600160a01b03163314611628576040805162461bcd60e51b815260206004820152600b60248201526a61646d696e3a207775743f60a81b604482015290519081900360640190fd5b7f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316816001600160a01b031614156116995760405162461bcd60e51b81526004018080602001828103825260258152602001806122116025913960400191505060405180910390fd5b7f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316816001600160a01b0316141561170a5760405162461bcd60e51b815260040180806020018281038252602581526020018061225c6025913960400191505060405180910390fd5b6000816001600160a01b03166370a08231306040518263ffffffff1660e01b815260040180826001600160a01b0316815260200191505060206040518083038186803b15801561175957600080fd5b505afa15801561176d573d6000803e3d6000fd5b505050506040513d602081101561178357600080fd5b5051905061179b6001600160a01b0383163383611cc7565b5050565b60095481565b60085481565b7f000000000000000000000000000000000000000000000000000000000000000081565b6117d7611e50565b6001600160a01b03166117e861111a565b6001600160a01b031614611831576040805162461bcd60e51b81526020600482018190526024820152600080516020612300833981519152604482015290519081900360640190fd5b6001600160a01b038116611885576040805162461bcd60e51b815260206004820152601660248201527543616e6e6f74206265207a65726f206164647265737360501b604482015290519081900360640190fd5b600580546001600160a01b0319166001600160a01b0392909216919091179055565b6118af611e50565b6001600160a01b03166118c061111a565b6001600160a01b031614611909576040805162461bcd60e51b81526020600482018190526024820152600080516020612300833981519152604482015290519081900360640190fd5b6001600160a01b03811661194e5760405162461bcd60e51b81526004018080602001828103825260268152602001806121eb6026913960400191505060405180910390fd5b600080546040516001600160a01b03808516939216917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e091a3600080546001600160a01b0319166001600160a01b0392909216919091179055565b6001600160a01b031660009081526001602052604090205490565b6004546001600160a01b031681565b7f000000000000000000000000000000000000000000000000000000000000000081565b7f000000000000000000000000000000000000000000000000000000000000000081565b801580611aa1575060408051636eb1769f60e11b81523060048201526001600160a01b03848116602483015291519185169163dd62ed3e91604480820192602092909190829003018186803b158015611a7357600080fd5b505afa158015611a87573d6000803e3d6000fd5b505050506040513d6020811015611a9d57600080fd5b5051155b611adc5760405162461bcd60e51b81526004018080602001828103825260368152602001806123b76036913960400191505060405180910390fd5b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663095ea7b360e01b179052611b2e908490611f33565b505050565b6060611b428484600085611fe4565b90505b9392505050565b600082611b5b57506000611ba8565b82820282848281611b6857fe5b0414611ba55760405162461bcd60e51b81526004018080602001828103825260218152602001806122df6021913960400191505060405180910390fd5b90505b92915050565b6000808211611c01576040805162461bcd60e51b815260206004820152601a602482015279536166654d6174683a206469766973696f6e206279207a65726f60301b604482015290519081900360640190fd5b818381611c0a57fe5b049392505050565b600082821115611c69576040805162461bcd60e51b815260206004820152601e60248201527f536166654d6174683a207375627472616374696f6e206f766572666c6f770000604482015290519081900360640190fd5b50900390565b600082820183811015611ba5576040805162461bcd60e51b815260206004820152601b60248201527a536166654d6174683a206164646974696f6e206f766572666c6f7760281b604482015290519081900360640190fd5b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663a9059cbb60e01b179052611b2e908490611f33565b611d21610c70565b611d69576040805162461bcd60e51b815260206004820152601460248201527314185d5cd8589b194e881b9bdd081c185d5cd95960621b604482015290519081900360640190fd5b6000805460ff60a01b191690557f5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa611d9f611e50565b604080516001600160a01b039092168252519081900360200190a1565b6000611dc6610bd0565b90508015611e4d577f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03166341441d3b826040518263ffffffff1660e01b815260040180828152602001915050600060405180830381600087803b158015611e3457600080fd5b505af1158015611e48573d6000803e3d6000fd5b505050505b50565b3390565b611e5c610c70565b15611ea1576040805162461bcd60e51b815260206004820152601060248201526f14185d5cd8589b194e881c185d5cd95960821b604482015290519081900360640190fd5b6000805460ff60a01b1916600160a01b1790557f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a258611d9f611e50565b604080516001600160a01b0380861660248301528416604482015260648082018490528251808303909101815260849091019091526020810180516001600160e01b03166323b872dd60e01b1790526115d59085905b6060611f88826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b0316611b339092919063ffffffff16565b805190915015611b2e57808060200190516020811015611fa757600080fd5b5051611b2e5760405162461bcd60e51b815260040180806020018281038252602a81526020018061235d602a913960400191505060405180910390fd5b6060824710156120255760405162461bcd60e51b81526004018080602001828103825260268152602001806122366026913960400191505060405180910390fd5b61202e85612140565b61207f576040805162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e7472616374000000604482015290519081900360640190fd5b60006060866001600160a01b031685876040518082805190602001908083835b602083106120be5780518252601f19909201916020918201910161209f565b6001836020036101000a03801982511681845116808217855250505050505090500191505060006040518083038185875af1925050503d8060008114612120576040519150601f19603f3d011682016040523d82523d6000602084013e612125565b606091505b5091509150612135828286612146565b979650505050505050565b3b151590565b60608315612155575081611b45565b8251156121655782518084602001fd5b8160405162461bcd60e51b81526004018080602001828103825283818151815260200191508051906020019080838360005b838110156121af578181015183820152602001612197565b50505050905090810190601f1680156121dc5780820380516001836020036101000a031916815260200191505b509250505060405180910390fdfe4f776e61626c653a206e6577206f776e657220697320746865207a65726f2061646472657373546f6b656e2063616e6e6f742062652073616d65206173206465706f73697420746f6b656e416464726573733a20696e73756666696369656e742062616c616e636520666f722063616c6c546f6b656e2063616e6e6f742062652073616d65206173207265636569707420746f6b656e63616c6c4665652063616e6e6f74206265206d6f7265207468616e204d41585f43414c4c5f464545706572666f726d616e63654665652063616e6e6f74206265206d6f7265207468616e204d41585f504552464f524d414e43455f464545536166654d6174683a206d756c7469706c69636174696f6e206f766572666c6f774f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65727769746864726177466565506572696f642063616e6e6f74206265206d6f7265207468616e204d41585f57495448445241575f4645455f504552494f445361666545524332303a204552433230206f7065726174696f6e20646964206e6f74207375636365656477697468647261774665652063616e6e6f74206265206d6f7265207468616e204d41585f57495448445241575f4645455361666545524332303a20617070726f76652066726f6d206e6f6e2d7a65726f20746f206e6f6e2d7a65726f20616c6c6f77616e6365a264697066735822122093955e25287fb31cf79827c7a62f24f52daa1643b578b0090a03cb3622e283b264736f6c634300060c0033416464726573733a20696e73756666696369656e742062616c616e636520666f722063616c6c5361666545524332303a204552433230206f7065726174696f6e20646964206e6f7420737563636565645361666545524332303a20617070726f76652066726f6d206e6f6e2d7a65726f20746f206e6f6e2d7a65726f20616c6c6f77616e63650000000000000000000000004c9b4e1ac6f24cde3660d5e4ef1ebf77c710c084000000000000000000000000814409abbc142fa5824c034d564d8d738b20cd51000000000000000000000000fb26525b14048b7bb1f3794f6129176195db77660000000000000000000000000aaaa0f9a78fa925c76c084d022e52afd8a5d1e0000000000000000000000000a5b74743d4fc84971bc73fab079f42b40ab3aa04

Deployed Bytecode

0x608060405234801561001057600080fd5b50600436106102085760003560e01c80638da5cb5b1161011b578063def68a9c116100a8578063def68a9c14610419578063df10b4e61461043f578063e941fa7814610447578063ec78e8321461044f578063f0f4426014610457578063f2fde38b1461047d578063f5eb42dc146104a3578063f851a440146104c9578063fb1db278146104d1578063fc0c546a146104d957610208565b80638da5cb5b146103a75780638e079434146103af57806390321e1a146103b7578063ab617fd0146103bf578063b60f0531146103c7578063b6ac642a146103cf578063b6b55f25146103ec578063bdca916514610409578063d4b0de2f14610295578063db2e21bc1461041157610208565b80635c975abb116101995780635c975abb146102f457806361d027b314610310578063704b6c021461033457806370897b231461035a578063715018a614610377578063722713f71461037f57806377c7b8fc146103875780638456cb591461038f578063853828b614610397578063877887821461039f57610208565b80631959a0021461020d5780631efac1b81461025957806326465826146102785780632ad5a53f146102955780632cfc5f01146102af5780632e1a7d4d146102b75780633a98ef39146102d45780633f4ba83a146102dc5780634641257d146102e457806348a0d754146102ec575b600080fd5b6102336004803603602081101561022357600080fd5b50356001600160a01b03166104e1565b604080519485526020850193909352838301919091526060830152519081900360800190f35b6102766004803603602081101561026f57600080fd5b5035610509565b005b6102766004803603602081101561028e57600080fd5b503561059d565b61029d610630565b60408051918252519081900360200190f35b61029d610636565b610276600480360360208110156102cd57600080fd5b503561063d565b61029d61092a565b610276610930565b610276610a00565b61029d610bd0565b6102fc610c70565b604080519115158252519081900360200190f35b610318610c80565b604080516001600160a01b039092168252519081900360200190f35b6102766004803603602081101561034a57600080fd5b50356001600160a01b0316610c8f565b6102766004803603602081101561037057600080fd5b5035610d67565b610276610dfa565b61029d610ea6565b61029d610ff2565b61027661102c565b6102766110f9565b61029d611114565b61031861111a565b61029d611129565b61029d611208565b61029d61120e565b61029d6112c0565b610276600480360360208110156103e557600080fd5b50356112c6565b6102766004803603602081101561040257600080fd5b5035611359565b61029d611507565b61027661150d565b6102766004803603602081101561042f57600080fd5b50356001600160a01b03166115db565b61029d61179f565b61029d6117a5565b6103186117ab565b6102766004803603602081101561046d57600080fd5b50356001600160a01b03166117cf565b6102766004803603602081101561049357600080fd5b50356001600160a01b03166118a7565b61029d600480360360208110156104b957600080fd5b50356001600160a01b03166119a9565b6103186119c4565b6103186119d3565b6103186119f7565b6001602081905260009182526040909120805491810154600282015460039092015490919084565b6004546001600160a01b03163314610556576040805162461bcd60e51b815260206004820152600b60248201526a61646d696e3a207775743f60a81b604482015290519081900360640190fd5b62278d008111156105985760405162461bcd60e51b815260040180806020018281038252603d815260200180612320603d913960400191505060405180910390fd5b600955565b6004546001600160a01b031633146105ea576040805162461bcd60e51b815260206004820152600b60248201526a61646d696e3a207775743f60a81b604482015290519081900360640190fd5b6101f481111561062b5760405162461bcd60e51b81526004018080602001828103825260288152602001806122816028913960400191505060405180910390fd5b600755565b6101f481565b62278d0081565b33600090815260016020526040902081610694576040805162461bcd60e51b81526020600482015260136024820152724e6f7468696e6720746f20776974686472617760681b604482015290519081900360640190fd5b80548211156106ea576040805162461bcd60e51b815260206004820152601f60248201527f576974686472617720616d6f756e7420657863656564732062616c616e636500604482015290519081900360640190fd5b600061070a600254610704856106fe610ea6565b90611b4c565b90611bae565b82549091506107199084611c12565b82556002546107289084611c12565b6002556000610735610bd0565b9050818110156107fe57600061074b8383611c12565b90507f000000000000000000000000fb26525b14048b7bb1f3794f6129176195db77666001600160a01b0316631058d281826040518263ffffffff1660e01b815260040180828152602001915050600060405180830381600087803b1580156107b357600080fd5b505af11580156107c7573d6000803e3d6000fd5b5050505060006107d5610bd0565b905060006107e38285611c12565b9050828110156107fa576107f78482611c6f565b94505b5050505b600954600184015461080f91611c6f565b42101561087e57600061083361271061070460085486611b4c90919063ffffffff16565b600554909150610870906001600160a01b037f0000000000000000000000004c9b4e1ac6f24cde3660d5e4ef1ebf77c710c0848116911683611cc7565b61087a8382611c12565b9250505b8254156108a85761089e600254610704610896610ea6565b865490611b4c565b60028401556108b0565b600060028401555b4260038401556108ea6001600160a01b037f0000000000000000000000004c9b4e1ac6f24cde3660d5e4ef1ebf77c710c084163384611cc7565b6040805183815260208101869052815133927ff279e6a1f5e320cca91135676d9cb6e44ca8a08c0b88342bcdb1144f6511b568928290030190a250505050565b60025481565b6004546001600160a01b0316331461097d576040805162461bcd60e51b815260206004820152600b60248201526a61646d696e3a207775743f60a81b604482015290519081900360640190fd5b610985610c70565b6109cd576040805162461bcd60e51b815260206004820152601460248201527314185d5cd8589b194e881b9bdd081c185d5cd95960621b604482015290519081900360640190fd5b6109d5611d19565b6040517f7805862f689e2f13df9f062ff482ad3ad112aca9e0847911ed832e158c525b3390600090a1565b610a08610c70565b15610a4d576040805162461bcd60e51b815260206004820152601060248201526f14185d5cd8589b194e881c185d5cd95960821b604482015290519081900360640190fd5b7f000000000000000000000000fb26525b14048b7bb1f3794f6129176195db77666001600160a01b0316631058d28160006040518263ffffffff1660e01b815260040180828152602001915050600060405180830381600087803b158015610ab457600080fd5b505af1158015610ac8573d6000803e3d6000fd5b505050506000610ad6610bd0565b90506000610af561271061070460065485611b4c90919063ffffffff16565b600554909150610b32906001600160a01b037f0000000000000000000000004c9b4e1ac6f24cde3660d5e4ef1ebf77c710c0848116911683611cc7565b6000610b4f61271061070460075486611b4c90919063ffffffff16565b9050610b856001600160a01b037f0000000000000000000000004c9b4e1ac6f24cde3660d5e4ef1ebf77c710c084163383611cc7565b610b8d611dbc565b426003556040805183815260208101839052815133927f71bab65ced2e5750775a0613be067df48ef06cf92a496ebf7663ae0660924954928290030190a2505050565b60007f0000000000000000000000004c9b4e1ac6f24cde3660d5e4ef1ebf77c710c0846001600160a01b03166370a08231306040518263ffffffff1660e01b815260040180826001600160a01b0316815260200191505060206040518083038186803b158015610c3f57600080fd5b505afa158015610c53573d6000803e3d6000fd5b505050506040513d6020811015610c6957600080fd5b5051905090565b600054600160a01b900460ff1690565b6005546001600160a01b031681565b610c97611e50565b6001600160a01b0316610ca861111a565b6001600160a01b031614610cf1576040805162461bcd60e51b81526020600482018190526024820152600080516020612300833981519152604482015290519081900360640190fd5b6001600160a01b038116610d45576040805162461bcd60e51b815260206004820152601660248201527543616e6e6f74206265207a65726f206164647265737360501b604482015290519081900360640190fd5b600480546001600160a01b0319166001600160a01b0392909216919091179055565b6004546001600160a01b03163314610db4576040805162461bcd60e51b815260206004820152600b60248201526a61646d696e3a207775743f60a81b604482015290519081900360640190fd5b611388811115610df55760405162461bcd60e51b81526004018080602001828103825260368152602001806122a96036913960400191505060405180910390fd5b600655565b610e02611e50565b6001600160a01b0316610e1361111a565b6001600160a01b031614610e5c576040805162461bcd60e51b81526020600482018190526024820152600080516020612300833981519152604482015290519081900360640190fd5b600080546040516001600160a01b03909116907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908390a3600080546001600160a01b0319169055565b6000807f000000000000000000000000fb26525b14048b7bb1f3794f6129176195db77666001600160a01b03166393f1a40b6000306040518363ffffffff1660e01b815260040180838152602001826001600160a01b0316815260200192505050604080518083038186803b158015610f1e57600080fd5b505afa158015610f32573d6000803e3d6000fd5b505050506040513d6040811015610f4857600080fd5b5051604080516370a0823160e01b81523060048201529051919250610fec9183916001600160a01b037f0000000000000000000000004c9b4e1ac6f24cde3660d5e4ef1ebf77c710c08416916370a0823191602480820192602092909190829003018186803b158015610fba57600080fd5b505afa158015610fce573d6000803e3d6000fd5b505050506040513d6020811015610fe457600080fd5b505190611c6f565b91505090565b600060025460001461101d57611018600254610704670de0b6b3a76400006106fe610ea6565b611027565b670de0b6b3a76400005b905090565b6004546001600160a01b03163314611079576040805162461bcd60e51b815260206004820152600b60248201526a61646d696e3a207775743f60a81b604482015290519081900360640190fd5b611081610c70565b156110c6576040805162461bcd60e51b815260206004820152601060248201526f14185d5cd8589b194e881c185d5cd95960821b604482015290519081900360640190fd5b6110ce611e54565b6040517f6985a02210a168e66602d3235cb6db0e70f92b3ba4d376a33c0f3d9434bff62590600090a1565b336000908152600160205260409020546111129061063d565b565b60065481565b6000546001600160a01b031690565b6000807f000000000000000000000000fb26525b14048b7bb1f3794f6129176195db77666001600160a01b03166338e45d5a6000306040518363ffffffff1660e01b815260040180838152602001826001600160a01b031681526020019250505060206040518083038186803b1580156111a257600080fd5b505afa1580156111b6573d6000803e3d6000fd5b505050506040513d60208110156111cc57600080fd5b505190506111e26111db610bd0565b8290611c6f565b9050600061120161271061070460075485611b4c90919063ffffffff16565b9250505090565b60075481565b6000807f000000000000000000000000fb26525b14048b7bb1f3794f6129176195db77666001600160a01b03166338e45d5a6000306040518363ffffffff1660e01b815260040180838152602001826001600160a01b031681526020019250505060206040518083038186803b15801561128757600080fd5b505afa15801561129b573d6000803e3d6000fd5b505050506040513d60208110156112b157600080fd5b50519050610fec6111db610bd0565b60035481565b6004546001600160a01b03163314611313576040805162461bcd60e51b815260206004820152600b60248201526a61646d696e3a207775743f60a81b604482015290519081900360640190fd5b6101f48111156113545760405162461bcd60e51b81526004018080602001828103825260308152602001806123876030913960400191505060405180910390fd5b600855565b611361610c70565b156113a6576040805162461bcd60e51b815260206004820152601060248201526f14185d5cd8589b194e881c185d5cd95960821b604482015290519081900360640190fd5b600081116113f0576040805162461bcd60e51b8152602060048201526012602482015271139bdd1a1a5b99c81d1bc819195c1bdcda5d60721b604482015290519081900360640190fd5b60006113fa610ea6565b90506114316001600160a01b037f0000000000000000000000004c9b4e1ac6f24cde3660d5e4ef1ebf77c710c08416333085611edd565b600060025460001461145d576114568261070460025486611b4c90919063ffffffff16565b9050611460565b50815b336000908152600160205260409020805461147b9083611c6f565b81554260018201556002546114909083611c6f565b60028190556114ac906107046114a4610ea6565b845490611b4c565b60028201554260038201556114bf611dbc565b60408051858152602081018490524281830152905133917f36af321ec8d3c75236829c5317affd40ddb308863a1236d2d277a4025cccee1e919081900360600190a250505050565b61138881565b6004546001600160a01b0316331461155a576040805162461bcd60e51b815260206004820152600b60248201526a61646d696e3a207775743f60a81b604482015290519081900360640190fd5b7f000000000000000000000000fb26525b14048b7bb1f3794f6129176195db77666001600160a01b0316635312ea8e60006040518263ffffffff1660e01b815260040180828152602001915050600060405180830381600087803b1580156115c157600080fd5b505af11580156115d5573d6000803e3d6000fd5b50505050565b6004546001600160a01b03163314611628576040805162461bcd60e51b815260206004820152600b60248201526a61646d696e3a207775743f60a81b604482015290519081900360640190fd5b7f0000000000000000000000004c9b4e1ac6f24cde3660d5e4ef1ebf77c710c0846001600160a01b0316816001600160a01b031614156116995760405162461bcd60e51b81526004018080602001828103825260258152602001806122116025913960400191505060405180910390fd5b7f000000000000000000000000814409abbc142fa5824c034d564d8d738b20cd516001600160a01b0316816001600160a01b0316141561170a5760405162461bcd60e51b815260040180806020018281038252602581526020018061225c6025913960400191505060405180910390fd5b6000816001600160a01b03166370a08231306040518263ffffffff1660e01b815260040180826001600160a01b0316815260200191505060206040518083038186803b15801561175957600080fd5b505afa15801561176d573d6000803e3d6000fd5b505050506040513d602081101561178357600080fd5b5051905061179b6001600160a01b0383163383611cc7565b5050565b60095481565b60085481565b7f000000000000000000000000814409abbc142fa5824c034d564d8d738b20cd5181565b6117d7611e50565b6001600160a01b03166117e861111a565b6001600160a01b031614611831576040805162461bcd60e51b81526020600482018190526024820152600080516020612300833981519152604482015290519081900360640190fd5b6001600160a01b038116611885576040805162461bcd60e51b815260206004820152601660248201527543616e6e6f74206265207a65726f206164647265737360501b604482015290519081900360640190fd5b600580546001600160a01b0319166001600160a01b0392909216919091179055565b6118af611e50565b6001600160a01b03166118c061111a565b6001600160a01b031614611909576040805162461bcd60e51b81526020600482018190526024820152600080516020612300833981519152604482015290519081900360640190fd5b6001600160a01b03811661194e5760405162461bcd60e51b81526004018080602001828103825260268152602001806121eb6026913960400191505060405180910390fd5b600080546040516001600160a01b03808516939216917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e091a3600080546001600160a01b0319166001600160a01b0392909216919091179055565b6001600160a01b031660009081526001602052604090205490565b6004546001600160a01b031681565b7f000000000000000000000000fb26525b14048b7bb1f3794f6129176195db776681565b7f0000000000000000000000004c9b4e1ac6f24cde3660d5e4ef1ebf77c710c08481565b801580611aa1575060408051636eb1769f60e11b81523060048201526001600160a01b03848116602483015291519185169163dd62ed3e91604480820192602092909190829003018186803b158015611a7357600080fd5b505afa158015611a87573d6000803e3d6000fd5b505050506040513d6020811015611a9d57600080fd5b5051155b611adc5760405162461bcd60e51b81526004018080602001828103825260368152602001806123b76036913960400191505060405180910390fd5b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663095ea7b360e01b179052611b2e908490611f33565b505050565b6060611b428484600085611fe4565b90505b9392505050565b600082611b5b57506000611ba8565b82820282848281611b6857fe5b0414611ba55760405162461bcd60e51b81526004018080602001828103825260218152602001806122df6021913960400191505060405180910390fd5b90505b92915050565b6000808211611c01576040805162461bcd60e51b815260206004820152601a602482015279536166654d6174683a206469766973696f6e206279207a65726f60301b604482015290519081900360640190fd5b818381611c0a57fe5b049392505050565b600082821115611c69576040805162461bcd60e51b815260206004820152601e60248201527f536166654d6174683a207375627472616374696f6e206f766572666c6f770000604482015290519081900360640190fd5b50900390565b600082820183811015611ba5576040805162461bcd60e51b815260206004820152601b60248201527a536166654d6174683a206164646974696f6e206f766572666c6f7760281b604482015290519081900360640190fd5b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663a9059cbb60e01b179052611b2e908490611f33565b611d21610c70565b611d69576040805162461bcd60e51b815260206004820152601460248201527314185d5cd8589b194e881b9bdd081c185d5cd95960621b604482015290519081900360640190fd5b6000805460ff60a01b191690557f5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa611d9f611e50565b604080516001600160a01b039092168252519081900360200190a1565b6000611dc6610bd0565b90508015611e4d577f000000000000000000000000fb26525b14048b7bb1f3794f6129176195db77666001600160a01b03166341441d3b826040518263ffffffff1660e01b815260040180828152602001915050600060405180830381600087803b158015611e3457600080fd5b505af1158015611e48573d6000803e3d6000fd5b505050505b50565b3390565b611e5c610c70565b15611ea1576040805162461bcd60e51b815260206004820152601060248201526f14185d5cd8589b194e881c185d5cd95960821b604482015290519081900360640190fd5b6000805460ff60a01b1916600160a01b1790557f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a258611d9f611e50565b604080516001600160a01b0380861660248301528416604482015260648082018490528251808303909101815260849091019091526020810180516001600160e01b03166323b872dd60e01b1790526115d59085905b6060611f88826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b0316611b339092919063ffffffff16565b805190915015611b2e57808060200190516020811015611fa757600080fd5b5051611b2e5760405162461bcd60e51b815260040180806020018281038252602a81526020018061235d602a913960400191505060405180910390fd5b6060824710156120255760405162461bcd60e51b81526004018080602001828103825260268152602001806122366026913960400191505060405180910390fd5b61202e85612140565b61207f576040805162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e7472616374000000604482015290519081900360640190fd5b60006060866001600160a01b031685876040518082805190602001908083835b602083106120be5780518252601f19909201916020918201910161209f565b6001836020036101000a03801982511681845116808217855250505050505090500191505060006040518083038185875af1925050503d8060008114612120576040519150601f19603f3d011682016040523d82523d6000602084013e612125565b606091505b5091509150612135828286612146565b979650505050505050565b3b151590565b60608315612155575081611b45565b8251156121655782518084602001fd5b8160405162461bcd60e51b81526004018080602001828103825283818151815260200191508051906020019080838360005b838110156121af578181015183820152602001612197565b50505050905090810190601f1680156121dc5780820380516001836020036101000a031916815260200191505b509250505060405180910390fdfe4f776e61626c653a206e6577206f776e657220697320746865207a65726f2061646472657373546f6b656e2063616e6e6f742062652073616d65206173206465706f73697420746f6b656e416464726573733a20696e73756666696369656e742062616c616e636520666f722063616c6c546f6b656e2063616e6e6f742062652073616d65206173207265636569707420746f6b656e63616c6c4665652063616e6e6f74206265206d6f7265207468616e204d41585f43414c4c5f464545706572666f726d616e63654665652063616e6e6f74206265206d6f7265207468616e204d41585f504552464f524d414e43455f464545536166654d6174683a206d756c7469706c69636174696f6e206f766572666c6f774f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65727769746864726177466565506572696f642063616e6e6f74206265206d6f7265207468616e204d41585f57495448445241575f4645455f504552494f445361666545524332303a204552433230206f7065726174696f6e20646964206e6f74207375636365656477697468647261774665652063616e6e6f74206265206d6f7265207468616e204d41585f57495448445241575f4645455361666545524332303a20617070726f76652066726f6d206e6f6e2d7a65726f20746f206e6f6e2d7a65726f20616c6c6f77616e6365a264697066735822122093955e25287fb31cf79827c7a62f24f52daa1643b578b0090a03cb3622e283b264736f6c634300060c0033

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

0000000000000000000000004c9b4e1ac6f24cde3660d5e4ef1ebf77c710c084000000000000000000000000814409abbc142fa5824c034d564d8d738b20cd51000000000000000000000000fb26525b14048b7bb1f3794f6129176195db77660000000000000000000000000aaaa0f9a78fa925c76c084d022e52afd8a5d1e0000000000000000000000000a5b74743d4fc84971bc73fab079f42b40ab3aa04

-----Decoded View---------------
Arg [0] : _token (address): 0x4C9B4E1AC6F24CdE3660D5E4Ef1eBF77C710C084
Arg [1] : _receiptToken (address): 0x814409AbbC142fa5824C034d564D8D738b20cD51
Arg [2] : _masterchef (address): 0xFb26525B14048B7BB1F3794F6129176195Db7766
Arg [3] : _admin (address): 0x0AAAa0f9A78Fa925c76c084d022E52AFd8a5d1e0
Arg [4] : _treasury (address): 0xa5B74743D4fC84971Bc73fab079f42b40Ab3Aa04

-----Encoded View---------------
5 Constructor Arguments found :
Arg [0] : 0000000000000000000000004c9b4e1ac6f24cde3660d5e4ef1ebf77c710c084
Arg [1] : 000000000000000000000000814409abbc142fa5824c034d564d8d738b20cd51
Arg [2] : 000000000000000000000000fb26525b14048b7bb1f3794f6129176195db7766
Arg [3] : 0000000000000000000000000aaaa0f9a78fa925c76c084d022e52afd8a5d1e0
Arg [4] : 000000000000000000000000a5b74743d4fc84971bc73fab079f42b40ab3aa04


Deployed Bytecode Sourcemap

28445:11323:0:-:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;29073:44;;;;;;;;;;;;;;;;-1:-1:-1;29073:44:0;-1:-1:-1;;;;;29073:44:0;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;34472:301;;;;;;;;;;;;;;;;-1:-1:-1;34472:301:0;;:::i;:::-;;33849:182;;;;;;;;;;;;;;;;-1:-1:-1;33849:182:0;;:::i;29321:42::-;;;:::i;:::-;;;;;;;;;;;;;;;;29435:57;;;:::i;37157:1492::-;;;;;;;;;;;;;;;;-1:-1:-1;37157:1492:0;;:::i;29126:26::-;;;:::i;35861:103::-;;;:::i;32305:543::-;;;:::i;38808:107::-;;;:::i;26587:86::-;;;:::i;:::-;;;;;;;;;;;;;;;;;;29225:23;;;:::i;:::-;;;;-1:-1:-1;;;;;29225:23:0;;;;;;;;;;;;;;32959:152;;;;;;;;;;;;;;;;-1:-1:-1;32959:152:0;-1:-1:-1;;;;;32959:152:0;;:::i;33505:238::-;;;;;;;;;;;;;;;;-1:-1:-1;33505:238:0;;:::i;2861:148::-;;;:::i;39072:201::-;;;:::i;36868:154::-;;;:::i;35643:100::-;;;:::i;32085:88::-;;;:::i;29512:36::-;;;:::i;2210:87::-;;;:::i;36112:301::-;;;:::i;29562:26::-;;;:::i;36563:232::-;;;:::i;29159:32::-;;;:::i;34141:214::-;;;;;;;;;;;;;;;;-1:-1:-1;34141:214:0;;:::i;31128:884::-;;;;;;;;;;;;;;;;-1:-1:-1;31128:884:0;;:::i;29257:50::-;;;:::i;34946:111::-;;;:::i;35148:377::-;;;;;;;;;;;;;;;;-1:-1:-1;35148:377:0;-1:-1:-1;;;;;35148:377:0;;:::i;29649:44::-;;;:::i;29604:32::-;;;:::i;28962:36::-;;;:::i;33225:167::-;;;;;;;;;;;;;;;;-1:-1:-1;33225:167:0;-1:-1:-1;;;;;33225:167:0;;:::i;3164:244::-;;;;;;;;;;;;;;;;-1:-1:-1;3164:244:0;-1:-1:-1;;;;;3164:244:0;;:::i;39350:156::-;;;;;;;;;;;;;;;;-1:-1:-1;39350:156:0;-1:-1:-1;;;;;39350:156:0;;:::i;29198:20::-;;;:::i;29025:39::-;;;:::i;28913:29::-;;;:::i;29073:44::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::o;34472:301::-;30897:5;;-1:-1:-1;;;;;30897:5:0;30883:10;:19;30875:43;;;;;-1:-1:-1;;;30875:43:0;;;;;;;;;;;;-1:-1:-1;;;30875:43:0;;;;;;;;;;;;;;;29485:7:::1;34582:18;:45;;34560:156;;;;-1:-1:-1::0;;;34560:156:0::1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;34727:17;:38:::0;34472:301::o;33849:182::-;30897:5;;-1:-1:-1;;;;;30897:5:0;30883:10;:19;30875:43;;;;;-1:-1:-1;;;30875:43:0;;;;;;;;;;;;-1:-1:-1;;;30875:43:0;;;;;;;;;;;;;;;29360:3:::1;33925:8;:24;;33917:77;;;;-1:-1:-1::0;;;33917:77:0::1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;34005:7;:18:::0;33849:182::o;29321:42::-;29360:3;29321:42;:::o;29435:57::-;29485:7;29435:57;:::o;37157:1492::-;37243:10;37210:21;37234:20;;;:8;:20;;;;;37273:11;37265:43;;;;;-1:-1:-1;;;37265:43:0;;;;;;;;;;;;-1:-1:-1;;;37265:43:0;;;;;;;;;;;;;;;37338:11;;37327:22;;;37319:66;;;;;-1:-1:-1;;;37319:66:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;37398:21;37422:43;37453:11;;37423:24;37439:7;37423:11;:9;:11::i;:::-;:15;;:24::i;:::-;37422:30;;:43::i;:::-;37490:11;;37398:67;;-1:-1:-1;37490:24:0;;37506:7;37490:15;:24::i;:::-;37476:38;;37539:11;;:24;;37555:7;37539:15;:24::i;:::-;37525:11;:38;37576:11;37590;:9;:11::i;:::-;37576:25;;37622:13;37616:3;:19;37612:354;;;37652:19;37674:22;:13;37692:3;37674:17;:22::i;:::-;37652:44;;37723:10;-1:-1:-1;;;;;37711:36:0;;37748:11;37711:49;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;37775:16;37794:11;:9;:11::i;:::-;37775:30;-1:-1:-1;37820:12:0;37835:17;37775:30;37848:3;37835:12;:17::i;:::-;37820:32;;37878:11;37871:4;:18;37867:88;;;37926:13;:3;37934:4;37926:7;:13::i;:::-;37910:29;;37867:88;37612:354;;;;38027:17;;38000:22;;;;:45;;:26;:45::i;:::-;37982:15;:63;37978:297;;;38062:26;38091:41;38126:5;38091:30;38109:11;;38091:13;:17;;:30;;;;:::i;:41::-;38166:8;;38062:70;;-1:-1:-1;38147:48:0;;-1:-1:-1;;;;;38147:5:0;:18;;;38166:8;38062:70;38147:18;:48::i;:::-;38226:37;:13;38244:18;38226:17;:37::i;:::-;38210:53;;37978:297;;38291:11;;:15;38287:181;;38350:45;38383:11;;38350:28;38366:11;:9;:11::i;:::-;38350;;;:15;:28::i;:45::-;38323:24;;;:72;38287:181;;;38455:1;38428:24;;;:28;38287:181;38506:15;38480:23;;;:41;38534:45;-1:-1:-1;;;;;38534:5:0;:18;38553:10;38565:13;38534:18;:45::i;:::-;38597:44;;;;;;;;;;;;;;38606:10;;38597:44;;;;;;;;37157:1492;;;;:::o;29126:26::-;;;;:::o;35861:103::-;30897:5;;-1:-1:-1;;;;;30897:5:0;30883:10;:19;30875:43;;;;;-1:-1:-1;;;30875:43:0;;;;;;;;;;;;-1:-1:-1;;;30875:43:0;;;;;;;;;;;;;;;27190:8:::1;:6;:8::i;:::-;27182:41;;;::::0;;-1:-1:-1;;;27182:41:0;;::::1;;::::0;::::1;::::0;::::1;::::0;;;;-1:-1:-1;;;27182:41:0;;;;;;;;;;;;;::::1;;35921:10:::2;:8;:10::i;:::-;35947:9;::::0;::::2;::::0;;;::::2;35861:103::o:0;32305:543::-;26913:8;:6;:8::i;:::-;26912:9;26904:38;;;;;-1:-1:-1;;;26904:38:0;;;;;;;;;;;;-1:-1:-1;;;26904:38:0;;;;;;;;;;;;;;;32370:10:::1;-1:-1:-1::0;;;;;32358:36:0::1;;32395:1;32358:39;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;::::0;::::1;;;;;;;;;32410:11;32424;:9;:11::i;:::-;32410:25;;32446:29;32478:34;32506:5;32478:23;32486:14;;32478:3;:7;;:23;;;;:::i;:34::-;32542:8;::::0;32446:66;;-1:-1:-1;32523:51:0::1;::::0;-1:-1:-1;;;;;32523:5:0::1;:18:::0;::::1;::::0;32542:8:::1;32446:66:::0;32523:18:::1;:51::i;:::-;32587:22;32612:27;32633:5;32612:16;32620:7;;32612:3;:7;;:16;;;;:::i;:27::-;32587:52:::0;-1:-1:-1;32650:46:0::1;-1:-1:-1::0;;;;;32650:5:0::1;:18;32669:10;32587:52:::0;32650:18:::1;:46::i;:::-;32709:7;:5;:7::i;:::-;32749:15;32729:17;:35:::0;32782:58:::1;::::0;;;;;::::1;::::0;::::1;::::0;;;;;32790:10:::1;::::0;32782:58:::1;::::0;;;;;;::::1;26953:1;;;32305:543::o:0;38808:107::-;38850:7;38877:5;-1:-1:-1;;;;;38877:15:0;;38901:4;38877:30;;;;;;;;;;;;;-1:-1:-1;;;;;38877:30:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;38877:30:0;;-1:-1:-1;38808:107:0;:::o;26587:86::-;26634:4;26658:7;-1:-1:-1;;;26658:7:0;;;;;26587:86::o;29225:23::-;;;-1:-1:-1;;;;;29225:23:0;;:::o;32959:152::-;2441:12;:10;:12::i;:::-;-1:-1:-1;;;;;2430:23:0;:7;:5;:7::i;:::-;-1:-1:-1;;;;;2430:23:0;;2422:68;;;;;-1:-1:-1;;;2422:68:0;;;;;;;;;;;;;-1:-1:-1;;;;;;;;;;;2422:68:0;;;;;;;;;;;;;;;-1:-1:-1;;;;;33031:20:0;::::1;33023:55;;;::::0;;-1:-1:-1;;;33023:55:0;;::::1;;::::0;::::1;::::0;::::1;::::0;;;;-1:-1:-1;;;33023:55:0;;;;;;;;;;;;;::::1;;33089:5;:14:::0;;-1:-1:-1;;;;;;33089:14:0::1;-1:-1:-1::0;;;;;33089:14:0;;;::::1;::::0;;;::::1;::::0;;32959:152::o;33505:238::-;30897:5;;-1:-1:-1;;;;;30897:5:0;30883:10;:19;30875:43;;;;;-1:-1:-1;;;30875:43:0;;;;;;;;;;;;-1:-1:-1;;;30875:43:0;;;;;;;;;;;;;;;29303:4:::1;33595:15;:38;;33587:105;;;;-1:-1:-1::0;;;33587:105:0::1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;33703:14;:32:::0;33505:238::o;2861:148::-;2441:12;:10;:12::i;:::-;-1:-1:-1;;;;;2430:23:0;:7;:5;:7::i;:::-;-1:-1:-1;;;;;2430:23:0;;2422:68;;;;;-1:-1:-1;;;2422:68:0;;;;;;;;;;;;;-1:-1:-1;;;;;;;;;;;2422:68:0;;;;;;;;;;;;;;;2968:1:::1;2952:6:::0;;2931:40:::1;::::0;-1:-1:-1;;;;;2952:6:0;;::::1;::::0;2931:40:::1;::::0;2968:1;;2931:40:::1;2999:1;2982:19:::0;;-1:-1:-1;;;;;;2982:19:0::1;::::0;;2861:148::o;39072:201::-;39114:7;39135:14;39167:10;-1:-1:-1;;;;;39155:32:0;;39188:1;39199:4;39155:50;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;39155:50:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;39155:50:0;;39223:30;;-1:-1:-1;;;39223:30:0;;39247:4;39223:30;;;;;;39155:50;;-1:-1:-1;39223:42:0;;39155:50;;-1:-1:-1;;;;;39223:5:0;:15;;;;:30;;;;;39155:50;;39223:30;;;;;;;;:15;:30;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;39223:30:0;;:34;:42::i;:::-;39216:49;;;39072:201;:::o;36868:154::-;36923:7;36950:11;;36965:1;36950:16;:64;;36976:38;37002:11;;36976:21;36992:4;36976:11;:9;:11::i;:38::-;36950:64;;;36969:4;36950:64;36943:71;;36868:154;:::o;35643:100::-;30897:5;;-1:-1:-1;;;;;30897:5:0;30883:10;:19;30875:43;;;;;-1:-1:-1;;;30875:43:0;;;;;;;;;;;;-1:-1:-1;;;30875:43:0;;;;;;;;;;;;;;;26913:8:::1;:6;:8::i;:::-;26912:9;26904:38;;;::::0;;-1:-1:-1;;;26904:38:0;;::::1;;::::0;::::1;::::0;::::1;::::0;;;;-1:-1:-1;;;26904:38:0;;;;;;;;;;;;;::::1;;35704:8:::2;:6;:8::i;:::-;35728:7;::::0;::::2;::::0;;;::::2;35643:100::o:0;32085:88::-;32146:10;32137:20;;;;:8;:20;;;;;:27;32128:37;;:8;:37::i;:::-;32085:88::o;29512:36::-;;;;:::o;2210:87::-;2256:7;2283:6;-1:-1:-1;;;;;2283:6:0;2210:87;:::o;36112:301::-;36173:7;36193:14;36222:10;-1:-1:-1;;;;;36210:34:0;;36245:1;36256:4;36210:52;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;36210:52:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;36210:52:0;;-1:-1:-1;36282:23:0;36293:11;:9;:11::i;:::-;36282:6;;:10;:23::i;:::-;36273:32;;36316:22;36341:30;36365:5;36341:19;36352:7;;36341:6;:10;;:19;;;;:::i;:30::-;36316:55;-1:-1:-1;;;36112:301:0;:::o;29562:26::-;;;;:::o;36563:232::-;36629:7;36649:14;36678:10;-1:-1:-1;;;;;36666:34:0;;36701:1;36712:4;36666:52;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;36666:52:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;36666:52:0;;-1:-1:-1;36738:23:0;36749:11;:9;:11::i;29159:32::-;;;;:::o;34141:214::-;30897:5;;-1:-1:-1;;;;;30897:5:0;30883:10;:19;30875:43;;;;;-1:-1:-1;;;30875:43:0;;;;;;;;;;;;-1:-1:-1;;;30875:43:0;;;;;;;;;;;;;;;29419:3:::1;34225:12;:32;;34217:93;;;;-1:-1:-1::0;;;34217:93:0::1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;34321:11;:26:::0;34141:214::o;31128:884::-;26913:8;:6;:8::i;:::-;26912:9;26904:38;;;;;-1:-1:-1;;;26904:38:0;;;;;;;;;;;;-1:-1:-1;;;26904:38:0;;;;;;;;;;;;;;;31214:1:::1;31204:7;:11;31196:42;;;::::0;;-1:-1:-1;;;31196:42:0;;::::1;;::::0;::::1;::::0;::::1;::::0;;;;-1:-1:-1;;;31196:42:0;;;;;;;;;;;;;::::1;;31251:12;31266:11;:9;:11::i;:::-;31251:26:::0;-1:-1:-1;31288:58:0::1;-1:-1:-1::0;;;;;31288:5:0::1;:22;31311:10;31331:4;31338:7:::0;31288:22:::1;:58::i;:::-;31357:21;31397:11;;31412:1;31397:16;31393:157;;31446:36;31477:4;31447:24;31459:11;;31447:7;:11;;:24;;;;:::i;31446:36::-;31430:52;;31393:157;;;-1:-1:-1::0;31531:7:0;31393:157:::1;31593:10;31560:21;31584:20:::0;;;:8:::1;:20;::::0;;;;31631:11;;:30:::1;::::0;31647:13;31631:15:::1;:30::i;:::-;31617:44:::0;;31697:15:::1;31672:22;::::0;::::1;:40:::0;31739:11:::1;::::0;:30:::1;::::0;31755:13;31739:15:::1;:30::i;:::-;31725:11;:44:::0;;;31809:45:::1;::::0;:28:::1;31825:11;:9;:11::i;:::-;31809::::0;;;:15:::1;:28::i;:45::-;31782:24;::::0;::::1;:72:::0;31891:15:::1;31865:23;::::0;::::1;:41:::0;31919:7:::1;:5;:7::i;:::-;31944:60;::::0;;;;;::::1;::::0;::::1;::::0;;;31988:15:::1;31944:60:::0;;;;;;31952:10:::1;::::0;31944:60:::1;::::0;;;;;;;;::::1;26953:1;;;31128:884:::0;:::o;29257:50::-;29303:4;29257:50;:::o;34946:111::-;30897:5;;-1:-1:-1;;;;;30897:5:0;30883:10;:19;30875:43;;;;;-1:-1:-1;;;30875:43:0;;;;;;;;;;;;-1:-1:-1;;;30875:43:0;;;;;;;;;;;;;;;35017:10:::1;-1:-1:-1::0;;;;;35005:41:0::1;;35047:1;35005:44;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;::::0;::::1;;;;;;;;;34946:111::o:0;35148:377::-;30897:5;;-1:-1:-1;;;;;30897:5:0;30883:10;:19;30875:43;;;;;-1:-1:-1;;;30875:43:0;;;;;;;;;;;;-1:-1:-1;;;30875:43:0;;;;;;;;;;;;;;;35250:5:::1;-1:-1:-1::0;;;;;35232:24:0::1;:6;-1:-1:-1::0;;;;;35232:24:0::1;;;35224:74;;;;-1:-1:-1::0;;;35224:74:0::1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;35335:12;-1:-1:-1::0;;;;;35317:31:0::1;:6;-1:-1:-1::0;;;;;35317:31:0::1;;;35309:81;;;;-1:-1:-1::0;;;35309:81:0::1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;35403:14;35427:6;-1:-1:-1::0;;;;;35420:24:0::1;;35453:4;35420:39;;;;;;;;;;;;;-1:-1:-1::0;;;;;35420:39:0::1;;;;;;;;;;;;;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;;;;;;;;::::0;::::1;;-1:-1:-1::0;35420:39:0;;-1:-1:-1;35470:47:0::1;-1:-1:-1::0;;;;;35470:27:0;::::1;35498:10;35420:39:::0;35470:27:::1;:47::i;:::-;30929:1;35148:377:::0;:::o;29649:44::-;;;;:::o;29604:32::-;;;;:::o;28962:36::-;;;:::o;33225:167::-;2441:12;:10;:12::i;:::-;-1:-1:-1;;;;;2430:23:0;:7;:5;:7::i;:::-;-1:-1:-1;;;;;2430:23:0;;2422:68;;;;;-1:-1:-1;;;2422:68:0;;;;;;;;;;;;;-1:-1:-1;;;;;;;;;;;2422:68:0;;;;;;;;;;;;;;;-1:-1:-1;;;;;33303:23:0;::::1;33295:58;;;::::0;;-1:-1:-1;;;33295:58:0;;::::1;;::::0;::::1;::::0;::::1;::::0;;;;-1:-1:-1;;;33295:58:0;;;;;;;;;;;;;::::1;;33364:8;:20:::0;;-1:-1:-1;;;;;;33364:20:0::1;-1:-1:-1::0;;;;;33364:20:0;;;::::1;::::0;;;::::1;::::0;;33225:167::o;3164:244::-;2441:12;:10;:12::i;:::-;-1:-1:-1;;;;;2430:23:0;:7;:5;:7::i;:::-;-1:-1:-1;;;;;2430:23:0;;2422:68;;;;;-1:-1:-1;;;2422:68:0;;;;;;;;;;;;;-1:-1:-1;;;;;;;;;;;2422:68:0;;;;;;;;;;;;;;;-1:-1:-1;;;;;3253:22:0;::::1;3245:73;;;;-1:-1:-1::0;;;3245:73:0::1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;3355:6;::::0;;3334:38:::1;::::0;-1:-1:-1;;;;;3334:38:0;;::::1;::::0;3355:6;::::1;::::0;3334:38:::1;::::0;::::1;3383:6;:17:::0;;-1:-1:-1;;;;;;3383:17:0::1;-1:-1:-1::0;;;;;3383:17:0;;;::::1;::::0;;;::::1;::::0;;3164:244::o;39350:156::-;-1:-1:-1;;;;;39450:17:0;39406:7;39450:17;;;:8;:17;;;;;39487:11;;39350:156::o;29198:20::-;;;-1:-1:-1;;;;;29198:20:0;;:::o;29025:39::-;;;:::o;28913:29::-;;;:::o;23078:622::-;23448:10;;;23447:62;;-1:-1:-1;23464:39:0;;;-1:-1:-1;;;23464:39:0;;23488:4;23464:39;;;;-1:-1:-1;;;;;23464:39:0;;;;;;;;;:15;;;;;;:39;;;;;;;;;;;;;;;:15;:39;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;23464:39:0;:44;23447:62;23439:152;;;;-1:-1:-1;;;23439:152:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;23629:62;;;-1:-1:-1;;;;;23629:62:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;23629:62:0;-1:-1:-1;;;23629:62:0;;;23602:90;;23622:5;;23602:19;:90::i;:::-;23078:622;;;:::o;17406:195::-;17509:12;17541:52;17563:6;17571:4;17577:1;17580:12;17541:21;:52::i;:::-;17534:59;;17406:195;;;;;;:::o;7099:220::-;7157:7;7181:6;7177:20;;-1:-1:-1;7196:1:0;7189:8;;7177:20;7220:5;;;7224:1;7220;:5;:1;7244:5;;;;;:10;7236:56;;;;-1:-1:-1;;;7236:56:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;7310:1;-1:-1:-1;7099:220:0;;;;;:::o;7797:153::-;7855:7;7887:1;7883;:5;7875:44;;;;;-1:-1:-1;;;7875:44:0;;;;;;;;;;;;-1:-1:-1;;;7875:44:0;;;;;;;;;;;;;;;7941:1;7937;:5;;;;;;;7797:153;-1:-1:-1;;;7797:153:0:o;6682:158::-;6740:7;6773:1;6768;:6;;6760:49;;;;;-1:-1:-1;;;6760:49:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;6827:5:0;;;6682:158::o;6220:179::-;6278:7;6310:5;;;6334:6;;;;6326:46;;;;;-1:-1:-1;;;6326:46:0;;;;;;;;;;;;-1:-1:-1;;;6326:46:0;;;;;;;;;;;;;;22419:177;22529:58;;;-1:-1:-1;;;;;22529:58:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;22529:58:0;-1:-1:-1;;;22529:58:0;;;22502:86;;22522:5;;22502:19;:86::i;27646:120::-;27190:8;:6;:8::i;:::-;27182:41;;;;;-1:-1:-1;;;27182:41:0;;;;;;;;;;;;-1:-1:-1;;;27182:41:0;;;;;;;;;;;;;;;27715:5:::1;27705:15:::0;;-1:-1:-1;;;;27705:15:0::1;::::0;;27736:22:::1;27745:12;:10;:12::i;:::-;27736:22;::::0;;-1:-1:-1;;;;;27736:22:0;;::::1;::::0;;;;;;;::::1;::::0;;::::1;27646:120::o:0;39604:161::-;39641:11;39655;:9;:11::i;:::-;39641:25;-1:-1:-1;39681:7:0;;39677:81;;39717:10;-1:-1:-1;;;;;39705:36:0;;39742:3;39705:41;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;39677:81;39604:161;:::o;737:106::-;825:10;737:106;:::o;27387:118::-;26913:8;:6;:8::i;:::-;26912:9;26904:38;;;;;-1:-1:-1;;;26904:38:0;;;;;;;;;;;;-1:-1:-1;;;26904:38:0;;;;;;;;;;;;;;;27447:7:::1;:14:::0;;-1:-1:-1;;;;27447:14:0::1;-1:-1:-1::0;;;27447:14:0::1;::::0;;27477:20:::1;27484:12;:10;:12::i;22604:205::-:0;22732:68;;;-1:-1:-1;;;;;22732:68:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;22732:68:0;-1:-1:-1;;;22732:68:0;;;22705:96;;22725:5;;24724:761;25148:23;25174:69;25202:4;25174:69;;;;;;;;;;;;;;;;;25182:5;-1:-1:-1;;;;;25174:27:0;;;:69;;;;;:::i;:::-;25258:17;;25148:95;;-1:-1:-1;25258:21:0;25254:224;;25400:10;25389:30;;;;;;;;;;;;;;;-1:-1:-1;25389:30:0;25381:85;;;;-1:-1:-1;;;25381:85:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;18458:530;18585:12;18643:5;18618:21;:30;;18610:81;;;;-1:-1:-1;;;18610:81:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;18710:18;18721:6;18710:10;:18::i;:::-;18702:60;;;;;-1:-1:-1;;;18702:60:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;18836:12;18850:23;18877:6;-1:-1:-1;;;;;18877:11:0;18897:5;18905:4;18877:33;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;18877:33:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;18835:75;;;;18928:52;18946:7;18955:10;18967:12;18928:17;:52::i;:::-;18921:59;18458:530;-1:-1:-1;;;;;;;18458:530:0:o;14488:422::-;14855:20;14894:8;;;14488:422::o;20998:742::-;21113:12;21142:7;21138:595;;;-1:-1:-1;21173:10:0;21166:17;;21138:595;21287:17;;:21;21283:439;;21550:10;21544:17;21611:15;21598:10;21594:2;21590:19;21583:44;21498:148;21693:12;21686:20;;-1:-1:-1;;;21686:20:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;

Swarm Source

ipfs://93955e25287fb31cf79827c7a62f24f52daa1643b578b0090a03cb3622e283b2

Block Transaction 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
[ 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.