More Info
Private Name Tags
ContractCreator
Latest 25 from a total of 2,624 transactions
Transaction Hash |
Method
|
Block
|
From
|
To
|
|||||
---|---|---|---|---|---|---|---|---|---|
Withdraw | 14778740 | 957 days ago | IN | 0 ETH | 0.00175666 | ||||
Withdraw | 14342360 | 1026 days ago | IN | 0 ETH | 0.00496007 | ||||
Withdraw | 13788564 | 1111 days ago | IN | 0 ETH | 0.00245223 | ||||
Withdraw | 13732965 | 1120 days ago | IN | 0 ETH | 0.00702942 | ||||
Withdraw | 13649689 | 1133 days ago | IN | 0 ETH | 0.00527595 | ||||
Withdraw | 13648315 | 1134 days ago | IN | 0 ETH | 0.00627332 | ||||
Withdraw | 13645781 | 1134 days ago | IN | 0 ETH | 0.0087087 | ||||
Withdraw | 13645044 | 1134 days ago | IN | 0 ETH | 0.00887231 | ||||
Withdraw | 13476335 | 1161 days ago | IN | 0 ETH | 0.0038 | ||||
Withdraw | 13429223 | 1168 days ago | IN | 0 ETH | 0.00718076 | ||||
Withdraw | 13375538 | 1177 days ago | IN | 0 ETH | 0.01130712 | ||||
Withdraw | 13359493 | 1179 days ago | IN | 0 ETH | 0.01057075 | ||||
Stake | 13324891 | 1184 days ago | IN | 0 ETH | 0.00601853 | ||||
Withdraw | 13324779 | 1184 days ago | IN | 0 ETH | 0.00581791 | ||||
Redeem | 13324702 | 1184 days ago | IN | 0.05 ETH | 0.01166008 | ||||
Stake | 13321415 | 1185 days ago | IN | 0 ETH | 0.0064569 | ||||
Stake | 13298767 | 1189 days ago | IN | 0 ETH | 0.00481283 | ||||
Withdraw | 13283796 | 1191 days ago | IN | 0 ETH | 0.0079844 | ||||
Withdraw | 13247727 | 1196 days ago | IN | 0 ETH | 0.00294293 | ||||
Stake | 13244947 | 1197 days ago | IN | 0 ETH | 0.00803328 | ||||
Withdraw | 13238273 | 1198 days ago | IN | 0 ETH | 0.01012332 | ||||
Withdraw | 13213404 | 1202 days ago | IN | 0 ETH | 0.00562725 | ||||
Withdraw | 13205574 | 1203 days ago | IN | 0 ETH | 0.00791421 | ||||
Withdraw | 13153297 | 1211 days ago | IN | 0 ETH | 0.01642977 | ||||
Withdraw | 13137224 | 1213 days ago | IN | 0 ETH | 0.00839685 |
Latest 8 internal transactions
Advanced mode:
Loading...
Loading
Contract Name:
MEMELtdPoolV2MintFee
Compiler Version
v0.5.12+commit.7709ece9
Optimization Enabled:
Yes with 9999 runs
Other Settings:
default evmVersion
Contract Source Code (Solidity)
/** *Submitted for verification at Etherscan.io on 2020-10-28 */ pragma solidity ^0.5.0; /** * @dev Standard math utilities missing in the Solidity language. */ library Math { /** * @dev Returns the largest of two numbers. */ function max(uint256 a, uint256 b) internal pure returns (uint256) { return a >= b ? a : b; } /** * @dev Returns the smallest of two numbers. */ function min(uint256 a, uint256 b) internal pure returns (uint256) { return a < b ? a : b; } /** * @dev Returns the average of two numbers. The result is rounded towards * zero. */ function average(uint256 a, uint256 b) internal pure returns (uint256) { // (a + b) / 2 can overflow, so we distribute return (a / 2) + (b / 2) + ((a % 2 + b % 2) / 2); } } /* * @dev Provides information about the current execution context, including the * sender of the transaction and its data. While these are generally available * via msg.sender and msg.data, they should not be accessed in such a direct * manner, since when dealing with GSN meta-transactions the account sending and * paying for execution may not be the actual sender (as far as an application * is concerned). * * This contract is only required for intermediate, library-like contracts. */ contract Context { // Empty internal constructor, to prevent people from mistakenly deploying // an instance of this contract, which should be used via inheritance. constructor () internal { } // solhint-disable-previous-line no-empty-blocks function _msgSender() internal view returns (address payable) { return msg.sender; } function _msgData() internal view returns (bytes memory) { this; // silence state mutability warning without generating bytecode - see https://github.com/ethereum/solidity/issues/2691 return msg.data; } } /** * @dev Contract module which provides a basic access control mechanism, where * there is an account (an owner) that can be granted exclusive access to * specific functions. * * This module is used through inheritance. It will make available the modifier * `onlyOwner`, which can be applied to your functions to restrict their use to * the owner. */ contract Ownable is Context { address private _owner; event OwnershipTransferred(address indexed previousOwner, address indexed newOwner); /** * @dev Initializes the contract setting the deployer as the initial owner. */ constructor () internal { 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(isOwner(), "Ownable: caller is not the owner"); _; } /** * @dev Returns true if the caller is the current owner. */ function isOwner() public view returns (bool) { return _msgSender() == _owner; } /** * @dev Leaves the contract without owner. It will not be possible to call * `onlyOwner` functions anymore. Can only be called by the current owner. * * NOTE: Renouncing ownership will leave the contract without an owner, * thereby removing any functionality that is only available to the owner. */ function renounceOwnership() public onlyOwner { emit OwnershipTransferred(_owner, address(0)); _owner = address(0); } /** * @dev Transfers ownership of the contract to a new account (`newOwner`). * Can only be called by the current owner. */ function transferOwnership(address newOwner) public onlyOwner { _transferOwnership(newOwner); } /** * @dev Transfers ownership of the contract to a new account (`newOwner`). */ function _transferOwnership(address newOwner) internal { require(newOwner != address(0), "Ownable: new owner is the zero address"); emit OwnershipTransferred(_owner, newOwner); _owner = newOwner; } } /** * @dev Interface of the ERC20 standard as defined in the EIP. Does not include * the optional functions; to access them see {ERC20Detailed}. */ interface IERC20 { /** * @dev Returns the amount of tokens in existence. */ function totalSupply() external view returns (uint256); /** * @dev Returns the amount of tokens owned by `account`. */ function balanceOf(address account) external view returns (uint256); /** * @dev Moves `amount` tokens from the caller's account to `recipient`. * * Returns a boolean value indicating whether the operation succeeded. * * Emits a {Transfer} event. */ function transfer(address recipient, uint256 amount) external returns (bool); /** * @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); } /** * @title Roles * @dev Library for managing addresses assigned to a Role. */ library Roles { struct Role { mapping (address => bool) bearer; } /** * @dev Give an account access to this role. */ function add(Role storage role, address account) internal { require(!has(role, account), "Roles: account already has role"); role.bearer[account] = true; } /** * @dev Remove an account's access to this role. */ function remove(Role storage role, address account) internal { require(has(role, account), "Roles: account does not have role"); role.bearer[account] = false; } /** * @dev Check if an account has this role. * @return bool */ function has(Role storage role, address account) internal view returns (bool) { require(account != address(0), "Roles: account is the zero address"); return role.bearer[account]; } } contract PauserRole is Context { using Roles for Roles.Role; event PauserAdded(address indexed account); event PauserRemoved(address indexed account); Roles.Role private _pausers; constructor () internal { _addPauser(_msgSender()); } modifier onlyPauser() { require(isPauser(_msgSender()), "PauserRole: caller does not have the Pauser role"); _; } function isPauser(address account) public view returns (bool) { return _pausers.has(account); } function addPauser(address account) public onlyPauser { _addPauser(account); } function renouncePauser() public { _removePauser(_msgSender()); } function _addPauser(address account) internal { _pausers.add(account); emit PauserAdded(account); } function _removePauser(address account) internal { _pausers.remove(account); emit PauserRemoved(account); } } /** * @dev Contract module which allows children to implement an emergency stop * mechanism that can be triggered by an authorized account. * * This module is used through inheritance. It will make available the * modifiers `whenNotPaused` and `whenPaused`, which can be applied to * the functions of your contract. Note that they will not be pausable by * simply including this module, only once the modifiers are put in place. */ contract Pausable is Context, PauserRole { /** * @dev Emitted when the pause is triggered by a pauser (`account`). */ event Paused(address account); /** * @dev Emitted when the pause is lifted by a pauser (`account`). */ event Unpaused(address account); bool private _paused; /** * @dev Initializes the contract in unpaused state. Assigns the Pauser role * to the deployer. */ constructor () internal { _paused = false; } /** * @dev Returns true if the contract is paused, and false otherwise. */ function paused() public view returns (bool) { return _paused; } /** * @dev Modifier to make a function callable only when the contract is not paused. */ modifier whenNotPaused() { require(!_paused, "Pausable: paused"); _; } /** * @dev Modifier to make a function callable only when the contract is paused. */ modifier whenPaused() { require(_paused, "Pausable: not paused"); _; } /** * @dev Called by a pauser to pause, triggers stopped state. */ function pause() public onlyPauser whenNotPaused { _paused = true; emit Paused(_msgSender()); } /** * @dev Called by a pauser to unpause, returns to normal state. */ function unpause() public onlyPauser whenPaused { _paused = false; emit Unpaused(_msgSender()); } } contract MinterRole is Context { using Roles for Roles.Role; event MinterAdded(address indexed account); event MinterRemoved(address indexed account); Roles.Role private _minters; constructor () internal { _addMinter(_msgSender()); } modifier onlyMinter() { require(isMinter(_msgSender()), "MinterRole: caller does not have the Minter role"); _; } function isMinter(address account) public view returns (bool) { return _minters.has(account); } function addMinter(address account) public onlyMinter { _addMinter(account); } function renounceMinter() public { _removeMinter(_msgSender()); } function _addMinter(address account) internal { _minters.add(account); emit MinterAdded(account); } function _removeMinter(address account) internal { _minters.remove(account); emit MinterRemoved(account); } } /** * @title WhitelistAdminRole * @dev WhitelistAdmins are responsible for assigning and removing Whitelisted accounts. */ contract WhitelistAdminRole is Context { using Roles for Roles.Role; event WhitelistAdminAdded(address indexed account); event WhitelistAdminRemoved(address indexed account); Roles.Role private _whitelistAdmins; constructor () internal { _addWhitelistAdmin(_msgSender()); } modifier onlyWhitelistAdmin() { require(isWhitelistAdmin(_msgSender()), "WhitelistAdminRole: caller does not have the WhitelistAdmin role"); _; } function isWhitelistAdmin(address account) public view returns (bool) { return _whitelistAdmins.has(account); } function addWhitelistAdmin(address account) public onlyWhitelistAdmin { _addWhitelistAdmin(account); } function renounceWhitelistAdmin() public { _removeWhitelistAdmin(_msgSender()); } function _addWhitelistAdmin(address account) internal { _whitelistAdmins.add(account); emit WhitelistAdminAdded(account); } function _removeWhitelistAdmin(address account) internal { _whitelistAdmins.remove(account); emit WhitelistAdminRemoved(account); } } /** * @title ERC165 * @dev https://github.com/ethereum/EIPs/blob/master/EIPS/eip-165.md */ interface IERC165 { /** * @notice Query if a contract implements an interface * @dev Interface identification is specified in ERC-165. This function * uses less than 30,000 gas * @param _interfaceId The interface identifier, as specified in ERC-165 */ function supportsInterface(bytes4 _interfaceId) external view returns (bool); } /** * @title SafeMath * @dev Unsigned math operations with safety checks that revert on error */ library SafeMath { /** * @dev Multiplies two unsigned integers, reverts on 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-solidity/pull/522 if (a == 0) { return 0; } uint256 c = a * b; require(c / a == b, "SafeMath#mul: OVERFLOW"); return c; } /** * @dev Integer division of two unsigned integers truncating the quotient, reverts on division by zero. */ function div(uint256 a, uint256 b) internal pure returns (uint256) { // Solidity only automatically asserts when dividing by 0 require(b > 0, "SafeMath#div: DIVISION_BY_ZERO"); uint256 c = a / b; // assert(a == b * c + a % b); // There is no case in which this doesn't hold return c; } /** * @dev Subtracts two unsigned integers, reverts on overflow (i.e. if subtrahend is greater than minuend). */ function sub(uint256 a, uint256 b) internal pure returns (uint256) { require(b <= a, "SafeMath#sub: UNDERFLOW"); uint256 c = a - b; return c; } /** * @dev Adds two unsigned integers, reverts on overflow. */ function add(uint256 a, uint256 b) internal pure returns (uint256) { uint256 c = a + b; require(c >= a, "SafeMath#add: OVERFLOW"); return c; } /** * @dev Divides two unsigned integers and returns the remainder (unsigned integer modulo), * reverts when dividing by zero. */ function mod(uint256 a, uint256 b) internal pure returns (uint256) { require(b != 0, "SafeMath#mod: DIVISION_BY_ZERO"); return a % b; } } /** * @dev ERC-1155 interface for accepting safe transfers. */ interface IERC1155TokenReceiver { /** * @notice Handle the receipt of a single ERC1155 token type * @dev An ERC1155-compliant smart contract MUST call this function on the token recipient contract, at the end of a `safeTransferFrom` after the balance has been updated * This function MAY throw to revert and reject the transfer * Return of other amount than the magic value MUST result in the transaction being reverted * Note: The token contract address is always the message sender * @param _operator The address which called the `safeTransferFrom` function * @param _from The address which previously owned the token * @param _id The id of the token being transferred * @param _amount The amount of tokens being transferred * @param _data Additional data with no specified format * @return `bytes4(keccak256("onERC1155Received(address,address,uint256,uint256,bytes)"))` */ function onERC1155Received(address _operator, address _from, uint256 _id, uint256 _amount, bytes calldata _data) external returns(bytes4); /** * @notice Handle the receipt of multiple ERC1155 token types * @dev An ERC1155-compliant smart contract MUST call this function on the token recipient contract, at the end of a `safeBatchTransferFrom` after the balances have been updated * This function MAY throw to revert and reject the transfer * Return of other amount than the magic value WILL result in the transaction being reverted * Note: The token contract address is always the message sender * @param _operator The address which called the `safeBatchTransferFrom` function * @param _from The address which previously owned the token * @param _ids An array containing ids of each token being transferred * @param _amounts An array containing amounts of each token being transferred * @param _data Additional data with no specified format * @return `bytes4(keccak256("onERC1155BatchReceived(address,address,uint256[],uint256[],bytes)"))` */ function onERC1155BatchReceived(address _operator, address _from, uint256[] calldata _ids, uint256[] calldata _amounts, bytes calldata _data) external returns(bytes4); /** * @notice Indicates whether a contract implements the `ERC1155TokenReceiver` functions and so can accept ERC1155 token types. * @param interfaceID The ERC-165 interface ID that is queried for support.s * @dev This function MUST return true if it implements the ERC1155TokenReceiver interface and ERC-165 interface. * This function MUST NOT consume more than 5,000 gas. * @return Wheter ERC-165 or ERC1155TokenReceiver interfaces are supported. */ function supportsInterface(bytes4 interfaceID) external view returns (bool); } interface IERC1155 { // Events /** * @dev Either TransferSingle or TransferBatch MUST emit when tokens are transferred, including zero amount transfers as well as minting or burning * Operator MUST be msg.sender * When minting/creating tokens, the `_from` field MUST be set to `0x0` * When burning/destroying tokens, the `_to` field MUST be set to `0x0` * The total amount transferred from address 0x0 minus the total amount transferred to 0x0 may be used by clients and exchanges to be added to the "circulating supply" for a given token ID * To broadcast the existence of a token ID with no initial balance, the contract SHOULD emit the TransferSingle event from `0x0` to `0x0`, with the token creator as `_operator`, and a `_amount` of 0 */ event TransferSingle(address indexed _operator, address indexed _from, address indexed _to, uint256 _id, uint256 _amount); /** * @dev Either TransferSingle or TransferBatch MUST emit when tokens are transferred, including zero amount transfers as well as minting or burning * Operator MUST be msg.sender * When minting/creating tokens, the `_from` field MUST be set to `0x0` * When burning/destroying tokens, the `_to` field MUST be set to `0x0` * The total amount transferred from address 0x0 minus the total amount transferred to 0x0 may be used by clients and exchanges to be added to the "circulating supply" for a given token ID * To broadcast the existence of multiple token IDs with no initial balance, this SHOULD emit the TransferBatch event from `0x0` to `0x0`, with the token creator as `_operator`, and a `_amount` of 0 */ event TransferBatch(address indexed _operator, address indexed _from, address indexed _to, uint256[] _ids, uint256[] _amounts); /** * @dev MUST emit when an approval is updated */ 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 JSON Schema" */ event URI(string _amount, uint256 indexed _id); /** * @notice Transfers amount of an _id from the _from address to the _to address specified * @dev MUST emit TransferSingle event on success * Caller must be approved to manage the _from account's tokens (see isApprovedForAll) * MUST throw if `_to` is the zero address * MUST throw if balance of sender for token `_id` is lower than the `_amount` sent * MUST throw on any other error * When transfer is complete, this function MUST check if `_to` is a smart contract (code size > 0). If so, it MUST call `onERC1155Received` on `_to` and revert if the return amount is not `bytes4(keccak256("onERC1155Received(address,address,uint256,uint256,bytes)"))` * @param _from Source address * @param _to Target address * @param _id ID of the token type * @param _amount Transfered amount * @param _data Additional data with no specified format, sent in call to `_to` */ function safeTransferFrom(address _from, address _to, uint256 _id, uint256 _amount, bytes calldata _data) external; /** * @notice Send multiple types of Tokens from the _from address to the _to address (with safety call) * @dev MUST emit TransferBatch event on success * Caller must be approved to manage the _from account's tokens (see isApprovedForAll) * MUST throw if `_to` is the zero address * MUST throw if length of `_ids` is not the same as length of `_amounts` * MUST throw if any of the balance of sender for token `_ids` is lower than the respective `_amounts` sent * MUST throw on any other error * When transfer is complete, this function MUST check if `_to` is a smart contract (code size > 0). If so, it MUST call `onERC1155BatchReceived` on `_to` and revert if the return amount is not `bytes4(keccak256("onERC1155BatchReceived(address,address,uint256[],uint256[],bytes)"))` * Transfers and events MUST occur in the array order they were submitted (_ids[0] before _ids[1], etc) * @param _from Source addresses * @param _to Target addresses * @param _ids IDs of each token type * @param _amounts Transfer amounts per token type * @param _data Additional data with no specified format, sent in call to `_to` */ function safeBatchTransferFrom(address _from, address _to, uint256[] calldata _ids, uint256[] calldata _amounts, 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 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 isOperator); } /** * Copyright 2018 ZeroEx Intl. * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * http://www.apache.org/licenses/LICENSE-2.0 * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ /** * Utility library of inline functions on addresses */ library Address { /** * Returns whether the target address is a contract * @dev This function will return false if invoked during the constructor of a contract, * as the code is not actually created until after the constructor finishes. * @param account address of the account to check * @return whether the target address is a contract */ function isContract(address account) internal view returns (bool) { bytes32 codehash; bytes32 accountHash = 0xc5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a470; // XXX Currently there is no better way to check if there is a contract in an address // than to check the size of the code at that address. // See https://ethereum.stackexchange.com/a/14016/36603 // for more details about how this works. // TODO Check this again before the Serenity release, because all addresses will be // contracts then. assembly { codehash := extcodehash(account) } return (codehash != 0x0 && codehash != accountHash); } } /** * @dev Implementation of Multi-Token Standard contract */ contract ERC1155 is IERC165 { using SafeMath for uint256; using Address for address; /***********************************| | Variables and Events | |__________________________________*/ // onReceive function signatures bytes4 constant internal ERC1155_RECEIVED_VALUE = 0xf23a6e61; bytes4 constant internal ERC1155_BATCH_RECEIVED_VALUE = 0xbc197c81; // Objects balances mapping (address => mapping(uint256 => uint256)) internal balances; // Operator Functions mapping (address => mapping(address => bool)) internal operators; // Events event TransferSingle(address indexed _operator, address indexed _from, address indexed _to, uint256 _id, uint256 _amount); event TransferBatch(address indexed _operator, address indexed _from, address indexed _to, uint256[] _ids, uint256[] _amounts); event ApprovalForAll(address indexed _owner, address indexed _operator, bool _approved); event URI(string _uri, uint256 indexed _id); /***********************************| | Public Transfer Functions | |__________________________________*/ /** * @notice Transfers amount amount of an _id from the _from address to the _to address specified * @param _from Source address * @param _to Target address * @param _id ID of the token type * @param _amount Transfered amount * @param _data Additional data with no specified format, sent in call to `_to` */ function safeTransferFrom(address _from, address _to, uint256 _id, uint256 _amount, bytes memory _data) public { require((msg.sender == _from) || isApprovedForAll(_from, msg.sender), "ERC1155#safeTransferFrom: INVALID_OPERATOR"); require(_to != address(0),"ERC1155#safeTransferFrom: INVALID_RECIPIENT"); // require(_amount >= balances[_from][_id]) is not necessary since checked with safemath operations _safeTransferFrom(_from, _to, _id, _amount); _callonERC1155Received(_from, _to, _id, _amount, _data); } /** * @notice Send multiple types of Tokens from the _from address to the _to address (with safety call) * @param _from Source addresses * @param _to Target addresses * @param _ids IDs of each token type * @param _amounts Transfer amounts per token type * @param _data Additional data with no specified format, sent in call to `_to` */ function safeBatchTransferFrom(address _from, address _to, uint256[] memory _ids, uint256[] memory _amounts, bytes memory _data) public { // Requirements require((msg.sender == _from) || isApprovedForAll(_from, msg.sender), "ERC1155#safeBatchTransferFrom: INVALID_OPERATOR"); require(_to != address(0), "ERC1155#safeBatchTransferFrom: INVALID_RECIPIENT"); _safeBatchTransferFrom(_from, _to, _ids, _amounts); _callonERC1155BatchReceived(_from, _to, _ids, _amounts, _data); } /***********************************| | Internal Transfer Functions | |__________________________________*/ /** * @notice Transfers amount amount of an _id from the _from address to the _to address specified * @param _from Source address * @param _to Target address * @param _id ID of the token type * @param _amount Transfered amount */ function _safeTransferFrom(address _from, address _to, uint256 _id, uint256 _amount) internal { // Update balances balances[_from][_id] = balances[_from][_id].sub(_amount); // Subtract amount balances[_to][_id] = balances[_to][_id].add(_amount); // Add amount // Emit event emit TransferSingle(msg.sender, _from, _to, _id, _amount); } /** * @notice Verifies if receiver is contract and if so, calls (_to).onERC1155Received(...) */ function _callonERC1155Received(address _from, address _to, uint256 _id, uint256 _amount, bytes memory _data) internal { // Check if recipient is contract if (_to.isContract()) { bytes4 retval = IERC1155TokenReceiver(_to).onERC1155Received(msg.sender, _from, _id, _amount, _data); require(retval == ERC1155_RECEIVED_VALUE, "ERC1155#_callonERC1155Received: INVALID_ON_RECEIVE_MESSAGE"); } } /** * @notice Send multiple types of Tokens from the _from address to the _to address (with safety call) * @param _from Source addresses * @param _to Target addresses * @param _ids IDs of each token type * @param _amounts Transfer amounts per token type */ function _safeBatchTransferFrom(address _from, address _to, uint256[] memory _ids, uint256[] memory _amounts) internal { require(_ids.length == _amounts.length, "ERC1155#_safeBatchTransferFrom: INVALID_ARRAYS_LENGTH"); // Number of transfer to execute uint256 nTransfer = _ids.length; // Executing all transfers for (uint256 i = 0; i < nTransfer; i++) { // Update storage balance of previous bin balances[_from][_ids[i]] = balances[_from][_ids[i]].sub(_amounts[i]); balances[_to][_ids[i]] = balances[_to][_ids[i]].add(_amounts[i]); } // Emit event emit TransferBatch(msg.sender, _from, _to, _ids, _amounts); } /** * @notice Verifies if receiver is contract and if so, calls (_to).onERC1155BatchReceived(...) */ function _callonERC1155BatchReceived(address _from, address _to, uint256[] memory _ids, uint256[] memory _amounts, bytes memory _data) internal { // Pass data if recipient is contract if (_to.isContract()) { bytes4 retval = IERC1155TokenReceiver(_to).onERC1155BatchReceived(msg.sender, _from, _ids, _amounts, _data); require(retval == ERC1155_BATCH_RECEIVED_VALUE, "ERC1155#_callonERC1155BatchReceived: INVALID_ON_RECEIVE_MESSAGE"); } } /***********************************| | Operator Functions | |__________________________________*/ /** * @notice Enable or disable approval for a third party ("operator") to manage all of caller's tokens * @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 { // Update operator status operators[msg.sender][_operator] = _approved; emit ApprovalForAll(msg.sender, _operator, _approved); } /** * @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) public view returns (bool isOperator) { return operators[_owner][_operator]; } /***********************************| | Balance Functions | |__________________________________*/ /** * @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) public view returns (uint256) { return balances[_owner][_id]; } /** * @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[] memory _owners, uint256[] memory _ids) public view returns (uint256[] memory) { require(_owners.length == _ids.length, "ERC1155#balanceOfBatch: INVALID_ARRAY_LENGTH"); // Variables uint256[] memory batchBalances = new uint256[](_owners.length); // Iterate over each owner and token ID for (uint256 i = 0; i < _owners.length; i++) { batchBalances[i] = balances[_owners[i]][_ids[i]]; } return batchBalances; } /***********************************| | ERC165 Functions | |__________________________________*/ /** * INTERFACE_SIGNATURE_ERC165 = bytes4(keccak256("supportsInterface(bytes4)")); */ bytes4 constant private INTERFACE_SIGNATURE_ERC165 = 0x01ffc9a7; /** * INTERFACE_SIGNATURE_ERC1155 = * bytes4(keccak256("safeTransferFrom(address,address,uint256,uint256,bytes)")) ^ * bytes4(keccak256("safeBatchTransferFrom(address,address,uint256[],uint256[],bytes)")) ^ * bytes4(keccak256("balanceOf(address,uint256)")) ^ * bytes4(keccak256("balanceOfBatch(address[],uint256[])")) ^ * bytes4(keccak256("setApprovalForAll(address,bool)")) ^ * bytes4(keccak256("isApprovedForAll(address,address)")); */ bytes4 constant private INTERFACE_SIGNATURE_ERC1155 = 0xd9b67a26; /** * @notice Query if a contract implements an interface * @param _interfaceID The interface identifier, as specified in ERC-165 * @return `true` if the contract implements `_interfaceID` and */ function supportsInterface(bytes4 _interfaceID) external view returns (bool) { if (_interfaceID == INTERFACE_SIGNATURE_ERC165 || _interfaceID == INTERFACE_SIGNATURE_ERC1155) { return true; } return false; } } /** * @notice Contract that handles metadata related methods. * @dev Methods assume a deterministic generation of URI based on token IDs. * Methods also assume that URI uses hex representation of token IDs. */ contract ERC1155Metadata { // URI's default URI prefix string internal baseMetadataURI; event URI(string _uri, uint256 indexed _id); /***********************************| | Metadata Public Function s | |__________________________________*/ /** * @notice A distinct Uniform Resource Identifier (URI) for a given token. * @dev URIs are defined in RFC 3986. * URIs are assumed to be deterministically generated based on token ID * Token IDs are assumed to be represented in their hex format in URIs * @return URI string */ function uri(uint256 _id) public view returns (string memory) { return string(abi.encodePacked(baseMetadataURI, _uint2str(_id), ".json")); } /***********************************| | Metadata Internal Functions | |__________________________________*/ /** * @notice Will emit default URI log event for corresponding token _id * @param _tokenIDs Array of IDs of tokens to log default URI */ function _logURIs(uint256[] memory _tokenIDs) internal { string memory baseURL = baseMetadataURI; string memory tokenURI; for (uint256 i = 0; i < _tokenIDs.length; i++) { tokenURI = string(abi.encodePacked(baseURL, _uint2str(_tokenIDs[i]), ".json")); emit URI(tokenURI, _tokenIDs[i]); } } /** * @notice Will emit a specific URI log event for corresponding token * @param _tokenIDs IDs of the token corresponding to the _uris logged * @param _URIs The URIs of the specified _tokenIDs */ function _logURIs(uint256[] memory _tokenIDs, string[] memory _URIs) internal { require(_tokenIDs.length == _URIs.length, "ERC1155Metadata#_logURIs: INVALID_ARRAYS_LENGTH"); for (uint256 i = 0; i < _tokenIDs.length; i++) { emit URI(_URIs[i], _tokenIDs[i]); } } /** * @notice Will update the base URL of token's URI * @param _newBaseMetadataURI New base URL of token's URI */ function _setBaseMetadataURI(string memory _newBaseMetadataURI) internal { baseMetadataURI = _newBaseMetadataURI; } /***********************************| | Utility Internal Functions | |__________________________________*/ /** * @notice Convert uint256 to string * @param _i Unsigned integer to convert to string */ function _uint2str(uint256 _i) internal pure returns (string memory _uintAsString) { if (_i == 0) { return "0"; } uint256 j = _i; uint256 ii = _i; uint256 len; // Get number of bytes while (j != 0) { len++; j /= 10; } bytes memory bstr = new bytes(len); uint256 k = len - 1; // Get each individual ASCII while (ii != 0) { bstr[k--] = byte(uint8(48 + ii % 10)); ii /= 10; } // Convert to string return string(bstr); } } /** * @dev Multi-Fungible Tokens with minting and burning methods. These methods assume * a parent contract to be executed as they are `internal` functions */ contract ERC1155MintBurn is ERC1155 { /****************************************| | Minting Functions | |_______________________________________*/ /** * @notice Mint _amount of tokens of a given id * @param _to The address to mint tokens to * @param _id Token id to mint * @param _amount The amount to be minted * @param _data Data to pass if receiver is contract */ function _mint(address _to, uint256 _id, uint256 _amount, bytes memory _data) internal { // Add _amount balances[_to][_id] = balances[_to][_id].add(_amount); // Emit event emit TransferSingle(msg.sender, address(0x0), _to, _id, _amount); // Calling onReceive method if recipient is contract _callonERC1155Received(address(0x0), _to, _id, _amount, _data); } /** * @notice Mint tokens for each ids in _ids * @param _to The address to mint tokens to * @param _ids Array of ids to mint * @param _amounts Array of amount of tokens to mint per id * @param _data Data to pass if receiver is contract */ function _batchMint(address _to, uint256[] memory _ids, uint256[] memory _amounts, bytes memory _data) internal { require(_ids.length == _amounts.length, "ERC1155MintBurn#batchMint: INVALID_ARRAYS_LENGTH"); // Number of mints to execute uint256 nMint = _ids.length; // Executing all minting for (uint256 i = 0; i < nMint; i++) { // Update storage balance balances[_to][_ids[i]] = balances[_to][_ids[i]].add(_amounts[i]); } // Emit batch mint event emit TransferBatch(msg.sender, address(0x0), _to, _ids, _amounts); // Calling onReceive method if recipient is contract _callonERC1155BatchReceived(address(0x0), _to, _ids, _amounts, _data); } /****************************************| | Burning Functions | |_______________________________________*/ /** * @notice Burn _amount of tokens of a given token id * @param _from The address to burn tokens from * @param _id Token id to burn * @param _amount The amount to be burned */ function _burn(address _from, uint256 _id, uint256 _amount) internal { //Substract _amount balances[_from][_id] = balances[_from][_id].sub(_amount); // Emit event emit TransferSingle(msg.sender, _from, address(0x0), _id, _amount); } /** * @notice Burn tokens of given token id for each (_ids[i], _amounts[i]) pair * @param _from The address to burn tokens from * @param _ids Array of token ids to burn * @param _amounts Array of the amount to be burned */ function _batchBurn(address _from, uint256[] memory _ids, uint256[] memory _amounts) internal { require(_ids.length == _amounts.length, "ERC1155MintBurn#batchBurn: INVALID_ARRAYS_LENGTH"); // Number of mints to execute uint256 nBurn = _ids.length; // Executing all minting for (uint256 i = 0; i < nBurn; i++) { // Update storage balance balances[_from][_ids[i]] = balances[_from][_ids[i]].sub(_amounts[i]); } // Emit batch mint event emit TransferBatch(msg.sender, _from, address(0x0), _ids, _amounts); } } library Strings { // via https://github.com/oraclize/ethereum-api/blob/master/oraclizeAPI_0.5.sol function strConcat( string memory _a, string memory _b, string memory _c, string memory _d, string memory _e ) internal pure returns (string memory) { bytes memory _ba = bytes(_a); bytes memory _bb = bytes(_b); bytes memory _bc = bytes(_c); bytes memory _bd = bytes(_d); bytes memory _be = bytes(_e); string memory abcde = new string(_ba.length + _bb.length + _bc.length + _bd.length + _be.length); bytes memory babcde = bytes(abcde); uint256 k = 0; for (uint256 i = 0; i < _ba.length; i++) babcde[k++] = _ba[i]; for (uint256 i = 0; i < _bb.length; i++) babcde[k++] = _bb[i]; for (uint256 i = 0; i < _bc.length; i++) babcde[k++] = _bc[i]; for (uint256 i = 0; i < _bd.length; i++) babcde[k++] = _bd[i]; for (uint256 i = 0; i < _be.length; i++) babcde[k++] = _be[i]; return string(babcde); } function strConcat( string memory _a, string memory _b, string memory _c, string memory _d ) internal pure returns (string memory) { return strConcat(_a, _b, _c, _d, ""); } function strConcat( string memory _a, string memory _b, string memory _c ) internal pure returns (string memory) { return strConcat(_a, _b, _c, "", ""); } function strConcat(string memory _a, string memory _b) internal pure returns (string memory) { return strConcat(_a, _b, "", "", ""); } function uint2str(uint256 _i) internal pure returns (string memory _uintAsString) { if (_i == 0) { return "0"; } uint256 j = _i; uint256 len; while (j != 0) { len++; j /= 10; } bytes memory bstr = new bytes(len); uint256 k = len - 1; while (_i != 0) { bstr[k--] = bytes1(uint8(48 + (_i % 10))); _i /= 10; } return string(bstr); } } contract OwnableDelegateProxy {} contract ProxyRegistry { mapping(address => OwnableDelegateProxy) public proxies; } /** * @title ERC1155Tradable * ERC1155Tradable - ERC1155 contract that whitelists an operator address, * has create and mint functionality, and supports useful standards from OpenZeppelin, like _exists(), name(), symbol(), and totalSupply() */ contract ERC1155Tradable is ERC1155, ERC1155MintBurn, ERC1155Metadata, Ownable, MinterRole, WhitelistAdminRole { using Strings for string; address proxyRegistryAddress; uint256 private _currentTokenID = 0; mapping(uint256 => address) public creators; mapping(uint256 => uint256) public tokenSupply; mapping(uint256 => uint256) public tokenMaxSupply; // Contract name string public name; // Contract symbol string public symbol; constructor( string memory _name, string memory _symbol, address _proxyRegistryAddress ) public { name = _name; symbol = _symbol; proxyRegistryAddress = _proxyRegistryAddress; } function removeWhitelistAdmin(address account) public onlyOwner { _removeWhitelistAdmin(account); } function removeMinter(address account) public onlyOwner { _removeMinter(account); } function uri(uint256 _id) public view returns (string memory) { require(_exists(_id), "ERC721Tradable#uri: NONEXISTENT_TOKEN"); return Strings.strConcat(baseMetadataURI, Strings.uint2str(_id)); } /** * @dev Returns the total quantity for a token ID * @param _id uint256 ID of the token to query * @return amount of token in existence */ function totalSupply(uint256 _id) public view returns (uint256) { return tokenSupply[_id]; } /** * @dev Returns the max quantity for a token ID * @param _id uint256 ID of the token to query * @return amount of token in existence */ function maxSupply(uint256 _id) public view returns (uint256) { return tokenMaxSupply[_id]; } /** * @dev Will update the base URL of token's URI * @param _newBaseMetadataURI New base URL of token's URI */ function setBaseMetadataURI(string memory _newBaseMetadataURI) public onlyWhitelistAdmin { _setBaseMetadataURI(_newBaseMetadataURI); } /** * @dev Creates a new token type and assigns _initialSupply to an address * @param _maxSupply max supply allowed * @param _initialSupply Optional amount to supply the first owner * @param _uri Optional URI for this token type * @param _data Optional data to pass if receiver is contract * @return The newly created token ID */ function create( uint256 _maxSupply, uint256 _initialSupply, string calldata _uri, bytes calldata _data ) external onlyWhitelistAdmin returns (uint256 tokenId) { require(_initialSupply <= _maxSupply, "Initial supply cannot be more than max supply"); uint256 _id = _getNextTokenID(); _incrementTokenTypeId(); creators[_id] = msg.sender; if (bytes(_uri).length > 0) { emit URI(_uri, _id); } if (_initialSupply != 0) _mint(msg.sender, _id, _initialSupply, _data); tokenSupply[_id] = _initialSupply; tokenMaxSupply[_id] = _maxSupply; return _id; } /** * @dev Mints some amount of tokens to an address * @param _to Address of the future owner of the token * @param _id Token ID to mint * @param _quantity Amount of tokens to mint * @param _data Data to pass if receiver is contract */ function mint( address _to, uint256 _id, uint256 _quantity, bytes memory _data ) public onlyMinter { uint256 tokenId = _id; require(tokenSupply[tokenId] < tokenMaxSupply[tokenId], "Max supply reached"); _mint(_to, _id, _quantity, _data); tokenSupply[_id] = tokenSupply[_id].add(_quantity); } /** * Override isApprovedForAll to whitelist user's OpenSea proxy accounts to enable gas-free listings. */ function isApprovedForAll(address _owner, address _operator) public view returns (bool isOperator) { // Whitelist OpenSea proxy contract for easy trading. ProxyRegistry proxyRegistry = ProxyRegistry(proxyRegistryAddress); if (address(proxyRegistry.proxies(_owner)) == _operator) { return true; } return ERC1155.isApprovedForAll(_owner, _operator); } /** * @dev Returns whether the specified token exists by checking to see if it has a creator * @param _id uint256 ID of the token to query the existence of * @return bool whether the token exists */ function _exists(uint256 _id) internal view returns (bool) { return creators[_id] != address(0); } /** * @dev calculates the next token ID based on value of _currentTokenID * @return uint256 for the next token ID */ function _getNextTokenID() private view returns (uint256) { return _currentTokenID.add(1); } /** * @dev increments the value of _currentTokenID */ function _incrementTokenTypeId() private { _currentTokenID++; } } contract MemeTokenWrapper { using SafeMath for uint256; IERC20 public meme; constructor(IERC20 _memeAddress) public { meme = IERC20(_memeAddress); } uint256 private _totalSupply; mapping(address => uint256) private _balances; function totalSupply() public view returns (uint256) { return _totalSupply; } function balanceOf(address account) public view returns (uint256) { return _balances[account]; } function stake(uint256 amount) public { _totalSupply = _totalSupply.add(amount); _balances[msg.sender] = _balances[msg.sender].add(amount); meme.transferFrom(msg.sender, address(this), amount); } function withdraw(uint256 amount) public { _totalSupply = _totalSupply.sub(amount); _balances[msg.sender] = _balances[msg.sender].sub(amount); meme.transfer(msg.sender, amount); } function _rescuePineapples(address account) internal { uint256 amount = _balances[account]; _totalSupply = _totalSupply.sub(amount); _balances[account] = _balances[account].sub(amount); meme.transfer(account, amount); } } contract MEMELtdPoolV2MintFee is MemeTokenWrapper, Ownable, Pausable { using SafeMath for uint256; ERC1155Tradable public memeLtd; struct Card { uint256 points; uint256 releaseTime; uint256 mintFee; } uint256 public periodStart; uint256 public maxStake; uint256 public rewardRate = 11574074074000; // 1 point per day per staked MEME uint256 public totalFeesCollected; uint256 public spentPineapples; uint256 public controllerShare; address public rescuer; address public artist; address public controller; mapping(address => uint256) public pendingWithdrawals; mapping(address => uint256) public lastUpdateTime; mapping(address => uint256) public points; mapping(uint256 => Card) public cards; event CardAdded(uint256 card, uint256 points, uint256 mintFee, uint256 releaseTime); event Staked(address indexed user, uint256 amount); event Withdrawn(address indexed user, uint256 amount); event Redeemed(address indexed user, uint256 amount); modifier updateReward(address account) { if (account != address(0)) { points[account] = earned(account); lastUpdateTime[account] = block.timestamp; } _; } constructor( uint256 _periodStart, uint256 _maxStake, uint256 _controllerShare, address _artist, address _controller, ERC1155Tradable _memeLtdAddress, IERC20 _memeAddress ) public MemeTokenWrapper(_memeAddress) { periodStart = _periodStart; maxStake = _maxStake; controllerShare = _controllerShare; artist = _artist; controller = _controller; memeLtd = _memeLtdAddress; } function cardMintFee(uint256 id) public view returns (uint256) { return cards[id].mintFee; } function cardReleaseTime(uint256 id) public view returns (uint256) { return cards[id].releaseTime; } function cardPoints(uint256 id) public view returns (uint256) { return cards[id].points; } function earned(address account) public view returns (uint256) { uint256 blockTime = block.timestamp; return balanceOf(account).mul(blockTime.sub(lastUpdateTime[account]).mul(rewardRate)).div(1e8).add( points[account] ); } // stake visibility is public as overriding MemeTokenWrapper's stake() function function stake(uint256 amount) public updateReward(msg.sender) whenNotPaused() { require(block.timestamp >= periodStart, "Pool not open"); require(amount.add(balanceOf(msg.sender)) <= maxStake, "Deposit 5 MEME or less, no whales"); super.stake(amount); emit Staked(msg.sender, amount); } // override MemeTokenWrapper's withdraw() function function withdraw(uint256 amount) public updateReward(msg.sender) { require(amount > 0, "Cannot withdraw 0"); super.withdraw(amount); emit Withdrawn(msg.sender, amount); } function exit() external { withdraw(balanceOf(msg.sender)); } function redeem(uint256 id) public payable updateReward(msg.sender) { require(cards[id].points != 0, "Card not found"); require(block.timestamp >= cards[id].releaseTime, "Card not released"); require(points[msg.sender] >= cards[id].points, "Redemption exceeds point balance"); require(msg.value == cards[id].mintFee, "Support our artists. Send the proper ETH"); if (cards[id].mintFee > 0) { uint256 _controllerShare = msg.value.mul(controllerShare).div(1000); uint256 _artistRoyalty = msg.value.sub(_controllerShare); require(_artistRoyalty.add(_controllerShare) == msg.value, "problem with fee"); totalFeesCollected = totalFeesCollected.add(cards[id].mintFee); pendingWithdrawals[controller] = pendingWithdrawals[controller].add(_controllerShare); pendingWithdrawals[artist] = pendingWithdrawals[artist].add(_artistRoyalty); } points[msg.sender] = points[msg.sender].sub(cards[id].points); spentPineapples = spentPineapples.add(cards[id].points); memeLtd.mint(msg.sender, id, 1, ""); emit Redeemed(msg.sender, cards[id].points); } function rescuePineapples(address account) public updateReward(account) returns (uint256) { require(msg.sender == rescuer, "!rescuer"); uint256 earnedPoints = points[account]; spentPineapples = spentPineapples.add(earnedPoints); points[account] = 0; // transfer remaining MEME to the account if (balanceOf(account) > 0) { _rescuePineapples(account); } emit Redeemed(account, earnedPoints); return earnedPoints; } function setArtist(address _artist) public onlyOwner { uint256 amount = pendingWithdrawals[artist]; pendingWithdrawals[artist] = 0; pendingWithdrawals[_artist] = pendingWithdrawals[_artist].add(amount); artist = _artist; } function setController(address _controller) public onlyOwner { uint256 amount = pendingWithdrawals[controller]; pendingWithdrawals[controller] = 0; pendingWithdrawals[_controller] = pendingWithdrawals[_controller].add(amount); controller = _controller; } function setRescuer(address _rescuer) public onlyOwner { rescuer = _rescuer; } function setControllerShare(uint256 _controllerShare) public onlyOwner { controllerShare = _controllerShare; } function createCard( uint256 _supply, uint256 _points, uint256 _mintFee, uint256 _releaseTime ) public onlyOwner returns (uint256) { uint256 tokenId = memeLtd.create(_supply, 0, "", ""); require(tokenId > 0, "ERC1155 create did not succeed"); Card storage c = cards[tokenId]; c.points = _points; c.releaseTime = _releaseTime; c.mintFee = _mintFee; emit CardAdded(tokenId, _points, _mintFee, _releaseTime); return tokenId; } function withdrawFee() public { require(msg.sender == artist || msg.sender == controller, "!artist or !controller"); uint256 amount = pendingWithdrawals[msg.sender]; require(amount > 0, "nothing to withdraw"); pendingWithdrawals[msg.sender] = 0; msg.sender.transfer(amount); } }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"inputs":[{"internalType":"uint256","name":"_periodStart","type":"uint256"},{"internalType":"uint256","name":"_maxStake","type":"uint256"},{"internalType":"uint256","name":"_controllerShare","type":"uint256"},{"internalType":"address","name":"_artist","type":"address"},{"internalType":"address","name":"_controller","type":"address"},{"internalType":"contract ERC1155Tradable","name":"_memeLtdAddress","type":"address"},{"internalType":"contract IERC20","name":"_memeAddress","type":"address"}],"payable":false,"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"card","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"points","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"mintFee","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"releaseTime","type":"uint256"}],"name":"CardAdded","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":false,"internalType":"address","name":"account","type":"address"}],"name":"Paused","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"account","type":"address"}],"name":"PauserAdded","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"account","type":"address"}],"name":"PauserRemoved","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"user","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"Redeemed","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"user","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"Staked","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"account","type":"address"}],"name":"Unpaused","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"user","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"Withdrawn","type":"event"},{"constant":false,"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"addPauser","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"artist","outputs":[{"internalType":"address","name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[{"internalType":"uint256","name":"id","type":"uint256"}],"name":"cardMintFee","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[{"internalType":"uint256","name":"id","type":"uint256"}],"name":"cardPoints","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[{"internalType":"uint256","name":"id","type":"uint256"}],"name":"cardReleaseTime","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"cards","outputs":[{"internalType":"uint256","name":"points","type":"uint256"},{"internalType":"uint256","name":"releaseTime","type":"uint256"},{"internalType":"uint256","name":"mintFee","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"controller","outputs":[{"internalType":"address","name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"controllerShare","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"internalType":"uint256","name":"_supply","type":"uint256"},{"internalType":"uint256","name":"_points","type":"uint256"},{"internalType":"uint256","name":"_mintFee","type":"uint256"},{"internalType":"uint256","name":"_releaseTime","type":"uint256"}],"name":"createCard","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"earned","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[],"name":"exit","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"isOwner","outputs":[{"internalType":"bool","name":"","type":"bool"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"isPauser","outputs":[{"internalType":"bool","name":"","type":"bool"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"lastUpdateTime","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"maxStake","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"meme","outputs":[{"internalType":"contract IERC20","name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"memeLtd","outputs":[{"internalType":"contract ERC1155Tradable","name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[],"name":"pause","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"paused","outputs":[{"internalType":"bool","name":"","type":"bool"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"pendingWithdrawals","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"periodStart","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"points","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"internalType":"uint256","name":"id","type":"uint256"}],"name":"redeem","outputs":[],"payable":true,"stateMutability":"payable","type":"function"},{"constant":false,"inputs":[],"name":"renounceOwnership","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[],"name":"renouncePauser","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"rescuePineapples","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"rescuer","outputs":[{"internalType":"address","name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"rewardRate","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"internalType":"address","name":"_artist","type":"address"}],"name":"setArtist","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"internalType":"address","name":"_controller","type":"address"}],"name":"setController","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"internalType":"uint256","name":"_controllerShare","type":"uint256"}],"name":"setControllerShare","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"internalType":"address","name":"_rescuer","type":"address"}],"name":"setRescuer","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"spentPineapples","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"stake","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"totalFeesCollected","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[],"name":"unpause","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"withdraw","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[],"name":"withdrawFee","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"}]
Contract Creation Code
6080604052650a86cc92e3906008553480156200001b57600080fd5b506040516200274838038062002748833981810160405260e08110156200004157600080fd5b508051602082015160408301516060840151608085015160a086015160c090960151600080546001600160a01b0319166001600160a01b0383161781559596949593949293919291620000936200016b565b600380546001600160a01b0319166001600160a01b038316908117909155604051919250906000907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908290a35062000107620000f86001600160e01b036200016b16565b6001600160e01b036200016f16565b5060058054600697909755600795909555600b93909355600d80546001600160a01b039384166001600160a01b031991821617909155600e80549284169290911691909117905516610100026001600160a81b0319909216919091179055620002eb565b3390565b6200018a816004620001c160201b620022751790919060201c565b6040516001600160a01b038216907f6719d08c1888103bea251a4ed56406bd0c3e69723c8a1686e017e7bbe159b6f890600090a250565b620001d682826001600160e01b036200026816565b156200024357604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601f60248201527f526f6c65733a206163636f756e7420616c72656164792068617320726f6c6500604482015290519081900360640190fd5b6001600160a01b0316600090815260209190915260409020805460ff19166001179055565b60006001600160a01b038216620002cb576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401808060200182810382526022815260200180620027266022913960400191505060405180910390fd5b506001600160a01b03166000908152602091909152604090205460ff1690565b61242b80620002fb6000396000f3fe6080604052600436106102d05760003560e01c80637b0a47ee11610179578063db006a75116100d6578063ec35e6c81161008a578063f2fde38b11610064578063f2fde38b14610858578063f3f437031461088b578063f77c4791146108be576102d0565b8063ec35e6c8146107ef578063eda4e6d614610819578063eff045e91461082e576102d0565b8063e941fa78116100bb578063e941fa78146107b0578063e9fad8ee146107c5578063ea1b28e0146107da576102d0565b8063db006a751461077e578063e107aa171461079b576102d0565b80638f32d59b1161012d578063a694fc3a11610112578063a694fc3a146106ee578063cd5cecf814610718578063d4c975331461074b576102d0565b80638f32d59b146106a657806392eefe9b146106bb576102d0565b80638456cb591161015e5780638456cb59146106345780638da5cb5b146106495780638dc107681461065e576102d0565b80637b0a47ee146105ec57806382dc1ec414610601576102d0565b806343bc1612116102325780635c975abb116101e657806370a08231116101c057806370a082311461057a578063715018a6146105ad578063735d6a52146105c2576102d0565b80635c975abb1461053b57806360c6d8ae146105505780636ef8d66d14610565576102d0565b806346fbf68e1161021757806346fbf68e146104b5578063478c4d66146104fc5780634e9cbeaa14610526576102d0565b806343bc16121461048b57806344097c48146104a0576102d0565b80632e1a7d4d1161028957806338a631831161026e57806338a63183146104305780633f4ba83a146104615780633ffcfe3b14610476576102d0565b80632e1a7d4d146103d1578063358b8166146103fd576102d0565b806319a9d888116102ba57806319a9d8881461032f578063290bb1941461036b5780632ce9aead1461039e576102d0565b80628cc262146102d557806318160ddd1461031a575b600080fd5b3480156102e157600080fd5b50610308600480360360208110156102f857600080fd5b50356001600160a01b03166108d3565b60408051918252519081900360200190f35b34801561032657600080fd5b50610308610959565b34801561033b57600080fd5b506103086004803603608081101561035257600080fd5b508035906020810135906040810135906060013561095f565b34801561037757600080fd5b506103086004803603602081101561038e57600080fd5b50356001600160a01b0316610b3c565b3480156103aa57600080fd5b50610308600480360360208110156103c157600080fd5b50356001600160a01b0316610c86565b3480156103dd57600080fd5b506103fb600480360360208110156103f457600080fd5b5035610c98565b005b34801561040957600080fd5b506103086004803603602081101561042057600080fd5b50356001600160a01b0316610d68565b34801561043c57600080fd5b50610445610d7a565b604080516001600160a01b039092168252519081900360200190f35b34801561046d57600080fd5b506103fb610d89565b34801561048257600080fd5b50610308610e99565b34801561049757600080fd5b50610445610e9f565b3480156104ac57600080fd5b50610445610eae565b3480156104c157600080fd5b506104e8600480360360208110156104d857600080fd5b50356001600160a01b0316610ebd565b604080519115158252519081900360200190f35b34801561050857600080fd5b506103fb6004803603602081101561051f57600080fd5b5035610ed6565b34801561053257600080fd5b50610308610f34565b34801561054757600080fd5b506104e8610f3a565b34801561055c57600080fd5b50610308610f43565b34801561057157600080fd5b506103fb610f49565b34801561058657600080fd5b506103086004803603602081101561059d57600080fd5b50356001600160a01b0316610f5b565b3480156105b957600080fd5b506103fb610f76565b3480156105ce57600080fd5b50610308600480360360208110156105e557600080fd5b5035611031565b3480156105f857600080fd5b50610308611043565b34801561060d57600080fd5b506103fb6004803603602081101561062457600080fd5b50356001600160a01b0316611049565b34801561064057600080fd5b506103fb61109b565b34801561065557600080fd5b5061044561118d565b34801561066a57600080fd5b506106886004803603602081101561068157600080fd5b503561119c565b60408051938452602084019290925282820152519081900360600190f35b3480156106b257600080fd5b506104e86111bd565b3480156106c757600080fd5b506103fb600480360360208110156106de57600080fd5b50356001600160a01b03166111e3565b3480156106fa57600080fd5b506103fb6004803603602081101561071157600080fd5b50356112c2565b34801561072457600080fd5b506103fb6004803603602081101561073b57600080fd5b50356001600160a01b0316611445565b34801561075757600080fd5b506103fb6004803603602081101561076e57600080fd5b50356001600160a01b03166114d8565b6103fb6004803603602081101561079457600080fd5b50356115b7565b3480156107a757600080fd5b50610445611a14565b3480156107bc57600080fd5b506103fb611a28565b3480156107d157600080fd5b506103fb611b3d565b3480156107e657600080fd5b50610308611b4e565b3480156107fb57600080fd5b506103086004803603602081101561081257600080fd5b5035611b54565b34801561082557600080fd5b50610308611b69565b34801561083a57600080fd5b506103086004803603602081101561085157600080fd5b5035611b6f565b34801561086457600080fd5b506103fb6004803603602081101561087b57600080fd5b50356001600160a01b0316611b84565b34801561089757600080fd5b50610308600480360360208110156108ae57600080fd5b50356001600160a01b0316611be6565b3480156108ca57600080fd5b50610445611bf8565b6001600160a01b03811660009081526011602090815260408083205460085460109093529083205442926109529291610946916305f5e1009161093a916109319161092590899063ffffffff611c0716565b9063ffffffff611c6416565b61092589610f5b565b9063ffffffff611cd316565b9063ffffffff611d3d16565b9392505050565b60015490565b60006109696111bd565b6109ba576040805162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015290519081900360640190fd5b600554604080517fb09ddf7b00000000000000000000000000000000000000000000000000000000815260048101889052600060248201819052608060448301526084820181905260c0606483015260c482018190529151919261010090046001600160a01b03169163b09ddf7b916101048082019260209290919082900301818787803b158015610a4b57600080fd5b505af1158015610a5f573d6000803e3d6000fd5b505050506040513d6020811015610a7557600080fd5b5051905080610acb576040805162461bcd60e51b815260206004820152601e60248201527f455243313135352063726561746520646964206e6f7420737563636565640000604482015290519081900360640190fd5b600081815260126020908152604091829020878155600181018690556002810187905582518481529182018890528183018790526060820186905291517f2a833d924c4f7e7081ff80c9e28be47ee8f8cbb32c247458e269bef07bc828869181900360800190a15095945050505050565b6000816001600160a01b03811615610b7f57610b57816108d3565b6001600160a01b03821660009081526011602090815260408083209390935560109052204290555b600c546001600160a01b03163314610bde576040805162461bcd60e51b815260206004820152600860248201527f2172657363756572000000000000000000000000000000000000000000000000604482015290519081900360640190fd5b6001600160a01b038316600090815260116020526040902054600a54610c0a908263ffffffff611d3d16565b600a556001600160a01b0384166000908152601160205260408120819055610c3185610f5b565b1115610c4057610c4084611d97565b6040805182815290516001600160a01b038616917f4896181ff8f4543cc00db9fe9b6fb7e6f032b7eb772c72ab1ec1b4d2e03b9369919081900360200190a29392505050565b60106020526000908152604090205481565b338015610cd057610ca8816108d3565b6001600160a01b03821660009081526011602090815260408083209390935560109052204290555b60008211610d25576040805162461bcd60e51b815260206004820152601160248201527f43616e6e6f742077697468647261772030000000000000000000000000000000604482015290519081900360640190fd5b610d2e82611ea1565b60408051838152905133917f7084f5476618d8e60b11ef0d7d3f06914655adb8793e28ff7f018d4c76d505d5919081900360200190a25050565b60116020526000908152604090205481565b600c546001600160a01b031681565b610d99610d94611f83565b610ebd565b610dd45760405162461bcd60e51b81526004018080602001828103825260308152602001806123156030913960400191505060405180910390fd5b60055460ff16610e2b576040805162461bcd60e51b815260206004820152601460248201527f5061757361626c653a206e6f7420706175736564000000000000000000000000604482015290519081900360640190fd5b600580547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff001690557f5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa610e7c611f83565b604080516001600160a01b039092168252519081900360200190a1565b600a5481565b600d546001600160a01b031681565b6000546001600160a01b031681565b6000610ed060048363ffffffff611f8716565b92915050565b610ede6111bd565b610f2f576040805162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015290519081900360640190fd5b600b55565b600b5481565b60055460ff1690565b60095481565b610f59610f54611f83565b611fee565b565b6001600160a01b031660009081526002602052604090205490565b610f7e6111bd565b610fcf576040805162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015290519081900360640190fd5b6003546040516000916001600160a01b0316907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908390a3600380547fffffffffffffffffffffffff0000000000000000000000000000000000000000169055565b60009081526012602052604090205490565b60085481565b611054610d94611f83565b61108f5760405162461bcd60e51b81526004018080602001828103825260308152602001806123156030913960400191505060405180910390fd5b61109881612036565b50565b6110a6610d94611f83565b6110e15760405162461bcd60e51b81526004018080602001828103825260308152602001806123156030913960400191505060405180910390fd5b60055460ff1615611139576040805162461bcd60e51b815260206004820152601060248201527f5061757361626c653a2070617573656400000000000000000000000000000000604482015290519081900360640190fd5b600580547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff001660011790557f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a258610e7c611f83565b6003546001600160a01b031690565b60126020526000908152604090208054600182015460029092015490919083565b6003546000906001600160a01b03166111d4611f83565b6001600160a01b031614905090565b6111eb6111bd565b61123c576040805162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015290519081900360640190fd5b600e546001600160a01b039081166000908152600f60205260408082208054908390559284168252902054611277908263ffffffff611d3d16565b6001600160a01b039092166000818152600f602052604090209290925550600e80547fffffffffffffffffffffffff0000000000000000000000000000000000000000169091179055565b3380156112fa576112d2816108d3565b6001600160a01b03821660009081526011602090815260408083209390935560109052204290555b60055460ff1615611352576040805162461bcd60e51b815260206004820152601060248201527f5061757361626c653a2070617573656400000000000000000000000000000000604482015290519081900360640190fd5b6006544210156113a9576040805162461bcd60e51b815260206004820152600d60248201527f506f6f6c206e6f74206f70656e00000000000000000000000000000000000000604482015290519081900360640190fd5b6007546113c56113b833610f5b565b849063ffffffff611d3d16565b11156114025760405162461bcd60e51b81526004018080602001828103825260218152602001806123d66021913960400191505060405180910390fd5b61140b8261207e565b60408051838152905133917f9e71bc8eea02a63969f509818f2dafb9254532904319f9dbda79b67bd34a5f3d919081900360200190a25050565b61144d6111bd565b61149e576040805162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015290519081900360640190fd5b600c80547fffffffffffffffffffffffff0000000000000000000000000000000000000000166001600160a01b0392909216919091179055565b6114e06111bd565b611531576040805162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015290519081900360640190fd5b600d546001600160a01b039081166000908152600f6020526040808220805490839055928416825290205461156c908263ffffffff611d3d16565b6001600160a01b039092166000818152600f602052604090209290925550600d80547fffffffffffffffffffffffff0000000000000000000000000000000000000000169091179055565b3380156115ef576115c7816108d3565b6001600160a01b03821660009081526011602090815260408083209390935560109052204290555b60008281526012602052604090205461164f576040805162461bcd60e51b815260206004820152600e60248201527f43617264206e6f7420666f756e64000000000000000000000000000000000000604482015290519081900360640190fd5b6000828152601260205260409020600101544210156116b5576040805162461bcd60e51b815260206004820152601160248201527f43617264206e6f742072656c6561736564000000000000000000000000000000604482015290519081900360640190fd5b6000828152601260209081526040808320543384526011909252909120541015611726576040805162461bcd60e51b815260206004820181905260248201527f526564656d7074696f6e206578636565647320706f696e742062616c616e6365604482015290519081900360640190fd5b60008281526012602052604090206002015434146117755760405162461bcd60e51b815260040180806020018281038252602881526020018061236b6028913960400191505060405180910390fd5b600082815260126020526040902060020154156118cd5760006117a96103e861093a600b5434611c6490919063ffffffff16565b905060006117bd348363ffffffff611c0716565b9050346117d0828463ffffffff611d3d16565b14611822576040805162461bcd60e51b815260206004820152601060248201527f70726f626c656d20776974682066656500000000000000000000000000000000604482015290519081900360640190fd5b6000848152601260205260409020600201546009546118469163ffffffff611d3d16565b600955600e546001600160a01b03166000908152600f6020526040902054611874908363ffffffff611d3d16565b600e546001600160a01b039081166000908152600f602052604080822093909355600d54909116815220546118af908263ffffffff611d3d16565b600d546001600160a01b03166000908152600f602052604090205550505b6000828152601260209081526040808320543384526011909252909120546118fa9163ffffffff611c0716565b33600090815260116020908152604080832093909355848252601290522054600a5461192b9163ffffffff611d3d16565b600a55600554604080517f731133e900000000000000000000000000000000000000000000000000000000815233600482015260248101859052600160448201526080606482015260006084820181905291516101009093046001600160a01b03169263731133e99260c48084019391929182900301818387803b1580156119b257600080fd5b505af11580156119c6573d6000803e3d6000fd5b50505060008381526012602090815260409182902054825190815291513393507f4896181ff8f4543cc00db9fe9b6fb7e6f032b7eb772c72ab1ec1b4d2e03b93699281900390910190a25050565b60055461010090046001600160a01b031681565b600d546001600160a01b0316331480611a4b5750600e546001600160a01b031633145b611a9c576040805162461bcd60e51b815260206004820152601660248201527f21617274697374206f722021636f6e74726f6c6c657200000000000000000000604482015290519081900360640190fd5b336000908152600f602052604090205480611afe576040805162461bcd60e51b815260206004820152601360248201527f6e6f7468696e6720746f20776974686472617700000000000000000000000000604482015290519081900360640190fd5b336000818152600f60205260408082208290555183156108fc0291849190818181858888f19350505050158015611b39573d6000803e3d6000fd5b5050565b610f59611b4933610f5b565b610c98565b60075481565b60009081526012602052604090206002015490565b60065481565b60009081526012602052604090206001015490565b611b8c6111bd565b611bdd576040805162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015290519081900360640190fd5b61109881612137565b600f6020526000908152604090205481565b600e546001600160a01b031681565b600082821115611c5e576040805162461bcd60e51b815260206004820152601760248201527f536166654d617468237375623a20554e444552464c4f57000000000000000000604482015290519081900360640190fd5b50900390565b600082611c7357506000610ed0565b82820282848281611c8057fe5b0414610952576040805162461bcd60e51b815260206004820152601660248201527f536166654d617468236d756c3a204f564552464c4f5700000000000000000000604482015290519081900360640190fd5b6000808211611d29576040805162461bcd60e51b815260206004820152601e60248201527f536166654d617468236469763a204449564953494f4e5f42595f5a45524f0000604482015290519081900360640190fd5b6000828481611d3457fe5b04949350505050565b600082820183811015610952576040805162461bcd60e51b815260206004820152601660248201527f536166654d617468236164643a204f564552464c4f5700000000000000000000604482015290519081900360640190fd5b6001600160a01b038116600090815260026020526040902054600154611dc3908263ffffffff611c0716565b6001556001600160a01b038216600090815260026020526040902054611def908263ffffffff611c0716565b6001600160a01b03808416600081815260026020908152604080832095909555815485517fa9059cbb0000000000000000000000000000000000000000000000000000000081526004810194909452602484018790529451949093169363a9059cbb936044808501949193918390030190829087803b158015611e7157600080fd5b505af1158015611e85573d6000803e3d6000fd5b505050506040513d6020811015611e9b57600080fd5b50505050565b600154611eb4908263ffffffff611c0716565b60015533600090815260026020526040902054611ed7908263ffffffff611c0716565b33600081815260026020908152604080832094909455815484517fa9059cbb00000000000000000000000000000000000000000000000000000000815260048101949094526024840186905293516001600160a01b039094169363a9059cbb93604480820194918390030190829087803b158015611f5457600080fd5b505af1158015611f68573d6000803e3d6000fd5b505050506040513d6020811015611f7e57600080fd5b505050565b3390565b60006001600160a01b038216611fce5760405162461bcd60e51b81526004018080602001828103825260228152602001806123b46022913960400191505060405180910390fd5b506001600160a01b03166000908152602091909152604090205460ff1690565b611fff60048263ffffffff6121f016565b6040516001600160a01b038216907fcd265ebaf09df2871cc7bd4133404a235ba12eff2041bb89d9c714a2621c7c7e90600090a250565b61204760048263ffffffff61227516565b6040516001600160a01b038216907f6719d08c1888103bea251a4ed56406bd0c3e69723c8a1686e017e7bbe159b6f890600090a250565b600154612091908263ffffffff611d3d16565b600155336000908152600260205260409020546120b4908263ffffffff611d3d16565b33600081815260026020908152604080832094909455815484517f23b872dd00000000000000000000000000000000000000000000000000000000815260048101949094523060248501526044840186905293516001600160a01b03909416936323b872dd93606480820194918390030190829087803b158015611f5457600080fd5b6001600160a01b03811661217c5760405162461bcd60e51b81526004018080602001828103825260268152602001806123456026913960400191505060405180910390fd5b6003546040516001600160a01b038084169216907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a3600380547fffffffffffffffffffffffff0000000000000000000000000000000000000000166001600160a01b0392909216919091179055565b6121fa8282611f87565b6122355760405162461bcd60e51b81526004018080602001828103825260218152602001806123936021913960400191505060405180910390fd5b6001600160a01b031660009081526020919091526040902080547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff00169055565b61227f8282611f87565b156122d1576040805162461bcd60e51b815260206004820152601f60248201527f526f6c65733a206163636f756e7420616c72656164792068617320726f6c6500604482015290519081900360640190fd5b6001600160a01b031660009081526020919091526040902080547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0016600117905556fe506175736572526f6c653a2063616c6c657220646f6573206e6f742068617665207468652050617573657220726f6c654f776e61626c653a206e6577206f776e657220697320746865207a65726f2061646472657373537570706f7274206f757220617274697374732e2053656e64207468652070726f70657220455448526f6c65733a206163636f756e7420646f6573206e6f74206861766520726f6c65526f6c65733a206163636f756e7420697320746865207a65726f20616464726573734465706f7369742035204d454d45206f72206c6573732c206e6f207768616c6573a265627a7a723158208f595623057aa40b857615a84f0fd444d7b0558920e038d46d4d78740f7165c864736f6c634300050c0032526f6c65733a206163636f756e7420697320746865207a65726f2061646472657373000000000000000000000000000000000000000000000000000000005f9b73a0000000000000000000000000000000000000000000000000000000001dcd65000000000000000000000000000000000000000000000000000000000000000064000000000000000000000000d89dbb0959ea22e87ca3449580e947c6aaafa0dd000000000000000000000000214bc6a17e022cff3676d3979b748f2940317957000000000000000000000000e4605d46fd0b3f8329d936a8b258d69276cba264000000000000000000000000d5525d397898e5502075ea5e830d8914f6f0affe
Deployed Bytecode
0x6080604052600436106102d05760003560e01c80637b0a47ee11610179578063db006a75116100d6578063ec35e6c81161008a578063f2fde38b11610064578063f2fde38b14610858578063f3f437031461088b578063f77c4791146108be576102d0565b8063ec35e6c8146107ef578063eda4e6d614610819578063eff045e91461082e576102d0565b8063e941fa78116100bb578063e941fa78146107b0578063e9fad8ee146107c5578063ea1b28e0146107da576102d0565b8063db006a751461077e578063e107aa171461079b576102d0565b80638f32d59b1161012d578063a694fc3a11610112578063a694fc3a146106ee578063cd5cecf814610718578063d4c975331461074b576102d0565b80638f32d59b146106a657806392eefe9b146106bb576102d0565b80638456cb591161015e5780638456cb59146106345780638da5cb5b146106495780638dc107681461065e576102d0565b80637b0a47ee146105ec57806382dc1ec414610601576102d0565b806343bc1612116102325780635c975abb116101e657806370a08231116101c057806370a082311461057a578063715018a6146105ad578063735d6a52146105c2576102d0565b80635c975abb1461053b57806360c6d8ae146105505780636ef8d66d14610565576102d0565b806346fbf68e1161021757806346fbf68e146104b5578063478c4d66146104fc5780634e9cbeaa14610526576102d0565b806343bc16121461048b57806344097c48146104a0576102d0565b80632e1a7d4d1161028957806338a631831161026e57806338a63183146104305780633f4ba83a146104615780633ffcfe3b14610476576102d0565b80632e1a7d4d146103d1578063358b8166146103fd576102d0565b806319a9d888116102ba57806319a9d8881461032f578063290bb1941461036b5780632ce9aead1461039e576102d0565b80628cc262146102d557806318160ddd1461031a575b600080fd5b3480156102e157600080fd5b50610308600480360360208110156102f857600080fd5b50356001600160a01b03166108d3565b60408051918252519081900360200190f35b34801561032657600080fd5b50610308610959565b34801561033b57600080fd5b506103086004803603608081101561035257600080fd5b508035906020810135906040810135906060013561095f565b34801561037757600080fd5b506103086004803603602081101561038e57600080fd5b50356001600160a01b0316610b3c565b3480156103aa57600080fd5b50610308600480360360208110156103c157600080fd5b50356001600160a01b0316610c86565b3480156103dd57600080fd5b506103fb600480360360208110156103f457600080fd5b5035610c98565b005b34801561040957600080fd5b506103086004803603602081101561042057600080fd5b50356001600160a01b0316610d68565b34801561043c57600080fd5b50610445610d7a565b604080516001600160a01b039092168252519081900360200190f35b34801561046d57600080fd5b506103fb610d89565b34801561048257600080fd5b50610308610e99565b34801561049757600080fd5b50610445610e9f565b3480156104ac57600080fd5b50610445610eae565b3480156104c157600080fd5b506104e8600480360360208110156104d857600080fd5b50356001600160a01b0316610ebd565b604080519115158252519081900360200190f35b34801561050857600080fd5b506103fb6004803603602081101561051f57600080fd5b5035610ed6565b34801561053257600080fd5b50610308610f34565b34801561054757600080fd5b506104e8610f3a565b34801561055c57600080fd5b50610308610f43565b34801561057157600080fd5b506103fb610f49565b34801561058657600080fd5b506103086004803603602081101561059d57600080fd5b50356001600160a01b0316610f5b565b3480156105b957600080fd5b506103fb610f76565b3480156105ce57600080fd5b50610308600480360360208110156105e557600080fd5b5035611031565b3480156105f857600080fd5b50610308611043565b34801561060d57600080fd5b506103fb6004803603602081101561062457600080fd5b50356001600160a01b0316611049565b34801561064057600080fd5b506103fb61109b565b34801561065557600080fd5b5061044561118d565b34801561066a57600080fd5b506106886004803603602081101561068157600080fd5b503561119c565b60408051938452602084019290925282820152519081900360600190f35b3480156106b257600080fd5b506104e86111bd565b3480156106c757600080fd5b506103fb600480360360208110156106de57600080fd5b50356001600160a01b03166111e3565b3480156106fa57600080fd5b506103fb6004803603602081101561071157600080fd5b50356112c2565b34801561072457600080fd5b506103fb6004803603602081101561073b57600080fd5b50356001600160a01b0316611445565b34801561075757600080fd5b506103fb6004803603602081101561076e57600080fd5b50356001600160a01b03166114d8565b6103fb6004803603602081101561079457600080fd5b50356115b7565b3480156107a757600080fd5b50610445611a14565b3480156107bc57600080fd5b506103fb611a28565b3480156107d157600080fd5b506103fb611b3d565b3480156107e657600080fd5b50610308611b4e565b3480156107fb57600080fd5b506103086004803603602081101561081257600080fd5b5035611b54565b34801561082557600080fd5b50610308611b69565b34801561083a57600080fd5b506103086004803603602081101561085157600080fd5b5035611b6f565b34801561086457600080fd5b506103fb6004803603602081101561087b57600080fd5b50356001600160a01b0316611b84565b34801561089757600080fd5b50610308600480360360208110156108ae57600080fd5b50356001600160a01b0316611be6565b3480156108ca57600080fd5b50610445611bf8565b6001600160a01b03811660009081526011602090815260408083205460085460109093529083205442926109529291610946916305f5e1009161093a916109319161092590899063ffffffff611c0716565b9063ffffffff611c6416565b61092589610f5b565b9063ffffffff611cd316565b9063ffffffff611d3d16565b9392505050565b60015490565b60006109696111bd565b6109ba576040805162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015290519081900360640190fd5b600554604080517fb09ddf7b00000000000000000000000000000000000000000000000000000000815260048101889052600060248201819052608060448301526084820181905260c0606483015260c482018190529151919261010090046001600160a01b03169163b09ddf7b916101048082019260209290919082900301818787803b158015610a4b57600080fd5b505af1158015610a5f573d6000803e3d6000fd5b505050506040513d6020811015610a7557600080fd5b5051905080610acb576040805162461bcd60e51b815260206004820152601e60248201527f455243313135352063726561746520646964206e6f7420737563636565640000604482015290519081900360640190fd5b600081815260126020908152604091829020878155600181018690556002810187905582518481529182018890528183018790526060820186905291517f2a833d924c4f7e7081ff80c9e28be47ee8f8cbb32c247458e269bef07bc828869181900360800190a15095945050505050565b6000816001600160a01b03811615610b7f57610b57816108d3565b6001600160a01b03821660009081526011602090815260408083209390935560109052204290555b600c546001600160a01b03163314610bde576040805162461bcd60e51b815260206004820152600860248201527f2172657363756572000000000000000000000000000000000000000000000000604482015290519081900360640190fd5b6001600160a01b038316600090815260116020526040902054600a54610c0a908263ffffffff611d3d16565b600a556001600160a01b0384166000908152601160205260408120819055610c3185610f5b565b1115610c4057610c4084611d97565b6040805182815290516001600160a01b038616917f4896181ff8f4543cc00db9fe9b6fb7e6f032b7eb772c72ab1ec1b4d2e03b9369919081900360200190a29392505050565b60106020526000908152604090205481565b338015610cd057610ca8816108d3565b6001600160a01b03821660009081526011602090815260408083209390935560109052204290555b60008211610d25576040805162461bcd60e51b815260206004820152601160248201527f43616e6e6f742077697468647261772030000000000000000000000000000000604482015290519081900360640190fd5b610d2e82611ea1565b60408051838152905133917f7084f5476618d8e60b11ef0d7d3f06914655adb8793e28ff7f018d4c76d505d5919081900360200190a25050565b60116020526000908152604090205481565b600c546001600160a01b031681565b610d99610d94611f83565b610ebd565b610dd45760405162461bcd60e51b81526004018080602001828103825260308152602001806123156030913960400191505060405180910390fd5b60055460ff16610e2b576040805162461bcd60e51b815260206004820152601460248201527f5061757361626c653a206e6f7420706175736564000000000000000000000000604482015290519081900360640190fd5b600580547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff001690557f5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa610e7c611f83565b604080516001600160a01b039092168252519081900360200190a1565b600a5481565b600d546001600160a01b031681565b6000546001600160a01b031681565b6000610ed060048363ffffffff611f8716565b92915050565b610ede6111bd565b610f2f576040805162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015290519081900360640190fd5b600b55565b600b5481565b60055460ff1690565b60095481565b610f59610f54611f83565b611fee565b565b6001600160a01b031660009081526002602052604090205490565b610f7e6111bd565b610fcf576040805162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015290519081900360640190fd5b6003546040516000916001600160a01b0316907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908390a3600380547fffffffffffffffffffffffff0000000000000000000000000000000000000000169055565b60009081526012602052604090205490565b60085481565b611054610d94611f83565b61108f5760405162461bcd60e51b81526004018080602001828103825260308152602001806123156030913960400191505060405180910390fd5b61109881612036565b50565b6110a6610d94611f83565b6110e15760405162461bcd60e51b81526004018080602001828103825260308152602001806123156030913960400191505060405180910390fd5b60055460ff1615611139576040805162461bcd60e51b815260206004820152601060248201527f5061757361626c653a2070617573656400000000000000000000000000000000604482015290519081900360640190fd5b600580547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff001660011790557f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a258610e7c611f83565b6003546001600160a01b031690565b60126020526000908152604090208054600182015460029092015490919083565b6003546000906001600160a01b03166111d4611f83565b6001600160a01b031614905090565b6111eb6111bd565b61123c576040805162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015290519081900360640190fd5b600e546001600160a01b039081166000908152600f60205260408082208054908390559284168252902054611277908263ffffffff611d3d16565b6001600160a01b039092166000818152600f602052604090209290925550600e80547fffffffffffffffffffffffff0000000000000000000000000000000000000000169091179055565b3380156112fa576112d2816108d3565b6001600160a01b03821660009081526011602090815260408083209390935560109052204290555b60055460ff1615611352576040805162461bcd60e51b815260206004820152601060248201527f5061757361626c653a2070617573656400000000000000000000000000000000604482015290519081900360640190fd5b6006544210156113a9576040805162461bcd60e51b815260206004820152600d60248201527f506f6f6c206e6f74206f70656e00000000000000000000000000000000000000604482015290519081900360640190fd5b6007546113c56113b833610f5b565b849063ffffffff611d3d16565b11156114025760405162461bcd60e51b81526004018080602001828103825260218152602001806123d66021913960400191505060405180910390fd5b61140b8261207e565b60408051838152905133917f9e71bc8eea02a63969f509818f2dafb9254532904319f9dbda79b67bd34a5f3d919081900360200190a25050565b61144d6111bd565b61149e576040805162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015290519081900360640190fd5b600c80547fffffffffffffffffffffffff0000000000000000000000000000000000000000166001600160a01b0392909216919091179055565b6114e06111bd565b611531576040805162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015290519081900360640190fd5b600d546001600160a01b039081166000908152600f6020526040808220805490839055928416825290205461156c908263ffffffff611d3d16565b6001600160a01b039092166000818152600f602052604090209290925550600d80547fffffffffffffffffffffffff0000000000000000000000000000000000000000169091179055565b3380156115ef576115c7816108d3565b6001600160a01b03821660009081526011602090815260408083209390935560109052204290555b60008281526012602052604090205461164f576040805162461bcd60e51b815260206004820152600e60248201527f43617264206e6f7420666f756e64000000000000000000000000000000000000604482015290519081900360640190fd5b6000828152601260205260409020600101544210156116b5576040805162461bcd60e51b815260206004820152601160248201527f43617264206e6f742072656c6561736564000000000000000000000000000000604482015290519081900360640190fd5b6000828152601260209081526040808320543384526011909252909120541015611726576040805162461bcd60e51b815260206004820181905260248201527f526564656d7074696f6e206578636565647320706f696e742062616c616e6365604482015290519081900360640190fd5b60008281526012602052604090206002015434146117755760405162461bcd60e51b815260040180806020018281038252602881526020018061236b6028913960400191505060405180910390fd5b600082815260126020526040902060020154156118cd5760006117a96103e861093a600b5434611c6490919063ffffffff16565b905060006117bd348363ffffffff611c0716565b9050346117d0828463ffffffff611d3d16565b14611822576040805162461bcd60e51b815260206004820152601060248201527f70726f626c656d20776974682066656500000000000000000000000000000000604482015290519081900360640190fd5b6000848152601260205260409020600201546009546118469163ffffffff611d3d16565b600955600e546001600160a01b03166000908152600f6020526040902054611874908363ffffffff611d3d16565b600e546001600160a01b039081166000908152600f602052604080822093909355600d54909116815220546118af908263ffffffff611d3d16565b600d546001600160a01b03166000908152600f602052604090205550505b6000828152601260209081526040808320543384526011909252909120546118fa9163ffffffff611c0716565b33600090815260116020908152604080832093909355848252601290522054600a5461192b9163ffffffff611d3d16565b600a55600554604080517f731133e900000000000000000000000000000000000000000000000000000000815233600482015260248101859052600160448201526080606482015260006084820181905291516101009093046001600160a01b03169263731133e99260c48084019391929182900301818387803b1580156119b257600080fd5b505af11580156119c6573d6000803e3d6000fd5b50505060008381526012602090815260409182902054825190815291513393507f4896181ff8f4543cc00db9fe9b6fb7e6f032b7eb772c72ab1ec1b4d2e03b93699281900390910190a25050565b60055461010090046001600160a01b031681565b600d546001600160a01b0316331480611a4b5750600e546001600160a01b031633145b611a9c576040805162461bcd60e51b815260206004820152601660248201527f21617274697374206f722021636f6e74726f6c6c657200000000000000000000604482015290519081900360640190fd5b336000908152600f602052604090205480611afe576040805162461bcd60e51b815260206004820152601360248201527f6e6f7468696e6720746f20776974686472617700000000000000000000000000604482015290519081900360640190fd5b336000818152600f60205260408082208290555183156108fc0291849190818181858888f19350505050158015611b39573d6000803e3d6000fd5b5050565b610f59611b4933610f5b565b610c98565b60075481565b60009081526012602052604090206002015490565b60065481565b60009081526012602052604090206001015490565b611b8c6111bd565b611bdd576040805162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015290519081900360640190fd5b61109881612137565b600f6020526000908152604090205481565b600e546001600160a01b031681565b600082821115611c5e576040805162461bcd60e51b815260206004820152601760248201527f536166654d617468237375623a20554e444552464c4f57000000000000000000604482015290519081900360640190fd5b50900390565b600082611c7357506000610ed0565b82820282848281611c8057fe5b0414610952576040805162461bcd60e51b815260206004820152601660248201527f536166654d617468236d756c3a204f564552464c4f5700000000000000000000604482015290519081900360640190fd5b6000808211611d29576040805162461bcd60e51b815260206004820152601e60248201527f536166654d617468236469763a204449564953494f4e5f42595f5a45524f0000604482015290519081900360640190fd5b6000828481611d3457fe5b04949350505050565b600082820183811015610952576040805162461bcd60e51b815260206004820152601660248201527f536166654d617468236164643a204f564552464c4f5700000000000000000000604482015290519081900360640190fd5b6001600160a01b038116600090815260026020526040902054600154611dc3908263ffffffff611c0716565b6001556001600160a01b038216600090815260026020526040902054611def908263ffffffff611c0716565b6001600160a01b03808416600081815260026020908152604080832095909555815485517fa9059cbb0000000000000000000000000000000000000000000000000000000081526004810194909452602484018790529451949093169363a9059cbb936044808501949193918390030190829087803b158015611e7157600080fd5b505af1158015611e85573d6000803e3d6000fd5b505050506040513d6020811015611e9b57600080fd5b50505050565b600154611eb4908263ffffffff611c0716565b60015533600090815260026020526040902054611ed7908263ffffffff611c0716565b33600081815260026020908152604080832094909455815484517fa9059cbb00000000000000000000000000000000000000000000000000000000815260048101949094526024840186905293516001600160a01b039094169363a9059cbb93604480820194918390030190829087803b158015611f5457600080fd5b505af1158015611f68573d6000803e3d6000fd5b505050506040513d6020811015611f7e57600080fd5b505050565b3390565b60006001600160a01b038216611fce5760405162461bcd60e51b81526004018080602001828103825260228152602001806123b46022913960400191505060405180910390fd5b506001600160a01b03166000908152602091909152604090205460ff1690565b611fff60048263ffffffff6121f016565b6040516001600160a01b038216907fcd265ebaf09df2871cc7bd4133404a235ba12eff2041bb89d9c714a2621c7c7e90600090a250565b61204760048263ffffffff61227516565b6040516001600160a01b038216907f6719d08c1888103bea251a4ed56406bd0c3e69723c8a1686e017e7bbe159b6f890600090a250565b600154612091908263ffffffff611d3d16565b600155336000908152600260205260409020546120b4908263ffffffff611d3d16565b33600081815260026020908152604080832094909455815484517f23b872dd00000000000000000000000000000000000000000000000000000000815260048101949094523060248501526044840186905293516001600160a01b03909416936323b872dd93606480820194918390030190829087803b158015611f5457600080fd5b6001600160a01b03811661217c5760405162461bcd60e51b81526004018080602001828103825260268152602001806123456026913960400191505060405180910390fd5b6003546040516001600160a01b038084169216907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a3600380547fffffffffffffffffffffffff0000000000000000000000000000000000000000166001600160a01b0392909216919091179055565b6121fa8282611f87565b6122355760405162461bcd60e51b81526004018080602001828103825260218152602001806123936021913960400191505060405180910390fd5b6001600160a01b031660009081526020919091526040902080547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff00169055565b61227f8282611f87565b156122d1576040805162461bcd60e51b815260206004820152601f60248201527f526f6c65733a206163636f756e7420616c72656164792068617320726f6c6500604482015290519081900360640190fd5b6001600160a01b031660009081526020919091526040902080547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0016600117905556fe506175736572526f6c653a2063616c6c657220646f6573206e6f742068617665207468652050617573657220726f6c654f776e61626c653a206e6577206f776e657220697320746865207a65726f2061646472657373537570706f7274206f757220617274697374732e2053656e64207468652070726f70657220455448526f6c65733a206163636f756e7420646f6573206e6f74206861766520726f6c65526f6c65733a206163636f756e7420697320746865207a65726f20616464726573734465706f7369742035204d454d45206f72206c6573732c206e6f207768616c6573a265627a7a723158208f595623057aa40b857615a84f0fd444d7b0558920e038d46d4d78740f7165c864736f6c634300050c0032
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
000000000000000000000000000000000000000000000000000000005f9b73a0000000000000000000000000000000000000000000000000000000001dcd65000000000000000000000000000000000000000000000000000000000000000064000000000000000000000000d89dbb0959ea22e87ca3449580e947c6aaafa0dd000000000000000000000000214bc6a17e022cff3676d3979b748f2940317957000000000000000000000000e4605d46fd0b3f8329d936a8b258d69276cba264000000000000000000000000d5525d397898e5502075ea5e830d8914f6f0affe
-----Decoded View---------------
Arg [0] : _periodStart (uint256): 1604023200
Arg [1] : _maxStake (uint256): 500000000
Arg [2] : _controllerShare (uint256): 100
Arg [3] : _artist (address): 0xD89DBB0959eA22e87ca3449580e947c6aAafA0dD
Arg [4] : _controller (address): 0x214bc6A17E022cFF3676d3979b748F2940317957
Arg [5] : _memeLtdAddress (address): 0xe4605d46Fd0B3f8329d936a8b258D69276cBa264
Arg [6] : _memeAddress (address): 0xD5525D397898e5502075Ea5E830d8914f6F0affe
-----Encoded View---------------
7 Constructor Arguments found :
Arg [0] : 000000000000000000000000000000000000000000000000000000005f9b73a0
Arg [1] : 000000000000000000000000000000000000000000000000000000001dcd6500
Arg [2] : 0000000000000000000000000000000000000000000000000000000000000064
Arg [3] : 000000000000000000000000d89dbb0959ea22e87ca3449580e947c6aaafa0dd
Arg [4] : 000000000000000000000000214bc6a17e022cff3676d3979b748f2940317957
Arg [5] : 000000000000000000000000e4605d46fd0b3f8329d936a8b258d69276cba264
Arg [6] : 000000000000000000000000d5525d397898e5502075ea5e830d8914f6f0affe
Loading...
Loading
Loading...
Loading
Multichain Portfolio | 30 Chains
Chain | Token | Portfolio % | Price | Amount | Value |
---|---|---|---|---|---|
ETH | Ether (ETH) | 100.00% | $3,329.56 | 0.62 | $2,064.33 |
Loading...
Loading
[ Download: CSV Export ]
[ 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.