More Info
Private Name Tags
ContractCreator
Multichain Info
Latest 25 from a total of 874 transactions
Transaction Hash |
Method
|
Block
|
From
|
To
|
|||||
---|---|---|---|---|---|---|---|---|---|
Withdraw Farming... | 12560739 | 1184 days ago | IN | 0 ETH | 0.00332224 | ||||
Withdraw Farming... | 12536147 | 1188 days ago | IN | 0 ETH | 0.00265295 | ||||
Withdraw Farming... | 12536141 | 1188 days ago | IN | 0 ETH | 0.00265295 | ||||
Withdraw Farming... | 12512055 | 1192 days ago | IN | 0 ETH | 0.00357572 | ||||
Withdraw Farming... | 12510702 | 1192 days ago | IN | 0 ETH | 0.00392176 | ||||
Withdraw Farming... | 12510693 | 1192 days ago | IN | 0 ETH | 0.0042678 | ||||
Withdraw Farming... | 12510686 | 1192 days ago | IN | 0 ETH | 0.0042678 | ||||
Withdraw Farming... | 12510673 | 1192 days ago | IN | 0 ETH | 0.00484453 | ||||
Withdraw Farming... | 12479117 | 1197 days ago | IN | 0 ETH | 0.00858716 | ||||
Withdraw Farming... | 12470659 | 1198 days ago | IN | 0 ETH | 0.0074256 | ||||
Deposit Farming ... | 12470651 | 1198 days ago | IN | 0 ETH | 0.00961822 | ||||
Withdraw Farming... | 12470644 | 1198 days ago | IN | 0 ETH | 0.00818956 | ||||
Deposit Farming ... | 12470639 | 1198 days ago | IN | 0 ETH | 0.01039808 | ||||
Withdraw Farming... | 12466453 | 1199 days ago | IN | 0 ETH | 0.02484828 | ||||
Withdraw Farming... | 12454786 | 1201 days ago | IN | 0 ETH | 0.0073777 | ||||
Withdraw Farming... | 12454733 | 1201 days ago | IN | 0 ETH | 0.0084208 | ||||
Withdraw Farming... | 12442116 | 1203 days ago | IN | 0 ETH | 0.00761959 | ||||
Withdraw Farming... | 12442103 | 1203 days ago | IN | 0 ETH | 0.00761959 | ||||
Withdraw Farming... | 12442077 | 1203 days ago | IN | 0 ETH | 0.00869689 | ||||
Withdraw Farming... | 12436990 | 1203 days ago | IN | 0 ETH | 0.01437976 | ||||
Withdraw Farming... | 12436987 | 1203 days ago | IN | 0 ETH | 0.01437976 | ||||
Withdraw Farming... | 12436982 | 1203 days ago | IN | 0 ETH | 0.01344774 | ||||
Deposit Farming ... | 12433453 | 1204 days ago | IN | 0 ETH | 0.02145903 | ||||
Set Farming Toke... | 12432448 | 1204 days ago | IN | 0 ETH | 0.00197215 | ||||
Set Farming Toke... | 12432413 | 1204 days ago | IN | 0 ETH | 0.00167416 |
View more zero value Internal Transactions in Advanced View mode
Advanced mode:
Loading...
Loading
Contract Name:
GalaxyNFT
Compiler Version
v0.6.12+commit.27d51765
Contract Source Code (Solidity)
/** *Submitted for verification at Etherscan.io on 2020-11-30 */ // SPDX-License-Identifier: UNLICENSED pragma solidity ^0.6.12; /** * @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); } /** * @dev Wrappers over Solidity's arithmetic operations with added overflow * checks. * * Arithmetic operations in Solidity wrap on overflow. This can easily result * in bugs, because programmers usually assume that an overflow raises an * error, which is the standard behavior in high level programming languages. * `SafeMath` restores this intuition by reverting the transaction when an * operation overflows. * * Using this library instead of the unchecked operations eliminates an entire * class of bugs, so it's recommended to use it always. */ library SafeMath { /** * @dev Returns the addition of two unsigned integers, reverting on * overflow. * * Counterpart to Solidity's `+` operator. * * Requirements: * * - Addition cannot overflow. */ function add(uint256 a, uint256 b) internal pure returns (uint256) { uint256 c = a + b; require(c >= a, "SafeMath: addition overflow"); return c; } /** * @dev Returns the subtraction of two unsigned integers, reverting on * overflow (when the result is negative). * * Counterpart to Solidity's `-` operator. * * Requirements: * * - Subtraction cannot overflow. */ function sub(uint256 a, uint256 b) internal pure returns (uint256) { return sub(a, b, "SafeMath: subtraction overflow"); } /** * @dev Returns the subtraction of two unsigned integers, reverting with custom message on * overflow (when the result is negative). * * Counterpart to Solidity's `-` operator. * * Requirements: * * - Subtraction cannot overflow. */ function sub(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) { require(b <= a, errorMessage); uint256 c = a - b; return c; } /** * @dev Returns the multiplication of two unsigned integers, reverting on * overflow. * * Counterpart to Solidity's `*` operator. * * Requirements: * * - Multiplication cannot overflow. */ function mul(uint256 a, uint256 b) internal pure returns (uint256) { // Gas optimization: this is cheaper than requiring 'a' not being zero, but the // benefit is lost if 'b' is also tested. // See: https://github.com/OpenZeppelin/openzeppelin-contracts/pull/522 if (a == 0) { return 0; } uint256 c = a * b; require(c / a == b, "SafeMath: multiplication overflow"); return c; } /** * @dev Returns the integer division of two unsigned integers. Reverts on * division by zero. The result is rounded towards zero. * * Counterpart to Solidity's `/` operator. Note: this function uses a * `revert` opcode (which leaves remaining gas untouched) while Solidity * uses an invalid opcode to revert (consuming all remaining gas). * * Requirements: * * - The divisor cannot be zero. */ function div(uint256 a, uint256 b) internal pure returns (uint256) { return div(a, b, "SafeMath: division by zero"); } /** * @dev Returns the integer division of two unsigned integers. Reverts with custom message on * division by zero. The result is rounded towards zero. * * Counterpart to Solidity's `/` operator. Note: this function uses a * `revert` opcode (which leaves remaining gas untouched) while Solidity * uses an invalid opcode to revert (consuming all remaining gas). * * Requirements: * * - The divisor cannot be zero. */ function div(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) { require(b > 0, errorMessage); uint256 c = a / b; // assert(a == b * c + a % b); // There is no case in which this doesn't hold return c; } /** * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo), * Reverts when dividing by zero. * * Counterpart to Solidity's `%` operator. This function uses a `revert` * opcode (which leaves remaining gas untouched) while Solidity uses an * invalid opcode to revert (consuming all remaining gas). * * Requirements: * * - The divisor cannot be zero. */ function mod(uint256 a, uint256 b) internal pure returns (uint256) { return mod(a, b, "SafeMath: modulo by zero"); } /** * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo), * Reverts with custom message when dividing by zero. * * Counterpart to Solidity's `%` operator. This function uses a `revert` * opcode (which leaves remaining gas untouched) while Solidity uses an * invalid opcode to revert (consuming all remaining gas). * * Requirements: * * - The divisor cannot be zero. */ function mod(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) { require(b != 0, errorMessage); return a % b; } } /** * @dev Collection of functions related to the address type */ library Address { /** * @dev Returns true if `account` is a contract. * * [IMPORTANT] * ==== * It is unsafe to assume that an address for which this function returns * false is an externally-owned account (EOA) and not a contract. * * Among others, `isContract` will return false for the following * types of addresses: * * - an externally-owned account * - a contract in construction * - an address where a contract will be created * - an address where a contract lived, but was destroyed * ==== */ function isContract(address account) internal view returns (bool) { // According to EIP-1052, 0x0 is the value returned for not-yet created accounts // and 0xc5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a470 is returned // for accounts without code, i.e. `keccak256('')` bytes32 codehash; bytes32 accountHash = 0xc5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a470; // solhint-disable-next-line no-inline-assembly assembly { codehash := extcodehash(account) } return (codehash != accountHash && codehash != 0x0); } /** * @dev Replacement for Solidity's `transfer`: sends `amount` wei to * `recipient`, forwarding all available gas and reverting on errors. * * https://eips.ethereum.org/EIPS/eip-1884[EIP1884] increases the gas cost * of certain opcodes, possibly making contracts go over the 2300 gas limit * imposed by `transfer`, making them unable to receive funds via * `transfer`. {sendValue} removes this limitation. * * https://diligence.consensys.net/posts/2019/09/stop-using-soliditys-transfer-now/[Learn more]. * * IMPORTANT: because control is transferred to `recipient`, care must be * taken to not create reentrancy vulnerabilities. Consider using * {ReentrancyGuard} or the * https://solidity.readthedocs.io/en/v0.5.11/security-considerations.html#use-the-checks-effects-interactions-pattern[checks-effects-interactions pattern]. */ function sendValue(address payable recipient, uint256 amount) internal { require(address(this).balance >= amount, "Address: insufficient balance"); // solhint-disable-next-line avoid-low-level-calls, avoid-call-value (bool success, ) = recipient.call{ value: amount }(""); require(success, "Address: unable to send value, recipient may have reverted"); } /** * @dev Performs a Solidity function call using a low level `call`. A * plain`call` is an unsafe replacement for a function call: use this * function instead. * * If `target` reverts with a revert reason, it is bubbled up by this * function (like regular Solidity function calls). * * Returns the raw returned data. To convert to the expected return value, * use https://solidity.readthedocs.io/en/latest/units-and-global-variables.html?highlight=abi.decode#abi-encoding-and-decoding-functions[`abi.decode`]. * * Requirements: * * - `target` must be a contract. * - calling `target` with `data` must not revert. * * _Available since v3.1._ */ function functionCall(address target, bytes memory data) internal returns (bytes memory) { return functionCall(target, data, "Address: low-level call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], but with * `errorMessage` as a fallback revert reason when `target` reverts. * * _Available since v3.1._ */ function functionCall(address target, bytes memory data, string memory errorMessage) internal returns (bytes memory) { return _functionCallWithValue(target, data, 0, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but also transferring `value` wei to `target`. * * Requirements: * * - the calling contract must have an ETH balance of at least `value`. * - the called Solidity function must be `payable`. * * _Available since v3.1._ */ function functionCallWithValue(address target, bytes memory data, uint256 value) internal returns (bytes memory) { return functionCallWithValue(target, data, value, "Address: low-level call with value failed"); } /** * @dev Same as {xref-Address-functionCallWithValue-address-bytes-uint256-}[`functionCallWithValue`], but * with `errorMessage` as a fallback revert reason when `target` reverts. * * _Available since v3.1._ */ function functionCallWithValue(address target, bytes memory data, uint256 value, string memory errorMessage) internal returns (bytes memory) { require(address(this).balance >= value, "Address: insufficient balance for call"); return _functionCallWithValue(target, data, value, errorMessage); } function _functionCallWithValue(address target, bytes memory data, uint256 weiValue, string memory errorMessage) private returns (bytes memory) { require(isContract(target), "Address: call to non-contract"); // solhint-disable-next-line avoid-low-level-calls (bool success, bytes memory returndata) = target.call{ value: weiValue }(data); if (success) { return returndata; } else { // Look for revert reason and bubble it up if present if (returndata.length > 0) { // The easiest way to bubble the revert reason is using memory via assembly // solhint-disable-next-line no-inline-assembly assembly { let returndata_size := mload(returndata) revert(add(32, returndata), returndata_size) } } else { revert(errorMessage); } } } } /** * @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"); } } } /** * @dev Library for managing * https://en.wikipedia.org/wiki/Set_(abstract_data_type)[sets] of primitive * types. * * Sets have the following properties: * * - Elements are added, removed, and checked for existence in constant time * (O(1)). * - Elements are enumerated in O(n). No guarantees are made on the ordering. * * ``` * contract Example { * // Add the library methods * using EnumerableSet for EnumerableSet.AddressSet; * * // Declare a set state variable * EnumerableSet.AddressSet private mySet; * } * ``` * * As of v3.0.0, only sets of type `address` (`AddressSet`) and `uint256` * (`UintSet`) are supported. */ library EnumerableSet { // To implement this library for multiple types with as little code // repetition as possible, we write it in terms of a generic Set type with // bytes32 values. // The Set implementation uses private functions, and user-facing // implementations (such as AddressSet) are just wrappers around the // underlying Set. // This means that we can only create new EnumerableSets for types that fit // in bytes32. struct Set { // Storage of set values bytes32[] _values; // Position of the value in the `values` array, plus 1 because index 0 // means a value is not in the set. mapping (bytes32 => uint256) _indexes; } /** * @dev Add a value to a set. O(1). * * Returns true if the value was added to the set, that is if it was not * already present. */ function _add(Set storage set, bytes32 value) private returns (bool) { if (!_contains(set, value)) { set._values.push(value); // The value is stored at length-1, but we add 1 to all indexes // and use 0 as a sentinel value set._indexes[value] = set._values.length; return true; } else { return false; } } /** * @dev Removes a value from a set. O(1). * * Returns true if the value was removed from the set, that is if it was * present. */ function _remove(Set storage set, bytes32 value) private returns (bool) { // We read and store the value's index to prevent multiple reads from the same storage slot uint256 valueIndex = set._indexes[value]; if (valueIndex != 0) { // Equivalent to contains(set, value) // To delete an element from the _values array in O(1), we swap the element to delete with the last one in // the array, and then remove the last element (sometimes called as 'swap and pop'). // This modifies the order of the array, as noted in {at}. uint256 toDeleteIndex = valueIndex - 1; uint256 lastIndex = set._values.length - 1; // When the value to delete is the last one, the swap operation is unnecessary. However, since this occurs // so rarely, we still do the swap anyway to avoid the gas cost of adding an 'if' statement. bytes32 lastvalue = set._values[lastIndex]; // Move the last value to the index where the value to delete is set._values[toDeleteIndex] = lastvalue; // Update the index for the moved value set._indexes[lastvalue] = toDeleteIndex + 1; // All indexes are 1-based // Delete the slot where the moved value was stored set._values.pop(); // Delete the index for the deleted slot delete set._indexes[value]; return true; } else { return false; } } /** * @dev Returns true if the value is in the set. O(1). */ function _contains(Set storage set, bytes32 value) private view returns (bool) { return set._indexes[value] != 0; } /** * @dev Returns the number of values on the set. O(1). */ function _length(Set storage set) private view returns (uint256) { return set._values.length; } /** * @dev Returns the value stored at position `index` in the set. O(1). * * Note that there are no guarantees on the ordering of values inside the * array, and it may change when more values are added or removed. * * Requirements: * * - `index` must be strictly less than {length}. */ function _at(Set storage set, uint256 index) private view returns (bytes32) { require(set._values.length > index, "EnumerableSet: index out of bounds"); return set._values[index]; } // AddressSet struct AddressSet { Set _inner; } /** * @dev Add a value to a set. O(1). * * Returns true if the value was added to the set, that is if it was not * already present. */ function add(AddressSet storage set, address value) internal returns (bool) { return _add(set._inner, bytes32(uint256(value))); } /** * @dev Removes a value from a set. O(1). * * Returns true if the value was removed from the set, that is if it was * present. */ function remove(AddressSet storage set, address value) internal returns (bool) { return _remove(set._inner, bytes32(uint256(value))); } /** * @dev Returns true if the value is in the set. O(1). */ function contains(AddressSet storage set, address value) internal view returns (bool) { return _contains(set._inner, bytes32(uint256(value))); } /** * @dev Returns the number of values in the set. O(1). */ function length(AddressSet storage set) internal view returns (uint256) { return _length(set._inner); } /** * @dev Returns the value stored at position `index` in the set. O(1). * * Note that there are no guarantees on the ordering of values inside the * array, and it may change when more values are added or removed. * * Requirements: * * - `index` must be strictly less than {length}. */ function at(AddressSet storage set, uint256 index) internal view returns (address) { return address(uint256(_at(set._inner, index))); } // UintSet struct UintSet { Set _inner; } /** * @dev Add a value to a set. O(1). * * Returns true if the value was added to the set, that is if it was not * already present. */ function add(UintSet storage set, uint256 value) internal returns (bool) { return _add(set._inner, bytes32(value)); } /** * @dev Removes a value from a set. O(1). * * Returns true if the value was removed from the set, that is if it was * present. */ function remove(UintSet storage set, uint256 value) internal returns (bool) { return _remove(set._inner, bytes32(value)); } /** * @dev Returns true if the value is in the set. O(1). */ function contains(UintSet storage set, uint256 value) internal view returns (bool) { return _contains(set._inner, bytes32(value)); } /** * @dev Returns the number of values on the set. O(1). */ function length(UintSet storage set) internal view returns (uint256) { return _length(set._inner); } /** * @dev Returns the value stored at position `index` in the set. O(1). * * Note that there are no guarantees on the ordering of values inside the * array, and it may change when more values are added or removed. * * Requirements: * * - `index` must be strictly less than {length}. */ function at(UintSet storage set, uint256 index) internal view returns (uint256) { return uint256(_at(set._inner, index)); } } /** * @dev Interface of the ERC165 standard, as defined in the * https://eips.ethereum.org/EIPS/eip-165[EIP]. * * Implementers can declare support of contract interfaces, which can then be * queried by others ({ERC165Checker}). * * For an implementation, see {ERC165}. */ interface IERC165 { /** * @dev Returns true if this contract implements the interface defined by * `interfaceId`. See the corresponding * https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified[EIP section] * to learn more about how these ids are created. * * This function call must use less than 30 000 gas. */ function supportsInterface(bytes4 interfaceId) external view returns (bool); } /** * @dev Implementation of the {IERC165} interface. * * Contracts may inherit from this and call {_registerInterface} to declare * their support of an interface. */ abstract contract ERC165 is IERC165 { /* * bytes4(keccak256('supportsInterface(bytes4)')) == 0x01ffc9a7 */ bytes4 private constant _INTERFACE_ID_ERC165 = 0x01ffc9a7; /** * @dev Mapping of interface ids to whether or not it's supported. */ mapping(bytes4 => bool) private _supportedInterfaces; constructor () internal { // Derived contracts need only register support for their own interfaces, // we register support for ERC165 itself here _registerInterface(_INTERFACE_ID_ERC165); } /** * @dev See {IERC165-supportsInterface}. * * Time complexity O(1), guaranteed to always use less than 30 000 gas. */ function supportsInterface(bytes4 interfaceId) public view override returns (bool) { return _supportedInterfaces[interfaceId]; } /** * @dev Registers the contract as an implementer of the interface defined by * `interfaceId`. Support of the actual ERC165 interface is automatic and * registering its interface id is not required. * * See {IERC165-supportsInterface}. * * Requirements: * * - `interfaceId` cannot be the ERC165 invalid interface (`0xffffffff`). */ function _registerInterface(bytes4 interfaceId) internal virtual { require(interfaceId != 0xffffffff, "ERC165: invalid interface id"); _supportedInterfaces[interfaceId] = true; } } /** @title ERC-1155 Multi Token Standard @dev See https://github.com/ethereum/EIPs/blob/master/EIPS/eip-1155.md Note: The ERC-165 identifier for this interface is 0xd9b67a26. */ interface IERC1155 is IERC165 { /** @dev Either `TransferSingle` or `TransferBatch` MUST emit when tokens are transferred, including zero value transfers as well as minting or burning (see "Safe Transfer Rules" section of the standard). The `_operator` argument MUST be msg.sender. The `_from` argument MUST be the address of the holder whose balance is decreased. The `_to` argument MUST be the address of the recipient whose balance is increased. The `_id` argument MUST be the token type being transferred. The `_value` argument MUST be the number of tokens the holder balance is decreased by and match what the recipient balance is increased by. When minting/creating tokens, the `_from` argument MUST be set to `0x0` (i.e. zero address). When burning/destroying tokens, the `_to` argument MUST be set to `0x0` (i.e. zero address). */ event TransferSingle(address indexed _operator, address indexed _from, address indexed _to, uint256 _id, uint256 _value); /** @dev Either `TransferSingle` or `TransferBatch` MUST emit when tokens are transferred, including zero value transfers as well as minting or burning (see "Safe Transfer Rules" section of the standard). The `_operator` argument MUST be msg.sender. The `_from` argument MUST be the address of the holder whose balance is decreased. The `_to` argument MUST be the address of the recipient whose balance is increased. The `_ids` argument MUST be the list of tokens being transferred. The `_values` argument MUST be the list of number of tokens (matching the list and order of tokens specified in _ids) the holder balance is decreased by and match what the recipient balance is increased by. When minting/creating tokens, the `_from` argument MUST be set to `0x0` (i.e. zero address). When burning/destroying tokens, the `_to` argument MUST be set to `0x0` (i.e. zero address). */ event TransferBatch(address indexed _operator, address indexed _from, address indexed _to, uint256[] _ids, uint256[] _values); /** @dev MUST emit when approval for a second party/operator address to manage all tokens for an owner address is enabled or disabled (absense of an event assumes disabled). */ event ApprovalForAll(address indexed _owner, address indexed _operator, bool _approved); /** @dev MUST emit when the URI is updated for a token ID. URIs are defined in RFC 3986. The URI MUST point a JSON file that conforms to the "ERC-1155 Metadata URI JSON Schema". */ event URI(string _value, uint256 indexed _id); /** @notice Transfers `_value` amount of an `_id` from the `_from` address to the `_to` address specified (with safety call). @dev Caller must be approved to manage the tokens being transferred out of the `_from` account (see "Approval" section of the standard). MUST revert if `_to` is the zero address. MUST revert if balance of holder for token `_id` is lower than the `_value` sent. MUST revert on any other error. MUST emit the `TransferSingle` event to reflect the balance change (see "Safe Transfer Rules" section of the standard). After the above conditions are met, this function MUST check if `_to` is a smart contract (e.g. code size > 0). If so, it MUST call `onERC1155Received` on `_to` and act appropriately (see "Safe Transfer Rules" section of the standard). @param _from Source address @param _to Target address @param _id ID of the token type @param _value Transfer amount @param _data Additional data with no specified format, MUST be sent unaltered in call to `onERC1155Received` on `_to` */ function safeTransferFrom(address _from, address _to, uint256 _id, uint256 _value, bytes calldata _data) external; /** @notice Transfers `_values` amount(s) of `_ids` from the `_from` address to the `_to` address specified (with safety call). @dev Caller must be approved to manage the tokens being transferred out of the `_from` account (see "Approval" section of the standard). MUST revert if `_to` is the zero address. MUST revert if length of `_ids` is not the same as length of `_values`. MUST revert if any of the balance(s) of the holder(s) for token(s) in `_ids` is lower than the respective amount(s) in `_values` sent to the recipient. MUST revert on any other error. MUST emit `TransferSingle` or `TransferBatch` event(s) such that all the balance changes are reflected (see "Safe Transfer Rules" section of the standard). Balance changes and events MUST follow the ordering of the arrays (_ids[0]/_values[0] before _ids[1]/_values[1], etc). After the above conditions for the transfer(s) in the batch are met, this function MUST check if `_to` is a smart contract (e.g. code size > 0). If so, it MUST call the relevant `ERC1155TokenReceiver` hook(s) on `_to` and act appropriately (see "Safe Transfer Rules" section of the standard). @param _from Source address @param _to Target address @param _ids IDs of each token type (order and length must match _values array) @param _values Transfer amounts per token type (order and length must match _ids array) @param _data Additional data with no specified format, MUST be sent unaltered in call to the `ERC1155TokenReceiver` hook(s) on `_to` */ function safeBatchTransferFrom(address _from, address _to, uint256[] calldata _ids, uint256[] calldata _values, bytes calldata _data) external; /** @notice Get the balance of an account's Tokens. @param _owner The address of the token holder @param _id ID of the Token @return The _owner's balance of the Token type requested */ function balanceOf(address _owner, uint256 _id) external view returns (uint256); /** @notice Get the balance of multiple account/token pairs @param _owners The addresses of the token holders @param _ids ID of the Tokens @return The _owner's balance of the Token types requested (i.e. balance for each (owner, id) pair) */ function balanceOfBatch(address[] calldata _owners, uint256[] calldata _ids) external view returns (uint256[] memory); /** @notice Enable or disable approval for a third party ("operator") to manage all of the caller's tokens. @dev MUST emit the ApprovalForAll event on success. @param _operator Address to add to the set of authorized operators @param _approved True if the operator is approved, false to revoke approval */ function setApprovalForAll(address _operator, bool _approved) external; /** @notice Queries the approval status of an operator for a given owner. @param _owner The owner of the Tokens @param _operator Address of authorized operator @return True if the operator is approved, false if not */ function isApprovedForAll(address _owner, address _operator) external view returns (bool); } /** * _Available since v3.1._ */ interface IERC1155Receiver is IERC165 { /** @dev Handles the receipt of a single ERC1155 token type. This function is called at the end of a `safeTransferFrom` after the balance has been updated. To accept the transfer, this must return `bytes4(keccak256("onERC1155Received(address,address,uint256,uint256,bytes)"))` (i.e. 0xf23a6e61, or its own function selector). @param operator The address which initiated the transfer (i.e. msg.sender) @param from The address which previously owned the token @param id The ID of the token being transferred @param value The amount of tokens being transferred @param data Additional data with no specified format @return `bytes4(keccak256("onERC1155Received(address,address,uint256,uint256,bytes)"))` if transfer is allowed */ function onERC1155Received( address operator, address from, uint256 id, uint256 value, bytes calldata data ) external returns(bytes4); /** @dev Handles the receipt of a multiple ERC1155 token types. This function is called at the end of a `safeBatchTransferFrom` after the balances have been updated. To accept the transfer(s), this must return `bytes4(keccak256("onERC1155BatchReceived(address,address,uint256[],uint256[],bytes)"))` (i.e. 0xbc197c81, or its own function selector). @param operator The address which initiated the batch transfer (i.e. msg.sender) @param from The address which previously owned the token @param ids An array containing ids of each token being transferred (order and length must match values array) @param values An array containing amounts of each token being transferred (order and length must match ids array) @param data Additional data with no specified format @return `bytes4(keccak256("onERC1155BatchReceived(address,address,uint256[],uint256[],bytes)"))` if transfer is allowed */ function onERC1155BatchReceived( address operator, address from, uint256[] calldata ids, uint256[] calldata values, bytes calldata data ) external returns(bytes4); } abstract contract ERC1155Receiver is ERC165, IERC1155Receiver { constructor() internal { _registerInterface( ERC1155Receiver(0).onERC1155Received.selector ^ ERC1155Receiver(0).onERC1155BatchReceived.selector ); } } /* * @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; } } /** * @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. */ 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 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; } } /** * @dev Implementation of the {IERC20} interface. * * This implementation is agnostic to the way tokens are created. This means * that a supply mechanism has to be added in a derived contract using {_mint}. * For a generic mechanism see {ERC20PresetMinterPauser}. * * TIP: For a detailed writeup see our guide * https://forum.zeppelin.solutions/t/how-to-implement-erc20-supply-mechanisms/226[How * to implement supply mechanisms]. * * We have followed general OpenZeppelin guidelines: functions revert instead * of returning `false` on failure. This behavior is nonetheless conventional * and does not conflict with the expectations of ERC20 applications. * * Additionally, an {Approval} event is emitted on calls to {transferFrom}. * This allows applications to reconstruct the allowance for all accounts just * by listening to said events. Other implementations of the EIP may not emit * these events, as it isn't required by the specification. * * Finally, the non-standard {decreaseAllowance} and {increaseAllowance} * functions have been added to mitigate the well-known issues around setting * allowances. See {IERC20-approve}. */ contract ERC20 is Context, IERC20 { using SafeMath for uint256; using Address for address; mapping (address => uint256) private _balances; mapping (address => mapping (address => uint256)) private _allowances; uint256 private _totalSupply; string private _name; string private _symbol; uint8 private _decimals; /** * @dev Sets the values for {name} and {symbol}, initializes {decimals} with * a default value of 18. * * To select a different value for {decimals}, use {_setupDecimals}. * * All three of these values are immutable: they can only be set once during * construction. */ constructor (string memory name, string memory symbol) public { _name = name; _symbol = symbol; _decimals = 18; } /** * @dev Returns the name of the token. */ function name() public view returns (string memory) { return _name; } /** * @dev Returns the symbol of the token, usually a shorter version of the * name. */ function symbol() public view returns (string memory) { return _symbol; } /** * @dev Returns the number of decimals used to get its user representation. * For example, if `decimals` equals `2`, a balance of `505` tokens should * be displayed to a user as `5,05` (`505 / 10 ** 2`). * * Tokens usually opt for a value of 18, imitating the relationship between * Ether and Wei. This is the value {ERC20} uses, unless {_setupDecimals} is * called. * * NOTE: This information is only used for _display_ purposes: it in * no way affects any of the arithmetic of the contract, including * {IERC20-balanceOf} and {IERC20-transfer}. */ function decimals() public view returns (uint8) { return _decimals; } /** * @dev See {IERC20-totalSupply}. */ function totalSupply() public view override returns (uint256) { return _totalSupply; } /** * @dev See {IERC20-balanceOf}. */ function balanceOf(address account) public view override returns (uint256) { return _balances[account]; } /** * @dev See {IERC20-transfer}. * * Requirements: * * - `recipient` cannot be the zero address. * - the caller must have a balance of at least `amount`. */ function transfer(address recipient, uint256 amount) public virtual override returns (bool) { _transfer(_msgSender(), recipient, amount); return true; } /** * @dev See {IERC20-allowance}. */ function allowance(address owner, address spender) public view virtual override returns (uint256) { return _allowances[owner][spender]; } /** * @dev See {IERC20-approve}. * * Requirements: * * - `spender` cannot be the zero address. */ function approve(address spender, uint256 amount) public virtual override returns (bool) { _approve(_msgSender(), spender, amount); return true; } /** * @dev See {IERC20-transferFrom}. * * Emits an {Approval} event indicating the updated allowance. This is not * required by the EIP. See the note at the beginning of {ERC20}; * * Requirements: * - `sender` and `recipient` cannot be the zero address. * - `sender` must have a balance of at least `amount`. * - the caller must have allowance for ``sender``'s tokens of at least * `amount`. */ function transferFrom(address sender, address recipient, uint256 amount) public virtual override returns (bool) { _transfer(sender, recipient, amount); _approve(sender, _msgSender(), _allowances[sender][_msgSender()].sub(amount, "ERC20: transfer amount exceeds allowance")); return true; } /** * @dev Atomically increases the allowance granted to `spender` by the caller. * * This is an alternative to {approve} that can be used as a mitigation for * problems described in {IERC20-approve}. * * Emits an {Approval} event indicating the updated allowance. * * Requirements: * * - `spender` cannot be the zero address. */ function increaseAllowance(address spender, uint256 addedValue) public virtual returns (bool) { _approve(_msgSender(), spender, _allowances[_msgSender()][spender].add(addedValue)); return true; } /** * @dev Atomically decreases the allowance granted to `spender` by the caller. * * This is an alternative to {approve} that can be used as a mitigation for * problems described in {IERC20-approve}. * * Emits an {Approval} event indicating the updated allowance. * * Requirements: * * - `spender` cannot be the zero address. * - `spender` must have allowance for the caller of at least * `subtractedValue`. */ function decreaseAllowance(address spender, uint256 subtractedValue) public virtual returns (bool) { _approve(_msgSender(), spender, _allowances[_msgSender()][spender].sub(subtractedValue, "ERC20: decreased allowance below zero")); return true; } /** * @dev Moves tokens `amount` from `sender` to `recipient`. * * This is internal function is equivalent to {transfer}, and can be used to * e.g. implement automatic token fees, slashing mechanisms, etc. * * Emits a {Transfer} event. * * Requirements: * * - `sender` cannot be the zero address. * - `recipient` cannot be the zero address. * - `sender` must have a balance of at least `amount`. */ function _transfer(address sender, address recipient, uint256 amount) internal virtual { require(sender != address(0), "ERC20: transfer from the zero address"); require(recipient != address(0), "ERC20: transfer to the zero address"); _beforeTokenTransfer(sender, recipient, amount); _balances[sender] = _balances[sender].sub(amount, "ERC20: transfer amount exceeds balance"); _balances[recipient] = _balances[recipient].add(amount); emit Transfer(sender, recipient, amount); } /** @dev Creates `amount` tokens and assigns them to `account`, increasing * the total supply. * * Emits a {Transfer} event with `from` set to the zero address. * * Requirements * * - `to` cannot be the zero address. */ function _mint(address account, uint256 amount) internal virtual { require(account != address(0), "ERC20: mint to the zero address"); _beforeTokenTransfer(address(0), account, amount); _totalSupply = _totalSupply.add(amount); _balances[account] = _balances[account].add(amount); emit Transfer(address(0), account, amount); } /** * @dev Destroys `amount` tokens from `account`, reducing the * total supply. * * Emits a {Transfer} event with `to` set to the zero address. * * Requirements * * - `account` cannot be the zero address. * - `account` must have at least `amount` tokens. */ function _burn(address account, uint256 amount) internal virtual { require(account != address(0), "ERC20: burn from the zero address"); _beforeTokenTransfer(account, address(0), amount); _balances[account] = _balances[account].sub(amount, "ERC20: burn amount exceeds balance"); _totalSupply = _totalSupply.sub(amount); emit Transfer(account, address(0), amount); } /** * @dev Sets `amount` as the allowance of `spender` over the `owner`s tokens. * * This is internal function is equivalent to `approve`, and can be used to * e.g. set automatic allowances for certain subsystems, etc. * * Emits an {Approval} event. * * Requirements: * * - `owner` cannot be the zero address. * - `spender` cannot be the zero address. */ function _approve(address owner, address spender, uint256 amount) internal virtual { require(owner != address(0), "ERC20: approve from the zero address"); require(spender != address(0), "ERC20: approve to the zero address"); _allowances[owner][spender] = amount; emit Approval(owner, spender, amount); } /** * @dev Sets {decimals} to a value other than the default one of 18. * * WARNING: This function should only be called from the constructor. Most * applications that interact with token contracts will not expect * {decimals} to ever change, and may work incorrectly if it does. */ function _setupDecimals(uint8 decimals_) internal { _decimals = decimals_; } /** * @dev Hook that is called before any transfer of tokens. This includes * minting and burning. * * Calling conditions: * * - when `from` and `to` are both non-zero, `amount` of ``from``'s tokens * will be to transferred to `to`. * - when `from` is zero, `amount` tokens will be minted for `to`. * - when `to` is zero, `amount` of ``from``'s tokens will be burned. * - `from` and `to` are never both zero. * * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks]. */ function _beforeTokenTransfer(address from, address to, uint256 amount) internal virtual { } } contract GovernanceContract is Ownable { mapping(address => bool) public governanceContracts; event GovernanceContractAdded(address addr); event GovernanceContractRemoved(address addr); modifier onlyGovernanceContracts() { require(governanceContracts[msg.sender]); _; } function addAddressToGovernanceContract(address addr) onlyOwner public returns(bool success) { if (!governanceContracts[addr]) { governanceContracts[addr] = true; emit GovernanceContractAdded(addr); success = true; } } function removeAddressFromGovernanceContract(address addr) onlyOwner public returns(bool success) { if (governanceContracts[addr]) { governanceContracts[addr] = false; emit GovernanceContractRemoved(addr); success = true; } } } contract MilkyWayToken is ERC20("MilkyWay Token by SpaceSwap v2", "MILK2"), GovernanceContract { uint256 private _totalBurned; /** * @dev See {IERC20-totalSupply}. */ function totalBurned() public view returns (uint256) { return _totalBurned; } /// @notice Creates `_amount` token to `_to`. Must only be called by the Governance Contracts function mint(address _to, uint256 _amount) public onlyGovernanceContracts virtual returns (bool) { _mint(_to, _amount); _moveDelegates(address(0), _delegates[_to], _amount); return true; } /// @notice Creates `_amount` token to `_to`. Must only be called by the Governance Contracts function burn(address _to, uint256 _amount) public onlyGovernanceContracts virtual returns (bool) { _burn(_to, _amount); _totalBurned = _totalBurned.add(_amount); _moveDelegates(_delegates[_to], address(0), _amount); return true; } // Copied and modified from YAM code: // https://github.com/yam-finance/yam-protocol/blob/master/contracts/token/YAMGovernanceStorage.sol // https://github.com/yam-finance/yam-protocol/blob/master/contracts/token/YAMGovernance.sol // Which is copied and modified from COMPOUND: // https://github.com/compound-finance/compound-protocol/blob/master/contracts/Governance/Comp.sol // @notice A record of each accounts delegate mapping (address => address) internal _delegates; /// @notice A checkpoint for marking number of votes from a given block struct Checkpoint { uint32 fromBlock; uint256 votes; } /// @notice A record of votes checkpoints for each account, by index mapping (address => mapping (uint32 => Checkpoint)) public checkpoints; /// @notice The number of checkpoints for each account mapping (address => uint32) public numCheckpoints; /// @notice The EIP-712 typehash for the contract's domain bytes32 public constant DOMAIN_TYPEHASH = keccak256("EIP712Domain(string name,uint256 chainId,address verifyingContract)"); /// @notice The EIP-712 typehash for the delegation struct used by the contract bytes32 public constant DELEGATION_TYPEHASH = keccak256("Delegation(address delegatee,uint256 nonce,uint256 expiry)"); /// @notice A record of states for signing / validating signatures mapping (address => uint) public nonces; /// @notice An event that's emitted when an account changes its delegate event DelegateChanged(address indexed delegator, address indexed fromDelegate, address indexed toDelegate); /// @notice An event that's emitted when a delegate account's vote balance changes event DelegateVotesChanged(address indexed delegate, uint previousBalance, uint newBalance); /** * @notice Delegate votes from `msg.sender` to `delegatee` * @param delegator The address to get delegatee for */ function delegates(address delegator) external view returns (address) { return _delegates[delegator]; } /** * @notice Delegate votes from `msg.sender` to `delegatee` * @param delegatee The address to delegate votes to */ function delegate(address delegatee) external { return _delegate(msg.sender, delegatee); } /** * @notice Delegates votes from signatory to `delegatee` * @param delegatee The address to delegate votes to * @param nonce The contract state required to match the signature * @param expiry The time at which to expire the signature * @param v The recovery byte of the signature * @param r Half of the ECDSA signature pair * @param s Half of the ECDSA signature pair */ function delegateBySig( address delegatee, uint nonce, uint expiry, uint8 v, bytes32 r, bytes32 s ) external { bytes32 domainSeparator = keccak256( abi.encode( DOMAIN_TYPEHASH, keccak256(bytes(name())), getChainId(), address(this) ) ); bytes32 structHash = keccak256( abi.encode( DELEGATION_TYPEHASH, delegatee, nonce, expiry ) ); bytes32 digest = keccak256( abi.encodePacked( "\x19\x01", domainSeparator, structHash ) ); address signatory = ecrecover(digest, v, r, s); require(signatory != address(0), "MILKYWAY::delegateBySig: invalid signature"); require(nonce == nonces[signatory]++, "MILKYWAY::delegateBySig: invalid nonce"); require(now <= expiry, "MILKYWAY::delegateBySig: signature expired"); return _delegate(signatory, delegatee); } /** * @notice Gets the current votes balance for `account` * @param account The address to get votes balance * @return The number of current votes for `account` */ function getCurrentVotes(address account) external view returns (uint256) { uint32 nCheckpoints = numCheckpoints[account]; return nCheckpoints > 0 ? checkpoints[account][nCheckpoints - 1].votes : 0; } /** * @notice Determine the prior number of votes for an account as of a block number * @dev Block number must be a finalized block or else this function will revert to prevent misinformation. * @param account The address of the account to check * @param blockNumber The block number to get the vote balance at * @return The number of votes the account had as of the given block */ function getPriorVotes(address account, uint blockNumber) external view returns (uint256) { require(blockNumber < block.number, "MILKYWAY::getPriorVotes: not yet determined"); uint32 nCheckpoints = numCheckpoints[account]; if (nCheckpoints == 0) { return 0; } // First check most recent balance if (checkpoints[account][nCheckpoints - 1].fromBlock <= blockNumber) { return checkpoints[account][nCheckpoints - 1].votes; } // Next check implicit zero balance if (checkpoints[account][0].fromBlock > blockNumber) { return 0; } uint32 lower = 0; uint32 upper = nCheckpoints - 1; while (upper > lower) { uint32 center = upper - (upper - lower) / 2; // ceil, avoiding overflow Checkpoint memory cp = checkpoints[account][center]; if (cp.fromBlock == blockNumber) { return cp.votes; } else if (cp.fromBlock < blockNumber) { lower = center; } else { upper = center - 1; } } return checkpoints[account][lower].votes; } function _delegate(address delegator, address delegatee) internal { address currentDelegate = _delegates[delegator]; uint256 delegatorBalance = balanceOf(delegator); // balance of underlying MILKYWAY (not scaled); _delegates[delegator] = delegatee; emit DelegateChanged(delegator, currentDelegate, delegatee); _moveDelegates(currentDelegate, delegatee, delegatorBalance); } function _moveDelegates(address srcRep, address dstRep, uint256 amount) internal { if (srcRep != dstRep && amount > 0) { if (srcRep != address(0)) { // decrease old representative uint32 srcRepNum = numCheckpoints[srcRep]; uint256 srcRepOld = srcRepNum > 0 ? checkpoints[srcRep][srcRepNum - 1].votes : 0; uint256 srcRepNew = srcRepOld.sub(amount); _writeCheckpoint(srcRep, srcRepNum, srcRepOld, srcRepNew); } if (dstRep != address(0)) { // increase new representative uint32 dstRepNum = numCheckpoints[dstRep]; uint256 dstRepOld = dstRepNum > 0 ? checkpoints[dstRep][dstRepNum - 1].votes : 0; uint256 dstRepNew = dstRepOld.add(amount); _writeCheckpoint(dstRep, dstRepNum, dstRepOld, dstRepNew); } } } function _writeCheckpoint( address delegatee, uint32 nCheckpoints, uint256 oldVotes, uint256 newVotes ) internal { uint32 blockNumber = safe32(block.number, "MILKYWAY::_writeCheckpoint: block number exceeds 32 bits"); if (nCheckpoints > 0 && checkpoints[delegatee][nCheckpoints - 1].fromBlock == blockNumber) { checkpoints[delegatee][nCheckpoints - 1].votes = newVotes; } else { checkpoints[delegatee][nCheckpoints] = Checkpoint(blockNumber, newVotes); numCheckpoints[delegatee] = nCheckpoints + 1; } emit DelegateVotesChanged(delegatee, oldVotes, newVotes); } function safe32(uint n, string memory errorMessage) internal pure returns (uint32) { require(n < 2**32, errorMessage); return uint32(n); } function getChainId() internal pure returns (uint) { uint256 chainId; assembly { chainId := chainid() } return chainId; } } /** // Note that it's ownable and the owner wields tremendous power. The ownership // will be transferred to a governance smart contract once MILKYWAY is sufficiently // distributed and the community can show to govern itself. // // Have fun reading it. Hopefully it's bug-free. God bless. */ contract GalaxyNFT is Ownable, ERC1155Receiver { using SafeMath for uint256; using SafeERC20 for IERC20; // Info of each user. struct UserInfo { uint256 amount; // How many NFT tokens the user has provided. uint256 rewardDebt; // Reward debt. See explanation below. } // Info of each pool. struct PoolInfo { uint256 nftId; // NFT ID uint256 allocPoint; // How many allocation points assigned to this pool. MILK2s to distribute per block. uint256 lastRewardBlock; // Last block number that MILK2s distribution occurs. uint256 accMilkPerShare; // Accumulated MILK2s per share, times 1e12. See below. } // The MILKYWAY_Token! MilkyWayToken public milk; IERC1155 public NFTToken; IERC20 public lpToken; // Dev address. address public devAddr; // Distribution address. address public distributor; // The block number when MILK2 mining starts. uint256 public startBlock; uint256 internal milkPerBlock = 250; // 2.5 // Info of each pool. PoolInfo[] public poolInfo; // Info of each user that stakes NFT tokens. mapping (uint256 => mapping (address => UserInfo)) public userInfo; // Total allocation points. Must be the sum of all allocation points in all pools. uint256 public totalAllocPoint = 0; event Deposit(address indexed user, uint256 indexed pid, uint256 amount); event Withdraw(address indexed user, uint256 indexed pid, uint256 amount); event EmergencyWithdraw(address indexed user, uint256 indexed pid, uint256 amount); constructor(MilkyWayToken _milk, IERC1155 _nft, address _devAddr, address _distributor, uint256 _startBlock, IERC20 _lpToken) public{ milk = _milk; NFTToken = _nft; devAddr = _devAddr; distributor = _distributor; startBlock = _startBlock; lpToken = _lpToken; } function setMilkPerBlock(uint256 _newAmount) public onlyOwner{ milkPerBlock = _newAmount; } // view length of liquidity pools function poolLength() external view returns (uint256) { return poolInfo.length; } function approvalNFTTransfers() public onlyOwner { NFTToken.setApprovalForAll(address(this), true); } // Add a new NFT to the pool. Can only be called by the owner. // XXX DO NOT add the same NFT token more than once. Rewards will be messed up if you do. function addFarmingToken(uint256 _allocPoint, uint256 _nftId, bool _withUpdate) public onlyOwner { if (_withUpdate) { massUpdatePools(); } uint256 lastRewardBlock = block.number > startBlock ? block.number : startBlock; totalAllocPoint = totalAllocPoint.add(_allocPoint); poolInfo.push(PoolInfo({nftId: _nftId, allocPoint: _allocPoint, lastRewardBlock: lastRewardBlock, accMilkPerShare: 0 })); } // Update the given pool's MILK2 allocation point. Can only be called by the owner. function setFarmingToken(uint256 _pid, uint256 _allocPoint, bool _withUpdate) public onlyOwner { if (_withUpdate) { massUpdatePools(); } totalAllocPoint = totalAllocPoint.sub(poolInfo[_pid].allocPoint).add(_allocPoint); poolInfo[_pid].allocPoint = _allocPoint; } // Return reward multiplier over the given _from to _to block. function getMultiplier(uint256 _from, uint256 _to) public view returns (uint256) { return _to.sub(_from).mul(milkPerBlock); } // View current block reward in MILK2s function getCurrentBlockReward() public view returns (uint256) { return milkPerBlock; } // View function to see pending MILK2s on frontend. function pendingMilk(uint256 _pid, address _user) external view returns (uint256) { PoolInfo storage pool = poolInfo[_pid]; UserInfo storage user = userInfo[_pid][_user]; uint256 accMilkPerShare = pool.accMilkPerShare; uint256 NFTSupply = NFTToken.balanceOf(address(this), pool.nftId); if (block.number > pool.lastRewardBlock && NFTSupply != 0) { uint256 multiplier = getMultiplier(pool.lastRewardBlock, block.number); uint256 milkReward = (multiplier.mul(1e16)).mul(pool.allocPoint).div(totalAllocPoint); accMilkPerShare = accMilkPerShare.add(milkReward.mul(1e12).div(NFTSupply)); } return user.amount.mul(accMilkPerShare).div(1e12).sub(user.rewardDebt); } // Update reward variables for all pools. Be careful of gas spending! function massUpdatePools() public { uint256 length = poolInfo.length; for (uint256 pid = 0; pid < length; ++pid) { updatePool(pid); } } // Update reward variables of the given pool to be up-to-date. function updatePool(uint256 _pid) public { PoolInfo storage pool = poolInfo[_pid]; if (block.number <= pool.lastRewardBlock) { return; } uint256 NFTSupply = NFTToken.balanceOf(address(this), pool.nftId); if (NFTSupply == 0) { pool.lastRewardBlock = block.number; return; } uint256 multiplier = getMultiplier(pool.lastRewardBlock, block.number); uint256 milkReward = multiplier.mul(1e16).mul(pool.allocPoint).div(totalAllocPoint); milk.mint(devAddr, milkReward.mul(3).div(100)); // 3% developers milk.mint(distributor, milkReward.div(100)); // 1% shakeHolders milk.mint(address(this), milkReward); pool.accMilkPerShare = pool.accMilkPerShare.add(milkReward.mul(1e12).div(NFTSupply)); pool.lastRewardBlock = block.number; } // Deposit NFT tokens to Interstellar for MILK allocation. function depositFarmingToken(uint256 _pid, uint256 _amount) public { require(lpToken.balanceOf(msg.sender) > 0, "Insufficient LPtoken balance"); PoolInfo storage pool = poolInfo[_pid]; UserInfo storage user = userInfo[_pid][msg.sender]; updatePool(_pid); if (user.amount > 0) { uint256 pending = user.amount.mul(pool.accMilkPerShare).div(1e12).sub(user.rewardDebt); safeMilkTransfer(msg.sender, pending); } NFTToken.safeTransferFrom(address(msg.sender), address(this), pool.nftId, _amount, ""); // user.amount = user.amount.add(_amount); user.rewardDebt = user.amount.mul(pool.accMilkPerShare).div(1e12); emit Deposit(msg.sender, _pid, _amount); } // Withdraw NFT tokens from Interstellar. function withdrawFarmingToken(uint256 _pid, uint256 _amount) public { require(lpToken.balanceOf(msg.sender) > 0, "Insufficient LPtoken balance"); PoolInfo storage pool = poolInfo[_pid]; UserInfo storage user = userInfo[_pid][msg.sender]; require(user.amount >= _amount, "withdraw: not good"); updatePool(_pid); uint256 pending = user.amount.mul(pool.accMilkPerShare).div(1e12).sub(user.rewardDebt); safeMilkTransfer(msg.sender, pending); user.amount = user.amount.sub(_amount); user.rewardDebt = user.amount.mul(pool.accMilkPerShare).div(1e12); NFTToken.safeTransferFrom(address(this), address(msg.sender), pool.nftId, _amount, ""); emit Withdraw(msg.sender, _pid, _amount); } // Withdraw without caring about rewards. EMERGENCY ONLY. function emergencyWithdrawFarmingToken(uint256 _pid) public { PoolInfo storage pool = poolInfo[_pid]; UserInfo storage user = userInfo[_pid][msg.sender]; NFTToken.safeTransferFrom(address(this), address(msg.sender), pool.nftId, user.amount, ""); emit EmergencyWithdraw(msg.sender, _pid, user.amount); user.amount = 0; user.rewardDebt = 0; } // Safe milk2 transfer function, just in case if rounding error causes pool to not have enough MILK2s. function safeMilkTransfer(address _to, uint256 _amount) internal { uint256 milkBal = milk.balanceOf(address(this)); if (_amount > milkBal) { milk.transfer(_to, milkBal); } else { milk.transfer(_to, _amount); } } // Update dev address by the previous dev. function setDevAddress(address _devAddr) public { require(msg.sender == devAddr, "dev: wut?"); devAddr = _devAddr; } // Update distributor address by the previous dev. function updateDistributor(address _distributor) public { require(msg.sender == devAddr, "dev: wut?"); distributor = _distributor; } function onERC1155Received(address, address, uint256, uint256, bytes calldata) external override returns (bytes4) { return IERC1155Receiver.onERC1155Received.selector; } function onERC1155BatchReceived(address, address, uint256[] calldata, uint256[] calldata , bytes calldata) external override returns (bytes4) { return IERC1155Receiver.onERC1155BatchReceived.selector; } }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"inputs":[{"internalType":"contract MilkyWayToken","name":"_milk","type":"address"},{"internalType":"contract IERC1155","name":"_nft","type":"address"},{"internalType":"address","name":"_devAddr","type":"address"},{"internalType":"address","name":"_distributor","type":"address"},{"internalType":"uint256","name":"_startBlock","type":"uint256"},{"internalType":"contract IERC20","name":"_lpToken","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"user","type":"address"},{"indexed":true,"internalType":"uint256","name":"pid","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"Deposit","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"user","type":"address"},{"indexed":true,"internalType":"uint256","name":"pid","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"EmergencyWithdraw","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"user","type":"address"},{"indexed":true,"internalType":"uint256","name":"pid","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"Withdraw","type":"event"},{"inputs":[],"name":"NFTToken","outputs":[{"internalType":"contract IERC1155","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_allocPoint","type":"uint256"},{"internalType":"uint256","name":"_nftId","type":"uint256"},{"internalType":"bool","name":"_withUpdate","type":"bool"}],"name":"addFarmingToken","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"approvalNFTTransfers","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_pid","type":"uint256"},{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"depositFarmingToken","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"devAddr","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"distributor","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_pid","type":"uint256"}],"name":"emergencyWithdrawFarmingToken","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"getCurrentBlockReward","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_from","type":"uint256"},{"internalType":"uint256","name":"_to","type":"uint256"}],"name":"getMultiplier","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"lpToken","outputs":[{"internalType":"contract IERC20","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"massUpdatePools","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"milk","outputs":[{"internalType":"contract MilkyWayToken","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"},{"internalType":"address","name":"","type":"address"},{"internalType":"uint256[]","name":"","type":"uint256[]"},{"internalType":"uint256[]","name":"","type":"uint256[]"},{"internalType":"bytes","name":"","type":"bytes"}],"name":"onERC1155BatchReceived","outputs":[{"internalType":"bytes4","name":"","type":"bytes4"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"},{"internalType":"address","name":"","type":"address"},{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"bytes","name":"","type":"bytes"}],"name":"onERC1155Received","outputs":[{"internalType":"bytes4","name":"","type":"bytes4"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_pid","type":"uint256"},{"internalType":"address","name":"_user","type":"address"}],"name":"pendingMilk","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"poolInfo","outputs":[{"internalType":"uint256","name":"nftId","type":"uint256"},{"internalType":"uint256","name":"allocPoint","type":"uint256"},{"internalType":"uint256","name":"lastRewardBlock","type":"uint256"},{"internalType":"uint256","name":"accMilkPerShare","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"poolLength","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_devAddr","type":"address"}],"name":"setDevAddress","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_pid","type":"uint256"},{"internalType":"uint256","name":"_allocPoint","type":"uint256"},{"internalType":"bool","name":"_withUpdate","type":"bool"}],"name":"setFarmingToken","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_newAmount","type":"uint256"}],"name":"setMilkPerBlock","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"startBlock","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalAllocPoint","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":[{"internalType":"address","name":"_distributor","type":"address"}],"name":"updateDistributor","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_pid","type":"uint256"}],"name":"updatePool","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"address","name":"","type":"address"}],"name":"userInfo","outputs":[{"internalType":"uint256","name":"amount","type":"uint256"},{"internalType":"uint256","name":"rewardDebt","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_pid","type":"uint256"},{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"withdrawFarmingToken","outputs":[],"stateMutability":"nonpayable","type":"function"}]
Contract Creation Code
608060405260fa6008556000600b553480156200001b57600080fd5b5060405162001e5a38038062001e5a833981810160405260c08110156200004157600080fd5b508051602082015160408301516060840151608085015160a090950151939492939192909160006200007262000147565b600080546001600160a01b0319166001600160a01b0383169081178255604051929350917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908290a350620000ce6301ffc9a760e01b6200014b565b620000e0630271189760e51b6200014b565b600280546001600160a01b03199081166001600160a01b0398891617909155600380548216968816969096179095556005805486169487169490941790935560068054851692861692909217909155600755600480549092169216919091179055620001d3565b3390565b6001600160e01b03198082161415620001ab576040805162461bcd60e51b815260206004820152601c60248201527f4552433136353a20696e76616c696420696e7465726661636520696400000000604482015290519081900360640190fd5b6001600160e01b0319166000908152600160208190526040909120805460ff19169091179055565b611c7780620001e36000396000f3fe608060405234801561001057600080fd5b50600436106101da5760003560e01c80637d06717311610104578063bfe10928116100a2578063da09c72c11610071578063da09c72c146105fc578063dbf8b16814610604578063f23a6e611461060c578063f2fde38b1461069f576101da565b8063bfe10928146105be578063c08d4146146105c6578063c1d021cb146105ce578063d0d41fe1146105d6576101da565b80638dbb1e3a116100de5780638dbb1e3a146103ec57806393f1a40b1461040f578063bc197c8114610454578063bc30a61814610598576101da565b80637d0671731461039c57806388b03ced146103c75780638da5cb5b146103e4576101da565b80631e8f743a1161017c5780635fcbd2851161014b5780635fcbd28514610345578063630b5ba114610369578063715018a6146103715780637613d76414610379576101da565b80631e8f743a146102fb57806348cd4cb1146103185780634a80d7bd1461032057806351eb05a614610328576101da565b8063134f032b116101b8578063134f032b146102595780631526fe27146102855780631714facb146102c857806317caf6f1146102f3576101da565b806301ffc9a7146101df578063081e3eda1461021a57806311fed5f514610234575b600080fd5b610206600480360360208110156101f557600080fd5b50356001600160e01b0319166106c5565b604080519115158252519081900360200190f35b6102226106e4565b60408051918252519081900360200190f35b6102576004803603604081101561024a57600080fd5b50803590602001356106ea565b005b6102226004803603604081101561026f57600080fd5b50803590602001356001600160a01b0316610939565b6102a26004803603602081101561029b57600080fd5b5035610aae565b604080519485526020850193909352838301919091526060830152519081900360800190f35b610257600480360360608110156102de57600080fd5b50803590602081013590604001351515610ae5565b610222610bb6565b6102576004803603602081101561031157600080fd5b5035610bbc565b610222610c19565b610222610c1f565b6102576004803603602081101561033e57600080fd5b5035610c25565b61034d610f0f565b604080516001600160a01b039092168252519081900360200190f35b610257610f1e565b610257610f41565b6102576004803603604081101561038f57600080fd5b5080359060200135610fe3565b610257600480360360608110156103b257600080fd5b50803590602081013590604001351515611268565b610257600480360360208110156103dd57600080fd5b50356113c4565b61034d6114cb565b6102226004803603604081101561040257600080fd5b50803590602001356114da565b61043b6004803603604081101561042557600080fd5b50803590602001356001600160a01b03166114f5565b6040805192835260208301919091528051918290030190f35b61057b600480360360a081101561046a57600080fd5b6001600160a01b038235811692602081013590911691810190606081016040820135600160201b81111561049d57600080fd5b8201836020820111156104af57600080fd5b803590602001918460208302840111600160201b831117156104d057600080fd5b919390929091602081019035600160201b8111156104ed57600080fd5b8201836020820111156104ff57600080fd5b803590602001918460208302840111600160201b8311171561052057600080fd5b919390929091602081019035600160201b81111561053d57600080fd5b82018360208201111561054f57600080fd5b803590602001918460018302840111600160201b8311171561057057600080fd5b509092509050611519565b604080516001600160e01b03199092168252519081900360200190f35b610257600480360360208110156105ae57600080fd5b50356001600160a01b031661152d565b61034d61159a565b6102576115a9565b61034d61166e565b610257600480360360208110156105ec57600080fd5b50356001600160a01b031661167d565b61034d6116ea565b61034d6116f9565b61057b600480360360a081101561062257600080fd5b6001600160a01b03823581169260208101359091169160408201359160608101359181019060a081016080820135600160201b81111561066157600080fd5b82018360208201111561067357600080fd5b803590602001918460018302840111600160201b8311171561069457600080fd5b509092509050611708565b610257600480360360208110156106b557600080fd5b50356001600160a01b031661171a565b6001600160e01b03191660009081526001602052604090205460ff1690565b60095490565b60048054604080516370a0823160e01b81523393810193909352516000926001600160a01b03909216916370a08231916024808301926020929190829003018186803b15801561073957600080fd5b505afa15801561074d573d6000803e3d6000fd5b505050506040513d602081101561076357600080fd5b5051116107b7576040805162461bcd60e51b815260206004820152601c60248201527f496e73756666696369656e74204c50746f6b656e2062616c616e636500000000604482015290519081900360640190fd5b6000600983815481106107c657fe5b60009182526020808320868452600a825260408085203386529092529220600490910290910191506107f784610c25565b805415610846576000610838826001015461083264e8d4a5100061082c8760030154876000015461181290919063ffffffff16565b9061186b565b906118ad565b905061084433826118ef565b505b600354825460408051637921219560e11b815233600482015230602482015260448101929092526064820186905260a06084830152600060a4830181905290516001600160a01b039093169263f242432a9260e480820193929182900301818387803b1580156108b557600080fd5b505af11580156108c9573d6000803e3d6000fd5b505082546108da9250905084611a80565b80825560038301546108f79164e8d4a510009161082c9190611812565b6001820155604080518481529051859133917f90890809c654f11d6e72a28fa60149770a0d11ec6c92319d6ceb2bb0a4ea1a159181900360200190a350505050565b6000806009848154811061094957fe5b60009182526020808320878452600a825260408085206001600160a01b03808a1687529084528186206003600496870290940184810154945481548551627eeac760e11b8152309981019990995260248901529351909850909693959394929091169262fdd58e926044808301939192829003018186803b1580156109cd57600080fd5b505afa1580156109e1573d6000803e3d6000fd5b505050506040513d60208110156109f757600080fd5b5051600285015490915043118015610a0e57508015155b15610a79576000610a238560020154436114da565b90506000610a55600b5461082c8860010154610a4f662386f26fc100008761181290919063ffffffff16565b90611812565b9050610a74610a6d8461082c8464e8d4a51000611812565b8590611a80565b935050505b610aa1836001015461083264e8d4a5100061082c86886000015461181290919063ffffffff16565b9450505050505b92915050565b60098181548110610abb57fe5b60009182526020909120600490910201805460018201546002830154600390930154919350919084565b610aed611ada565b6000546001600160a01b03908116911614610b3d576040805162461bcd60e51b81526020600482018190526024820152600080516020611c22833981519152604482015290519081900360640190fd5b8015610b4b57610b4b610f1e565b610b8882610b8260098681548110610b5f57fe5b906000526020600020906004020160010154600b546118ad90919063ffffffff16565b90611a80565b600b819055508160098481548110610b9c57fe5b906000526020600020906004020160010181905550505050565b600b5481565b610bc4611ada565b6000546001600160a01b03908116911614610c14576040805162461bcd60e51b81526020600482018190526024820152600080516020611c22833981519152604482015290519081900360640190fd5b600855565b60075481565b60085490565b600060098281548110610c3457fe5b9060005260206000209060040201905080600201544311610c555750610f0c565b600354815460408051627eeac760e11b81523060048201526024810192909252516000926001600160a01b03169162fdd58e916044808301926020929190829003018186803b158015610ca757600080fd5b505afa158015610cbb573d6000803e3d6000fd5b505050506040513d6020811015610cd157600080fd5b5051905080610ce7575043600290910155610f0c565b6000610cf78360020154436114da565b90506000610d23600b5461082c8660010154610a4f662386f26fc100008761181290919063ffffffff16565b6002546005549192506001600160a01b03908116916340c10f199116610d4f606461082c866003611812565b6040518363ffffffff1660e01b815260040180836001600160a01b0316815260200182815260200192505050602060405180830381600087803b158015610d9557600080fd5b505af1158015610da9573d6000803e3d6000fd5b505050506040513d6020811015610dbf57600080fd5b50506002546006546001600160a01b03918216916340c10f199116610de584606461186b565b6040518363ffffffff1660e01b815260040180836001600160a01b0316815260200182815260200192505050602060405180830381600087803b158015610e2b57600080fd5b505af1158015610e3f573d6000803e3d6000fd5b505050506040513d6020811015610e5557600080fd5b5050600254604080516340c10f1960e01b81523060048201526024810184905290516001600160a01b03909216916340c10f19916044808201926020929091908290030181600087803b158015610eab57600080fd5b505af1158015610ebf573d6000803e3d6000fd5b505050506040513d6020811015610ed557600080fd5b50610ef99050610eee8461082c8464e8d4a51000611812565b600386015490611a80565b6003850155505043600290920191909155505b50565b6004546001600160a01b031681565b60095460005b81811015610f3d57610f3581610c25565b600101610f24565b5050565b610f49611ada565b6000546001600160a01b03908116911614610f99576040805162461bcd60e51b81526020600482018190526024820152600080516020611c22833981519152604482015290519081900360640190fd5b600080546040516001600160a01b03909116907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908390a3600080546001600160a01b0319169055565b60048054604080516370a0823160e01b81523393810193909352516000926001600160a01b03909216916370a08231916024808301926020929190829003018186803b15801561103257600080fd5b505afa158015611046573d6000803e3d6000fd5b505050506040513d602081101561105c57600080fd5b5051116110b0576040805162461bcd60e51b815260206004820152601c60248201527f496e73756666696369656e74204c50746f6b656e2062616c616e636500000000604482015290519081900360640190fd5b6000600983815481106110bf57fe5b60009182526020808320868452600a825260408085203386529092529220805460049092029092019250831115611132576040805162461bcd60e51b81526020600482015260126024820152711dda5d1a191c985dce881b9bdd0819dbdbd960721b604482015290519081900360640190fd5b61113b84610c25565b6000611169826001015461083264e8d4a5100061082c8760030154876000015461181290919063ffffffff16565b905061117533826118ef565b815461118190856118ad565b808355600384015461119e9164e8d4a510009161082c9190611812565b6001830155600354835460408051637921219560e11b815230600482015233602482015260448101929092526064820187905260a06084830152600060a4830181905290516001600160a01b039093169263f242432a9260e480820193929182900301818387803b15801561121257600080fd5b505af1158015611226573d6000803e3d6000fd5b50506040805187815290518893503392507ff279e6a1f5e320cca91135676d9cb6e44ca8a08c0b88342bcdb1144f6511b5689181900360200190a35050505050565b611270611ada565b6000546001600160a01b039081169116146112c0576040805162461bcd60e51b81526020600482018190526024820152600080516020611c22833981519152604482015290519081900360640190fd5b80156112ce576112ce610f1e565b600060075443116112e1576007546112e3565b435b600b549091506112f39085611a80565b600b556040805160808101825293845260208401948552830190815260006060840181815260098054600181018255925293517f6e1540171b6c0c960b71a7020d9f60077f6af931a8bbf590da0223dacf75c7af60049092029182015593517f6e1540171b6c0c960b71a7020d9f60077f6af931a8bbf590da0223dacf75c7b0850155517f6e1540171b6c0c960b71a7020d9f60077f6af931a8bbf590da0223dacf75c7b184015550517f6e1540171b6c0c960b71a7020d9f60077f6af931a8bbf590da0223dacf75c7b290910155565b6000600982815481106113d357fe5b60009182526020808320858452600a825260408085203380875293528085206003546004958602909301805482548451637921219560e11b8152309881019890985260248801969096526044870152606486019490945260a0608486015260a485018690529051929550936001600160a01b039091169263f242432a9260e4808301939282900301818387803b15801561146c57600080fd5b505af1158015611480573d6000803e3d6000fd5b5050825460408051918252518693503392507fbb757047c2b5f3974fe26b7c10f732e7bce710b0952a71082702781e62ae05959181900360200190a360008082556001909101555050565b6000546001600160a01b031690565b6008546000906114ee90610a4f84866118ad565b9392505050565b600a6020908152600092835260408084209091529082529020805460019091015482565b63bc197c8160e01b98975050505050505050565b6005546001600160a01b03163314611578576040805162461bcd60e51b81526020600482015260096024820152686465763a207775743f60b81b604482015290519081900360640190fd5b600680546001600160a01b0319166001600160a01b0392909216919091179055565b6006546001600160a01b031681565b6115b1611ada565b6000546001600160a01b03908116911614611601576040805162461bcd60e51b81526020600482018190526024820152600080516020611c22833981519152604482015290519081900360640190fd5b6003546040805163a22cb46560e01b81523060048201526001602482015290516001600160a01b039092169163a22cb4659160448082019260009290919082900301818387803b15801561165457600080fd5b505af1158015611668573d6000803e3d6000fd5b50505050565b6003546001600160a01b031681565b6005546001600160a01b031633146116c8576040805162461bcd60e51b81526020600482015260096024820152686465763a207775743f60b81b604482015290519081900360640190fd5b600580546001600160a01b0319166001600160a01b0392909216919091179055565b6005546001600160a01b031681565b6002546001600160a01b031681565b63f23a6e6160e01b9695505050505050565b611722611ada565b6000546001600160a01b03908116911614611772576040805162461bcd60e51b81526020600482018190526024820152600080516020611c22833981519152604482015290519081900360640190fd5b6001600160a01b0381166117b75760405162461bcd60e51b8152600401808060200182810382526026815260200180611bdb6026913960400191505060405180910390fd5b600080546040516001600160a01b03808516939216917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e091a3600080546001600160a01b0319166001600160a01b0392909216919091179055565b60008261182157506000610aa8565b8282028284828161182e57fe5b04146114ee5760405162461bcd60e51b8152600401808060200182810382526021815260200180611c016021913960400191505060405180910390fd5b60006114ee83836040518060400160405280601a81526020017f536166654d6174683a206469766973696f6e206279207a65726f000000000000815250611ade565b60006114ee83836040518060400160405280601e81526020017f536166654d6174683a207375627472616374696f6e206f766572666c6f770000815250611b80565b600254604080516370a0823160e01b815230600482015290516000926001600160a01b0316916370a08231916024808301926020929190829003018186803b15801561193a57600080fd5b505afa15801561194e573d6000803e3d6000fd5b505050506040513d602081101561196457600080fd5b50519050808211156119f8576002546040805163a9059cbb60e01b81526001600160a01b038681166004830152602482018590529151919092169163a9059cbb9160448083019260209291908290030181600087803b1580156119c657600080fd5b505af11580156119da573d6000803e3d6000fd5b505050506040513d60208110156119f057600080fd5b50611a7b9050565b6002546040805163a9059cbb60e01b81526001600160a01b038681166004830152602482018690529151919092169163a9059cbb9160448083019260209291908290030181600087803b158015611a4e57600080fd5b505af1158015611a62573d6000803e3d6000fd5b505050506040513d6020811015611a7857600080fd5b50505b505050565b6000828201838110156114ee576040805162461bcd60e51b815260206004820152601b60248201527f536166654d6174683a206164646974696f6e206f766572666c6f770000000000604482015290519081900360640190fd5b3390565b60008183611b6a5760405162461bcd60e51b81526004018080602001828103825283818151815260200191508051906020019080838360005b83811015611b2f578181015183820152602001611b17565b50505050905090810190601f168015611b5c5780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b506000838581611b7657fe5b0495945050505050565b60008184841115611bd25760405162461bcd60e51b8152602060048201818152835160248401528351909283926044909101919085019080838360008315611b2f578181015183820152602001611b17565b50505090039056fe4f776e61626c653a206e6577206f776e657220697320746865207a65726f2061646472657373536166654d6174683a206d756c7469706c69636174696f6e206f766572666c6f774f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572a26469706673582212206818fad092c48f4ab46fd79a7f15ef0be3bcbf08c8f86f3c115d83eb4246be3664736f6c634300060c003300000000000000000000000080c8c3dcfb854f9542567c8dac3f44d709ebc1de00000000000000000000000077ec5a5ecf2d3942d45cb059fa1c86a262ec855b00000000000000000000000072d49544d17e3c98b0f94d97ee851981279f3aa9000000000000000000000000956754c96377f26a5b0035e7638515382aecb9070000000000000000000000000000000000000000000000000000000000ada2640000000000000000000000008f30ba1f75ec27a014591789d117a1bb4703bff8
Deployed Bytecode
0x608060405234801561001057600080fd5b50600436106101da5760003560e01c80637d06717311610104578063bfe10928116100a2578063da09c72c11610071578063da09c72c146105fc578063dbf8b16814610604578063f23a6e611461060c578063f2fde38b1461069f576101da565b8063bfe10928146105be578063c08d4146146105c6578063c1d021cb146105ce578063d0d41fe1146105d6576101da565b80638dbb1e3a116100de5780638dbb1e3a146103ec57806393f1a40b1461040f578063bc197c8114610454578063bc30a61814610598576101da565b80637d0671731461039c57806388b03ced146103c75780638da5cb5b146103e4576101da565b80631e8f743a1161017c5780635fcbd2851161014b5780635fcbd28514610345578063630b5ba114610369578063715018a6146103715780637613d76414610379576101da565b80631e8f743a146102fb57806348cd4cb1146103185780634a80d7bd1461032057806351eb05a614610328576101da565b8063134f032b116101b8578063134f032b146102595780631526fe27146102855780631714facb146102c857806317caf6f1146102f3576101da565b806301ffc9a7146101df578063081e3eda1461021a57806311fed5f514610234575b600080fd5b610206600480360360208110156101f557600080fd5b50356001600160e01b0319166106c5565b604080519115158252519081900360200190f35b6102226106e4565b60408051918252519081900360200190f35b6102576004803603604081101561024a57600080fd5b50803590602001356106ea565b005b6102226004803603604081101561026f57600080fd5b50803590602001356001600160a01b0316610939565b6102a26004803603602081101561029b57600080fd5b5035610aae565b604080519485526020850193909352838301919091526060830152519081900360800190f35b610257600480360360608110156102de57600080fd5b50803590602081013590604001351515610ae5565b610222610bb6565b6102576004803603602081101561031157600080fd5b5035610bbc565b610222610c19565b610222610c1f565b6102576004803603602081101561033e57600080fd5b5035610c25565b61034d610f0f565b604080516001600160a01b039092168252519081900360200190f35b610257610f1e565b610257610f41565b6102576004803603604081101561038f57600080fd5b5080359060200135610fe3565b610257600480360360608110156103b257600080fd5b50803590602081013590604001351515611268565b610257600480360360208110156103dd57600080fd5b50356113c4565b61034d6114cb565b6102226004803603604081101561040257600080fd5b50803590602001356114da565b61043b6004803603604081101561042557600080fd5b50803590602001356001600160a01b03166114f5565b6040805192835260208301919091528051918290030190f35b61057b600480360360a081101561046a57600080fd5b6001600160a01b038235811692602081013590911691810190606081016040820135600160201b81111561049d57600080fd5b8201836020820111156104af57600080fd5b803590602001918460208302840111600160201b831117156104d057600080fd5b919390929091602081019035600160201b8111156104ed57600080fd5b8201836020820111156104ff57600080fd5b803590602001918460208302840111600160201b8311171561052057600080fd5b919390929091602081019035600160201b81111561053d57600080fd5b82018360208201111561054f57600080fd5b803590602001918460018302840111600160201b8311171561057057600080fd5b509092509050611519565b604080516001600160e01b03199092168252519081900360200190f35b610257600480360360208110156105ae57600080fd5b50356001600160a01b031661152d565b61034d61159a565b6102576115a9565b61034d61166e565b610257600480360360208110156105ec57600080fd5b50356001600160a01b031661167d565b61034d6116ea565b61034d6116f9565b61057b600480360360a081101561062257600080fd5b6001600160a01b03823581169260208101359091169160408201359160608101359181019060a081016080820135600160201b81111561066157600080fd5b82018360208201111561067357600080fd5b803590602001918460018302840111600160201b8311171561069457600080fd5b509092509050611708565b610257600480360360208110156106b557600080fd5b50356001600160a01b031661171a565b6001600160e01b03191660009081526001602052604090205460ff1690565b60095490565b60048054604080516370a0823160e01b81523393810193909352516000926001600160a01b03909216916370a08231916024808301926020929190829003018186803b15801561073957600080fd5b505afa15801561074d573d6000803e3d6000fd5b505050506040513d602081101561076357600080fd5b5051116107b7576040805162461bcd60e51b815260206004820152601c60248201527f496e73756666696369656e74204c50746f6b656e2062616c616e636500000000604482015290519081900360640190fd5b6000600983815481106107c657fe5b60009182526020808320868452600a825260408085203386529092529220600490910290910191506107f784610c25565b805415610846576000610838826001015461083264e8d4a5100061082c8760030154876000015461181290919063ffffffff16565b9061186b565b906118ad565b905061084433826118ef565b505b600354825460408051637921219560e11b815233600482015230602482015260448101929092526064820186905260a06084830152600060a4830181905290516001600160a01b039093169263f242432a9260e480820193929182900301818387803b1580156108b557600080fd5b505af11580156108c9573d6000803e3d6000fd5b505082546108da9250905084611a80565b80825560038301546108f79164e8d4a510009161082c9190611812565b6001820155604080518481529051859133917f90890809c654f11d6e72a28fa60149770a0d11ec6c92319d6ceb2bb0a4ea1a159181900360200190a350505050565b6000806009848154811061094957fe5b60009182526020808320878452600a825260408085206001600160a01b03808a1687529084528186206003600496870290940184810154945481548551627eeac760e11b8152309981019990995260248901529351909850909693959394929091169262fdd58e926044808301939192829003018186803b1580156109cd57600080fd5b505afa1580156109e1573d6000803e3d6000fd5b505050506040513d60208110156109f757600080fd5b5051600285015490915043118015610a0e57508015155b15610a79576000610a238560020154436114da565b90506000610a55600b5461082c8860010154610a4f662386f26fc100008761181290919063ffffffff16565b90611812565b9050610a74610a6d8461082c8464e8d4a51000611812565b8590611a80565b935050505b610aa1836001015461083264e8d4a5100061082c86886000015461181290919063ffffffff16565b9450505050505b92915050565b60098181548110610abb57fe5b60009182526020909120600490910201805460018201546002830154600390930154919350919084565b610aed611ada565b6000546001600160a01b03908116911614610b3d576040805162461bcd60e51b81526020600482018190526024820152600080516020611c22833981519152604482015290519081900360640190fd5b8015610b4b57610b4b610f1e565b610b8882610b8260098681548110610b5f57fe5b906000526020600020906004020160010154600b546118ad90919063ffffffff16565b90611a80565b600b819055508160098481548110610b9c57fe5b906000526020600020906004020160010181905550505050565b600b5481565b610bc4611ada565b6000546001600160a01b03908116911614610c14576040805162461bcd60e51b81526020600482018190526024820152600080516020611c22833981519152604482015290519081900360640190fd5b600855565b60075481565b60085490565b600060098281548110610c3457fe5b9060005260206000209060040201905080600201544311610c555750610f0c565b600354815460408051627eeac760e11b81523060048201526024810192909252516000926001600160a01b03169162fdd58e916044808301926020929190829003018186803b158015610ca757600080fd5b505afa158015610cbb573d6000803e3d6000fd5b505050506040513d6020811015610cd157600080fd5b5051905080610ce7575043600290910155610f0c565b6000610cf78360020154436114da565b90506000610d23600b5461082c8660010154610a4f662386f26fc100008761181290919063ffffffff16565b6002546005549192506001600160a01b03908116916340c10f199116610d4f606461082c866003611812565b6040518363ffffffff1660e01b815260040180836001600160a01b0316815260200182815260200192505050602060405180830381600087803b158015610d9557600080fd5b505af1158015610da9573d6000803e3d6000fd5b505050506040513d6020811015610dbf57600080fd5b50506002546006546001600160a01b03918216916340c10f199116610de584606461186b565b6040518363ffffffff1660e01b815260040180836001600160a01b0316815260200182815260200192505050602060405180830381600087803b158015610e2b57600080fd5b505af1158015610e3f573d6000803e3d6000fd5b505050506040513d6020811015610e5557600080fd5b5050600254604080516340c10f1960e01b81523060048201526024810184905290516001600160a01b03909216916340c10f19916044808201926020929091908290030181600087803b158015610eab57600080fd5b505af1158015610ebf573d6000803e3d6000fd5b505050506040513d6020811015610ed557600080fd5b50610ef99050610eee8461082c8464e8d4a51000611812565b600386015490611a80565b6003850155505043600290920191909155505b50565b6004546001600160a01b031681565b60095460005b81811015610f3d57610f3581610c25565b600101610f24565b5050565b610f49611ada565b6000546001600160a01b03908116911614610f99576040805162461bcd60e51b81526020600482018190526024820152600080516020611c22833981519152604482015290519081900360640190fd5b600080546040516001600160a01b03909116907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908390a3600080546001600160a01b0319169055565b60048054604080516370a0823160e01b81523393810193909352516000926001600160a01b03909216916370a08231916024808301926020929190829003018186803b15801561103257600080fd5b505afa158015611046573d6000803e3d6000fd5b505050506040513d602081101561105c57600080fd5b5051116110b0576040805162461bcd60e51b815260206004820152601c60248201527f496e73756666696369656e74204c50746f6b656e2062616c616e636500000000604482015290519081900360640190fd5b6000600983815481106110bf57fe5b60009182526020808320868452600a825260408085203386529092529220805460049092029092019250831115611132576040805162461bcd60e51b81526020600482015260126024820152711dda5d1a191c985dce881b9bdd0819dbdbd960721b604482015290519081900360640190fd5b61113b84610c25565b6000611169826001015461083264e8d4a5100061082c8760030154876000015461181290919063ffffffff16565b905061117533826118ef565b815461118190856118ad565b808355600384015461119e9164e8d4a510009161082c9190611812565b6001830155600354835460408051637921219560e11b815230600482015233602482015260448101929092526064820187905260a06084830152600060a4830181905290516001600160a01b039093169263f242432a9260e480820193929182900301818387803b15801561121257600080fd5b505af1158015611226573d6000803e3d6000fd5b50506040805187815290518893503392507ff279e6a1f5e320cca91135676d9cb6e44ca8a08c0b88342bcdb1144f6511b5689181900360200190a35050505050565b611270611ada565b6000546001600160a01b039081169116146112c0576040805162461bcd60e51b81526020600482018190526024820152600080516020611c22833981519152604482015290519081900360640190fd5b80156112ce576112ce610f1e565b600060075443116112e1576007546112e3565b435b600b549091506112f39085611a80565b600b556040805160808101825293845260208401948552830190815260006060840181815260098054600181018255925293517f6e1540171b6c0c960b71a7020d9f60077f6af931a8bbf590da0223dacf75c7af60049092029182015593517f6e1540171b6c0c960b71a7020d9f60077f6af931a8bbf590da0223dacf75c7b0850155517f6e1540171b6c0c960b71a7020d9f60077f6af931a8bbf590da0223dacf75c7b184015550517f6e1540171b6c0c960b71a7020d9f60077f6af931a8bbf590da0223dacf75c7b290910155565b6000600982815481106113d357fe5b60009182526020808320858452600a825260408085203380875293528085206003546004958602909301805482548451637921219560e11b8152309881019890985260248801969096526044870152606486019490945260a0608486015260a485018690529051929550936001600160a01b039091169263f242432a9260e4808301939282900301818387803b15801561146c57600080fd5b505af1158015611480573d6000803e3d6000fd5b5050825460408051918252518693503392507fbb757047c2b5f3974fe26b7c10f732e7bce710b0952a71082702781e62ae05959181900360200190a360008082556001909101555050565b6000546001600160a01b031690565b6008546000906114ee90610a4f84866118ad565b9392505050565b600a6020908152600092835260408084209091529082529020805460019091015482565b63bc197c8160e01b98975050505050505050565b6005546001600160a01b03163314611578576040805162461bcd60e51b81526020600482015260096024820152686465763a207775743f60b81b604482015290519081900360640190fd5b600680546001600160a01b0319166001600160a01b0392909216919091179055565b6006546001600160a01b031681565b6115b1611ada565b6000546001600160a01b03908116911614611601576040805162461bcd60e51b81526020600482018190526024820152600080516020611c22833981519152604482015290519081900360640190fd5b6003546040805163a22cb46560e01b81523060048201526001602482015290516001600160a01b039092169163a22cb4659160448082019260009290919082900301818387803b15801561165457600080fd5b505af1158015611668573d6000803e3d6000fd5b50505050565b6003546001600160a01b031681565b6005546001600160a01b031633146116c8576040805162461bcd60e51b81526020600482015260096024820152686465763a207775743f60b81b604482015290519081900360640190fd5b600580546001600160a01b0319166001600160a01b0392909216919091179055565b6005546001600160a01b031681565b6002546001600160a01b031681565b63f23a6e6160e01b9695505050505050565b611722611ada565b6000546001600160a01b03908116911614611772576040805162461bcd60e51b81526020600482018190526024820152600080516020611c22833981519152604482015290519081900360640190fd5b6001600160a01b0381166117b75760405162461bcd60e51b8152600401808060200182810382526026815260200180611bdb6026913960400191505060405180910390fd5b600080546040516001600160a01b03808516939216917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e091a3600080546001600160a01b0319166001600160a01b0392909216919091179055565b60008261182157506000610aa8565b8282028284828161182e57fe5b04146114ee5760405162461bcd60e51b8152600401808060200182810382526021815260200180611c016021913960400191505060405180910390fd5b60006114ee83836040518060400160405280601a81526020017f536166654d6174683a206469766973696f6e206279207a65726f000000000000815250611ade565b60006114ee83836040518060400160405280601e81526020017f536166654d6174683a207375627472616374696f6e206f766572666c6f770000815250611b80565b600254604080516370a0823160e01b815230600482015290516000926001600160a01b0316916370a08231916024808301926020929190829003018186803b15801561193a57600080fd5b505afa15801561194e573d6000803e3d6000fd5b505050506040513d602081101561196457600080fd5b50519050808211156119f8576002546040805163a9059cbb60e01b81526001600160a01b038681166004830152602482018590529151919092169163a9059cbb9160448083019260209291908290030181600087803b1580156119c657600080fd5b505af11580156119da573d6000803e3d6000fd5b505050506040513d60208110156119f057600080fd5b50611a7b9050565b6002546040805163a9059cbb60e01b81526001600160a01b038681166004830152602482018690529151919092169163a9059cbb9160448083019260209291908290030181600087803b158015611a4e57600080fd5b505af1158015611a62573d6000803e3d6000fd5b505050506040513d6020811015611a7857600080fd5b50505b505050565b6000828201838110156114ee576040805162461bcd60e51b815260206004820152601b60248201527f536166654d6174683a206164646974696f6e206f766572666c6f770000000000604482015290519081900360640190fd5b3390565b60008183611b6a5760405162461bcd60e51b81526004018080602001828103825283818151815260200191508051906020019080838360005b83811015611b2f578181015183820152602001611b17565b50505050905090810190601f168015611b5c5780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b506000838581611b7657fe5b0495945050505050565b60008184841115611bd25760405162461bcd60e51b8152602060048201818152835160248401528351909283926044909101919085019080838360008315611b2f578181015183820152602001611b17565b50505090039056fe4f776e61626c653a206e6577206f776e657220697320746865207a65726f2061646472657373536166654d6174683a206d756c7469706c69636174696f6e206f766572666c6f774f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572a26469706673582212206818fad092c48f4ab46fd79a7f15ef0be3bcbf08c8f86f3c115d83eb4246be3664736f6c634300060c0033
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
00000000000000000000000080c8c3dcfb854f9542567c8dac3f44d709ebc1de00000000000000000000000077ec5a5ecf2d3942d45cb059fa1c86a262ec855b00000000000000000000000072d49544d17e3c98b0f94d97ee851981279f3aa9000000000000000000000000956754c96377f26a5b0035e7638515382aecb9070000000000000000000000000000000000000000000000000000000000ada2640000000000000000000000008f30ba1f75ec27a014591789d117a1bb4703bff8
-----Decoded View---------------
Arg [0] : _milk (address): 0x80c8C3dCfB854f9542567c8Dac3f44D709eBc1de
Arg [1] : _nft (address): 0x77EC5a5ecf2d3942D45cB059FA1c86a262Ec855b
Arg [2] : _devAddr (address): 0x72d49544D17e3C98B0f94D97eE851981279f3aa9
Arg [3] : _distributor (address): 0x956754C96377F26A5b0035E7638515382aEcB907
Arg [4] : _startBlock (uint256): 11379300
Arg [5] : _lpToken (address): 0x8f30ba1F75ec27A014591789d117a1Bb4703bFF8
-----Encoded View---------------
6 Constructor Arguments found :
Arg [0] : 00000000000000000000000080c8c3dcfb854f9542567c8dac3f44d709ebc1de
Arg [1] : 00000000000000000000000077ec5a5ecf2d3942d45cb059fa1c86a262ec855b
Arg [2] : 00000000000000000000000072d49544d17e3c98b0f94d97ee851981279f3aa9
Arg [3] : 000000000000000000000000956754c96377f26a5b0035e7638515382aecb907
Arg [4] : 0000000000000000000000000000000000000000000000000000000000ada264
Arg [5] : 0000000000000000000000008f30ba1f75ec27a014591789d117a1bb4703bff8
Deployed Bytecode Sourcemap
63230:9352:0:-:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;27528:142;;;;;;;;;;;;;;;;-1:-1:-1;27528:142:0;-1:-1:-1;;;;;;27528:142:0;;:::i;:::-;;;;;;;;;;;;;;;;;;65391:95;;;:::i;:::-;;;;;;;;;;;;;;;;69271:772;;;;;;;;;;;;;;;;-1:-1:-1;69271:772:0;;;;;;;:::i;:::-;;67204:766;;;;;;;;;;;;;;;;-1:-1:-1;67204:766:0;;;;;;-1:-1:-1;;;;;67204:766:0;;:::i;64365:26::-;;;;;;;;;;;;;;;;-1:-1:-1;64365:26:0;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;66449:316;;;;;;;;;;;;;;;;-1:-1:-1;66449:316:0;;;;;;;;;;;;;;:::i;64613:34::-;;;:::i;65237:105::-;;;;;;;;;;;;;;;;-1:-1:-1;65237:105:0;;:::i;64253:25::-;;;:::i;67036:101::-;;;:::i;68313:884::-;;;;;;;;;;;;;;;;-1:-1:-1;68313:884:0;;:::i;64055:21::-;;;:::i;:::-;;;;-1:-1:-1;;;;;64055:21:0;;;;;;;;;;;;;;68055:180;;;:::i;40985:148::-;;;:::i;70098:776::-;;;;;;;;;;;;;;;;-1:-1:-1;70098:776:0;;;;;;;:::i;65784:566::-;;;;;;;;;;;;;;;;-1:-1:-1;65784:566:0;;;;;;;;;;;;;;:::i;70945:399::-;;;;;;;;;;;;;;;;-1:-1:-1;70945:399:0;;:::i;40343:79::-;;;:::i;66843:139::-;;;;;;;;;;;;;;;;-1:-1:-1;66843:139:0;;;;;;;:::i;64450:66::-;;;;;;;;;;;;;;;;-1:-1:-1;64450:66:0;;;;;;-1:-1:-1;;;;;64450:66:0;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;72361:216;;;;;;;;;;;;;;;;-1:-1:-1;;;;;72361:216:0;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;72361:216:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;72361:216:0;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;72361:216:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;72361:216:0;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;72361:216:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;72361:216:0;;;;;;;;;;-1:-1:-1;72361:216:0;;-1:-1:-1;72361:216:0;-1:-1:-1;72361:216:0;:::i;:::-;;;;-1:-1:-1;;;;;;72361:216:0;;;;;;;;;;;;;;72003:155;;;;;;;;;;;;;;;;-1:-1:-1;72003:155:0;-1:-1:-1;;;;;72003:155:0;;:::i;64167:26::-;;;:::i;65496:115::-;;;:::i;64022:24::-;;;:::i;71798:139::-;;;;;;;;;;;;;;;;-1:-1:-1;71798:139:0;-1:-1:-1;;;;;71798:139:0;;:::i;64106:22::-;;;:::i;63988:25::-;;;:::i;72168:183::-;;;;;;;;;;;;;;;;-1:-1:-1;;;;;72168:183:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;72168:183:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;72168:183:0;;;;;;;;;;-1:-1:-1;72168:183:0;;-1:-1:-1;72168:183:0;-1:-1:-1;72168:183:0;:::i;41288:244::-;;;;;;;;;;;;;;;;-1:-1:-1;41288:244:0;-1:-1:-1;;;;;41288:244:0;;:::i;27528:142::-;-1:-1:-1;;;;;;27629:33:0;27605:4;27629:33;;;:20;:33;;;;;;;;;27528:142::o;65391:95::-;65463:8;:15;65391:95;:::o;69271:772::-;69357:7;;;:29;;;-1:-1:-1;;;69357:29:0;;69375:10;69357:29;;;;;;;;69389:1;;-1:-1:-1;;;;;69357:7:0;;;;:17;;:29;;;;;;;;;;;;;;:7;:29;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;69357:29:0;:33;69349:74;;;;;-1:-1:-1;;;69349:74:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;69434:21;69458:8;69467:4;69458:14;;;;;;;;;;;;;;;;69507;;;:8;:14;;;;;;69522:10;69507:26;;;;;;;69458:14;;;;;;;;-1:-1:-1;69544:16:0;69516:4;69544:10;:16::i;:::-;69577:11;;:15;69573:186;;69609:15;69627:68;69679:4;:15;;;69627:47;69669:4;69627:37;69643:4;:20;;;69627:4;:11;;;:15;;:37;;;;:::i;:::-;:41;;:47::i;:::-;:51;;:68::i;:::-;69609:86;;69710:37;69727:10;69739:7;69710:16;:37::i;:::-;69573:186;;69771:8;;69833:10;;69771:86;;;-1:-1:-1;;;69771:86:0;;69805:10;69771:86;;;;69826:4;69771:86;;;;;;;;;;;;;;;;;;;;;;:8;:86;;;;;;;;-1:-1:-1;;;;;69771:8:0;;;;:25;;:86;;;;;:8;:86;;;;;;:8;;:86;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;69885:11:0;;:24;;-1:-1:-1;69885:11:0;-1:-1:-1;69901:7:0;69885:15;:24::i;:::-;69871:38;;;69954:20;;;;69938:47;;69980:4;;69938:37;;69871:38;69938:15;:37::i;:47::-;69920:15;;;:65;70001:34;;;;;;;;70021:4;;70009:10;;70001:34;;;;;;;;;69271:772;;;;:::o;67204:766::-;67277:7;67297:21;67321:8;67330:4;67321:14;;;;;;;;;;;;;;;;67370;;;:8;:14;;;;;;-1:-1:-1;;;;;67370:21:0;;;;;;;;;;;67428:20;67321:14;;;;;;;67428:20;;;;67479:8;;67513:10;;67479:45;;-1:-1:-1;;;67479:45:0;;67506:4;67479:45;;;;;;;;;;;;;67321:14;;-1:-1:-1;67370:21:0;;67428:20;;67321:14;;67479:8;;;;;:18;;:45;;;;;67321:14;;67479:45;;;;;:8;:45;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;67479:45:0;67556:20;;;;67479:45;;-1:-1:-1;67541:12:0;:35;:53;;;;-1:-1:-1;67580:14:0;;;67541:53;67537:345;;;67611:18;67632:49;67646:4;:20;;;67668:12;67632:13;:49::i;:::-;67611:70;;67696:18;67717:64;67765:15;;67717:43;67744:4;:15;;;67718:20;67733:4;67718:10;:14;;:20;;;;:::i;:::-;67717:26;;:43::i;:64::-;67696:85;-1:-1:-1;67814:56:0;67834:35;67859:9;67834:20;67696:85;67849:4;67834:14;:20::i;:35::-;67814:15;;:19;:56::i;:::-;67796:74;;67537:345;;;67899:63;67946:4;:15;;;67899:42;67936:4;67899:32;67915:15;67899:4;:11;;;:15;;:32;;;;:::i;:63::-;67892:70;;;;;;67204:766;;;;;:::o;64365:26::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;64365:26:0;;;:::o;66449:316::-;40565:12;:10;:12::i;:::-;40555:6;;-1:-1:-1;;;;;40555:6:0;;;:22;;;40547:67;;;;;-1:-1:-1;;;40547:67:0;;;;;;;;;;;;;-1:-1:-1;;;;;;;;;;;40547:67:0;;;;;;;;;;;;;;;66559:11:::1;66555:61;;;66587:17;:15;:17::i;:::-;66644:63;66695:11;66644:46;66664:8;66673:4;66664:14;;;;;;;;;;;;;;;;;;:25;;;66644:15;;:19;;:46;;;;:::i;:::-;:50:::0;::::1;:63::i;:::-;66626:15;:81;;;;66746:11;66718:8;66727:4;66718:14;;;;;;;;;;;;;;;;;;:25;;:39;;;;66449:316:::0;;;:::o;64613:34::-;;;;:::o;65237:105::-;40565:12;:10;:12::i;:::-;40555:6;;-1:-1:-1;;;;;40555:6:0;;;:22;;;40547:67;;;;;-1:-1:-1;;;40547:67:0;;;;;;;;;;;;;-1:-1:-1;;;;;;;;;;;40547:67:0;;;;;;;;;;;;;;;65309:12:::1;:25:::0;65237:105::o;64253:25::-;;;;:::o;67036:101::-;67117:12;;67036:101;:::o;68313:884::-;68365:21;68389:8;68398:4;68389:14;;;;;;;;;;;;;;;;;;68365:38;;68436:4;:20;;;68420:12;:36;68416:75;;68473:7;;;68416:75;68521:8;;68555:10;;68521:45;;;-1:-1:-1;;;68521:45:0;;68548:4;68521:45;;;;;;;;;;;;68501:17;;-1:-1:-1;;;;;68521:8:0;;:18;;:45;;;;;;;;;;;;;;:8;:45;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;68521:45:0;;-1:-1:-1;68581:14:0;68577:103;;-1:-1:-1;68635:12:0;68612:20;;;;:35;68662:7;;68577:103;68690:18;68711:49;68725:4;:20;;;68747:12;68711:13;:49::i;:::-;68690:70;;68771:18;68792:62;68838:15;;68792:41;68817:4;:15;;;68792:20;68807:4;68792:10;:14;;:20;;;;:::i;:62::-;68865:4;;68875:7;;68771:83;;-1:-1:-1;;;;;;68865:4:0;;;;:9;;68875:7;68884:26;68906:3;68884:17;68771:83;68899:1;68884:14;:17::i;:26::-;68865:46;;;;;;;;;;;;;-1:-1:-1;;;;;68865:46:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;68939:4:0;;68949:11;;-1:-1:-1;;;;;68939:4:0;;;;:9;;68949:11;68962:19;:10;68977:3;68962:14;:19::i;:::-;68939:43;;;;;;;;;;;;;-1:-1:-1;;;;;68939:43:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;69012:4:0;;:36;;;-1:-1:-1;;;69012:36:0;;69030:4;69012:36;;;;;;;;;;;;-1:-1:-1;;;;;69012:4:0;;;;:9;;:36;;;;;68939:43;;69012:36;;;;;;;;:4;;:36;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;69082:61:0;;-1:-1:-1;69107:35:0;69132:9;69107:20;:10;69122:4;69107:14;:20::i;:35::-;69082:20;;;;;:24;:61::i;:::-;69059:20;;;:84;-1:-1:-1;;69177:12:0;69154:20;;;;:35;;;;-1:-1:-1;68313:884:0;;:::o;64055:21::-;;;-1:-1:-1;;;;;64055:21:0;;:::o;68055:180::-;68117:8;:15;68100:14;68143:85;68171:6;68165:3;:12;68143:85;;;68201:15;68212:3;68201:10;:15::i;:::-;68179:5;;68143:85;;;;68055:180;:::o;40985:148::-;40565:12;:10;:12::i;:::-;40555:6;;-1:-1:-1;;;;;40555:6:0;;;:22;;;40547:67;;;;;-1:-1:-1;;;40547:67:0;;;;;;;;;;;;;-1:-1:-1;;;;;;;;;;;40547:67:0;;;;;;;;;;;;;;;41092:1:::1;41076:6:::0;;41055:40:::1;::::0;-1:-1:-1;;;;;41076:6:0;;::::1;::::0;41055:40:::1;::::0;41092:1;;41055:40:::1;41123:1;41106:19:::0;;-1:-1:-1;;;;;;41106:19:0::1;::::0;;40985:148::o;70098:776::-;70185:7;;;:29;;;-1:-1:-1;;;70185:29:0;;70203:10;70185:29;;;;;;;;70217:1;;-1:-1:-1;;;;;70185:7:0;;;;:17;;:29;;;;;;;;;;;;;;:7;:29;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;70185:29:0;:33;70177:74;;;;;-1:-1:-1;;;70177:74:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;70262:21;70286:8;70295:4;70286:14;;;;;;;;;;;;;;;;70335;;;:8;:14;;;;;;70350:10;70335:26;;;;;;;70380:11;;70286:14;;;;;;;;-1:-1:-1;70380:22:0;-1:-1:-1;70380:22:0;70372:53;;;;;-1:-1:-1;;;70372:53:0;;;;;;;;;;;;-1:-1:-1;;;70372:53:0;;;;;;;;;;;;;;;70436:16;70447:4;70436:10;:16::i;:::-;70463:15;70481:68;70533:4;:15;;;70481:47;70523:4;70481:37;70497:4;:20;;;70481:4;:11;;;:15;;:37;;;;:::i;:68::-;70463:86;;70560:37;70577:10;70589:7;70560:16;:37::i;:::-;70622:11;;:24;;70638:7;70622:15;:24::i;:::-;70608:38;;;70691:20;;;;70675:47;;70717:4;;70675:37;;70608:38;70675:15;:37::i;:47::-;70657:15;;;:65;70733:8;;70795:10;;70733:86;;;-1:-1:-1;;;70733:86:0;;70767:4;70733:86;;;;70782:10;70733:86;;;;;;;;;;;;;;;;;;;;;;:8;:86;;;;;;;;-1:-1:-1;;;;;70733:8:0;;;;:25;;:86;;;;;:8;:86;;;;;;:8;;:86;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;70831:35:0;;;;;;;;70852:4;;-1:-1:-1;70840:10:0;;-1:-1:-1;70831:35:0;;;;;;;;;70098:776;;;;;:::o;65784:566::-;40565:12;:10;:12::i;:::-;40555:6;;-1:-1:-1;;;;;40555:6:0;;;:22;;;40547:67;;;;;-1:-1:-1;;;40547:67:0;;;;;;;;;;;;;-1:-1:-1;;;;;;;;;;;40547:67:0;;;;;;;;;;;;;;;65896:11:::1;65892:61;;;65924:17;:15;:17::i;:::-;65963:23;66004:10;;65989:12;:25;:53;;66032:10;;65989:53;;;66017:12;65989:53;66071:15;::::0;65963:79;;-1:-1:-1;66071:32:0::1;::::0;66091:11;66071:19:::1;:32::i;:::-;66053:15;:50:::0;66128:213:::1;::::0;;::::1;::::0;::::1;::::0;;;;;::::1;::::0;::::1;::::0;;;;;;;;-1:-1:-1;66128:213:0;;;;;;66114:8:::1;:228:::0;;::::1;::::0;::::1;::::0;;;;;;;::::1;::::0;;::::1;::::0;;::::1;::::0;;;;;;;;;;;;-1:-1:-1;66114:228:0;;;;;;65784:566::o;70945:399::-;71016:21;71040:8;71049:4;71040:14;;;;;;;;;;;;;;;;71089;;;:8;:14;;;;;;71104:10;71089:26;;;;;;;;71126:8;;71040:14;;;;;;;71188:10;;71200:11;;71126:90;;-1:-1:-1;;;71126:90:0;;71160:4;71126:90;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;71040:14;;-1:-1:-1;71089:26:0;-1:-1:-1;;;;;71126:8:0;;;;:25;;:90;;;;;71040:14;71126:90;;;;;71040:14;71126:8;:90;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;71268:11:0;;71232:48;;;;;;;71262:4;;-1:-1:-1;71250:10:0;;-1:-1:-1;71232:48:0;;;;;;;;;71305:1;71291:15;;;71317;;;;:19;-1:-1:-1;;70945:399:0:o;40343:79::-;40381:7;40408:6;-1:-1:-1;;;;;40408:6:0;40343:79;:::o;66843:139::-;66961:12;;66915:7;;66942:32;;:14;:3;66950:5;66942:7;:14::i;:32::-;66935:39;66843:139;-1:-1:-1;;;66843:139:0:o;64450:66::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::o;72361:216::-;-1:-1:-1;;;72361:216:0;;;;;;;;;;:::o;72003:155::-;72092:7;;-1:-1:-1;;;;;72092:7:0;72078:10;:21;72070:43;;;;;-1:-1:-1;;;72070:43:0;;;;;;;;;;;;-1:-1:-1;;;72070:43:0;;;;;;;;;;;;;;;72124:11;:26;;-1:-1:-1;;;;;;72124:26:0;-1:-1:-1;;;;;72124:26:0;;;;;;;;;;72003:155::o;64167:26::-;;;-1:-1:-1;;;;;64167:26:0;;:::o;65496:115::-;40565:12;:10;:12::i;:::-;40555:6;;-1:-1:-1;;;;;40555:6:0;;;:22;;;40547:67;;;;;-1:-1:-1;;;40547:67:0;;;;;;;;;;;;;-1:-1:-1;;;;;;;;;;;40547:67:0;;;;;;;;;;;;;;;65556:8:::1;::::0;:47:::1;::::0;;-1:-1:-1;;;65556:47:0;;65591:4:::1;65556:47;::::0;::::1;::::0;:8;:47;;;;;;-1:-1:-1;;;;;65556:8:0;;::::1;::::0;:26:::1;::::0;:47;;;;;:8:::1;::::0;:47;;;;;;;;:8;;:47;::::1;;::::0;::::1;;;;::::0;::::1;;;;;;;;;;;;::::0;::::1;;;;;;;;;65496:115::o:0;64022:24::-;;;-1:-1:-1;;;;;64022:24:0;;:::o;71798:139::-;71879:7;;-1:-1:-1;;;;;71879:7:0;71865:10;:21;71857:43;;;;;-1:-1:-1;;;71857:43:0;;;;;;;;;;;;-1:-1:-1;;;71857:43:0;;;;;;;;;;;;;;;71911:7;:18;;-1:-1:-1;;;;;;71911:18:0;-1:-1:-1;;;;;71911:18:0;;;;;;;;;;71798:139::o;64106:22::-;;;-1:-1:-1;;;;;64106:22:0;;:::o;63988:25::-;;;-1:-1:-1;;;;;63988:25:0;;:::o;72168:183::-;-1:-1:-1;;;72168:183:0;;;;;;;;:::o;41288:244::-;40565:12;:10;:12::i;:::-;40555:6;;-1:-1:-1;;;;;40555:6:0;;;:22;;;40547:67;;;;;-1:-1:-1;;;40547:67:0;;;;;;;;;;;;;-1:-1:-1;;;;;;;;;;;40547:67:0;;;;;;;;;;;;;;;-1:-1:-1;;;;;41377:22:0;::::1;41369:73;;;;-1:-1:-1::0;;;41369:73:0::1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;41479:6;::::0;;41458:38:::1;::::0;-1:-1:-1;;;;;41458:38:0;;::::1;::::0;41479:6;::::1;::::0;41458:38:::1;::::0;::::1;41507:6;:17:::0;;-1:-1:-1;;;;;;41507:17:0::1;-1:-1:-1::0;;;;;41507:17:0;;;::::1;::::0;;;::::1;::::0;;41288:244::o;4977:471::-;5035:7;5280:6;5276:47;;-1:-1:-1;5310:1:0;5303:8;;5276:47;5347:5;;;5351:1;5347;:5;:1;5371:5;;;;;:10;5363:56;;;;-1:-1:-1;;;5363:56:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;5924:132;5982:7;6009:39;6013:1;6016;6009:39;;;;;;;;;;;;;;;;;:3;:39::i;4087:136::-;4145:7;4172:43;4176:1;4179;4172:43;;;;;;;;;;;;;;;;;:3;:43::i;71462:278::-;71556:4;;:29;;;-1:-1:-1;;;71556:29:0;;71579:4;71556:29;;;;;;71538:15;;-1:-1:-1;;;;;71556:4:0;;:14;;:29;;;;;;;;;;;;;;:4;:29;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;71556:29:0;;-1:-1:-1;71600:17:0;;;71596:137;;;71634:4;;:27;;;-1:-1:-1;;;71634:27:0;;-1:-1:-1;;;;;71634:27:0;;;;;;;;;;;;;;;:4;;;;;:13;;:27;;;;;;;;;;;;;;:4;;:27;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;71596:137:0;;-1:-1:-1;71596:137:0;;71694:4;;:27;;;-1:-1:-1;;;71694:27:0;;-1:-1:-1;;;;;71694:27:0;;;;;;;;;;;;;;;:4;;;;;:13;;:27;;;;;;;;;;;;;;:4;;:27;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;71596:137:0;71462:278;;;:::o;3623:181::-;3681:7;3713:5;;;3737:6;;;;3729:46;;;;;-1:-1:-1;;;3729:46:0;;;;;;;;;;;;;;;;;;;;;;;;;;;38981:106;39069:10;38981:106;:::o;6552:278::-;6638:7;6673:12;6666:5;6658:28;;;;-1:-1:-1;;;6658:28:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;6697:9;6713:1;6709;:5;;;;;;;6552:278;-1:-1:-1;;;;;6552:278:0:o;4526:192::-;4612:7;4648:12;4640:6;;;;4632:29;;;;-1:-1:-1;;;4632:29:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;4684:5:0;;;4526:192::o
Swarm Source
ipfs://6818fad092c48f4ab46fd79a7f15ef0be3bcbf08c8f86f3c115d83eb4246be36
Loading...
Loading
Loading...
Loading
Loading...
Loading
[ Download: CSV Export ]
A contract address hosts a smart contract, which is a set of code stored on the blockchain that runs when predetermined conditions are met. Learn more about addresses in our Knowledge Base.