Overview
ETH Balance
2 ETH
Eth Value
$6,923.35 (@ $3,461.68/ETH)More Info
Private Name Tags
ContractCreator
Latest 25 from a total of 4,893 transactions
Transaction Hash |
Method
|
Block
|
From
|
To
|
|||||
---|---|---|---|---|---|---|---|---|---|
Set Give Away Me... | 14533077 | 832 days ago | IN | 0 ETH | 0.00228675 | ||||
Claim Giveaway | 14525023 | 834 days ago | IN | 0 ETH | 0.00553519 | ||||
Claim Giveaway | 14380727 | 856 days ago | IN | 0 ETH | 0.00582614 | ||||
Set Give Away Me... | 14344607 | 862 days ago | IN | 0 ETH | 0.00061984 | ||||
Claim Giveaway | 14254317 | 876 days ago | IN | 0 ETH | 0.00777091 | ||||
Claim Giveaway | 14254068 | 876 days ago | IN | 0 ETH | 0.00903796 | ||||
Claim Giveaway | 14250852 | 876 days ago | IN | 0 ETH | 0.02011182 | ||||
Claim Giveaway | 14250579 | 876 days ago | IN | 0 ETH | 0.01794169 | ||||
Claim Giveaway | 14247366 | 877 days ago | IN | 0 ETH | 0.00885906 | ||||
Set Give Away Me... | 14244946 | 877 days ago | IN | 0 ETH | 0.00153141 | ||||
Mint Sloties | 14176480 | 888 days ago | IN | 0 ETH | 0.00118779 | ||||
Claim Giveaway | 14140296 | 893 days ago | IN | 0 ETH | 0.02006367 | ||||
Claim Giveaway | 14127401 | 895 days ago | IN | 0 ETH | 0.01670051 | ||||
Claim Giveaway | 14127072 | 895 days ago | IN | 0 ETH | 0.01594287 | ||||
Claim Giveaway | 14126958 | 895 days ago | IN | 0 ETH | 0.01161835 | ||||
Claim Giveaway | 14125808 | 896 days ago | IN | 0 ETH | 0.05130005 | ||||
Claim Giveaway | 14114913 | 897 days ago | IN | 0 ETH | 0.02772572 | ||||
Set Give Away Me... | 14114174 | 897 days ago | IN | 0 ETH | 0.00319829 | ||||
Mint Sloties | 14070490 | 904 days ago | IN | 0 ETH | 0.01710994 | ||||
Phase One Buy Ti... | 14070246 | 904 days ago | IN | 0.08 ETH | 0.00781481 | ||||
Mint Sloties | 14052386 | 907 days ago | IN | 0 ETH | 0.01550887 | ||||
Phase One Buy Ti... | 14049705 | 907 days ago | IN | 0.08 ETH | 0.0103433 | ||||
Claim Giveaway | 13984919 | 917 days ago | IN | 0 ETH | 0.02185582 | ||||
Mint Sloties | 13974609 | 919 days ago | IN | 0 ETH | 0.00238675 | ||||
Claim Giveaway | 13965353 | 920 days ago | IN | 0 ETH | 0.01237782 |
Loading...
Loading
Contract Name:
SlotiePreSale
Compiler Version
v0.8.10+commit.fc410830
Optimization Enabled:
Yes with 1000 runs
Other Settings:
default evmVersion
Contract Source Code (Solidity Standard Json-Input format)
// SPDX-License-Identifier: MIT pragma solidity 0.8.10; import "@openzeppelin/contracts/access/Ownable.sol"; import "@openzeppelin/contracts/utils/math/SafeMath.sol"; import "@openzeppelin/contracts/utils/cryptography/ECDSA.sol"; import "@openzeppelin/contracts/utils/Strings.sol"; import {MerkleProof} from "@openzeppelin/contracts/utils/cryptography/MerkleProof.sol"; interface SlotieNFT { function mintTo(uint256, address) external; } contract SlotiePreSale is Ownable { using SafeMath for uint256; using Strings for uint256; using ECDSA for bytes32; SlotieNFT public slotieNFT; /** Phase 1 */ bool public phaseOneActive = false; bool public phaseTwoActive = false; uint256 public constant maxSupply = 2501; uint256 public constant ticketsPerUser = 3; uint256 public constant ticketPrice = 0.08 ether; // 0.08 ether uint256 public ticketSales = 1; mapping(address => uint256) public addressToTickets; /** MERKLE */ bytes32 public phaseOneMerkleRoot = 0x5406f95cc1896abac2d843cd72298f3d6072f06941ef21e103d6bcae59807df0; bytes32 public phaseTwoMerkleRoot = 0x74a7375e09ffd2a49c6cfe5325df5afb05b87dfd3dbfb2708c140e805b89ad0e; bytes32 public giveawayMerkleRoot = 0xef7d2b691d30203e53e5df4f3d16f015208170d6d468f9af39a8d7ef2a12b424; /** Giveaway */ uint256 public giveAwaySupply = 350; /** Security */ mapping(address => uint256) public addressToTicketMints; mapping(address => uint256) public addressToGiveawayMints; //uint256 public constant maxMintPerTx = 30; /** Events */ event SetSlotieNFT(address _slotieNFT); event SetSignatureProvider(address _provider); event MakePhaseOneActive(bool _active); event MakePhaseTwoActive(bool _active); event MintSloties(address _sender, uint256 _amount); constructor( address _sloties ) Ownable() { slotieNFT = SlotieNFT(_sloties); } function setSlotieNFT(SlotieNFT _slotieNFT) external onlyOwner { slotieNFT = _slotieNFT; emit SetSlotieNFT(address(_slotieNFT)); } function setPhaseOneMerkleRoot(bytes32 _root) external onlyOwner { phaseOneMerkleRoot = _root; } function setPhaseTwoMerkleRoot(bytes32 _root) external onlyOwner { phaseTwoMerkleRoot = _root; } function setGiveAwayMerkleRoot(bytes32 _root) external onlyOwner { giveawayMerkleRoot = _root; } function makePhaseOneActive(bool _val) external onlyOwner { phaseOneActive = _val; emit MakePhaseOneActive(_val); } function makePhaseTwoActive(bool _val) external onlyOwner { phaseTwoActive = _val; emit MakePhaseTwoActive(_val); } function phaseOneBuyTicketsMerkle( bytes32[] calldata proof ) external payable { require(phaseOneActive, "PHASE ONE NOT ACTIVE"); bytes32 leaf = keccak256(abi.encodePacked(msg.sender)); require(MerkleProof.verify(proof, phaseOneMerkleRoot, leaf), "INVALID PROOF"); require(addressToTickets[msg.sender] == 0, "ALREADY GOT TICKET"); require(msg.value == ticketPrice, "INCORRECT AMOUNT PAID"); addressToTickets[msg.sender] = 1; ticketSales = ticketSales.add(1); } function phaseTwoBuyTicketsMerkle( uint256 _amount, bytes32[] calldata proof ) external payable { require(phaseTwoActive, "PHASE TWO NOT ACTIVE"); require(_amount > 0, "HAVE TO BUY AT LEAST 1"); bytes32 leaf = keccak256(abi.encodePacked(msg.sender)); require(MerkleProof.verify(proof, phaseTwoMerkleRoot, leaf), "INVALID PROOF"); require(addressToTickets[msg.sender].add(_amount) <= ticketsPerUser, "ALREADY GOT TICKET"); require(ticketSales.add(_amount) <= maxSupply, "MAX TICKETS SOLD"); require(msg.value == ticketPrice.mul(_amount), "INCORRECT AMOUNT PAID"); addressToTickets[msg.sender] = addressToTickets[msg.sender].add(_amount); ticketSales = ticketSales.add(_amount); } function mintSloties() external { uint256 ticketsOfSender = addressToTickets[msg.sender]; uint256 mintsOfSender = addressToTicketMints[msg.sender]; uint256 mintable = ticketsOfSender.sub(mintsOfSender); require(mintable > 0, "NO MINTABLE TICKETS"); addressToTicketMints[msg.sender] = addressToTicketMints[msg.sender].add(mintable); slotieNFT.mintTo(mintable, msg.sender); emit MintSloties(msg.sender, mintable); } /** GIVEAWAY */ function claimGiveaway(uint256 _amount, bytes32[] calldata proof) external { require(_amount > 0, "HAVE TO BUY AT LEAST 1"); bytes32 leaf = keccak256(abi.encodePacked(msg.sender, _amount)); require(MerkleProof.verify(proof, giveawayMerkleRoot, leaf), "INVALID PROOF"); uint256 giveAwayMints = addressToGiveawayMints[msg.sender]; require(giveAwayMints == 0, "ALREADY CLAIMED"); addressToGiveawayMints[msg.sender] = addressToGiveawayMints[msg.sender].add(_amount); slotieNFT.mintTo(_amount, msg.sender); } /** * @dev Allows the owner to withdraw ether */ function withdraw() external onlyOwner { payable(msg.sender).transfer(address(this).balance); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.0 (access/Ownable.sol) 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() { _transferOwnership(_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 { _transferOwnership(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"); _transferOwnership(newOwner); } /** * @dev Transfers ownership of the contract to a new account (`newOwner`). * Internal function without access restriction. */ function _transferOwnership(address newOwner) internal virtual { address oldOwner = _owner; _owner = newOwner; emit OwnershipTransferred(oldOwner, newOwner); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.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 substraction 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 v4.4.0 (utils/cryptography/ECDSA.sol) pragma solidity ^0.8.0; import "../Strings.sol"; /** * @dev Elliptic Curve Digital Signature Algorithm (ECDSA) operations. * * These functions can be used to verify that a message was signed by the holder * of the private keys of a given address. */ library ECDSA { enum RecoverError { NoError, InvalidSignature, InvalidSignatureLength, InvalidSignatureS, InvalidSignatureV } function _throwError(RecoverError error) private pure { if (error == RecoverError.NoError) { return; // no error: do nothing } else if (error == RecoverError.InvalidSignature) { revert("ECDSA: invalid signature"); } else if (error == RecoverError.InvalidSignatureLength) { revert("ECDSA: invalid signature length"); } else if (error == RecoverError.InvalidSignatureS) { revert("ECDSA: invalid signature 's' value"); } else if (error == RecoverError.InvalidSignatureV) { revert("ECDSA: invalid signature 'v' value"); } } /** * @dev Returns the address that signed a hashed message (`hash`) with * `signature` or error string. This address can then be used for verification purposes. * * The `ecrecover` EVM opcode allows for malleable (non-unique) signatures: * this function rejects them by requiring the `s` value to be in the lower * half order, and the `v` value to be either 27 or 28. * * IMPORTANT: `hash` _must_ be the result of a hash operation for the * verification to be secure: it is possible to craft signatures that * recover to arbitrary addresses for non-hashed data. A safe way to ensure * this is by receiving a hash of the original message (which may otherwise * be too long), and then calling {toEthSignedMessageHash} on it. * * Documentation for signature generation: * - with https://web3js.readthedocs.io/en/v1.3.4/web3-eth-accounts.html#sign[Web3.js] * - with https://docs.ethers.io/v5/api/signer/#Signer-signMessage[ethers] * * _Available since v4.3._ */ function tryRecover(bytes32 hash, bytes memory signature) internal pure returns (address, RecoverError) { // Check the signature length // - case 65: r,s,v signature (standard) // - case 64: r,vs signature (cf https://eips.ethereum.org/EIPS/eip-2098) _Available since v4.1._ if (signature.length == 65) { bytes32 r; bytes32 s; uint8 v; // ecrecover takes the signature parameters, and the only way to get them // currently is to use assembly. assembly { r := mload(add(signature, 0x20)) s := mload(add(signature, 0x40)) v := byte(0, mload(add(signature, 0x60))) } return tryRecover(hash, v, r, s); } else if (signature.length == 64) { bytes32 r; bytes32 vs; // ecrecover takes the signature parameters, and the only way to get them // currently is to use assembly. assembly { r := mload(add(signature, 0x20)) vs := mload(add(signature, 0x40)) } return tryRecover(hash, r, vs); } else { return (address(0), RecoverError.InvalidSignatureLength); } } /** * @dev Returns the address that signed a hashed message (`hash`) with * `signature`. This address can then be used for verification purposes. * * The `ecrecover` EVM opcode allows for malleable (non-unique) signatures: * this function rejects them by requiring the `s` value to be in the lower * half order, and the `v` value to be either 27 or 28. * * IMPORTANT: `hash` _must_ be the result of a hash operation for the * verification to be secure: it is possible to craft signatures that * recover to arbitrary addresses for non-hashed data. A safe way to ensure * this is by receiving a hash of the original message (which may otherwise * be too long), and then calling {toEthSignedMessageHash} on it. */ function recover(bytes32 hash, bytes memory signature) internal pure returns (address) { (address recovered, RecoverError error) = tryRecover(hash, signature); _throwError(error); return recovered; } /** * @dev Overload of {ECDSA-tryRecover} that receives the `r` and `vs` short-signature fields separately. * * See https://eips.ethereum.org/EIPS/eip-2098[EIP-2098 short signatures] * * _Available since v4.3._ */ function tryRecover( bytes32 hash, bytes32 r, bytes32 vs ) internal pure returns (address, RecoverError) { bytes32 s; uint8 v; assembly { s := and(vs, 0x7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff) v := add(shr(255, vs), 27) } return tryRecover(hash, v, r, s); } /** * @dev Overload of {ECDSA-recover} that receives the `r and `vs` short-signature fields separately. * * _Available since v4.2._ */ function recover( bytes32 hash, bytes32 r, bytes32 vs ) internal pure returns (address) { (address recovered, RecoverError error) = tryRecover(hash, r, vs); _throwError(error); return recovered; } /** * @dev Overload of {ECDSA-tryRecover} that receives the `v`, * `r` and `s` signature fields separately. * * _Available since v4.3._ */ function tryRecover( bytes32 hash, uint8 v, bytes32 r, bytes32 s ) internal pure returns (address, RecoverError) { // EIP-2 still allows signature malleability for ecrecover(). Remove this possibility and make the signature // unique. Appendix F in the Ethereum Yellow paper (https://ethereum.github.io/yellowpaper/paper.pdf), defines // the valid range for s in (301): 0 < s < secp256k1n ÷ 2 + 1, and for v in (302): v ∈ {27, 28}. Most // signatures from current libraries generate a unique signature with an s-value in the lower half order. // // If your library generates malleable signatures, such as s-values in the upper range, calculate a new s-value // with 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFEBAAEDCE6AF48A03BBFD25E8CD0364141 - s1 and flip v from 27 to 28 or // vice versa. If your library also generates signatures with 0/1 for v instead 27/28, add 27 to v to accept // these malleable signatures as well. if (uint256(s) > 0x7FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF5D576E7357A4501DDFE92F46681B20A0) { return (address(0), RecoverError.InvalidSignatureS); } if (v != 27 && v != 28) { return (address(0), RecoverError.InvalidSignatureV); } // If the signature is valid (and not malleable), return the signer address address signer = ecrecover(hash, v, r, s); if (signer == address(0)) { return (address(0), RecoverError.InvalidSignature); } return (signer, RecoverError.NoError); } /** * @dev Overload of {ECDSA-recover} that receives the `v`, * `r` and `s` signature fields separately. */ function recover( bytes32 hash, uint8 v, bytes32 r, bytes32 s ) internal pure returns (address) { (address recovered, RecoverError error) = tryRecover(hash, v, r, s); _throwError(error); return recovered; } /** * @dev Returns an Ethereum Signed Message, created from a `hash`. This * produces hash corresponding to the one signed with the * https://eth.wiki/json-rpc/API#eth_sign[`eth_sign`] * JSON-RPC method as part of EIP-191. * * See {recover}. */ function toEthSignedMessageHash(bytes32 hash) internal pure returns (bytes32) { // 32 is the length in bytes of hash, // enforced by the type signature above return keccak256(abi.encodePacked("\x19Ethereum Signed Message:\n32", hash)); } /** * @dev Returns an Ethereum Signed Message, created from `s`. This * produces hash corresponding to the one signed with the * https://eth.wiki/json-rpc/API#eth_sign[`eth_sign`] * JSON-RPC method as part of EIP-191. * * See {recover}. */ function toEthSignedMessageHash(bytes memory s) internal pure returns (bytes32) { return keccak256(abi.encodePacked("\x19Ethereum Signed Message:\n", Strings.toString(s.length), s)); } /** * @dev Returns an Ethereum Signed Typed Data, created from a * `domainSeparator` and a `structHash`. This produces hash corresponding * to the one signed with the * https://eips.ethereum.org/EIPS/eip-712[`eth_signTypedData`] * JSON-RPC method as part of EIP-712. * * See {recover}. */ function toTypedDataHash(bytes32 domainSeparator, bytes32 structHash) internal pure returns (bytes32) { return keccak256(abi.encodePacked("\x19\x01", domainSeparator, structHash)); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.0 (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.0 (utils/cryptography/MerkleProof.sol) pragma solidity ^0.8.0; /** * @dev These functions deal with verification of Merkle Trees proofs. * * The proofs can be generated using the JavaScript library * https://github.com/miguelmota/merkletreejs[merkletreejs]. * Note: the hashing algorithm should be keccak256 and pair sorting should be enabled. * * See `test/utils/cryptography/MerkleProof.test.js` for some examples. */ library MerkleProof { /** * @dev Returns true if a `leaf` can be proved to be a part of a Merkle tree * defined by `root`. For this, a `proof` must be provided, containing * sibling hashes on the branch from the leaf to the root of the tree. Each * pair of leaves and each pair of pre-images are assumed to be sorted. */ function verify( bytes32[] memory proof, bytes32 root, bytes32 leaf ) internal pure returns (bool) { return processProof(proof, leaf) == root; } /** * @dev Returns the rebuilt hash obtained by traversing a Merklee tree up * from `leaf` using `proof`. A `proof` is valid if and only if the rebuilt * hash matches the root of the tree. When processing the proof, the pairs * of leafs & pre-images are assumed to be sorted. * * _Available since v4.4._ */ function processProof(bytes32[] memory proof, bytes32 leaf) internal pure returns (bytes32) { bytes32 computedHash = leaf; for (uint256 i = 0; i < proof.length; i++) { bytes32 proofElement = proof[i]; if (computedHash <= proofElement) { // Hash(current computed hash + current element of the proof) computedHash = keccak256(abi.encodePacked(computedHash, proofElement)); } else { // Hash(current element of the proof + current computed hash) computedHash = keccak256(abi.encodePacked(proofElement, computedHash)); } } return computedHash; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.0 (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; } }
{ "optimizer": { "enabled": true, "runs": 1000 }, "outputSelection": { "*": { "*": [ "evm.bytecode", "evm.deployedBytecode", "devdoc", "userdoc", "metadata", "abi" ] } }, "metadata": { "useLiteralContent": true }, "libraries": {} }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"inputs":[{"internalType":"address","name":"_sloties","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"bool","name":"_active","type":"bool"}],"name":"MakePhaseOneActive","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"bool","name":"_active","type":"bool"}],"name":"MakePhaseTwoActive","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"_sender","type":"address"},{"indexed":false,"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"MintSloties","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"_provider","type":"address"}],"name":"SetSignatureProvider","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"_slotieNFT","type":"address"}],"name":"SetSlotieNFT","type":"event"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"addressToGiveawayMints","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"addressToTicketMints","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"addressToTickets","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_amount","type":"uint256"},{"internalType":"bytes32[]","name":"proof","type":"bytes32[]"}],"name":"claimGiveaway","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"giveAwaySupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"giveawayMerkleRoot","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bool","name":"_val","type":"bool"}],"name":"makePhaseOneActive","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"_val","type":"bool"}],"name":"makePhaseTwoActive","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"maxSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"mintSloties","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"phaseOneActive","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32[]","name":"proof","type":"bytes32[]"}],"name":"phaseOneBuyTicketsMerkle","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"phaseOneMerkleRoot","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"phaseTwoActive","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_amount","type":"uint256"},{"internalType":"bytes32[]","name":"proof","type":"bytes32[]"}],"name":"phaseTwoBuyTicketsMerkle","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"phaseTwoMerkleRoot","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"_root","type":"bytes32"}],"name":"setGiveAwayMerkleRoot","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"_root","type":"bytes32"}],"name":"setPhaseOneMerkleRoot","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"_root","type":"bytes32"}],"name":"setPhaseTwoMerkleRoot","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"contract SlotieNFT","name":"_slotieNFT","type":"address"}],"name":"setSlotieNFT","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"slotieNFT","outputs":[{"internalType":"contract SlotieNFT","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"ticketPrice","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"ticketSales","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"ticketsPerUser","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"withdraw","outputs":[],"stateMutability":"nonpayable","type":"function"}]
Contract Creation Code
60806040526001805461ffff60a01b191681556002557f5406f95cc1896abac2d843cd72298f3d6072f06941ef21e103d6bcae59807df06004557f74a7375e09ffd2a49c6cfe5325df5afb05b87dfd3dbfb2708c140e805b89ad0e6005557fef7d2b691d30203e53e5df4f3d16f015208170d6d468f9af39a8d7ef2a12b42460065561015e60075534801561009357600080fd5b506040516117203803806117208339810160408190526100b291610130565b6100bb336100e0565b600180546001600160a01b0319166001600160a01b0392909216919091179055610160565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b60006020828403121561014257600080fd5b81516001600160a01b038116811461015957600080fd5b9392505050565b6115b18061016f6000396000f3fe6080604052600436106101b75760003560e01c8063943bd3c6116100ec578063d5abeb011161008a578063e62f89eb11610064578063e62f89eb146104a4578063ec3ccec2146104c4578063f2fde38b146104da578063f35602ba146104fa57600080fd5b8063d5abeb011461044b578063d842cc9414610461578063e25ad7e61461048e57600080fd5b8063b7226813116100c6578063b7226813146103d7578063bdf08d71146103ea578063cb7a10491461040b578063d3541b4a1461042b57600080fd5b8063943bd3c6146103815780639c186a8a14610397578063a0c51578146103b757600080fd5b80633ccfd60b116101595780635f1bd882116101335780635f1bd8821461030c57806361e892cb14610321578063715018a61461034e5780638da5cb5b1461036357600080fd5b80633ccfd60b146102b557806349a2ca63146102ca5780635abf95f8146102df57600080fd5b80631df96c0b116101955780631df96c0b146102395780632bf5bba11461026a5780633494cf651461027f5780633add379b1461029557600080fd5b80630d08055b146101bc5780631209b1f6146101e557806313b9e70514610201575b600080fd5b3480156101c857600080fd5b506101d260055481565b6040519081526020015b60405180910390f35b3480156101f157600080fd5b506101d267011c37937e08000081565b34801561020d57600080fd5b50600154610221906001600160a01b031681565b6040516001600160a01b0390911681526020016101dc565b34801561024557600080fd5b5060015461025a90600160a01b900460ff1681565b60405190151581526020016101dc565b61027d6102783660046113eb565b61051a565b005b34801561028b57600080fd5b506101d260025481565b3480156102a157600080fd5b5061027d6102b0366004611437565b6107e8565b3480156102c157600080fd5b5061027d6108b5565b3480156102d657600080fd5b506101d2600381565b3480156102eb57600080fd5b506101d26102fa36600461146e565b60036020526000908152604090205481565b34801561031857600080fd5b5061027d61093e565b34801561032d57600080fd5b506101d261033c36600461146e565b60096020526000908152604090205481565b34801561035a57600080fd5b5061027d610a8a565b34801561036f57600080fd5b506000546001600160a01b0316610221565b34801561038d57600080fd5b506101d260075481565b3480156103a357600080fd5b5061027d6103b236600461146e565b610af0565b3480156103c357600080fd5b5061027d6103d23660046113eb565b610ba5565b61027d6103e536600461148b565b610dab565b3480156103f657600080fd5b5060015461025a90600160a81b900460ff1681565b34801561041757600080fd5b5061027d610426366004611437565b610f97565b34801561043757600080fd5b5061027d6104463660046114cd565b611059565b34801561045757600080fd5b506101d26109c581565b34801561046d57600080fd5b506101d261047c36600461146e565b60086020526000908152604090205481565b34801561049a57600080fd5b506101d260045481565b3480156104b057600080fd5b5061027d6104bf3660046114cd565b6110b8565b3480156104d057600080fd5b506101d260065481565b3480156104e657600080fd5b5061027d6104f536600461146e565b611117565b34801561050657600080fd5b5061027d6105153660046114cd565b6111f6565b600154600160a81b900460ff166105785760405162461bcd60e51b815260206004820152601460248201527f50484153452054574f204e4f542041435449564500000000000000000000000060448201526064015b60405180910390fd5b600083116105c85760405162461bcd60e51b815260206004820152601660248201527f4841564520544f20425559204154204c45415354203100000000000000000000604482015260640161056f565b6040516bffffffffffffffffffffffff193360601b166020820152600090603401604051602081830303815290604052805190602001209050610642838380806020026020016040519081016040528093929190818152602001838360200280828437600092019190915250506005549150849050611255565b61067e5760405162461bcd60e51b815260206004820152600d60248201526c24a72b20a624a210282927a7a360991b604482015260640161056f565b3360009081526003602081905260409091205461069b908661126b565b11156106e95760405162461bcd60e51b815260206004820152601260248201527f414c524541445920474f54205449434b45540000000000000000000000000000604482015260640161056f565b6002546109c5906106fa908661126b565b11156107485760405162461bcd60e51b815260206004820152601060248201527f4d4158205449434b45545320534f4c4400000000000000000000000000000000604482015260640161056f565b61075a67011c37937e0800008561127e565b34146107a85760405162461bcd60e51b815260206004820152601560248201527f494e434f525245435420414d4f554e5420504149440000000000000000000000604482015260640161056f565b336000908152600360205260409020546107c2908561126b565b336000908152600360205260409020556002546107df908561126b565b60025550505050565b6000546001600160a01b031633146108425760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015260640161056f565b60018054821515600160a01b027fffffffffffffffffffffff00ffffffffffffffffffffffffffffffffffffffff9091161790556040517ff8be2c4530333b6e087fc0ea69ca8962274854de8640a2f32127b292394e3e1a906108aa90831515815260200190565b60405180910390a150565b6000546001600160a01b0316331461090f5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015260640161056f565b60405133904780156108fc02916000818181858888f1935050505015801561093b573d6000803e3d6000fd5b50565b3360009081526003602090815260408083205460089092528220549091610965838361128a565b9050600081116109b75760405162461bcd60e51b815260206004820152601360248201527f4e4f204d494e5441424c45205449434b45545300000000000000000000000000604482015260640161056f565b336000908152600860205260409020546109d1908261126b565b3360008181526008602052604090819020929092556001549151635b91d9a760e11b81526004810184905260248101919091526001600160a01b039091169063b723b34e90604401600060405180830381600087803b158015610a3357600080fd5b505af1158015610a47573d6000803e3d6000fd5b505060408051338152602081018590527f49d90f785dada37f5c6ca8b23be7704573cb0ac640ef47e62777b8e6014eb21c935001905060405180910390a1505050565b6000546001600160a01b03163314610ae45760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015260640161056f565b610aee6000611296565b565b6000546001600160a01b03163314610b4a5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015260640161056f565b6001805473ffffffffffffffffffffffffffffffffffffffff19166001600160a01b0383169081179091556040519081527f300b488c3102bad859ddcf4bc5b78a89675db93eb0dbe97a85e28f29c5e1d07e906020016108aa565b60008311610bf55760405162461bcd60e51b815260206004820152601660248201527f4841564520544f20425559204154204c45415354203100000000000000000000604482015260640161056f565b6040516bffffffffffffffffffffffff193360601b16602082015260348101849052600090605401604051602081830303815290604052805190602001209050610c76838380806020026020016040519081016040528093929190818152602001838360200280828437600092019190915250506006549150849050611255565b610cb25760405162461bcd60e51b815260206004820152600d60248201526c24a72b20a624a210282927a7a360991b604482015260640161056f565b336000908152600960205260409020548015610d105760405162461bcd60e51b815260206004820152600f60248201527f414c524541445920434c41494d45440000000000000000000000000000000000604482015260640161056f565b33600090815260096020526040902054610d2a908661126b565b3360008181526009602052604090819020929092556001549151635b91d9a760e11b81526004810188905260248101919091526001600160a01b039091169063b723b34e90604401600060405180830381600087803b158015610d8c57600080fd5b505af1158015610da0573d6000803e3d6000fd5b505050505050505050565b600154600160a01b900460ff16610e045760405162461bcd60e51b815260206004820152601460248201527f5048415345204f4e45204e4f5420414354495645000000000000000000000000604482015260640161056f565b6040516bffffffffffffffffffffffff193360601b166020820152600090603401604051602081830303815290604052805190602001209050610e7e838380806020026020016040519081016040528093929190818152602001838360200280828437600092019190915250506004549150849050611255565b610eba5760405162461bcd60e51b815260206004820152600d60248201526c24a72b20a624a210282927a7a360991b604482015260640161056f565b3360009081526003602052604090205415610f175760405162461bcd60e51b815260206004820152601260248201527f414c524541445920474f54205449434b45540000000000000000000000000000604482015260640161056f565b67011c37937e0800003414610f6e5760405162461bcd60e51b815260206004820152601560248201527f494e434f525245435420414d4f554e5420504149440000000000000000000000604482015260640161056f565b336000908152600360205260409020600190819055600254610f8f9161126b565b600255505050565b6000546001600160a01b03163314610ff15760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015260640161056f565b60018054821515600160a81b027fffffffffffffffffffff00ffffffffffffffffffffffffffffffffffffffffff9091161790556040517f79c4a1ce0aceabd470904bedd6d555d9c4765480939050f3c2dd5e83f35ea327906108aa90831515815260200190565b6000546001600160a01b031633146110b35760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015260640161056f565b600655565b6000546001600160a01b031633146111125760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015260640161056f565b600455565b6000546001600160a01b031633146111715760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015260640161056f565b6001600160a01b0381166111ed5760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201527f6464726573730000000000000000000000000000000000000000000000000000606482015260840161056f565b61093b81611296565b6000546001600160a01b031633146112505760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015260640161056f565b600555565b60008261126285846112f3565b14949350505050565b600061127782846114fc565b9392505050565b60006112778284611514565b60006112778284611533565b600080546001600160a01b0383811673ffffffffffffffffffffffffffffffffffffffff19831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b600081815b84518110156113975760008582815181106113155761131561154a565b60200260200101519050808311611357576040805160208101859052908101829052606001604051602081830303815290604052805190602001209250611384565b60408051602081018390529081018490526060016040516020818303038152906040528051906020012092505b508061138f81611560565b9150506112f8565b509392505050565b60008083601f8401126113b157600080fd5b50813567ffffffffffffffff8111156113c957600080fd5b6020830191508360208260051b85010111156113e457600080fd5b9250929050565b60008060006040848603121561140057600080fd5b83359250602084013567ffffffffffffffff81111561141e57600080fd5b61142a8682870161139f565b9497909650939450505050565b60006020828403121561144957600080fd5b8135801515811461127757600080fd5b6001600160a01b038116811461093b57600080fd5b60006020828403121561148057600080fd5b813561127781611459565b6000806020838503121561149e57600080fd5b823567ffffffffffffffff8111156114b557600080fd5b6114c18582860161139f565b90969095509350505050565b6000602082840312156114df57600080fd5b5035919050565b634e487b7160e01b600052601160045260246000fd5b6000821982111561150f5761150f6114e6565b500190565b600081600019048311821515161561152e5761152e6114e6565b500290565b600082821015611545576115456114e6565b500390565b634e487b7160e01b600052603260045260246000fd5b6000600019821415611574576115746114e6565b506001019056fea26469706673582212202a693272c747b2cf5b7a0f247fd743ddb0f19fac128a40217735ccc5b8dcf7eb64736f6c634300080a00330000000000000000000000005fdb2b0c56afa73b8ca2228e6ab92be90325961d
Deployed Bytecode
0x6080604052600436106101b75760003560e01c8063943bd3c6116100ec578063d5abeb011161008a578063e62f89eb11610064578063e62f89eb146104a4578063ec3ccec2146104c4578063f2fde38b146104da578063f35602ba146104fa57600080fd5b8063d5abeb011461044b578063d842cc9414610461578063e25ad7e61461048e57600080fd5b8063b7226813116100c6578063b7226813146103d7578063bdf08d71146103ea578063cb7a10491461040b578063d3541b4a1461042b57600080fd5b8063943bd3c6146103815780639c186a8a14610397578063a0c51578146103b757600080fd5b80633ccfd60b116101595780635f1bd882116101335780635f1bd8821461030c57806361e892cb14610321578063715018a61461034e5780638da5cb5b1461036357600080fd5b80633ccfd60b146102b557806349a2ca63146102ca5780635abf95f8146102df57600080fd5b80631df96c0b116101955780631df96c0b146102395780632bf5bba11461026a5780633494cf651461027f5780633add379b1461029557600080fd5b80630d08055b146101bc5780631209b1f6146101e557806313b9e70514610201575b600080fd5b3480156101c857600080fd5b506101d260055481565b6040519081526020015b60405180910390f35b3480156101f157600080fd5b506101d267011c37937e08000081565b34801561020d57600080fd5b50600154610221906001600160a01b031681565b6040516001600160a01b0390911681526020016101dc565b34801561024557600080fd5b5060015461025a90600160a01b900460ff1681565b60405190151581526020016101dc565b61027d6102783660046113eb565b61051a565b005b34801561028b57600080fd5b506101d260025481565b3480156102a157600080fd5b5061027d6102b0366004611437565b6107e8565b3480156102c157600080fd5b5061027d6108b5565b3480156102d657600080fd5b506101d2600381565b3480156102eb57600080fd5b506101d26102fa36600461146e565b60036020526000908152604090205481565b34801561031857600080fd5b5061027d61093e565b34801561032d57600080fd5b506101d261033c36600461146e565b60096020526000908152604090205481565b34801561035a57600080fd5b5061027d610a8a565b34801561036f57600080fd5b506000546001600160a01b0316610221565b34801561038d57600080fd5b506101d260075481565b3480156103a357600080fd5b5061027d6103b236600461146e565b610af0565b3480156103c357600080fd5b5061027d6103d23660046113eb565b610ba5565b61027d6103e536600461148b565b610dab565b3480156103f657600080fd5b5060015461025a90600160a81b900460ff1681565b34801561041757600080fd5b5061027d610426366004611437565b610f97565b34801561043757600080fd5b5061027d6104463660046114cd565b611059565b34801561045757600080fd5b506101d26109c581565b34801561046d57600080fd5b506101d261047c36600461146e565b60086020526000908152604090205481565b34801561049a57600080fd5b506101d260045481565b3480156104b057600080fd5b5061027d6104bf3660046114cd565b6110b8565b3480156104d057600080fd5b506101d260065481565b3480156104e657600080fd5b5061027d6104f536600461146e565b611117565b34801561050657600080fd5b5061027d6105153660046114cd565b6111f6565b600154600160a81b900460ff166105785760405162461bcd60e51b815260206004820152601460248201527f50484153452054574f204e4f542041435449564500000000000000000000000060448201526064015b60405180910390fd5b600083116105c85760405162461bcd60e51b815260206004820152601660248201527f4841564520544f20425559204154204c45415354203100000000000000000000604482015260640161056f565b6040516bffffffffffffffffffffffff193360601b166020820152600090603401604051602081830303815290604052805190602001209050610642838380806020026020016040519081016040528093929190818152602001838360200280828437600092019190915250506005549150849050611255565b61067e5760405162461bcd60e51b815260206004820152600d60248201526c24a72b20a624a210282927a7a360991b604482015260640161056f565b3360009081526003602081905260409091205461069b908661126b565b11156106e95760405162461bcd60e51b815260206004820152601260248201527f414c524541445920474f54205449434b45540000000000000000000000000000604482015260640161056f565b6002546109c5906106fa908661126b565b11156107485760405162461bcd60e51b815260206004820152601060248201527f4d4158205449434b45545320534f4c4400000000000000000000000000000000604482015260640161056f565b61075a67011c37937e0800008561127e565b34146107a85760405162461bcd60e51b815260206004820152601560248201527f494e434f525245435420414d4f554e5420504149440000000000000000000000604482015260640161056f565b336000908152600360205260409020546107c2908561126b565b336000908152600360205260409020556002546107df908561126b565b60025550505050565b6000546001600160a01b031633146108425760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015260640161056f565b60018054821515600160a01b027fffffffffffffffffffffff00ffffffffffffffffffffffffffffffffffffffff9091161790556040517ff8be2c4530333b6e087fc0ea69ca8962274854de8640a2f32127b292394e3e1a906108aa90831515815260200190565b60405180910390a150565b6000546001600160a01b0316331461090f5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015260640161056f565b60405133904780156108fc02916000818181858888f1935050505015801561093b573d6000803e3d6000fd5b50565b3360009081526003602090815260408083205460089092528220549091610965838361128a565b9050600081116109b75760405162461bcd60e51b815260206004820152601360248201527f4e4f204d494e5441424c45205449434b45545300000000000000000000000000604482015260640161056f565b336000908152600860205260409020546109d1908261126b565b3360008181526008602052604090819020929092556001549151635b91d9a760e11b81526004810184905260248101919091526001600160a01b039091169063b723b34e90604401600060405180830381600087803b158015610a3357600080fd5b505af1158015610a47573d6000803e3d6000fd5b505060408051338152602081018590527f49d90f785dada37f5c6ca8b23be7704573cb0ac640ef47e62777b8e6014eb21c935001905060405180910390a1505050565b6000546001600160a01b03163314610ae45760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015260640161056f565b610aee6000611296565b565b6000546001600160a01b03163314610b4a5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015260640161056f565b6001805473ffffffffffffffffffffffffffffffffffffffff19166001600160a01b0383169081179091556040519081527f300b488c3102bad859ddcf4bc5b78a89675db93eb0dbe97a85e28f29c5e1d07e906020016108aa565b60008311610bf55760405162461bcd60e51b815260206004820152601660248201527f4841564520544f20425559204154204c45415354203100000000000000000000604482015260640161056f565b6040516bffffffffffffffffffffffff193360601b16602082015260348101849052600090605401604051602081830303815290604052805190602001209050610c76838380806020026020016040519081016040528093929190818152602001838360200280828437600092019190915250506006549150849050611255565b610cb25760405162461bcd60e51b815260206004820152600d60248201526c24a72b20a624a210282927a7a360991b604482015260640161056f565b336000908152600960205260409020548015610d105760405162461bcd60e51b815260206004820152600f60248201527f414c524541445920434c41494d45440000000000000000000000000000000000604482015260640161056f565b33600090815260096020526040902054610d2a908661126b565b3360008181526009602052604090819020929092556001549151635b91d9a760e11b81526004810188905260248101919091526001600160a01b039091169063b723b34e90604401600060405180830381600087803b158015610d8c57600080fd5b505af1158015610da0573d6000803e3d6000fd5b505050505050505050565b600154600160a01b900460ff16610e045760405162461bcd60e51b815260206004820152601460248201527f5048415345204f4e45204e4f5420414354495645000000000000000000000000604482015260640161056f565b6040516bffffffffffffffffffffffff193360601b166020820152600090603401604051602081830303815290604052805190602001209050610e7e838380806020026020016040519081016040528093929190818152602001838360200280828437600092019190915250506004549150849050611255565b610eba5760405162461bcd60e51b815260206004820152600d60248201526c24a72b20a624a210282927a7a360991b604482015260640161056f565b3360009081526003602052604090205415610f175760405162461bcd60e51b815260206004820152601260248201527f414c524541445920474f54205449434b45540000000000000000000000000000604482015260640161056f565b67011c37937e0800003414610f6e5760405162461bcd60e51b815260206004820152601560248201527f494e434f525245435420414d4f554e5420504149440000000000000000000000604482015260640161056f565b336000908152600360205260409020600190819055600254610f8f9161126b565b600255505050565b6000546001600160a01b03163314610ff15760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015260640161056f565b60018054821515600160a81b027fffffffffffffffffffff00ffffffffffffffffffffffffffffffffffffffffff9091161790556040517f79c4a1ce0aceabd470904bedd6d555d9c4765480939050f3c2dd5e83f35ea327906108aa90831515815260200190565b6000546001600160a01b031633146110b35760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015260640161056f565b600655565b6000546001600160a01b031633146111125760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015260640161056f565b600455565b6000546001600160a01b031633146111715760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015260640161056f565b6001600160a01b0381166111ed5760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201527f6464726573730000000000000000000000000000000000000000000000000000606482015260840161056f565b61093b81611296565b6000546001600160a01b031633146112505760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015260640161056f565b600555565b60008261126285846112f3565b14949350505050565b600061127782846114fc565b9392505050565b60006112778284611514565b60006112778284611533565b600080546001600160a01b0383811673ffffffffffffffffffffffffffffffffffffffff19831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b600081815b84518110156113975760008582815181106113155761131561154a565b60200260200101519050808311611357576040805160208101859052908101829052606001604051602081830303815290604052805190602001209250611384565b60408051602081018390529081018490526060016040516020818303038152906040528051906020012092505b508061138f81611560565b9150506112f8565b509392505050565b60008083601f8401126113b157600080fd5b50813567ffffffffffffffff8111156113c957600080fd5b6020830191508360208260051b85010111156113e457600080fd5b9250929050565b60008060006040848603121561140057600080fd5b83359250602084013567ffffffffffffffff81111561141e57600080fd5b61142a8682870161139f565b9497909650939450505050565b60006020828403121561144957600080fd5b8135801515811461127757600080fd5b6001600160a01b038116811461093b57600080fd5b60006020828403121561148057600080fd5b813561127781611459565b6000806020838503121561149e57600080fd5b823567ffffffffffffffff8111156114b557600080fd5b6114c18582860161139f565b90969095509350505050565b6000602082840312156114df57600080fd5b5035919050565b634e487b7160e01b600052601160045260246000fd5b6000821982111561150f5761150f6114e6565b500190565b600081600019048311821515161561152e5761152e6114e6565b500290565b600082821015611545576115456114e6565b500390565b634e487b7160e01b600052603260045260246000fd5b6000600019821415611574576115746114e6565b506001019056fea26469706673582212202a693272c747b2cf5b7a0f247fd743ddb0f19fac128a40217735ccc5b8dcf7eb64736f6c634300080a0033
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
0000000000000000000000005fdb2b0c56afa73b8ca2228e6ab92be90325961d
-----Decoded View---------------
Arg [0] : _sloties (address): 0x5fdB2B0C56Afa73B8ca2228e6aB92Be90325961d
-----Encoded View---------------
1 Constructor Arguments found :
Arg [0] : 0000000000000000000000005fdb2b0c56afa73b8ca2228e6ab92be90325961d
Loading...
Loading
Loading...
Loading
Multichain Portfolio | 26 Chains
Chain | Token | Portfolio % | Price | Amount | Value |
---|---|---|---|---|---|
ETH | Ether (ETH) | 100.00% | $3,456.33 | 2 | $6,912.67 |
[ Download: CSV Export ]
[ Download: CSV Export ]
A contract address hosts a smart contract, which is a set of code stored on the blockchain that runs when predetermined conditions are met. Learn more about addresses in our Knowledge Base.