More Info
Private Name Tags
ContractCreator:
Sponsored
Latest 25 from a total of 127 transactions
Transaction Hash |
Method
|
Block
|
From
|
To
|
Value | ||||
---|---|---|---|---|---|---|---|---|---|
Swap Morpheus Fo... | 18215581 | 950 days ago | IN | 0 MATIC | 0.0001525 | ||||
Swap Morpheus Fo... | 18212197 | 950 days ago | IN | 0 MATIC | 0.0001525 | ||||
Swap Morpheus Fo... | 18206510 | 951 days ago | IN | 0 MATIC | 0.00053375 | ||||
Swap Morpheus Fo... | 18203112 | 951 days ago | IN | 0 MATIC | 0.00008463 | ||||
Swap Morpheus Fo... | 18202552 | 951 days ago | IN | 0 MATIC | 0.00008463 | ||||
Swap Morpheus Fo... | 18201379 | 951 days ago | IN | 0 MATIC | 0.0000915 | ||||
Swap Morpheus Fo... | 18201270 | 951 days ago | IN | 0 MATIC | 0.00016935 | ||||
Swap Morpheus Fo... | 18201258 | 951 days ago | IN | 0 MATIC | 0.0061 | ||||
Swap Morpheus Fo... | 18200171 | 951 days ago | IN | 0 MATIC | 0.0023806 | ||||
Swap Morpheus Fo... | 18199487 | 951 days ago | IN | 0 MATIC | 0.00008387 | ||||
Swap Morpheus Fo... | 18199338 | 951 days ago | IN | 0 MATIC | 0.00008387 | ||||
Swap Morpheus Fo... | 18199223 | 951 days ago | IN | 0 MATIC | 0.00008387 | ||||
Swap Morpheus Fo... | 18199002 | 951 days ago | IN | 0 MATIC | 0.00389637 | ||||
Swap Morpheus Fo... | 18198798 | 951 days ago | IN | 0 MATIC | 0.00038125 | ||||
Swap Morpheus Fo... | 18198758 | 951 days ago | IN | 0 MATIC | 0.00068625 | ||||
Swap Morpheus Fo... | 18198424 | 951 days ago | IN | 0 MATIC | 0.00007625 | ||||
Swap Morpheus Fo... | 18198389 | 951 days ago | IN | 0 MATIC | 0.00038887 | ||||
Swap Morpheus Fo... | 18197982 | 951 days ago | IN | 0 MATIC | 0.00041045 | ||||
Swap Morpheus Fo... | 18197554 | 951 days ago | IN | 0 MATIC | 0.000671 | ||||
Swap Morpheus Fo... | 18197321 | 951 days ago | IN | 0 MATIC | 0.000671 | ||||
Swap Morpheus Fo... | 18197245 | 951 days ago | IN | 0 MATIC | 0.01183 | ||||
Swap Morpheus Fo... | 18197244 | 951 days ago | IN | 0 MATIC | 0.0068625 | ||||
Swap Morpheus Fo... | 18197175 | 951 days ago | IN | 0 MATIC | 0.00022875 | ||||
Swap Morpheus Fo... | 18197050 | 951 days ago | IN | 0 MATIC | 0.00008387 | ||||
Swap Morpheus Fo... | 18196978 | 951 days ago | IN | 0 MATIC | 0.00061 |
Loading...
Loading
Contract Name:
MorpheusDream
Compiler Version
v0.8.3+commit.8d00100c
Optimization Enabled:
No with 200 runs
Other Settings:
default evmVersion
Contract Source Code (Solidity Standard Json-Input format)
/* _____ ________ ____________________ ___ __________________ ___ _________ / \ \_____ \\______ \______ \/ | \_ _____/ | \/ _____/ / \ / \ / | \| _/| ___/ ~ \ __)_| | /\_____ \ / Y \/ | \ | \| | \ Y / \ | / / \ \____|__ /\_______ /____|_ /|____| \___|_ /_______ /______/ /_______ / \/ \/ \/ \/ \/ \/ One Thing I've Learned. You Can Know Anything. It's All There. You Just Have To Find It. */ // SPDX-License-Identifier: MIT pragma solidity ^0.8.3; import "./MorpheusToken.sol"; contract MorpheusDream is Ownable, ReentrancyGuard { using SafeERC20 for IERC20; // Burn address address public constant BURN_ADDRESS = 0x000000000000000000000000000000000000dEaD; MorpheusToken public immutable morpheusToken; IERC20 public immutable sandManToken; address sandmanAddress; bool hasBurnedUnsoldPresale; uint256 public startBlock; event MorpheusToSandman(address sender, uint256 amount); event burnUnclaimedSandMan(uint256 amount); event startBlockChanged(uint256 newStartBlock); constructor(uint256 _startBlock, address _morpheusAddress, address _sandmanAddress) { require(_morpheusAddress != _sandmanAddress, "morpheus cannot be equal to sandman"); startBlock = _startBlock; morpheusToken = MorpheusToken(_morpheusAddress); sandManToken = IERC20(_sandmanAddress); } function swapMorpheusForSandMan() external nonReentrant { require(block.number >= startBlock, "morpheus still awake."); uint256 swapAmount = morpheusToken.balanceOf(msg.sender); require(sandManToken.balanceOf(address(this)) >= swapAmount, "Not Enough tokens in contract for swap"); require(morpheusToken.transferFrom(msg.sender, BURN_ADDRESS, swapAmount), "failed sending morpheus" ); sandManToken.safeTransfer(msg.sender, swapAmount); emit MorpheusToSandman(msg.sender, swapAmount); } function sendUnclaimedSandManToDeadAddress() external onlyOwner { require(block.number > morpheusToken.endBlock(), "can only send excess morpheus to dead address after presale has ended"); require(!hasBurnedUnsoldPresale, "can only burn unsold presale once!"); require(morpheusToken.morpheusRemaining() <= sandManToken.balanceOf(address(this)), "burning too much sandman, check again please"); if (morpheusToken.morpheusRemaining() > 0) sandManToken.safeTransfer(BURN_ADDRESS, morpheusToken.morpheusRemaining()); hasBurnedUnsoldPresale = true; emit burnUnclaimedSandMan(morpheusToken.morpheusRemaining()); } function setStartBlock(uint256 _newStartBlock) external onlyOwner { require(block.number < startBlock, "cannot change start block if presale has already commenced"); require(block.number < _newStartBlock, "cannot set start block in the past"); startBlock = _newStartBlock; emit startBlockChanged(_newStartBlock); } }
/* _____ ________ ____________________ ___ __________________ ___ _________ / \ \_____ \\______ \______ \/ | \_ _____/ | \/ _____/ / \ / \ / | \| _/| ___/ ~ \ __)_| | /\_____ \ / Y \/ | \ | \| | \ Y / \ | / / \ \____|__ /\_______ /____|_ /|____| \___|_ /_______ /______/ /_______ / \/ \/ \/ \/ \/ \/ "Things Need Not Have Happened To Be True. Tales And Dreams Are The Shadow-Truths That Will Endure When Mere Facts Are Dust And Ashes, And Forgot" */ // SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "@openzeppelin/contracts/token/ERC20/IERC20.sol"; import "@openzeppelin/contracts/token/ERC20/ERC20.sol"; import "@openzeppelin/contracts/token/ERC20/utils/SafeERC20.sol"; import "@openzeppelin/contracts/security/ReentrancyGuard.sol"; import "@openzeppelin/contracts/access/Ownable.sol"; /* MorpheusToken Presale After Presale you'll be able to swap this token for Sandman. Ratio 1:1 */ contract MorpheusToken is ERC20('MorpheusToken', 'MORPHEUS'), ReentrancyGuard, Ownable { using SafeERC20 for IERC20; address constant presaleAddress = 0x467d9A3bF93Facba273E1532DD73b519687aefF6; IERC20 public USDC = IERC20(0x2791Bca1f2de4661ED88A30C99A7a9449Aa84174); IERC20 morpheusToken = IERC20(address(this)); uint256 public salePrice = 5; uint256 public constant morpheusMaximumSupply = 30000 * (10 ** 18); //30k uint256 public morpheusRemaining = morpheusMaximumSupply; uint256 public maxHardCap = 150000 * (10 ** 6); // 150k usdc uint256 public constant maxMorpheusPurchase = 600 * (10 ** 18); // 600 morpheus uint256 public startBlock; uint256 public endBlock; uint256 public constant presaleDuration = 179800; // 5 days aprox mapping(address => uint256) public userMorpheusTotally; event StartBlockChanged(uint256 newStartBlock, uint256 newEndBlock); event morpheusPurchased(address sender, uint256 usdcSpent, uint256 morpheusReceived); constructor(uint256 _startBlock) { startBlock = _startBlock; endBlock = _startBlock + presaleDuration; _mint(address(this), morpheusMaximumSupply); } function buyMorpheus(uint256 _usdcSpent) external nonReentrant { require(block.number >= startBlock, "presale hasn't started yet, good things come to those that wait"); require(block.number < endBlock, "presale has ended, come back next time!"); require(morpheusRemaining > 0, "No more Morpheus remains!"); require(morpheusToken.balanceOf(address(this)) > 0, "No more Morpheus left!"); require(_usdcSpent > 0, "not enough usdc provided"); require(_usdcSpent <= maxHardCap, "Morpheus Presale hardcap reached"); require(userMorpheusTotally[msg.sender] < maxMorpheusPurchase, "user has already purchased too much morpheus"); uint256 morpheusPurchaseAmount = (_usdcSpent * 1000000000000) / salePrice; // if we dont have enough left, give them the rest. if (morpheusRemaining < morpheusPurchaseAmount) morpheusPurchaseAmount = morpheusRemaining; require(morpheusPurchaseAmount > 0, "user cannot purchase 0 morpheus"); // shouldn't be possible to fail these asserts. assert(morpheusPurchaseAmount <= morpheusRemaining); assert(morpheusPurchaseAmount <= morpheusToken.balanceOf(address(this))); //send morpheus to user morpheusToken.safeTransfer(msg.sender, morpheusPurchaseAmount); // send usdc to presale address USDC.safeTransferFrom(msg.sender, address(presaleAddress), _usdcSpent); morpheusRemaining = morpheusRemaining - morpheusPurchaseAmount; userMorpheusTotally[msg.sender] = userMorpheusTotally[msg.sender] + morpheusPurchaseAmount; emit morpheusPurchased(msg.sender, _usdcSpent, morpheusPurchaseAmount); } function setStartBlock(uint256 _newStartBlock) external onlyOwner { require(block.number < startBlock, "cannot change start block if sale has already started"); require(block.number < _newStartBlock, "cannot set start block in the past"); startBlock = _newStartBlock; endBlock = _newStartBlock + presaleDuration; emit StartBlockChanged(_newStartBlock, endBlock); } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; /** * @dev Interface of the ERC20 standard as defined in the EIP. */ interface IERC20 { /** * @dev Returns the amount of tokens in existence. */ function totalSupply() external view returns (uint256); /** * @dev Returns the amount of tokens owned by `account`. */ function balanceOf(address account) external view returns (uint256); /** * @dev Moves `amount` tokens from the caller's account to `recipient`. * * Returns a boolean value indicating whether the operation succeeded. * * Emits a {Transfer} event. */ function transfer(address recipient, uint256 amount) external returns (bool); /** * @dev Returns the remaining number of tokens that `spender` will be * allowed to spend on behalf of `owner` through {transferFrom}. This is * zero by default. * * This value changes when {approve} or {transferFrom} are called. */ function allowance(address owner, address spender) external view returns (uint256); /** * @dev Sets `amount` as the allowance of `spender` over the caller's tokens. * * Returns a boolean value indicating whether the operation succeeded. * * IMPORTANT: Beware that changing an allowance with this method brings the risk * that someone may use both the old and the new allowance by unfortunate * transaction ordering. One possible solution to mitigate this race * condition is to first reduce the spender's allowance to 0 and set the * desired value afterwards: * https://github.com/ethereum/EIPs/issues/20#issuecomment-263524729 * * Emits an {Approval} event. */ function approve(address spender, uint256 amount) external returns (bool); /** * @dev Moves `amount` tokens from `sender` to `recipient` using the * allowance mechanism. `amount` is then deducted from the caller's * allowance. * * Returns a boolean value indicating whether the operation succeeded. * * Emits a {Transfer} event. */ function transferFrom( address sender, address recipient, uint256 amount ) external returns (bool); /** * @dev Emitted when `value` tokens are moved from one account (`from`) to * another (`to`). * * Note that `value` may be zero. */ event Transfer(address indexed from, address indexed to, uint256 value); /** * @dev Emitted when the allowance of a `spender` for an `owner` is set by * a call to {approve}. `value` is the new allowance. */ event Approval(address indexed owner, address indexed spender, uint256 value); }
// SPDX-License-Identifier: MIT 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 guidelines: functions revert instead * of returning `false` on failure. This behavior is nonetheless conventional * and does not conflict with the expectations of ERC20 applications. * * Additionally, an {Approval} event is emitted on calls to {transferFrom}. * This allows applications to reconstruct the allowance for all accounts just * by listening to said events. Other implementations of the EIP may not emit * these events, as it isn't required by the specification. * * Finally, the non-standard {decreaseAllowance} and {increaseAllowance} * functions have been added to mitigate the well-known issues around setting * allowances. See {IERC20-approve}. */ contract ERC20 is Context, IERC20, 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: * * - `recipient` cannot be the zero address. * - the caller must have a balance of at least `amount`. */ function transfer(address recipient, uint256 amount) public virtual override returns (bool) { _transfer(_msgSender(), recipient, amount); return true; } /** * @dev See {IERC20-allowance}. */ function allowance(address owner, address spender) public view virtual override returns (uint256) { return _allowances[owner][spender]; } /** * @dev See {IERC20-approve}. * * Requirements: * * - `spender` cannot be the zero address. */ function approve(address spender, uint256 amount) public virtual override returns (bool) { _approve(_msgSender(), spender, amount); return true; } /** * @dev See {IERC20-transferFrom}. * * Emits an {Approval} event indicating the updated allowance. This is not * required by the EIP. See the note at the beginning of {ERC20}. * * Requirements: * * - `sender` and `recipient` cannot be the zero address. * - `sender` must have a balance of at least `amount`. * - the caller must have allowance for ``sender``'s tokens of at least * `amount`. */ function transferFrom( address sender, address recipient, uint256 amount ) public virtual override returns (bool) { _transfer(sender, recipient, amount); uint256 currentAllowance = _allowances[sender][_msgSender()]; require(currentAllowance >= amount, "ERC20: transfer amount exceeds allowance"); unchecked { _approve(sender, _msgSender(), currentAllowance - 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) { _approve(_msgSender(), spender, _allowances[_msgSender()][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) { uint256 currentAllowance = _allowances[_msgSender()][spender]; require(currentAllowance >= subtractedValue, "ERC20: decreased allowance below zero"); unchecked { _approve(_msgSender(), 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: * * - `sender` cannot be the zero address. * - `recipient` cannot be the zero address. * - `sender` must have a balance of at least `amount`. */ function _transfer( address sender, address recipient, uint256 amount ) internal virtual { require(sender != address(0), "ERC20: transfer from the zero address"); require(recipient != address(0), "ERC20: transfer to the zero address"); _beforeTokenTransfer(sender, recipient, amount); uint256 senderBalance = _balances[sender]; require(senderBalance >= amount, "ERC20: transfer amount exceeds balance"); unchecked { _balances[sender] = senderBalance - amount; } _balances[recipient] += amount; emit Transfer(sender, recipient, amount); _afterTokenTransfer(sender, recipient, amount); } /** @dev Creates `amount` tokens and assigns them to `account`, increasing * the total supply. * * Emits a {Transfer} event with `from` set to the zero address. * * Requirements: * * - `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 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 pragma solidity ^0.8.0; import "../IERC20.sol"; import "../../../utils/Address.sol"; /** * @title SafeERC20 * @dev Wrappers around ERC20 operations that throw on failure (when the token * contract returns false). Tokens that return no value (and instead revert or * throw on failure) are also supported, non-reverting calls are assumed to be * successful. * To use this library you can add a `using SafeERC20 for IERC20;` statement to your contract, * which allows you to call the safe operations as `token.safeTransfer(...)`, etc. */ library SafeERC20 { using Address for address; function safeTransfer( IERC20 token, address to, uint256 value ) internal { _callOptionalReturn(token, abi.encodeWithSelector(token.transfer.selector, to, value)); } function safeTransferFrom( IERC20 token, address from, address to, uint256 value ) internal { _callOptionalReturn(token, abi.encodeWithSelector(token.transferFrom.selector, from, to, value)); } /** * @dev Deprecated. This function has issues similar to the ones found in * {IERC20-approve}, and its usage is discouraged. * * Whenever possible, use {safeIncreaseAllowance} and * {safeDecreaseAllowance} instead. */ function safeApprove( IERC20 token, address spender, uint256 value ) internal { // safeApprove should only be called when setting an initial allowance, // or when resetting it to zero. To increase and decrease it, use // 'safeIncreaseAllowance' and 'safeDecreaseAllowance' require( (value == 0) || (token.allowance(address(this), spender) == 0), "SafeERC20: approve from non-zero to non-zero allowance" ); _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, value)); } function safeIncreaseAllowance( IERC20 token, address spender, uint256 value ) internal { uint256 newAllowance = token.allowance(address(this), spender) + value; _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, newAllowance)); } function safeDecreaseAllowance( IERC20 token, address spender, uint256 value ) internal { unchecked { uint256 oldAllowance = token.allowance(address(this), spender); require(oldAllowance >= value, "SafeERC20: decreased allowance below zero"); uint256 newAllowance = oldAllowance - value; _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, newAllowance)); } } /** * @dev Imitates a Solidity high-level call (i.e. a regular function call to a contract), relaxing the requirement * on the return value: the return value is optional (but if data is returned, it must not be false). * @param token The token targeted by the call. * @param data The call data (encoded using abi.encode or one of its variants). */ function _callOptionalReturn(IERC20 token, bytes memory data) private { // We need to perform a low level call here, to bypass Solidity's return data size checking mechanism, since // we're implementing it ourselves. We use {Address.functionCall} to perform this call, which verifies that // the target address contains contract code and also asserts for success in the low-level call. bytes memory returndata = address(token).functionCall(data, "SafeERC20: low-level call failed"); if (returndata.length > 0) { // Return data is optional require(abi.decode(returndata, (bool)), "SafeERC20: ERC20 operation did not succeed"); } } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; /** * @dev Contract module that helps prevent reentrant calls to a function. * * Inheriting from `ReentrancyGuard` will make the {nonReentrant} modifier * available, which can be applied to functions to make sure there are no nested * (reentrant) calls to them. * * Note that because there is a single `nonReentrant` guard, functions marked as * `nonReentrant` may not call one another. This can be worked around by making * those functions `private`, and then adding `external` `nonReentrant` entry * points to them. * * TIP: If you would like to learn more about reentrancy and alternative ways * to protect against it, check out our blog post * https://blog.openzeppelin.com/reentrancy-after-istanbul/[Reentrancy After Istanbul]. */ abstract contract ReentrancyGuard { // Booleans are more expensive than uint256 or any type that takes up a full // word because each write operation emits an extra SLOAD to first read the // slot's contents, replace the bits taken up by the boolean, and then write // back. This is the compiler's defense against contract upgrades and // pointer aliasing, and it cannot be disabled. // The values being non-zero value makes deployment a bit more expensive, // but in exchange the refund on every call to nonReentrant will be lower in // amount. Since refunds are capped to a percentage of the total // transaction's gas, it is best to keep them low in cases like this one, to // increase the likelihood of the full refund coming into effect. uint256 private constant _NOT_ENTERED = 1; uint256 private constant _ENTERED = 2; uint256 private _status; constructor() { _status = _NOT_ENTERED; } /** * @dev Prevents a contract from calling itself, directly or indirectly. * Calling a `nonReentrant` function from another `nonReentrant` * function is not supported. It is possible to prevent this from happening * by making the `nonReentrant` function external, and make it call a * `private` function that does the actual work. */ modifier nonReentrant() { // On the first call to nonReentrant, _notEntered will be true require(_status != _ENTERED, "ReentrancyGuard: reentrant call"); // Any calls to nonReentrant after this point will fail _status = _ENTERED; _; // By storing the original value once again, a refund is triggered (see // https://eips.ethereum.org/EIPS/eip-2200) _status = _NOT_ENTERED; } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "../utils/Context.sol"; /** * @dev Contract module which provides a basic access control mechanism, where * there is an account (an owner) that can be granted exclusive access to * specific functions. * * By default, the owner account will be the one that deploys the contract. This * can later be changed with {transferOwnership}. * * This module is used through inheritance. It will make available the modifier * `onlyOwner`, which can be applied to your functions to restrict their use to * the owner. */ abstract contract Ownable is Context { address private _owner; event OwnershipTransferred(address indexed previousOwner, address indexed newOwner); /** * @dev Initializes the contract setting the deployer as the initial owner. */ constructor() { _setOwner(_msgSender()); } /** * @dev Returns the address of the current owner. */ function owner() public view virtual returns (address) { return _owner; } /** * @dev Throws if called by any account other than the owner. */ modifier onlyOwner() { require(owner() == _msgSender(), "Ownable: caller is not the owner"); _; } /** * @dev Leaves the contract without owner. It will not be possible to call * `onlyOwner` functions anymore. Can only be called by the current owner. * * NOTE: Renouncing ownership will leave the contract without an owner, * thereby removing any functionality that is only available to the owner. */ function renounceOwnership() public virtual onlyOwner { _setOwner(address(0)); } /** * @dev Transfers ownership of the contract to a new account (`newOwner`). * Can only be called by the current owner. */ function transferOwnership(address newOwner) public virtual onlyOwner { require(newOwner != address(0), "Ownable: new owner is the zero address"); _setOwner(newOwner); } function _setOwner(address newOwner) private { address oldOwner = _owner; _owner = newOwner; emit OwnershipTransferred(oldOwner, newOwner); } }
// SPDX-License-Identifier: MIT 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 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 pragma solidity ^0.8.0; /** * @dev Collection of functions related to the address type */ library Address { /** * @dev Returns true if `account` is a contract. * * [IMPORTANT] * ==== * It is unsafe to assume that an address for which this function returns * false is an externally-owned account (EOA) and not a contract. * * Among others, `isContract` will return false for the following * types of addresses: * * - an externally-owned account * - a contract in construction * - an address where a contract will be created * - an address where a contract lived, but was destroyed * ==== */ function isContract(address account) internal view returns (bool) { // This method relies on extcodesize, which returns 0 for contracts in // construction, since the code is only stored at the end of the // constructor execution. uint256 size; assembly { size := extcodesize(account) } return size > 0; } /** * @dev Replacement for Solidity's `transfer`: sends `amount` wei to * `recipient`, forwarding all available gas and reverting on errors. * * https://eips.ethereum.org/EIPS/eip-1884[EIP1884] increases the gas cost * of certain opcodes, possibly making contracts go over the 2300 gas limit * imposed by `transfer`, making them unable to receive funds via * `transfer`. {sendValue} removes this limitation. * * https://diligence.consensys.net/posts/2019/09/stop-using-soliditys-transfer-now/[Learn more]. * * IMPORTANT: because control is transferred to `recipient`, care must be * taken to not create reentrancy vulnerabilities. Consider using * {ReentrancyGuard} or the * https://solidity.readthedocs.io/en/v0.5.11/security-considerations.html#use-the-checks-effects-interactions-pattern[checks-effects-interactions pattern]. */ function sendValue(address payable recipient, uint256 amount) internal { require(address(this).balance >= amount, "Address: insufficient balance"); (bool success, ) = recipient.call{value: amount}(""); require(success, "Address: unable to send value, recipient may have reverted"); } /** * @dev Performs a Solidity function call using a low level `call`. A * plain `call` is an unsafe replacement for a function call: use this * function instead. * * If `target` reverts with a revert reason, it is bubbled up by this * function (like regular Solidity function calls). * * Returns the raw returned data. To convert to the expected return value, * use https://solidity.readthedocs.io/en/latest/units-and-global-variables.html?highlight=abi.decode#abi-encoding-and-decoding-functions[`abi.decode`]. * * Requirements: * * - `target` must be a contract. * - calling `target` with `data` must not revert. * * _Available since v3.1._ */ function functionCall(address target, bytes memory data) internal returns (bytes memory) { return functionCall(target, data, "Address: low-level call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], but with * `errorMessage` as a fallback revert reason when `target` reverts. * * _Available since v3.1._ */ function functionCall( address target, bytes memory data, string memory errorMessage ) internal returns (bytes memory) { return functionCallWithValue(target, data, 0, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but also transferring `value` wei to `target`. * * Requirements: * * - the calling contract must have an ETH balance of at least `value`. * - the called Solidity function must be `payable`. * * _Available since v3.1._ */ function functionCallWithValue( address target, bytes memory data, uint256 value ) internal returns (bytes memory) { return functionCallWithValue(target, data, value, "Address: low-level call with value failed"); } /** * @dev Same as {xref-Address-functionCallWithValue-address-bytes-uint256-}[`functionCallWithValue`], but * with `errorMessage` as a fallback revert reason when `target` reverts. * * _Available since v3.1._ */ function functionCallWithValue( address target, bytes memory data, uint256 value, string memory errorMessage ) internal returns (bytes memory) { require(address(this).balance >= value, "Address: insufficient balance for call"); require(isContract(target), "Address: call to non-contract"); (bool success, bytes memory returndata) = target.call{value: value}(data); return _verifyCallResult(success, returndata, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but performing a static call. * * _Available since v3.3._ */ function functionStaticCall(address target, bytes memory data) internal view returns (bytes memory) { return functionStaticCall(target, data, "Address: low-level static call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`], * but performing a static call. * * _Available since v3.3._ */ function functionStaticCall( address target, bytes memory data, string memory errorMessage ) internal view returns (bytes memory) { require(isContract(target), "Address: static call to non-contract"); (bool success, bytes memory returndata) = target.staticcall(data); return _verifyCallResult(success, returndata, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but performing a delegate call. * * _Available since v3.4._ */ function functionDelegateCall(address target, bytes memory data) internal returns (bytes memory) { return functionDelegateCall(target, data, "Address: low-level delegate call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`], * but performing a delegate call. * * _Available since v3.4._ */ function functionDelegateCall( address target, bytes memory data, string memory errorMessage ) internal returns (bytes memory) { require(isContract(target), "Address: delegate call to non-contract"); (bool success, bytes memory returndata) = target.delegatecall(data); return _verifyCallResult(success, returndata, errorMessage); } function _verifyCallResult( bool success, bytes memory returndata, string memory errorMessage ) private pure returns (bytes memory) { if (success) { return returndata; } else { // Look for revert reason and bubble it up if present if (returndata.length > 0) { // The easiest way to bubble the revert reason is using memory via assembly assembly { let returndata_size := mload(returndata) revert(add(32, returndata), returndata_size) } } else { revert(errorMessage); } } } }
{ "optimizer": { "enabled": false, "runs": 200 }, "outputSelection": { "*": { "*": [ "evm.bytecode", "evm.deployedBytecode", "abi" ] } }, "libraries": {} }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"inputs":[{"internalType":"uint256","name":"_startBlock","type":"uint256"},{"internalType":"address","name":"_morpheusAddress","type":"address"},{"internalType":"address","name":"_sandmanAddress","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"sender","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"MorpheusToSandman","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":"uint256","name":"amount","type":"uint256"}],"name":"burnUnclaimedSandMan","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"newStartBlock","type":"uint256"}],"name":"startBlockChanged","type":"event"},{"inputs":[],"name":"BURN_ADDRESS","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"morpheusToken","outputs":[{"internalType":"contract MorpheusToken","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"sandManToken","outputs":[{"internalType":"contract IERC20","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"sendUnclaimedSandManToDeadAddress","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_newStartBlock","type":"uint256"}],"name":"setStartBlock","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"startBlock","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"swapMorpheusForSandMan","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"}]
Contract Creation Code
60c06040523480156200001157600080fd5b50604051620021a6380380620021a6833981810160405281019062000037919062000248565b620000576200004b6200014e60201b60201c565b6200015660201b60201c565b600180819055508073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415620000d0576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401620000c790620002c5565b60405180910390fd5b826003819055508173ffffffffffffffffffffffffffffffffffffffff1660808173ffffffffffffffffffffffffffffffffffffffff1660601b815250508073ffffffffffffffffffffffffffffffffffffffff1660a08173ffffffffffffffffffffffffffffffffffffffff1660601b81525050505050620003b9565b600033905090565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050816000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b6000815190506200022b8162000385565b92915050565b60008151905062000242816200039f565b92915050565b6000806000606084860312156200025e57600080fd5b60006200026e8682870162000231565b935050602062000281868287016200021a565b925050604062000294868287016200021a565b9150509250925092565b6000620002ad602383620002e7565b9150620002ba8262000336565b604082019050919050565b60006020820190508181036000830152620002e0816200029e565b9050919050565b600082825260208201905092915050565b600062000305826200030c565b9050919050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000819050919050565b7f6d6f7270686575732063616e6e6f7420626520657175616c20746f2073616e6460008201527f6d616e0000000000000000000000000000000000000000000000000000000000602082015250565b6200039081620002f8565b81146200039c57600080fd5b50565b620003aa816200032c565b8114620003b657600080fd5b50565b60805160601c60a05160601c611d746200043260003960008181610417015281816106e90152818161082101528181610bc10152610da0015260008181610197015281816102e8015281816104c0015281816105a10152818161064b0152818161076c01528181610b150152610cab0152611d746000f3fe608060405234801561001057600080fd5b506004361061009e5760003560e01c8063c665dcc411610066578063c665dcc414610111578063f2fde38b1461012f578063f35e4a6e1461014b578063fb12bdac14610167578063fccc2813146101715761009e565b806348cd4cb1146100a357806348cd5315146100c1578063715018a6146100df5780638da5cb5b146100e9578063c4aed0b714610107575b600080fd5b6100ab61018f565b6040516100b8919061181e565b60405180910390f35b6100c9610195565b6040516100d69190611621565b60405180910390f35b6100e76101b9565b005b6100f1610241565b6040516100fe919061158b565b60405180910390f35b61010f61026a565b005b61011961081f565b6040516101269190611606565b60405180910390f35b61014960048036038101906101449190611240565b610843565b005b61016560048036038101906101609190611292565b61093b565b005b61016f610a7e565b005b610179610e27565b604051610186919061158b565b60405180910390f35b60035481565b7f000000000000000000000000000000000000000000000000000000000000000081565b6101c1610e2d565b73ffffffffffffffffffffffffffffffffffffffff166101df610241565b73ffffffffffffffffffffffffffffffffffffffff1614610235576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161022c9061177e565b60405180910390fd5b61023f6000610e35565b565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b610272610e2d565b73ffffffffffffffffffffffffffffffffffffffff16610290610241565b73ffffffffffffffffffffffffffffffffffffffff16146102e6576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016102dd9061177e565b60405180910390fd5b7f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff1663083c63236040518163ffffffff1660e01b815260040160206040518083038186803b15801561034c57600080fd5b505afa158015610360573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061038491906112bb565b43116103c5576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016103bc9061175e565b60405180910390fd5b600260149054906101000a900460ff1615610415576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161040c9061169e565b60405180910390fd5b7f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff166370a08231306040518263ffffffff1660e01b815260040161046e919061158b565b60206040518083038186803b15801561048657600080fd5b505afa15801561049a573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906104be91906112bb565b7f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff166377e43ce36040518163ffffffff1660e01b815260040160206040518083038186803b15801561052457600080fd5b505afa158015610538573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061055c91906112bb565b111561059d576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016105949061171e565b60405180910390fd5b60007f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff166377e43ce36040518163ffffffff1660e01b815260040160206040518083038186803b15801561060557600080fd5b505afa158015610619573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061063d91906112bb565b111561072e5761072d61dead7f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff166377e43ce36040518163ffffffff1660e01b815260040160206040518083038186803b1580156106af57600080fd5b505afa1580156106c3573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906106e791906112bb565b7f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff16610ef99092919063ffffffff16565b5b6001600260146101000a81548160ff0219169083151502179055507fd415508b622285eaef1452ead8cda23fd9bb7c22fddf927f46d479dd2c6d666d7f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff166377e43ce36040518163ffffffff1660e01b815260040160206040518083038186803b1580156107d057600080fd5b505afa1580156107e4573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061080891906112bb565b604051610815919061181e565b60405180910390a1565b7f000000000000000000000000000000000000000000000000000000000000000081565b61084b610e2d565b73ffffffffffffffffffffffffffffffffffffffff16610869610241565b73ffffffffffffffffffffffffffffffffffffffff16146108bf576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016108b69061177e565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16141561092f576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016109269061167e565b60405180910390fd5b61093881610e35565b50565b610943610e2d565b73ffffffffffffffffffffffffffffffffffffffff16610961610241565b73ffffffffffffffffffffffffffffffffffffffff16146109b7576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016109ae9061177e565b60405180910390fd5b60035443106109fb576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016109f2906116de565b60405180910390fd5b804310610a3d576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610a349061165e565b60405180910390fd5b806003819055507fbc2c599aaa8e583922c1e7b448e3cf0a8d6726bbe825f5fc285e87807432904181604051610a73919061181e565b60405180910390a150565b60026001541415610ac4576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610abb906117de565b60405180910390fd5b6002600181905550600354431015610b11576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610b08906116fe565b60405180910390fd5b60007f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff166370a08231336040518263ffffffff1660e01b8152600401610b6c919061158b565b60206040518083038186803b158015610b8457600080fd5b505afa158015610b98573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610bbc91906112bb565b9050807f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff166370a08231306040518263ffffffff1660e01b8152600401610c18919061158b565b60206040518083038186803b158015610c3057600080fd5b505afa158015610c44573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610c6891906112bb565b1015610ca9576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610ca0906117fe565b60405180910390fd5b7f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff166323b872dd3361dead846040518463ffffffff1660e01b8152600401610d08939291906115a6565b602060405180830381600087803b158015610d2257600080fd5b505af1158015610d36573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610d5a9190611269565b610d99576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610d909061173e565b60405180910390fd5b610de433827f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff16610ef99092919063ffffffff16565b7fc4ae828d771e5afc44253fb5cf74a29bef391df8dc94b2942b074c7912a194183382604051610e159291906115dd565b60405180910390a15060018081905550565b61dead81565b600033905090565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050816000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b610f7a8363a9059cbb60e01b8484604051602401610f189291906115dd565b604051602081830303815290604052907bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19166020820180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff8381831617835250505050610f7f565b505050565b6000610fe1826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c65648152508573ffffffffffffffffffffffffffffffffffffffff166110469092919063ffffffff16565b905060008151111561104157808060200190518101906110019190611269565b611040576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611037906117be565b60405180910390fd5b5b505050565b6060611055848460008561105e565b90509392505050565b6060824710156110a3576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161109a906116be565b60405180910390fd5b6110ac85611172565b6110eb576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016110e29061179e565b60405180910390fd5b6000808673ffffffffffffffffffffffffffffffffffffffff1685876040516111149190611574565b60006040518083038185875af1925050503d8060008114611151576040519150601f19603f3d011682016040523d82523d6000602084013e611156565b606091505b5091509150611166828286611185565b92505050949350505050565b600080823b905060008111915050919050565b60608315611195578290506111e5565b6000835111156111a85782518084602001fd5b816040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016111dc919061163c565b60405180910390fd5b9392505050565b6000813590506111fb81611cf9565b92915050565b60008151905061121081611d10565b92915050565b60008135905061122581611d27565b92915050565b60008151905061123a81611d27565b92915050565b60006020828403121561125257600080fd5b6000611260848285016111ec565b91505092915050565b60006020828403121561127b57600080fd5b600061128984828501611201565b91505092915050565b6000602082840312156112a457600080fd5b60006112b284828501611216565b91505092915050565b6000602082840312156112cd57600080fd5b60006112db8482850161122b565b91505092915050565b6112ed8161186b565b82525050565b60006112fe82611839565b611308818561184f565b93506113188185602086016118fb565b80840191505092915050565b61132d816118b3565b82525050565b61133c816118d7565b82525050565b600061134d82611844565b611357818561185a565b93506113678185602086016118fb565b6113708161192e565b840191505092915050565b600061138860228361185a565b91506113938261193f565b604082019050919050565b60006113ab60268361185a565b91506113b68261198e565b604082019050919050565b60006113ce60228361185a565b91506113d9826119dd565b604082019050919050565b60006113f160268361185a565b91506113fc82611a2c565b604082019050919050565b6000611414603a8361185a565b915061141f82611a7b565b604082019050919050565b600061143760158361185a565b915061144282611aca565b602082019050919050565b600061145a602c8361185a565b915061146582611af3565b604082019050919050565b600061147d60178361185a565b915061148882611b42565b602082019050919050565b60006114a060458361185a565b91506114ab82611b6b565b606082019050919050565b60006114c360208361185a565b91506114ce82611be0565b602082019050919050565b60006114e6601d8361185a565b91506114f182611c09565b602082019050919050565b6000611509602a8361185a565b915061151482611c32565b604082019050919050565b600061152c601f8361185a565b915061153782611c81565b602082019050919050565b600061154f60268361185a565b915061155a82611caa565b604082019050919050565b61156e816118a9565b82525050565b600061158082846112f3565b915081905092915050565b60006020820190506115a060008301846112e4565b92915050565b60006060820190506115bb60008301866112e4565b6115c860208301856112e4565b6115d56040830184611565565b949350505050565b60006040820190506115f260008301856112e4565b6115ff6020830184611565565b9392505050565b600060208201905061161b6000830184611324565b92915050565b60006020820190506116366000830184611333565b92915050565b600060208201905081810360008301526116568184611342565b905092915050565b600060208201905081810360008301526116778161137b565b9050919050565b600060208201905081810360008301526116978161139e565b9050919050565b600060208201905081810360008301526116b7816113c1565b9050919050565b600060208201905081810360008301526116d7816113e4565b9050919050565b600060208201905081810360008301526116f781611407565b9050919050565b600060208201905081810360008301526117178161142a565b9050919050565b600060208201905081810360008301526117378161144d565b9050919050565b6000602082019050818103600083015261175781611470565b9050919050565b6000602082019050818103600083015261177781611493565b9050919050565b60006020820190508181036000830152611797816114b6565b9050919050565b600060208201905081810360008301526117b7816114d9565b9050919050565b600060208201905081810360008301526117d7816114fc565b9050919050565b600060208201905081810360008301526117f78161151f565b9050919050565b6000602082019050818103600083015261181781611542565b9050919050565b60006020820190506118336000830184611565565b92915050565b600081519050919050565b600081519050919050565b600081905092915050565b600082825260208201905092915050565b600061187682611889565b9050919050565b60008115159050919050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000819050919050565b60006118be826118c5565b9050919050565b60006118d082611889565b9050919050565b60006118e2826118e9565b9050919050565b60006118f482611889565b9050919050565b60005b838110156119195780820151818401526020810190506118fe565b83811115611928576000848401525b50505050565b6000601f19601f8301169050919050565b7f63616e6e6f742073657420737461727420626c6f636b20696e2074686520706160008201527f7374000000000000000000000000000000000000000000000000000000000000602082015250565b7f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160008201527f6464726573730000000000000000000000000000000000000000000000000000602082015250565b7f63616e206f6e6c79206275726e20756e736f6c642070726573616c65206f6e6360008201527f6521000000000000000000000000000000000000000000000000000000000000602082015250565b7f416464726573733a20696e73756666696369656e742062616c616e636520666f60008201527f722063616c6c0000000000000000000000000000000000000000000000000000602082015250565b7f63616e6e6f74206368616e676520737461727420626c6f636b2069662070726560008201527f73616c652068617320616c726561647920636f6d6d656e636564000000000000602082015250565b7f6d6f727068657573207374696c6c206177616b652e0000000000000000000000600082015250565b7f6275726e696e6720746f6f206d7563682073616e646d616e2c20636865636b2060008201527f616761696e20706c656173650000000000000000000000000000000000000000602082015250565b7f6661696c65642073656e64696e67206d6f727068657573000000000000000000600082015250565b7f63616e206f6e6c792073656e6420657863657373206d6f72706865757320746f60008201527f206465616420616464726573732061667465722070726573616c65206861732060208201527f656e646564000000000000000000000000000000000000000000000000000000604082015250565b7f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572600082015250565b7f416464726573733a2063616c6c20746f206e6f6e2d636f6e7472616374000000600082015250565b7f5361666545524332303a204552433230206f7065726174696f6e20646964206e60008201527f6f74207375636365656400000000000000000000000000000000000000000000602082015250565b7f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00600082015250565b7f4e6f7420456e6f75676820746f6b656e7320696e20636f6e747261637420666f60008201527f7220737761700000000000000000000000000000000000000000000000000000602082015250565b611d028161186b565b8114611d0d57600080fd5b50565b611d198161187d565b8114611d2457600080fd5b50565b611d30816118a9565b8114611d3b57600080fd5b5056fea2646970667358221220ef510d5df2f11ed62fd943bfe54f2cfd0721e89e177a56cd32d651866e7d30e264736f6c63430008030033000000000000000000000000000000000000000000000000000000000115a6e80000000000000000000000000d30a539f0597f01ca34356515318a4fb6ffe7cb000000000000000000000000f9b4defdde04fe18f5ee6456607f8a2ec9ff6a75
Deployed Bytecode
0x608060405234801561001057600080fd5b506004361061009e5760003560e01c8063c665dcc411610066578063c665dcc414610111578063f2fde38b1461012f578063f35e4a6e1461014b578063fb12bdac14610167578063fccc2813146101715761009e565b806348cd4cb1146100a357806348cd5315146100c1578063715018a6146100df5780638da5cb5b146100e9578063c4aed0b714610107575b600080fd5b6100ab61018f565b6040516100b8919061181e565b60405180910390f35b6100c9610195565b6040516100d69190611621565b60405180910390f35b6100e76101b9565b005b6100f1610241565b6040516100fe919061158b565b60405180910390f35b61010f61026a565b005b61011961081f565b6040516101269190611606565b60405180910390f35b61014960048036038101906101449190611240565b610843565b005b61016560048036038101906101609190611292565b61093b565b005b61016f610a7e565b005b610179610e27565b604051610186919061158b565b60405180910390f35b60035481565b7f0000000000000000000000000d30a539f0597f01ca34356515318a4fb6ffe7cb81565b6101c1610e2d565b73ffffffffffffffffffffffffffffffffffffffff166101df610241565b73ffffffffffffffffffffffffffffffffffffffff1614610235576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161022c9061177e565b60405180910390fd5b61023f6000610e35565b565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b610272610e2d565b73ffffffffffffffffffffffffffffffffffffffff16610290610241565b73ffffffffffffffffffffffffffffffffffffffff16146102e6576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016102dd9061177e565b60405180910390fd5b7f0000000000000000000000000d30a539f0597f01ca34356515318a4fb6ffe7cb73ffffffffffffffffffffffffffffffffffffffff1663083c63236040518163ffffffff1660e01b815260040160206040518083038186803b15801561034c57600080fd5b505afa158015610360573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061038491906112bb565b43116103c5576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016103bc9061175e565b60405180910390fd5b600260149054906101000a900460ff1615610415576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161040c9061169e565b60405180910390fd5b7f000000000000000000000000f9b4defdde04fe18f5ee6456607f8a2ec9ff6a7573ffffffffffffffffffffffffffffffffffffffff166370a08231306040518263ffffffff1660e01b815260040161046e919061158b565b60206040518083038186803b15801561048657600080fd5b505afa15801561049a573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906104be91906112bb565b7f0000000000000000000000000d30a539f0597f01ca34356515318a4fb6ffe7cb73ffffffffffffffffffffffffffffffffffffffff166377e43ce36040518163ffffffff1660e01b815260040160206040518083038186803b15801561052457600080fd5b505afa158015610538573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061055c91906112bb565b111561059d576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016105949061171e565b60405180910390fd5b60007f0000000000000000000000000d30a539f0597f01ca34356515318a4fb6ffe7cb73ffffffffffffffffffffffffffffffffffffffff166377e43ce36040518163ffffffff1660e01b815260040160206040518083038186803b15801561060557600080fd5b505afa158015610619573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061063d91906112bb565b111561072e5761072d61dead7f0000000000000000000000000d30a539f0597f01ca34356515318a4fb6ffe7cb73ffffffffffffffffffffffffffffffffffffffff166377e43ce36040518163ffffffff1660e01b815260040160206040518083038186803b1580156106af57600080fd5b505afa1580156106c3573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906106e791906112bb565b7f000000000000000000000000f9b4defdde04fe18f5ee6456607f8a2ec9ff6a7573ffffffffffffffffffffffffffffffffffffffff16610ef99092919063ffffffff16565b5b6001600260146101000a81548160ff0219169083151502179055507fd415508b622285eaef1452ead8cda23fd9bb7c22fddf927f46d479dd2c6d666d7f0000000000000000000000000d30a539f0597f01ca34356515318a4fb6ffe7cb73ffffffffffffffffffffffffffffffffffffffff166377e43ce36040518163ffffffff1660e01b815260040160206040518083038186803b1580156107d057600080fd5b505afa1580156107e4573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061080891906112bb565b604051610815919061181e565b60405180910390a1565b7f000000000000000000000000f9b4defdde04fe18f5ee6456607f8a2ec9ff6a7581565b61084b610e2d565b73ffffffffffffffffffffffffffffffffffffffff16610869610241565b73ffffffffffffffffffffffffffffffffffffffff16146108bf576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016108b69061177e565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16141561092f576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016109269061167e565b60405180910390fd5b61093881610e35565b50565b610943610e2d565b73ffffffffffffffffffffffffffffffffffffffff16610961610241565b73ffffffffffffffffffffffffffffffffffffffff16146109b7576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016109ae9061177e565b60405180910390fd5b60035443106109fb576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016109f2906116de565b60405180910390fd5b804310610a3d576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610a349061165e565b60405180910390fd5b806003819055507fbc2c599aaa8e583922c1e7b448e3cf0a8d6726bbe825f5fc285e87807432904181604051610a73919061181e565b60405180910390a150565b60026001541415610ac4576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610abb906117de565b60405180910390fd5b6002600181905550600354431015610b11576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610b08906116fe565b60405180910390fd5b60007f0000000000000000000000000d30a539f0597f01ca34356515318a4fb6ffe7cb73ffffffffffffffffffffffffffffffffffffffff166370a08231336040518263ffffffff1660e01b8152600401610b6c919061158b565b60206040518083038186803b158015610b8457600080fd5b505afa158015610b98573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610bbc91906112bb565b9050807f000000000000000000000000f9b4defdde04fe18f5ee6456607f8a2ec9ff6a7573ffffffffffffffffffffffffffffffffffffffff166370a08231306040518263ffffffff1660e01b8152600401610c18919061158b565b60206040518083038186803b158015610c3057600080fd5b505afa158015610c44573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610c6891906112bb565b1015610ca9576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610ca0906117fe565b60405180910390fd5b7f0000000000000000000000000d30a539f0597f01ca34356515318a4fb6ffe7cb73ffffffffffffffffffffffffffffffffffffffff166323b872dd3361dead846040518463ffffffff1660e01b8152600401610d08939291906115a6565b602060405180830381600087803b158015610d2257600080fd5b505af1158015610d36573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610d5a9190611269565b610d99576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610d909061173e565b60405180910390fd5b610de433827f000000000000000000000000f9b4defdde04fe18f5ee6456607f8a2ec9ff6a7573ffffffffffffffffffffffffffffffffffffffff16610ef99092919063ffffffff16565b7fc4ae828d771e5afc44253fb5cf74a29bef391df8dc94b2942b074c7912a194183382604051610e159291906115dd565b60405180910390a15060018081905550565b61dead81565b600033905090565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050816000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b610f7a8363a9059cbb60e01b8484604051602401610f189291906115dd565b604051602081830303815290604052907bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19166020820180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff8381831617835250505050610f7f565b505050565b6000610fe1826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c65648152508573ffffffffffffffffffffffffffffffffffffffff166110469092919063ffffffff16565b905060008151111561104157808060200190518101906110019190611269565b611040576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611037906117be565b60405180910390fd5b5b505050565b6060611055848460008561105e565b90509392505050565b6060824710156110a3576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161109a906116be565b60405180910390fd5b6110ac85611172565b6110eb576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016110e29061179e565b60405180910390fd5b6000808673ffffffffffffffffffffffffffffffffffffffff1685876040516111149190611574565b60006040518083038185875af1925050503d8060008114611151576040519150601f19603f3d011682016040523d82523d6000602084013e611156565b606091505b5091509150611166828286611185565b92505050949350505050565b600080823b905060008111915050919050565b60608315611195578290506111e5565b6000835111156111a85782518084602001fd5b816040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016111dc919061163c565b60405180910390fd5b9392505050565b6000813590506111fb81611cf9565b92915050565b60008151905061121081611d10565b92915050565b60008135905061122581611d27565b92915050565b60008151905061123a81611d27565b92915050565b60006020828403121561125257600080fd5b6000611260848285016111ec565b91505092915050565b60006020828403121561127b57600080fd5b600061128984828501611201565b91505092915050565b6000602082840312156112a457600080fd5b60006112b284828501611216565b91505092915050565b6000602082840312156112cd57600080fd5b60006112db8482850161122b565b91505092915050565b6112ed8161186b565b82525050565b60006112fe82611839565b611308818561184f565b93506113188185602086016118fb565b80840191505092915050565b61132d816118b3565b82525050565b61133c816118d7565b82525050565b600061134d82611844565b611357818561185a565b93506113678185602086016118fb565b6113708161192e565b840191505092915050565b600061138860228361185a565b91506113938261193f565b604082019050919050565b60006113ab60268361185a565b91506113b68261198e565b604082019050919050565b60006113ce60228361185a565b91506113d9826119dd565b604082019050919050565b60006113f160268361185a565b91506113fc82611a2c565b604082019050919050565b6000611414603a8361185a565b915061141f82611a7b565b604082019050919050565b600061143760158361185a565b915061144282611aca565b602082019050919050565b600061145a602c8361185a565b915061146582611af3565b604082019050919050565b600061147d60178361185a565b915061148882611b42565b602082019050919050565b60006114a060458361185a565b91506114ab82611b6b565b606082019050919050565b60006114c360208361185a565b91506114ce82611be0565b602082019050919050565b60006114e6601d8361185a565b91506114f182611c09565b602082019050919050565b6000611509602a8361185a565b915061151482611c32565b604082019050919050565b600061152c601f8361185a565b915061153782611c81565b602082019050919050565b600061154f60268361185a565b915061155a82611caa565b604082019050919050565b61156e816118a9565b82525050565b600061158082846112f3565b915081905092915050565b60006020820190506115a060008301846112e4565b92915050565b60006060820190506115bb60008301866112e4565b6115c860208301856112e4565b6115d56040830184611565565b949350505050565b60006040820190506115f260008301856112e4565b6115ff6020830184611565565b9392505050565b600060208201905061161b6000830184611324565b92915050565b60006020820190506116366000830184611333565b92915050565b600060208201905081810360008301526116568184611342565b905092915050565b600060208201905081810360008301526116778161137b565b9050919050565b600060208201905081810360008301526116978161139e565b9050919050565b600060208201905081810360008301526116b7816113c1565b9050919050565b600060208201905081810360008301526116d7816113e4565b9050919050565b600060208201905081810360008301526116f781611407565b9050919050565b600060208201905081810360008301526117178161142a565b9050919050565b600060208201905081810360008301526117378161144d565b9050919050565b6000602082019050818103600083015261175781611470565b9050919050565b6000602082019050818103600083015261177781611493565b9050919050565b60006020820190508181036000830152611797816114b6565b9050919050565b600060208201905081810360008301526117b7816114d9565b9050919050565b600060208201905081810360008301526117d7816114fc565b9050919050565b600060208201905081810360008301526117f78161151f565b9050919050565b6000602082019050818103600083015261181781611542565b9050919050565b60006020820190506118336000830184611565565b92915050565b600081519050919050565b600081519050919050565b600081905092915050565b600082825260208201905092915050565b600061187682611889565b9050919050565b60008115159050919050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000819050919050565b60006118be826118c5565b9050919050565b60006118d082611889565b9050919050565b60006118e2826118e9565b9050919050565b60006118f482611889565b9050919050565b60005b838110156119195780820151818401526020810190506118fe565b83811115611928576000848401525b50505050565b6000601f19601f8301169050919050565b7f63616e6e6f742073657420737461727420626c6f636b20696e2074686520706160008201527f7374000000000000000000000000000000000000000000000000000000000000602082015250565b7f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160008201527f6464726573730000000000000000000000000000000000000000000000000000602082015250565b7f63616e206f6e6c79206275726e20756e736f6c642070726573616c65206f6e6360008201527f6521000000000000000000000000000000000000000000000000000000000000602082015250565b7f416464726573733a20696e73756666696369656e742062616c616e636520666f60008201527f722063616c6c0000000000000000000000000000000000000000000000000000602082015250565b7f63616e6e6f74206368616e676520737461727420626c6f636b2069662070726560008201527f73616c652068617320616c726561647920636f6d6d656e636564000000000000602082015250565b7f6d6f727068657573207374696c6c206177616b652e0000000000000000000000600082015250565b7f6275726e696e6720746f6f206d7563682073616e646d616e2c20636865636b2060008201527f616761696e20706c656173650000000000000000000000000000000000000000602082015250565b7f6661696c65642073656e64696e67206d6f727068657573000000000000000000600082015250565b7f63616e206f6e6c792073656e6420657863657373206d6f72706865757320746f60008201527f206465616420616464726573732061667465722070726573616c65206861732060208201527f656e646564000000000000000000000000000000000000000000000000000000604082015250565b7f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572600082015250565b7f416464726573733a2063616c6c20746f206e6f6e2d636f6e7472616374000000600082015250565b7f5361666545524332303a204552433230206f7065726174696f6e20646964206e60008201527f6f74207375636365656400000000000000000000000000000000000000000000602082015250565b7f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00600082015250565b7f4e6f7420456e6f75676820746f6b656e7320696e20636f6e747261637420666f60008201527f7220737761700000000000000000000000000000000000000000000000000000602082015250565b611d028161186b565b8114611d0d57600080fd5b50565b611d198161187d565b8114611d2457600080fd5b50565b611d30816118a9565b8114611d3b57600080fd5b5056fea2646970667358221220ef510d5df2f11ed62fd943bfe54f2cfd0721e89e177a56cd32d651866e7d30e264736f6c63430008030033
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
000000000000000000000000000000000000000000000000000000000115a6e80000000000000000000000000d30a539f0597f01ca34356515318a4fb6ffe7cb000000000000000000000000f9b4defdde04fe18f5ee6456607f8a2ec9ff6a75
-----Decoded View---------------
Arg [0] : _startBlock (uint256): 18196200
Arg [1] : _morpheusAddress (address): 0x0D30a539F0597F01cA34356515318a4Fb6Ffe7CB
Arg [2] : _sandmanAddress (address): 0xf9b4dEFdDe04fe18F5ee6456607F8A2eC9fF6A75
-----Encoded View---------------
3 Constructor Arguments found :
Arg [0] : 000000000000000000000000000000000000000000000000000000000115a6e8
Arg [1] : 0000000000000000000000000d30a539f0597f01ca34356515318a4fb6ffe7cb
Arg [2] : 000000000000000000000000f9b4defdde04fe18f5ee6456607f8a2ec9ff6a75
Loading...
Loading
Loading...
Loading
[ Download: CSV Export ]
A contract address hosts a smart contract, which is a set of code stored on the blockchain that runs when predetermined conditions are met. Learn more about addresses in our Knowledge Base.