Polygon Sponsored slots available. Book your slot here!
Contract Overview
Balance:
0 MATIC
MATIC Value:
$0.00
My Name Tag:
Not Available, login to update
Txn Hash |
Method
|
Block
|
From
|
To
|
Value | [Txn Fee] | |||
---|---|---|---|---|---|---|---|---|---|
0x66e841494b4a1909370cd7adc321c65ef31da8c39db7c8bd5f8242bccb1ca417 | Grant Role | 38514655 | 6 days 14 hrs ago | 0xfc0121bf8d7492ae59aaa83da391a9fd821d14a4 | IN | 0x32ca43517ff82457cabc17a292c2ff937aa075c6 | 0 MATIC | 0.003737348795 | |
0x0400caabe7f55f4c8a567bd9b05be8bbeb5fc87b7846800a5f50aa1983d4b781 | 0x60806040 | 38514480 | 6 days 14 hrs ago | 0xfc0121bf8d7492ae59aaa83da391a9fd821d14a4 | IN | Create: Manager | 0 MATIC | 0.119393763056 |
[ Download CSV Export ]
Contract Name:
Manager
Compiler Version
v0.8.4+commit.c7e474f2
Optimization Enabled:
No with 200 runs
Other Settings:
default evmVersion
Contract Source Code (Solidity Standard Json-Input format)
//SPDX-License-Identifier:MIT import "./OpenMall.sol"; import "@openzeppelin/contracts/access/AccessControl.sol"; pragma solidity ^0.8.4; contract Manager is AccessControl { OpenMall public openMall; uint public date1; uint public date2; struct UserAccountDetails { uint lockedAmount; uint actualBalance; uint chosenDate; uint distribution; uint lastSwap; uint tokenSwapped; } mapping(address => UserAccountDetails) public userDetails; uint public blockPerDay = 43200; uint public blockPerMonth = blockPerDay * 30; uint public blockPer20Months = blockPerMonth * 20; uint public blockPer24Months = blockPerMonth * 24; uint public blockPer36Months = blockPerMonth * 36; constructor(uint _date1, uint _date2, address _openMallAddress){ date1 = _date1; date2 = _date2; _setupRole(DEFAULT_ADMIN_ROLE, msg.sender); openMall = OpenMall(_openMallAddress); } function setOpenMallContract(address _openMallAddress) public onlyRole(DEFAULT_ADMIN_ROLE) { openMall = OpenMall(_openMallAddress); } function changeDate1(uint _newDate) public onlyRole(DEFAULT_ADMIN_ROLE) { require(block.timestamp < date1 && block.timestamp < date2, "Manager: date cannot be changed anymore"); require(block.timestamp < _newDate, "Manager: new date must be greater than actual timestamp"); date1 = _newDate; } function changeDate2(uint _newDate) public onlyRole(DEFAULT_ADMIN_ROLE) { require(block.timestamp < date1 && block.timestamp < date2, "Manager: date cannot be changed anymore"); require(block.timestamp < _newDate, "Manager: new date must be greater than actual timestamp"); date2 = _newDate; } function sendToken(address _addToSend, uint _amount, uint _type) public onlyRole(DEFAULT_ADMIN_ROLE) { require(userDetails[_addToSend].lockedAmount == 0, "Manager: account already have token locked"); require(_type > 0 && _type < 4, "Manager: type used is not allowed"); openMall.mint(address(this), _amount); UserAccountDetails memory newUserAccountDetails; if(_type == 1) { newUserAccountDetails.chosenDate = 1; newUserAccountDetails.distribution = blockPer36Months; } if(_type == 2) { newUserAccountDetails.chosenDate = 1; newUserAccountDetails.distribution = blockPer24Months; } if(_type == 3) { newUserAccountDetails.chosenDate = 2; newUserAccountDetails.distribution = blockPer20Months; } newUserAccountDetails.lockedAmount = _amount; newUserAccountDetails.actualBalance = 0; newUserAccountDetails.lastSwap = 0; newUserAccountDetails.tokenSwapped = 0; userDetails[_addToSend] = newUserAccountDetails; } //send Tokens before date 1 and date 2 function transferToken(address _to, uint _amount) public{ require(userDetails[_to].lockedAmount == 0, "Manager: Can't send tokens to an address that already has them"); require(userDetails[msg.sender].lockedAmount > 0, "Manager: Can't send tokens if you don't have!"); require(userDetails[msg.sender].lockedAmount >= _amount, "Manager: Exceed your balance!"); require(block.timestamp < date1 && block.timestamp < date2, "Manager: Out of Time!"); userDetails[msg.sender].lockedAmount -= _amount; UserAccountDetails memory newUserAccountDetails; newUserAccountDetails.lockedAmount = _amount; newUserAccountDetails.actualBalance = 0; newUserAccountDetails.chosenDate = userDetails[msg.sender].chosenDate; newUserAccountDetails.distribution = userDetails[msg.sender].distribution; newUserAccountDetails.lastSwap = 0; newUserAccountDetails.tokenSwapped = 0; userDetails[_to] = newUserAccountDetails; } // Starting Swap following some rules function swap() public { require(block.timestamp > userDetails[msg.sender].chosenDate, "Manager: Swap Date is not started yet!"); require(userDetails[msg.sender].lockedAmount > 0, "Manager: No more tokens to withdraw!"); uint rewards = getReward(msg.sender); require(rewards > 0, "Manager: No more rewards to swap!"); userDetails[msg.sender].actualBalance += rewards; userDetails[msg.sender].lastSwap = block.timestamp; userDetails[msg.sender].tokenSwapped += rewards; openMall.transfer(msg.sender, rewards); } function getReward(address _addToCheck) public view returns(uint) { uint rewards1Block = userDetails[_addToCheck].lockedAmount / userDetails[_addToCheck].distribution; uint dateUnlock = getDateStartSwap(_addToCheck); uint blockToReward; if(dateUnlock > block.timestamp) { return 0; } else { uint timestampPassedToSwap = block.timestamp - dateUnlock; blockToReward = timestampPassedToSwap / 2; } uint rewards = rewards1Block * blockToReward - userDetails[_addToCheck].tokenSwapped; // sanity check if(rewards > userDetails[_addToCheck].lockedAmount - userDetails[_addToCheck].tokenSwapped) { rewards = userDetails[_addToCheck].lockedAmount - userDetails[_addToCheck].tokenSwapped; } return rewards; } // internal function getDateStartSwap(address _requestor) internal view returns(uint) { if(userDetails[_requestor].chosenDate == 1 ) { return date1; } else { return date2; } } }
//SPDX-License-Identifier:MIT import "@openzeppelin/contracts/token/ERC20/ERC20.sol"; import "@openzeppelin/contracts/access/AccessControl.sol"; import "@openzeppelin/contracts/utils/math/SafeMath.sol"; import "./Manager.sol"; pragma solidity ^0.8.4; contract OpenMall is ERC20, AccessControl{ using SafeMath for uint256; Manager public manager; uint maxSupply = 640000000 ether; uint public transferFee = 0; uint256 public constant MAX_FEE = 10000; address receiverFee; mapping (address => bool) private _isExcludedFromFee; bytes32 public constant MINTER_ROLE = keccak256("MINTER_ROLE"); constructor(string memory _name, string memory _symbol, address _receiverFee) ERC20(_name, _symbol){ _setupRole(DEFAULT_ADMIN_ROLE, msg.sender); receiverFee = _receiverFee; } function initManagerContract(address _managerAddress) public onlyRole(DEFAULT_ADMIN_ROLE) { manager = Manager(_managerAddress); _grantRole(MINTER_ROLE, _managerAddress); } function setTransferFee(uint256 _newTransferFee) external onlyRole(DEFAULT_ADMIN_ROLE) { require(_newTransferFee <= MAX_FEE, "OpenMall: excessive-fee"); transferFee = _newTransferFee; } function setReceiverFee(address _receiverFee) external onlyRole(DEFAULT_ADMIN_ROLE) { require(_receiverFee != address(0), "OpenMall: receiver fee cannot be address 0"); receiverFee = _receiverFee; } /** * @dev Set address of account as excluded from fee * Can only be called by the admin role. */ function excludeFromFee(address _account) public onlyRole(DEFAULT_ADMIN_ROLE) { _isExcludedFromFee[_account] = true; } /** * @dev Set address of account as included from fee * Can only be called by the admin role. */ function includeInFee(address _account) public onlyRole(DEFAULT_ADMIN_ROLE) { _isExcludedFromFee[_account] = false; } /** * @dev Returns if the address is excluded from fee */ function isExcludedFromFee(address _account) public view returns(bool) { return _isExcludedFromFee[_account]; } function mint(address _to, uint _amount) public onlyRole(MINTER_ROLE) { require(maxSupply >= totalSupply() + _amount, "OpenMall: max supply reached"); _mint(_to, _amount); } function _transfer( address from, address to, uint256 amount ) internal virtual override { if(!isExcludedFromFee(from) && !isExcludedFromFee(to)) { // take fee uint amountFee = amount.mul(transferFee).div( MAX_FEE ); amount = amount - amountFee; super._transfer(from, receiverFee, amountFee); } super._transfer(from, to, amount); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.6.0) (access/AccessControl.sol) pragma solidity ^0.8.0; import "./IAccessControl.sol"; import "../utils/Context.sol"; import "../utils/Strings.sol"; import "../utils/introspection/ERC165.sol"; /** * @dev Contract module that allows children to implement role-based access * control mechanisms. This is a lightweight version that doesn't allow enumerating role * members except through off-chain means by accessing the contract event logs. Some * applications may benefit from on-chain enumerability, for those cases see * {AccessControlEnumerable}. * * Roles are referred to by their `bytes32` identifier. These should be exposed * in the external API and be unique. The best way to achieve this is by * using `public constant` hash digests: * * ``` * bytes32 public constant MY_ROLE = keccak256("MY_ROLE"); * ``` * * Roles can be used to represent a set of permissions. To restrict access to a * function call, use {hasRole}: * * ``` * function foo() public { * require(hasRole(MY_ROLE, msg.sender)); * ... * } * ``` * * Roles can be granted and revoked dynamically via the {grantRole} and * {revokeRole} functions. Each role has an associated admin role, and only * accounts that have a role's admin role can call {grantRole} and {revokeRole}. * * By default, the admin role for all roles is `DEFAULT_ADMIN_ROLE`, which means * that only accounts with this role will be able to grant or revoke other * roles. More complex role relationships can be created by using * {_setRoleAdmin}. * * WARNING: The `DEFAULT_ADMIN_ROLE` is also its own admin: it has permission to * grant and revoke this role. Extra precautions should be taken to secure * accounts that have been granted it. */ abstract contract AccessControl is Context, IAccessControl, ERC165 { struct RoleData { mapping(address => bool) members; bytes32 adminRole; } mapping(bytes32 => RoleData) private _roles; bytes32 public constant DEFAULT_ADMIN_ROLE = 0x00; /** * @dev Modifier that checks that an account has a specific role. Reverts * with a standardized message including the required role. * * The format of the revert reason is given by the following regular expression: * * /^AccessControl: account (0x[0-9a-f]{40}) is missing role (0x[0-9a-f]{64})$/ * * _Available since v4.1._ */ modifier onlyRole(bytes32 role) { _checkRole(role); _; } /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) { return interfaceId == type(IAccessControl).interfaceId || super.supportsInterface(interfaceId); } /** * @dev Returns `true` if `account` has been granted `role`. */ function hasRole(bytes32 role, address account) public view virtual override returns (bool) { return _roles[role].members[account]; } /** * @dev Revert with a standard message if `_msgSender()` is missing `role`. * Overriding this function changes the behavior of the {onlyRole} modifier. * * Format of the revert message is described in {_checkRole}. * * _Available since v4.6._ */ function _checkRole(bytes32 role) internal view virtual { _checkRole(role, _msgSender()); } /** * @dev Revert with a standard message if `account` is missing `role`. * * The format of the revert reason is given by the following regular expression: * * /^AccessControl: account (0x[0-9a-f]{40}) is missing role (0x[0-9a-f]{64})$/ */ function _checkRole(bytes32 role, address account) internal view virtual { if (!hasRole(role, account)) { revert( string( abi.encodePacked( "AccessControl: account ", Strings.toHexString(uint160(account), 20), " is missing role ", Strings.toHexString(uint256(role), 32) ) ) ); } } /** * @dev Returns the admin role that controls `role`. See {grantRole} and * {revokeRole}. * * To change a role's admin, use {_setRoleAdmin}. */ function getRoleAdmin(bytes32 role) public view virtual override returns (bytes32) { return _roles[role].adminRole; } /** * @dev Grants `role` to `account`. * * If `account` had not been already granted `role`, emits a {RoleGranted} * event. * * Requirements: * * - the caller must have ``role``'s admin role. */ function grantRole(bytes32 role, address account) public virtual override onlyRole(getRoleAdmin(role)) { _grantRole(role, account); } /** * @dev Revokes `role` from `account`. * * If `account` had been granted `role`, emits a {RoleRevoked} event. * * Requirements: * * - the caller must have ``role``'s admin role. */ function revokeRole(bytes32 role, address account) public virtual override onlyRole(getRoleAdmin(role)) { _revokeRole(role, account); } /** * @dev Revokes `role` from the calling account. * * Roles are often managed via {grantRole} and {revokeRole}: this function's * purpose is to provide a mechanism for accounts to lose their privileges * if they are compromised (such as when a trusted device is misplaced). * * If the calling account had been revoked `role`, emits a {RoleRevoked} * event. * * Requirements: * * - the caller must be `account`. */ function renounceRole(bytes32 role, address account) public virtual override { require(account == _msgSender(), "AccessControl: can only renounce roles for self"); _revokeRole(role, account); } /** * @dev Grants `role` to `account`. * * If `account` had not been already granted `role`, emits a {RoleGranted} * event. Note that unlike {grantRole}, this function doesn't perform any * checks on the calling account. * * [WARNING] * ==== * This function should only be called from the constructor when setting * up the initial roles for the system. * * Using this function in any other way is effectively circumventing the admin * system imposed by {AccessControl}. * ==== * * NOTE: This function is deprecated in favor of {_grantRole}. */ function _setupRole(bytes32 role, address account) internal virtual { _grantRole(role, account); } /** * @dev Sets `adminRole` as ``role``'s admin role. * * Emits a {RoleAdminChanged} event. */ function _setRoleAdmin(bytes32 role, bytes32 adminRole) internal virtual { bytes32 previousAdminRole = getRoleAdmin(role); _roles[role].adminRole = adminRole; emit RoleAdminChanged(role, previousAdminRole, adminRole); } /** * @dev Grants `role` to `account`. * * Internal function without access restriction. */ function _grantRole(bytes32 role, address account) internal virtual { if (!hasRole(role, account)) { _roles[role].members[account] = true; emit RoleGranted(role, account, _msgSender()); } } /** * @dev Revokes `role` from `account`. * * Internal function without access restriction. */ function _revokeRole(bytes32 role, address account) internal virtual { if (hasRole(role, account)) { _roles[role].members[account] = false; emit RoleRevoked(role, account, _msgSender()); } } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.6.0) (token/ERC20/ERC20.sol) pragma solidity ^0.8.0; import "./IERC20.sol"; import "./extensions/IERC20Metadata.sol"; import "../../utils/Context.sol"; /** * @dev Implementation of the {IERC20} interface. * * This implementation is agnostic to the way tokens are created. This means * that a supply mechanism has to be added in a derived contract using {_mint}. * For a generic mechanism see {ERC20PresetMinterPauser}. * * TIP: For a detailed writeup see our guide * https://forum.zeppelin.solutions/t/how-to-implement-erc20-supply-mechanisms/226[How * to implement supply mechanisms]. * * We have followed general OpenZeppelin Contracts guidelines: functions revert * instead returning `false` on failure. This behavior is nonetheless * conventional and does not conflict with the expectations of ERC20 * applications. * * Additionally, an {Approval} event is emitted on calls to {transferFrom}. * This allows applications to reconstruct the allowance for all accounts just * by listening to said events. Other implementations of the EIP may not emit * these events, as it isn't required by the specification. * * Finally, the non-standard {decreaseAllowance} and {increaseAllowance} * functions have been added to mitigate the well-known issues around setting * allowances. See {IERC20-approve}. */ contract ERC20 is Context, IERC20, IERC20Metadata { mapping(address => uint256) private _balances; mapping(address => mapping(address => uint256)) private _allowances; uint256 private _totalSupply; string private _name; string private _symbol; /** * @dev Sets the values for {name} and {symbol}. * * The default value of {decimals} is 18. To select a different value for * {decimals} you should overload it. * * All two of these values are immutable: they can only be set once during * construction. */ constructor(string memory name_, string memory symbol_) { _name = name_; _symbol = symbol_; } /** * @dev Returns the name of the token. */ function name() public view virtual override returns (string memory) { return _name; } /** * @dev Returns the symbol of the token, usually a shorter version of the * name. */ function symbol() public view virtual override returns (string memory) { return _symbol; } /** * @dev Returns the number of decimals used to get its user representation. * For example, if `decimals` equals `2`, a balance of `505` tokens should * be displayed to a user as `5.05` (`505 / 10 ** 2`). * * Tokens usually opt for a value of 18, imitating the relationship between * Ether and Wei. This is the value {ERC20} uses, unless this function is * overridden; * * NOTE: This information is only used for _display_ purposes: it in * no way affects any of the arithmetic of the contract, including * {IERC20-balanceOf} and {IERC20-transfer}. */ function decimals() public view virtual override returns (uint8) { return 18; } /** * @dev See {IERC20-totalSupply}. */ function totalSupply() public view virtual override returns (uint256) { return _totalSupply; } /** * @dev See {IERC20-balanceOf}. */ function balanceOf(address account) public view virtual override returns (uint256) { return _balances[account]; } /** * @dev See {IERC20-transfer}. * * Requirements: * * - `to` cannot be the zero address. * - the caller must have a balance of at least `amount`. */ function transfer(address to, uint256 amount) public virtual override returns (bool) { address owner = _msgSender(); _transfer(owner, to, amount); return true; } /** * @dev See {IERC20-allowance}. */ function allowance(address owner, address spender) public view virtual override returns (uint256) { return _allowances[owner][spender]; } /** * @dev See {IERC20-approve}. * * NOTE: If `amount` is the maximum `uint256`, the allowance is not updated on * `transferFrom`. This is semantically equivalent to an infinite approval. * * Requirements: * * - `spender` cannot be the zero address. */ function approve(address spender, uint256 amount) public virtual override returns (bool) { address owner = _msgSender(); _approve(owner, spender, amount); return true; } /** * @dev See {IERC20-transferFrom}. * * Emits an {Approval} event indicating the updated allowance. This is not * required by the EIP. See the note at the beginning of {ERC20}. * * NOTE: Does not update the allowance if the current allowance * is the maximum `uint256`. * * Requirements: * * - `from` and `to` cannot be the zero address. * - `from` must have a balance of at least `amount`. * - the caller must have allowance for ``from``'s tokens of at least * `amount`. */ function transferFrom( address from, address to, uint256 amount ) public virtual override returns (bool) { address spender = _msgSender(); _spendAllowance(from, spender, amount); _transfer(from, to, amount); return true; } /** * @dev Atomically increases the allowance granted to `spender` by the caller. * * This is an alternative to {approve} that can be used as a mitigation for * problems described in {IERC20-approve}. * * Emits an {Approval} event indicating the updated allowance. * * Requirements: * * - `spender` cannot be the zero address. */ function increaseAllowance(address spender, uint256 addedValue) public virtual returns (bool) { address owner = _msgSender(); _approve(owner, spender, allowance(owner, spender) + addedValue); return true; } /** * @dev Atomically decreases the allowance granted to `spender` by the caller. * * This is an alternative to {approve} that can be used as a mitigation for * problems described in {IERC20-approve}. * * Emits an {Approval} event indicating the updated allowance. * * Requirements: * * - `spender` cannot be the zero address. * - `spender` must have allowance for the caller of at least * `subtractedValue`. */ function decreaseAllowance(address spender, uint256 subtractedValue) public virtual returns (bool) { address owner = _msgSender(); uint256 currentAllowance = allowance(owner, spender); require(currentAllowance >= subtractedValue, "ERC20: decreased allowance below zero"); unchecked { _approve(owner, spender, currentAllowance - subtractedValue); } return true; } /** * @dev Moves `amount` of tokens from `sender` to `recipient`. * * This internal function is equivalent to {transfer}, and can be used to * e.g. implement automatic token fees, slashing mechanisms, etc. * * Emits a {Transfer} event. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `from` must have a balance of at least `amount`. */ function _transfer( address from, address to, uint256 amount ) internal virtual { require(from != address(0), "ERC20: transfer from the zero address"); require(to != address(0), "ERC20: transfer to the zero address"); _beforeTokenTransfer(from, to, amount); uint256 fromBalance = _balances[from]; require(fromBalance >= amount, "ERC20: transfer amount exceeds balance"); unchecked { _balances[from] = fromBalance - amount; } _balances[to] += amount; emit Transfer(from, to, amount); _afterTokenTransfer(from, to, amount); } /** @dev Creates `amount` tokens and assigns them to `account`, increasing * the total supply. * * Emits a {Transfer} event with `from` set to the zero address. * * Requirements: * * - `account` cannot be the zero address. */ function _mint(address account, uint256 amount) internal virtual { require(account != address(0), "ERC20: mint to the zero address"); _beforeTokenTransfer(address(0), account, amount); _totalSupply += amount; _balances[account] += amount; emit Transfer(address(0), account, amount); _afterTokenTransfer(address(0), account, amount); } /** * @dev Destroys `amount` tokens from `account`, reducing the * total supply. * * Emits a {Transfer} event with `to` set to the zero address. * * Requirements: * * - `account` cannot be the zero address. * - `account` must have at least `amount` tokens. */ function _burn(address account, uint256 amount) internal virtual { require(account != address(0), "ERC20: burn from the zero address"); _beforeTokenTransfer(account, address(0), amount); uint256 accountBalance = _balances[account]; require(accountBalance >= amount, "ERC20: burn amount exceeds balance"); unchecked { _balances[account] = accountBalance - amount; } _totalSupply -= amount; emit Transfer(account, address(0), amount); _afterTokenTransfer(account, address(0), amount); } /** * @dev Sets `amount` as the allowance of `spender` over the `owner` s tokens. * * This internal function is equivalent to `approve`, and can be used to * e.g. set automatic allowances for certain subsystems, etc. * * Emits an {Approval} event. * * Requirements: * * - `owner` cannot be the zero address. * - `spender` cannot be the zero address. */ function _approve( address owner, address spender, uint256 amount ) internal virtual { require(owner != address(0), "ERC20: approve from the zero address"); require(spender != address(0), "ERC20: approve to the zero address"); _allowances[owner][spender] = amount; emit Approval(owner, spender, amount); } /** * @dev Updates `owner` s allowance for `spender` based on spent `amount`. * * Does not update the allowance amount in case of infinite allowance. * Revert if not enough allowance is available. * * Might emit an {Approval} event. */ function _spendAllowance( address owner, address spender, uint256 amount ) internal virtual { uint256 currentAllowance = allowance(owner, spender); if (currentAllowance != type(uint256).max) { require(currentAllowance >= amount, "ERC20: insufficient allowance"); unchecked { _approve(owner, spender, currentAllowance - amount); } } } /** * @dev Hook that is called before any transfer of tokens. This includes * minting and burning. * * Calling conditions: * * - when `from` and `to` are both non-zero, `amount` of ``from``'s tokens * will be transferred to `to`. * - when `from` is zero, `amount` tokens will be minted for `to`. * - when `to` is zero, `amount` of ``from``'s tokens will be burned. * - `from` and `to` are never both zero. * * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks]. */ function _beforeTokenTransfer( address from, address to, uint256 amount ) internal virtual {} /** * @dev Hook that is called after any transfer of tokens. This includes * minting and burning. * * Calling conditions: * * - when `from` and `to` are both non-zero, `amount` of ``from``'s tokens * has been transferred to `to`. * - when `from` is zero, `amount` tokens have been minted for `to`. * - when `to` is zero, `amount` of ``from``'s tokens have been burned. * - `from` and `to` are never both zero. * * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks]. */ function _afterTokenTransfer( address from, address to, uint256 amount ) internal virtual {} }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.6.0) (utils/math/SafeMath.sol) pragma solidity ^0.8.0; // CAUTION // This version of SafeMath should only be used with Solidity 0.8 or later, // because it relies on the compiler's built in overflow checks. /** * @dev Wrappers over Solidity's arithmetic operations. * * NOTE: `SafeMath` is generally not needed starting with Solidity 0.8, since the compiler * now has built in overflow checking. */ library SafeMath { /** * @dev Returns the addition of two unsigned integers, with an overflow flag. * * _Available since v3.4._ */ function tryAdd(uint256 a, uint256 b) internal pure returns (bool, uint256) { unchecked { uint256 c = a + b; if (c < a) return (false, 0); return (true, c); } } /** * @dev Returns the subtraction of two unsigned integers, with an overflow flag. * * _Available since v3.4._ */ function trySub(uint256 a, uint256 b) internal pure returns (bool, uint256) { unchecked { if (b > a) return (false, 0); return (true, a - b); } } /** * @dev Returns the multiplication of two unsigned integers, with an overflow flag. * * _Available since v3.4._ */ function tryMul(uint256 a, uint256 b) internal pure returns (bool, uint256) { unchecked { // Gas optimization: this is cheaper than requiring 'a' not being zero, but the // benefit is lost if 'b' is also tested. // See: https://github.com/OpenZeppelin/openzeppelin-contracts/pull/522 if (a == 0) return (true, 0); uint256 c = a * b; if (c / a != b) return (false, 0); return (true, c); } } /** * @dev Returns the division of two unsigned integers, with a division by zero flag. * * _Available since v3.4._ */ function tryDiv(uint256 a, uint256 b) internal pure returns (bool, uint256) { unchecked { if (b == 0) return (false, 0); return (true, a / b); } } /** * @dev Returns the remainder of dividing two unsigned integers, with a division by zero flag. * * _Available since v3.4._ */ function tryMod(uint256 a, uint256 b) internal pure returns (bool, uint256) { unchecked { if (b == 0) return (false, 0); return (true, a % b); } } /** * @dev Returns the addition of two unsigned integers, reverting on * overflow. * * Counterpart to Solidity's `+` operator. * * Requirements: * * - Addition cannot overflow. */ function add(uint256 a, uint256 b) internal pure returns (uint256) { return a + b; } /** * @dev Returns the subtraction of two unsigned integers, reverting on * overflow (when the result is negative). * * Counterpart to Solidity's `-` operator. * * Requirements: * * - Subtraction cannot overflow. */ function sub(uint256 a, uint256 b) internal pure returns (uint256) { return a - b; } /** * @dev Returns the multiplication of two unsigned integers, reverting on * overflow. * * Counterpart to Solidity's `*` operator. * * Requirements: * * - Multiplication cannot overflow. */ function mul(uint256 a, uint256 b) internal pure returns (uint256) { return a * b; } /** * @dev Returns the integer division of two unsigned integers, reverting on * division by zero. The result is rounded towards zero. * * Counterpart to Solidity's `/` operator. * * Requirements: * * - The divisor cannot be zero. */ function div(uint256 a, uint256 b) internal pure returns (uint256) { return a / b; } /** * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo), * reverting when dividing by zero. * * Counterpart to Solidity's `%` operator. This function uses a `revert` * opcode (which leaves remaining gas untouched) while Solidity uses an * invalid opcode to revert (consuming all remaining gas). * * Requirements: * * - The divisor cannot be zero. */ function mod(uint256 a, uint256 b) internal pure returns (uint256) { return a % b; } /** * @dev Returns the subtraction of two unsigned integers, reverting with custom message on * overflow (when the result is negative). * * CAUTION: This function is deprecated because it requires allocating memory for the error * message unnecessarily. For custom revert reasons use {trySub}. * * Counterpart to Solidity's `-` operator. * * Requirements: * * - Subtraction cannot overflow. */ function sub( uint256 a, uint256 b, string memory errorMessage ) internal pure returns (uint256) { unchecked { require(b <= a, errorMessage); return a - b; } } /** * @dev Returns the integer division of two unsigned integers, reverting with custom message on * division by zero. The result is rounded towards zero. * * Counterpart to Solidity's `/` operator. Note: this function uses a * `revert` opcode (which leaves remaining gas untouched) while Solidity * uses an invalid opcode to revert (consuming all remaining gas). * * Requirements: * * - The divisor cannot be zero. */ function div( uint256 a, uint256 b, string memory errorMessage ) internal pure returns (uint256) { unchecked { require(b > 0, errorMessage); return a / b; } } /** * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo), * reverting with custom message when dividing by zero. * * CAUTION: This function is deprecated because it requires allocating memory for the error * message unnecessarily. For custom revert reasons use {tryMod}. * * Counterpart to Solidity's `%` operator. This function uses a `revert` * opcode (which leaves remaining gas untouched) while Solidity uses an * invalid opcode to revert (consuming all remaining gas). * * Requirements: * * - The divisor cannot be zero. */ function mod( uint256 a, uint256 b, string memory errorMessage ) internal pure returns (uint256) { unchecked { require(b > 0, errorMessage); return a % b; } } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.6.0) (token/ERC20/IERC20.sol) pragma solidity ^0.8.0; /** * @dev Interface of the ERC20 standard as defined in the EIP. */ interface IERC20 { /** * @dev Emitted when `value` tokens are moved from one account (`from`) to * another (`to`). * * Note that `value` may be zero. */ event Transfer(address indexed from, address indexed to, uint256 value); /** * @dev Emitted when the allowance of a `spender` for an `owner` is set by * a call to {approve}. `value` is the new allowance. */ event Approval(address indexed owner, address indexed spender, uint256 value); /** * @dev 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 `to`. * * Returns a boolean value indicating whether the operation succeeded. * * Emits a {Transfer} event. */ function transfer(address to, 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 `from` to `to` 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 from, address to, uint256 amount ) external returns (bool); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (token/ERC20/extensions/IERC20Metadata.sol) pragma solidity ^0.8.0; import "../IERC20.sol"; /** * @dev Interface for the optional metadata functions from the ERC20 standard. * * _Available since v4.1._ */ interface IERC20Metadata is IERC20 { /** * @dev Returns the name of the token. */ function name() external view returns (string memory); /** * @dev Returns the symbol of the token. */ function symbol() external view returns (string memory); /** * @dev Returns the decimals places of the token. */ function decimals() external view returns (uint8); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/Context.sol) pragma solidity ^0.8.0; /** * @dev Provides information about the current execution context, including the * sender of the transaction and its data. While these are generally available * via msg.sender and msg.data, they should not be accessed in such a direct * manner, since when dealing with meta-transactions the account sending and * paying for execution may not be the actual sender (as far as an application * is concerned). * * This contract is only required for intermediate, library-like contracts. */ abstract contract Context { function _msgSender() internal view virtual returns (address) { return msg.sender; } function _msgData() internal view virtual returns (bytes calldata) { return msg.data; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (access/IAccessControl.sol) pragma solidity ^0.8.0; /** * @dev External interface of AccessControl declared to support ERC165 detection. */ interface IAccessControl { /** * @dev Emitted when `newAdminRole` is set as ``role``'s admin role, replacing `previousAdminRole` * * `DEFAULT_ADMIN_ROLE` is the starting admin for all roles, despite * {RoleAdminChanged} not being emitted signaling this. * * _Available since v3.1._ */ event RoleAdminChanged(bytes32 indexed role, bytes32 indexed previousAdminRole, bytes32 indexed newAdminRole); /** * @dev Emitted when `account` is granted `role`. * * `sender` is the account that originated the contract call, an admin role * bearer except when using {AccessControl-_setupRole}. */ event RoleGranted(bytes32 indexed role, address indexed account, address indexed sender); /** * @dev Emitted when `account` is revoked `role`. * * `sender` is the account that originated the contract call: * - if using `revokeRole`, it is the admin role bearer * - if using `renounceRole`, it is the role bearer (i.e. `account`) */ event RoleRevoked(bytes32 indexed role, address indexed account, address indexed sender); /** * @dev Returns `true` if `account` has been granted `role`. */ function hasRole(bytes32 role, address account) external view returns (bool); /** * @dev Returns the admin role that controls `role`. See {grantRole} and * {revokeRole}. * * To change a role's admin, use {AccessControl-_setRoleAdmin}. */ function getRoleAdmin(bytes32 role) external view returns (bytes32); /** * @dev Grants `role` to `account`. * * If `account` had not been already granted `role`, emits a {RoleGranted} * event. * * Requirements: * * - the caller must have ``role``'s admin role. */ function grantRole(bytes32 role, address account) external; /** * @dev Revokes `role` from `account`. * * If `account` had been granted `role`, emits a {RoleRevoked} event. * * Requirements: * * - the caller must have ``role``'s admin role. */ function revokeRole(bytes32 role, address account) external; /** * @dev Revokes `role` from the calling account. * * Roles are often managed via {grantRole} and {revokeRole}: this function's * purpose is to provide a mechanism for accounts to lose their privileges * if they are compromised (such as when a trusted device is misplaced). * * If the calling account had been granted `role`, emits a {RoleRevoked} * event. * * Requirements: * * - the caller must be `account`. */ function renounceRole(bytes32 role, address account) external; }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/Strings.sol) pragma solidity ^0.8.0; /** * @dev String operations. */ library Strings { bytes16 private constant _HEX_SYMBOLS = "0123456789abcdef"; /** * @dev Converts a `uint256` to its ASCII `string` decimal representation. */ function toString(uint256 value) internal pure returns (string memory) { // Inspired by OraclizeAPI's implementation - MIT licence // https://github.com/oraclize/ethereum-api/blob/b42146b063c7d6ee1358846c198246239e9360e8/oraclizeAPI_0.4.25.sol if (value == 0) { return "0"; } uint256 temp = value; uint256 digits; while (temp != 0) { digits++; temp /= 10; } bytes memory buffer = new bytes(digits); while (value != 0) { digits -= 1; buffer[digits] = bytes1(uint8(48 + uint256(value % 10))); value /= 10; } return string(buffer); } /** * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation. */ function toHexString(uint256 value) internal pure returns (string memory) { if (value == 0) { return "0x00"; } uint256 temp = value; uint256 length = 0; while (temp != 0) { length++; temp >>= 8; } return toHexString(value, length); } /** * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation with fixed length. */ function toHexString(uint256 value, uint256 length) internal pure returns (string memory) { bytes memory buffer = new bytes(2 * length + 2); buffer[0] = "0"; buffer[1] = "x"; for (uint256 i = 2 * length + 1; i > 1; --i) { buffer[i] = _HEX_SYMBOLS[value & 0xf]; value >>= 4; } require(value == 0, "Strings: hex length insufficient"); return string(buffer); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/introspection/ERC165.sol) pragma solidity ^0.8.0; import "./IERC165.sol"; /** * @dev Implementation of the {IERC165} interface. * * Contracts that want to implement ERC165 should inherit from this contract and override {supportsInterface} to check * for the additional interface id that will be supported. For example: * * ```solidity * function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) { * return interfaceId == type(MyInterface).interfaceId || super.supportsInterface(interfaceId); * } * ``` * * Alternatively, {ERC165Storage} provides an easier to use but more expensive implementation. */ abstract contract ERC165 is IERC165 { /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) { return interfaceId == type(IERC165).interfaceId; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/introspection/IERC165.sol) pragma solidity ^0.8.0; /** * @dev Interface of the ERC165 standard, as defined in the * https://eips.ethereum.org/EIPS/eip-165[EIP]. * * Implementers can declare support of contract interfaces, which can then be * queried by others ({ERC165Checker}). * * For an implementation, see {ERC165}. */ interface IERC165 { /** * @dev Returns true if this contract implements the interface defined by * `interfaceId`. See the corresponding * https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified[EIP section] * to learn more about how these ids are created. * * This function call must use less than 30 000 gas. */ function supportsInterface(bytes4 interfaceId) external view returns (bool); }
{ "optimizer": { "enabled": false, "runs": 200 }, "outputSelection": { "*": { "*": [ "evm.bytecode", "evm.deployedBytecode", "devdoc", "userdoc", "metadata", "abi" ] } }, "libraries": {} }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"inputs":[{"internalType":"uint256","name":"_date1","type":"uint256"},{"internalType":"uint256","name":"_date2","type":"uint256"},{"internalType":"address","name":"_openMallAddress","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"bytes32","name":"role","type":"bytes32"},{"indexed":true,"internalType":"bytes32","name":"previousAdminRole","type":"bytes32"},{"indexed":true,"internalType":"bytes32","name":"newAdminRole","type":"bytes32"}],"name":"RoleAdminChanged","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"bytes32","name":"role","type":"bytes32"},{"indexed":true,"internalType":"address","name":"account","type":"address"},{"indexed":true,"internalType":"address","name":"sender","type":"address"}],"name":"RoleGranted","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"bytes32","name":"role","type":"bytes32"},{"indexed":true,"internalType":"address","name":"account","type":"address"},{"indexed":true,"internalType":"address","name":"sender","type":"address"}],"name":"RoleRevoked","type":"event"},{"inputs":[],"name":"DEFAULT_ADMIN_ROLE","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"blockPer20Months","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"blockPer24Months","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"blockPer36Months","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"blockPerDay","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"blockPerMonth","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_newDate","type":"uint256"}],"name":"changeDate1","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_newDate","type":"uint256"}],"name":"changeDate2","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"date1","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"date2","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_addToCheck","type":"address"}],"name":"getReward","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"}],"name":"getRoleAdmin","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"account","type":"address"}],"name":"grantRole","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"account","type":"address"}],"name":"hasRole","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"openMall","outputs":[{"internalType":"contract OpenMall","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"account","type":"address"}],"name":"renounceRole","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"account","type":"address"}],"name":"revokeRole","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_addToSend","type":"address"},{"internalType":"uint256","name":"_amount","type":"uint256"},{"internalType":"uint256","name":"_type","type":"uint256"}],"name":"sendToken","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_openMallAddress","type":"address"}],"name":"setOpenMallContract","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"swap","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_to","type":"address"},{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"transferToken","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"userDetails","outputs":[{"internalType":"uint256","name":"lockedAmount","type":"uint256"},{"internalType":"uint256","name":"actualBalance","type":"uint256"},{"internalType":"uint256","name":"chosenDate","type":"uint256"},{"internalType":"uint256","name":"distribution","type":"uint256"},{"internalType":"uint256","name":"lastSwap","type":"uint256"},{"internalType":"uint256","name":"tokenSwapped","type":"uint256"}],"stateMutability":"view","type":"function"}]
Contract Creation Code
608060405261a8c0600555601e6005546200001b9190620002f7565b60065560146006546200002f9190620002f7565b6007556018600654620000439190620002f7565b6008556024600654620000579190620002f7565b6009553480156200006757600080fd5b5060405162002d2d38038062002d2d83398181016040528101906200008d9190620002a1565b8260028190555081600381905550620000b06000801b33620000fa60201b60201c565b80600160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550505050620003f9565b6200010c82826200011060201b60201c565b5050565b6200012282826200020160201b60201c565b620001fd57600160008084815260200190815260200160002060000160008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff021916908315150217905550620001a26200026b60201b60201c565b73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16837f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a45b5050565b600080600084815260200190815260200160002060000160008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b600033905090565b6000815190506200028481620003c5565b92915050565b6000815190506200029b81620003df565b92915050565b600080600060608486031215620002b757600080fd5b6000620002c7868287016200028a565b9350506020620002da868287016200028a565b9250506040620002ed8682870162000273565b9150509250925092565b600062000304826200038c565b915062000311836200038c565b9250817fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff04831182151516156200034d576200034c62000396565b5b828202905092915050565b600062000365826200036c565b9050919050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000819050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b620003d08162000358565b8114620003dc57600080fd5b50565b620003ea816200038c565b8114620003f657600080fd5b50565b61292480620004096000396000f3fe608060405234801561001057600080fd5b506004361061014d5760003560e01c806391d14854116100c3578063c00007b01161007c578063c00007b01461037b578063d1ac847a146103ab578063d547741f146103c9578063e49352fe146103e5578063f307554014610403578063f6f6e994146104215761014d565b806391d14854146102b95780639464112c146102e957806395905298146103075780639ae2e72f14610323578063a217fddf14610341578063af7612a51461035f5761014d565b806348dec2a71161011557806348dec2a714610206578063587faab61461023b5780635d9c5b70146102575780636440f45f146102735780638119c0651461029157806386a918671461029b5761014d565b806301ffc9a7146101525780631072cbea14610182578063248a9ca31461019e5780632f2ff15d146101ce57806336568abe146101ea575b600080fd5b61016c60048036038101906101679190611be8565b61043f565b6040516101799190611f5f565b60405180910390f35b61019c60048036038101906101979190611acf565b6104b9565b005b6101b860048036038101906101b39190611b83565b610841565b6040516101c59190611f7a565b60405180910390f35b6101e860048036038101906101e39190611bac565b610860565b005b61020460048036038101906101ff9190611bac565b610881565b005b610220600480360381019061021b9190611aa6565b610904565b6040516102329695949392919061218d565b60405180910390f35b61025560048036038101906102509190611b0b565b610940565b005b610271600480360381019061026c9190611c11565b610bcc565b005b61027b610c77565b6040516102889190611f95565b60405180910390f35b610299610c9d565b005b6102a3610fa2565b6040516102b09190612172565b60405180910390f35b6102d360048036038101906102ce9190611bac565b610fa8565b6040516102e09190611f5f565b60405180910390f35b6102f1611012565b6040516102fe9190612172565b60405180910390f35b610321600480360381019061031c9190611aa6565b611018565b005b61032b61106a565b6040516103389190612172565b60405180910390f35b610349611070565b6040516103569190611f7a565b60405180910390f35b61037960048036038101906103749190611c11565b611077565b005b61039560048036038101906103909190611aa6565b611122565b6040516103a29190612172565b60405180910390f35b6103b361138e565b6040516103c09190612172565b60405180910390f35b6103e360048036038101906103de9190611bac565b611394565b005b6103ed6113b5565b6040516103fa9190612172565b60405180910390f35b61040b6113bb565b6040516104189190612172565b60405180910390f35b6104296113c1565b6040516104369190612172565b60405180910390f35b60007f7965db0b000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614806104b257506104b1826113c7565b5b9050919050565b6000600460008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600001541461053e576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161053590612012565b60405180910390fd5b6000600460003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060000154116105c3576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016105ba90612052565b60405180910390fd5b80600460003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600001541015610648576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161063f90612092565b60405180910390fd5b6002544210801561065a575060035442105b610699576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610690906120d2565b60405180910390fd5b80600460003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060000160008282546106eb91906122f6565b925050819055506106fa611a07565b818160000181815250506000816020018181525050600460003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060020154816040018181525050600460003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060030154816060018181525050600081608001818152505060008160a001818152505080600460008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600082015181600001556020820151816001015560408201518160020155606082015181600301556080820151816004015560a08201518160050155905050505050565b6000806000838152602001908152602001600020600101549050919050565b61086982610841565b61087281611431565b61087c8383611445565b505050565b610889611525565b73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16146108f6576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016108ed90612152565b60405180910390fd5b610900828261152d565b5050565b60046020528060005260406000206000915090508060000154908060010154908060020154908060030154908060040154908060050154905086565b6000801b61094d81611431565b6000600460008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060000154146109d2576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016109c9906120f2565b60405180910390fd5b6000821180156109e25750600482105b610a21576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610a1890612112565b60405180910390fd5b600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166340c10f1930856040518363ffffffff1660e01b8152600401610a7e929190611f36565b600060405180830381600087803b158015610a9857600080fd5b505af1158015610aac573d6000803e3d6000fd5b50505050610ab8611a07565b6001831415610ad95760018160400181815250506009548160600181815250505b6002831415610afa5760018160400181815250506008548160600181815250505b6003831415610b1b5760028160400181815250506007548160600181815250505b838160000181815250506000816020018181525050600081608001818152505060008160a001818152505080600460008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600082015181600001556020820151816001015560408201518160020155606082015181600301556080820151816004015560a082015181600501559050505050505050565b6000801b610bd981611431565b60025442108015610beb575060035442105b610c2a576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610c2190612132565b60405180910390fd5b814210610c6c576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610c63906120b2565b60405180910390fd5b816003819055505050565b600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b600460003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600201544211610d21576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610d1890612072565b60405180910390fd5b6000600460003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000015411610da6576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610d9d90611ff2565b60405180910390fd5b6000610db133611122565b905060008111610df6576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610ded90612032565b60405180910390fd5b80600460003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206001016000828254610e489190612215565b9250508190555042600460003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206004018190555080600460003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206005016000828254610ee89190612215565b92505081905550600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663a9059cbb33836040518363ffffffff1660e01b8152600401610f4c929190611f36565b602060405180830381600087803b158015610f6657600080fd5b505af1158015610f7a573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610f9e9190611b5a565b5050565b60025481565b600080600084815260200190815260200160002060000160008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b60095481565b6000801b61102581611431565b81600160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055505050565b60075481565b6000801b81565b6000801b61108481611431565b60025442108015611096575060035442105b6110d5576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016110cc90612132565b60405180910390fd5b814210611117576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161110e906120b2565b60405180910390fd5b816002819055505050565b600080600460008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060030154600460008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600001546111b5919061226b565b905060006111c28461160e565b90506000428211156111da5760009350505050611389565b600082426111e891906122f6565b90506002816111f7919061226b565b9150506000600460008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060050154828561124b919061229c565b61125591906122f6565b9050600460008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060050154600460008873ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600001546112e791906122f6565b81111561138157600460008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060050154600460008873ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000015461137e91906122f6565b90505b809450505050505b919050565b60035481565b61139d82610841565b6113a681611431565b6113b0838361152d565b505050565b60055481565b60065481565b60085481565b60007f01ffc9a7000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916149050919050565b6114428161143d611525565b611670565b50565b61144f8282610fa8565b61152157600160008084815260200190815260200160002060000160008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055506114c6611525565b73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16837f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a45b5050565b600033905090565b6115378282610fa8565b1561160a57600080600084815260200190815260200160002060000160008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055506115af611525565b73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16837ff6391f5c32d9c69d2a47ea670b442974b53935d1edc7fd64eb21e047a839171b60405160405180910390a45b5050565b60006001600460008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060020154141561166557600254905061166b565b60035490505b919050565b61167a8282610fa8565b6117095761169f8173ffffffffffffffffffffffffffffffffffffffff16601461170d565b6116ad8360001c602061170d565b6040516020016116be929190611efc565b6040516020818303038152906040526040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016117009190611fb0565b60405180910390fd5b5050565b606060006002836002611720919061229c565b61172a9190612215565b67ffffffffffffffff811115611769577f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b6040519080825280601f01601f19166020018201604052801561179b5781602001600182028036833780820191505090505b5090507f3000000000000000000000000000000000000000000000000000000000000000816000815181106117f9577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a9053507f780000000000000000000000000000000000000000000000000000000000000081600181518110611883577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a905350600060018460026118c3919061229c565b6118cd9190612215565b90505b60018111156119b9577f3031323334353637383961626364656600000000000000000000000000000000600f861660108110611935577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b1a60f81b828281518110611972577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a905350600485901c9450806119b2906123ff565b90506118d0565b50600084146119fd576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016119f490611fd2565b60405180910390fd5b8091505092915050565b6040518060c001604052806000815260200160008152602001600081526020016000815260200160008152602001600081525090565b600081359050611a4c8161287b565b92915050565b600081519050611a6181612892565b92915050565b600081359050611a76816128a9565b92915050565b600081359050611a8b816128c0565b92915050565b600081359050611aa0816128d7565b92915050565b600060208284031215611ab857600080fd5b6000611ac684828501611a3d565b91505092915050565b60008060408385031215611ae257600080fd5b6000611af085828601611a3d565b9250506020611b0185828601611a91565b9150509250929050565b600080600060608486031215611b2057600080fd5b6000611b2e86828701611a3d565b9350506020611b3f86828701611a91565b9250506040611b5086828701611a91565b9150509250925092565b600060208284031215611b6c57600080fd5b6000611b7a84828501611a52565b91505092915050565b600060208284031215611b9557600080fd5b6000611ba384828501611a67565b91505092915050565b60008060408385031215611bbf57600080fd5b6000611bcd85828601611a67565b9250506020611bde85828601611a3d565b9150509250929050565b600060208284031215611bfa57600080fd5b6000611c0884828501611a7c565b91505092915050565b600060208284031215611c2357600080fd5b6000611c3184828501611a91565b91505092915050565b611c438161232a565b82525050565b611c528161233c565b82525050565b611c6181612348565b82525050565b611c70816123a8565b82525050565b6000611c81826121ee565b611c8b81856121f9565b9350611c9b8185602086016123cc565b611ca481612487565b840191505092915050565b6000611cba826121ee565b611cc4818561220a565b9350611cd48185602086016123cc565b80840191505092915050565b6000611ced6020836121f9565b9150611cf882612498565b602082019050919050565b6000611d106024836121f9565b9150611d1b826124c1565b604082019050919050565b6000611d33603e836121f9565b9150611d3e82612510565b604082019050919050565b6000611d566021836121f9565b9150611d618261255f565b604082019050919050565b6000611d79602d836121f9565b9150611d84826125ae565b604082019050919050565b6000611d9c6026836121f9565b9150611da7826125fd565b604082019050919050565b6000611dbf601d836121f9565b9150611dca8261264c565b602082019050919050565b6000611de26037836121f9565b9150611ded82612675565b604082019050919050565b6000611e056015836121f9565b9150611e10826126c4565b602082019050919050565b6000611e28602a836121f9565b9150611e33826126ed565b604082019050919050565b6000611e4b6021836121f9565b9150611e568261273c565b604082019050919050565b6000611e6e60178361220a565b9150611e798261278b565b601782019050919050565b6000611e9160118361220a565b9150611e9c826127b4565b601182019050919050565b6000611eb46027836121f9565b9150611ebf826127dd565b604082019050919050565b6000611ed7602f836121f9565b9150611ee28261282c565b604082019050919050565b611ef68161239e565b82525050565b6000611f0782611e61565b9150611f138285611caf565b9150611f1e82611e84565b9150611f2a8284611caf565b91508190509392505050565b6000604082019050611f4b6000830185611c3a565b611f586020830184611eed565b9392505050565b6000602082019050611f746000830184611c49565b92915050565b6000602082019050611f8f6000830184611c58565b92915050565b6000602082019050611faa6000830184611c67565b92915050565b60006020820190508181036000830152611fca8184611c76565b905092915050565b60006020820190508181036000830152611feb81611ce0565b9050919050565b6000602082019050818103600083015261200b81611d03565b9050919050565b6000602082019050818103600083015261202b81611d26565b9050919050565b6000602082019050818103600083015261204b81611d49565b9050919050565b6000602082019050818103600083015261206b81611d6c565b9050919050565b6000602082019050818103600083015261208b81611d8f565b9050919050565b600060208201905081810360008301526120ab81611db2565b9050919050565b600060208201905081810360008301526120cb81611dd5565b9050919050565b600060208201905081810360008301526120eb81611df8565b9050919050565b6000602082019050818103600083015261210b81611e1b565b9050919050565b6000602082019050818103600083015261212b81611e3e565b9050919050565b6000602082019050818103600083015261214b81611ea7565b9050919050565b6000602082019050818103600083015261216b81611eca565b9050919050565b60006020820190506121876000830184611eed565b92915050565b600060c0820190506121a26000830189611eed565b6121af6020830188611eed565b6121bc6040830187611eed565b6121c96060830186611eed565b6121d66080830185611eed565b6121e360a0830184611eed565b979650505050505050565b600081519050919050565b600082825260208201905092915050565b600081905092915050565b60006122208261239e565b915061222b8361239e565b9250827fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff038211156122605761225f612429565b5b828201905092915050565b60006122768261239e565b91506122818361239e565b92508261229157612290612458565b5b828204905092915050565b60006122a78261239e565b91506122b28361239e565b9250817fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff04831182151516156122eb576122ea612429565b5b828202905092915050565b60006123018261239e565b915061230c8361239e565b92508282101561231f5761231e612429565b5b828203905092915050565b60006123358261237e565b9050919050565b60008115159050919050565b6000819050919050565b60007fffffffff0000000000000000000000000000000000000000000000000000000082169050919050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000819050919050565b60006123b3826123ba565b9050919050565b60006123c58261237e565b9050919050565b60005b838110156123ea5780820151818401526020810190506123cf565b838111156123f9576000848401525b50505050565b600061240a8261239e565b9150600082141561241e5761241d612429565b5b600182039050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b6000601f19601f8301169050919050565b7f537472696e67733a20686578206c656e67746820696e73756666696369656e74600082015250565b7f4d616e616765723a204e6f206d6f726520746f6b656e7320746f20776974686460008201527f7261772100000000000000000000000000000000000000000000000000000000602082015250565b7f4d616e616765723a2043616e27742073656e6420746f6b656e7320746f20616e60008201527f2061646472657373207468617420616c726561647920686173207468656d0000602082015250565b7f4d616e616765723a204e6f206d6f7265207265776172647320746f207377617060008201527f2100000000000000000000000000000000000000000000000000000000000000602082015250565b7f4d616e616765723a2043616e27742073656e6420746f6b656e7320696620796f60008201527f7520646f6e277420686176652100000000000000000000000000000000000000602082015250565b7f4d616e616765723a20537761702044617465206973206e6f742073746172746560008201527f6420796574210000000000000000000000000000000000000000000000000000602082015250565b7f4d616e616765723a2045786365656420796f75722062616c616e636521000000600082015250565b7f4d616e616765723a206e65772064617465206d7573742062652067726561746560008201527f72207468616e2061637475616c2074696d657374616d70000000000000000000602082015250565b7f4d616e616765723a204f7574206f662054696d65210000000000000000000000600082015250565b7f4d616e616765723a206163636f756e7420616c7265616479206861766520746f60008201527f6b656e206c6f636b656400000000000000000000000000000000000000000000602082015250565b7f4d616e616765723a20747970652075736564206973206e6f7420616c6c6f776560008201527f6400000000000000000000000000000000000000000000000000000000000000602082015250565b7f416363657373436f6e74726f6c3a206163636f756e7420000000000000000000600082015250565b7f206973206d697373696e6720726f6c6520000000000000000000000000000000600082015250565b7f4d616e616765723a20646174652063616e6e6f74206265206368616e6765642060008201527f616e796d6f726500000000000000000000000000000000000000000000000000602082015250565b7f416363657373436f6e74726f6c3a2063616e206f6e6c792072656e6f756e636560008201527f20726f6c657320666f722073656c660000000000000000000000000000000000602082015250565b6128848161232a565b811461288f57600080fd5b50565b61289b8161233c565b81146128a657600080fd5b50565b6128b281612348565b81146128bd57600080fd5b50565b6128c981612352565b81146128d457600080fd5b50565b6128e08161239e565b81146128eb57600080fd5b5056fea2646970667358221220077cd75561aa9961ba159ad939927cd6b464320a6a43ae55f664e7333a4ec60164736f6c6343000804003300000000000000000000000000000000000000000000000000000000659157c000000000000000000000000000000000000000000000000000000000668148c0000000000000000000000000716a24ba2b7b386c399593930a9ea463f172cf59
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
00000000000000000000000000000000000000000000000000000000659157c000000000000000000000000000000000000000000000000000000000668148c0000000000000000000000000716a24ba2b7b386c399593930a9ea463f172cf59
-----Decoded View---------------
Arg [0] : _date1 (uint256): 1704024000
Arg [1] : _date2 (uint256): 1719748800
Arg [2] : _openMallAddress (address): 0x716a24ba2b7b386c399593930a9ea463f172cf59
-----Encoded View---------------
3 Constructor Arguments found :
Arg [0] : 00000000000000000000000000000000000000000000000000000000659157c0
Arg [1] : 00000000000000000000000000000000000000000000000000000000668148c0
Arg [2] : 000000000000000000000000716a24ba2b7b386c399593930a9ea463f172cf59
Age | Block | Fee Address | BC Fee Address | Voting Power | Jailed | Incoming |
---|
Make sure to use the "Vote Down" button for any spammy posts, and the "Vote Up" for interesting conversations.