More Info
Private Name Tags
ContractCreator
Latest 25 from a total of 3,204 transactions
Transaction Hash |
Method
|
Block
|
From
|
To
|
|||||
---|---|---|---|---|---|---|---|---|---|
Claim Tokens | 16695302 | 642 days ago | IN | 0 ETH | 0.0008489 | ||||
Claim Tokens | 16695284 | 642 days ago | IN | 0 ETH | 0.00071503 | ||||
Claim Tokens | 16695257 | 642 days ago | IN | 0 ETH | 0.00080382 | ||||
Claim Tokens | 16573629 | 659 days ago | IN | 0 ETH | 0.00067861 | ||||
Claim Tokens | 16573589 | 659 days ago | IN | 0 ETH | 0.00061763 | ||||
Claim Tokens | 16277232 | 700 days ago | IN | 0 ETH | 0.00060855 | ||||
Claim Tokens | 16276911 | 700 days ago | IN | 0 ETH | 0.00039919 | ||||
Claim Tokens | 16230654 | 707 days ago | IN | 0 ETH | 0.00034915 | ||||
Claim Tokens | 16230650 | 707 days ago | IN | 0 ETH | 0.0003777 | ||||
Claim Tokens | 16168149 | 716 days ago | IN | 0 ETH | 0.00037626 | ||||
Claim Tokens | 16075561 | 729 days ago | IN | 0 ETH | 0.00032642 | ||||
Claim Tokens | 16070688 | 729 days ago | IN | 0 ETH | 0.00035436 | ||||
Claim Tokens | 16070680 | 729 days ago | IN | 0 ETH | 0.00033608 | ||||
Claim Tokens | 15300013 | 842 days ago | IN | 0 ETH | 0.00055952 | ||||
Claim Tokens | 15280660 | 845 days ago | IN | 0 ETH | 0.0003121 | ||||
Claim Tokens | 15280648 | 845 days ago | IN | 0 ETH | 0.00030594 | ||||
Claim Tokens | 15277632 | 845 days ago | IN | 0 ETH | 0.00032813 | ||||
Claim Tokens | 15215237 | 855 days ago | IN | 0 ETH | 0.00062101 | ||||
Claim Tokens | 15215226 | 855 days ago | IN | 0 ETH | 0.00072091 | ||||
Claim Tokens | 15215204 | 855 days ago | IN | 0 ETH | 0.00088943 | ||||
Claim Tokens | 15204508 | 857 days ago | IN | 0 ETH | 0.00018634 | ||||
Claim Tokens | 15204495 | 857 days ago | IN | 0 ETH | 0.00020133 | ||||
Claim Tokens | 15179115 | 861 days ago | IN | 0 ETH | 0.00050294 | ||||
Claim Tokens | 15178299 | 861 days ago | IN | 0 ETH | 0.00062627 | ||||
Claim Tokens | 15171898 | 862 days ago | IN | 0 ETH | 0.00046793 |
Latest 1 internal transaction
Advanced mode:
Parent Transaction Hash | Block | From | To | |||
---|---|---|---|---|---|---|
14701840 | 939 days ago | 0.19733124 ETH |
Loading...
Loading
Contract Name:
PaperClaim
Compiler Version
v0.8.7+commit.e28d00a7
Optimization Enabled:
Yes with 2000 runs
Other Settings:
default evmVersion
Contract Source Code (Solidity Standard Json-Input format)
// SPDX-License-Identifier: MIT pragma solidity ^0.8.7; import "@openzeppelin/contracts/utils/math/SafeMath.sol"; import "@openzeppelin/contracts/access/Ownable.sol"; import "@openzeppelin/contracts/utils/cryptography/ECDSA.sol"; import "@openzeppelin/contracts/utils/Counters.sol"; import "@openzeppelin/contracts/utils/Address.sol"; import "@openzeppelin/contracts/token/ERC20/IERC20.sol"; import "@openzeppelin/contracts/token/ERC721/IERC721.sol"; contract PaperClaim is Ownable { using SafeMath for uint; using Counters for Counters.Counter; event PaperClaimed(address indexed walletAddress, uint claimedAmount); // Total Claimed Counters.Counter private totalClaimed; // pause/unpaused state of the contract bool public isActive = false; // mapping to store all the claimed tokens mapping(uint => bool) public claimedTokens; // signer address for verification address public signerAddress; // paper token address address public paperTokenAddress; // Acrocalypse (ACROC) address IERC721 public nftTokenAddress; constructor(address _paperTokenAddress, address _nftTokenAddress) { signerAddress = msg.sender; if (address(_paperTokenAddress) != address(0)) { paperTokenAddress = _paperTokenAddress; } if (address(_nftTokenAddress) != address(0)) { nftTokenAddress = IERC721(_nftTokenAddress); } } fallback() external payable {} receive() external payable {} function totalClaimedTokens() external view returns (uint) { return totalClaimed.current(); } function verifySender(bytes memory signature, uint tokenId, uint tokensEarned) internal view returns (bool) { bytes32 hash = ECDSA.toEthSignedMessageHash(keccak256(abi.encodePacked(msg.sender, tokenId, tokensEarned ))); return ECDSA.recover(hash, signature) == signerAddress; } function claimTokens( bytes memory signature, uint tokensEarned, uint[] memory tokenIds ) external { require (isActive, "Contract is not active"); require (tokensEarned > 0, "Tokens earned should be > 0"); require (tokenIds.length > 0, "Token Ids not set"); // verifying the signature require(verifySender(signature, tokenIds[0], tokensEarned), "Invalid Access"); // token validation for (uint256 i = 0; i < tokenIds.length; i++) { // validating the claimed token ids require(!claimedTokens[tokenIds[i]], "One of the Token ID has already been claimed!"); // validating the token ownership require(nftTokenAddress.ownerOf(tokenIds[i]) == msg.sender, "Token owner mismatch"); } // Marking tokens as claimed for (uint256 i = 0; i < tokenIds.length; i++) { totalClaimed.increment(); claimedTokens[tokenIds[i]] = true; } emit PaperClaimed(msg.sender, tokensEarned); // Transfer the $PAPER Tokens bool success = IERC20(paperTokenAddress).transfer(msg.sender, tokensEarned); require(success, "claimTokens: Unable to transfer tokens"); } function checkTokensStatus(uint[] memory tokenIds) external view returns (bool[] memory result) { require (tokenIds.length > 0, "Token Ids not set"); bool[] memory unclaimedTokenIds = new bool[](tokenIds.length); for (uint256 i = 0; i < tokenIds.length; i++) { if (claimedTokens[tokenIds[i]]) { unclaimedTokenIds[i] = true; } } return unclaimedTokenIds; } function setActive(bool newIsActive) external onlyOwner { if( isActive != newIsActive ) isActive = newIsActive; } function updateTokensClaimedStatus(uint[] memory tokenIds, bool[] memory newClaimStatus) external onlyOwner { require (tokenIds.length > 0, "Token Ids not set"); require (newClaimStatus.length > 0, "Claim status not set"); require (tokenIds.length == newClaimStatus.length, "Data mismatch"); for (uint256 i = 0; i < tokenIds.length; i++) { if (claimedTokens[tokenIds[i]] != newClaimStatus[i]) { claimedTokens[tokenIds[i]] = newClaimStatus[i]; } } } function setSignerAddress(address newSignerAddress) external onlyOwner { require(address(newSignerAddress) != address(0), "Invalid token address"); signerAddress = newSignerAddress; } function setPaperTokenAddress(address newtokenAddress) external onlyOwner { require(address(newtokenAddress) != address(0), "Invalid token address"); paperTokenAddress = newtokenAddress; } function setNFTTokenAddress(address newtokenAddress) external onlyOwner { require(address(newtokenAddress) != address(0), "Invalid token address"); nftTokenAddress = IERC721(newtokenAddress); } function withdraw(uint256 percentWithdrawl) external onlyOwner { uint balance = address(this).balance; require(balance > 0, "No funds available"); require(percentWithdrawl > 0 && percentWithdrawl <= 100, "Withdrawl percent should be > 0 and <= 100"); Address.sendValue(payable(owner()), (balance.mul(percentWithdrawl).div(100))); } function withdrawPaperTokens(uint percentWithdrawl) external onlyOwner { require(percentWithdrawl > 0 && percentWithdrawl <= 100, "Withdrawl percent should be > 0 and <= 100"); uint balance = IERC20(paperTokenAddress).balanceOf(address(this)); require(balance > 0, "$PAPER balance is low"); // Transfer the $PAPER Tokens bool success = IERC20(paperTokenAddress).transfer(owner(), balance.mul(percentWithdrawl).div(100)); require(success, "withdrawPaperTokens: Unable to transfer tokens"); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (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.1 (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 (last updated v4.5.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 = vs & bytes32(0x7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff); uint8 v = uint8((uint256(vs) >> 255) + 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.1 (utils/Counters.sol) pragma solidity ^0.8.0; /** * @title Counters * @author Matt Condon (@shrugs) * @dev Provides counters that can only be incremented, decremented or reset. This can be used e.g. to track the number * of elements in a mapping, issuing ERC721 ids, or counting request ids. * * Include with `using Counters for Counters.Counter;` */ library Counters { struct Counter { // This variable should never be directly accessed by users of the library: interactions must be restricted to // the library's function. As of Solidity v0.5.2, this cannot be enforced, though there is a proposal to add // this feature: see https://github.com/ethereum/solidity/issues/4637 uint256 _value; // default: 0 } function current(Counter storage counter) internal view returns (uint256) { return counter._value; } function increment(Counter storage counter) internal { unchecked { counter._value += 1; } } function decrement(Counter storage counter) internal { uint256 value = counter._value; require(value > 0, "Counter: decrement overflow"); unchecked { counter._value = value - 1; } } function reset(Counter storage counter) internal { counter._value = 0; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.5.0) (utils/Address.sol) pragma solidity ^0.8.1; /** * @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 * ==== * * [IMPORTANT] * ==== * You shouldn't rely on `isContract` to protect against flash loan attacks! * * Preventing calls from contracts is highly discouraged. It breaks composability, breaks support for smart wallets * like Gnosis Safe, and does not provide security since it can be circumvented by calling from a contract * constructor. * ==== */ function isContract(address account) internal view returns (bool) { // This method relies on extcodesize/address.code.length, which returns 0 // for contracts in construction, since the code is only stored at the end // of the constructor execution. return account.code.length > 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); } /** * @dev Tool to verifies that a low level call was successful, and revert if it wasn't, either by bubbling the * revert reason using the provided one. * * _Available since v4.3._ */ function verifyCallResult( bool success, bytes memory returndata, string memory errorMessage ) internal 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); } } } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.5.0) (token/ERC20/IERC20.sol) 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 `to`. * * Returns a boolean value indicating whether the operation succeeded. * * Emits a {Transfer} event. */ function transfer(address to, uint256 amount) external returns (bool); /** * @dev Returns the remaining number of tokens that `spender` will be * allowed to spend on behalf of `owner` through {transferFrom}. This is * zero by default. * * This value changes when {approve} or {transferFrom} are called. */ function allowance(address owner, address spender) external view returns (uint256); /** * @dev Sets `amount` as the allowance of `spender` over the caller's tokens. * * Returns a boolean value indicating whether the operation succeeded. * * IMPORTANT: Beware that changing an allowance with this method brings the risk * that someone may use both the old and the new allowance by unfortunate * transaction ordering. One possible solution to mitigate this race * condition is to first reduce the spender's allowance to 0 and set the * desired value afterwards: * https://github.com/ethereum/EIPs/issues/20#issuecomment-263524729 * * Emits an {Approval} event. */ function approve(address spender, uint256 amount) external returns (bool); /** * @dev Moves `amount` tokens from `from` to `to` using the * allowance mechanism. `amount` is then deducted from the caller's * allowance. * * Returns a boolean value indicating whether the operation succeeded. * * Emits a {Transfer} event. */ function transferFrom( address from, address to, uint256 amount ) external returns (bool); /** * @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 // OpenZeppelin Contracts v4.4.1 (token/ERC721/IERC721.sol) pragma solidity ^0.8.0; import "../../utils/introspection/IERC165.sol"; /** * @dev Required interface of an ERC721 compliant contract. */ interface IERC721 is IERC165 { /** * @dev Emitted when `tokenId` token is transferred from `from` to `to`. */ event Transfer(address indexed from, address indexed to, uint256 indexed tokenId); /** * @dev Emitted when `owner` enables `approved` to manage the `tokenId` token. */ event Approval(address indexed owner, address indexed approved, uint256 indexed tokenId); /** * @dev Emitted when `owner` enables or disables (`approved`) `operator` to manage all of its assets. */ event ApprovalForAll(address indexed owner, address indexed operator, bool approved); /** * @dev Returns the number of tokens in ``owner``'s account. */ function balanceOf(address owner) external view returns (uint256 balance); /** * @dev Returns the owner of the `tokenId` token. * * Requirements: * * - `tokenId` must exist. */ function ownerOf(uint256 tokenId) external view returns (address owner); /** * @dev Safely transfers `tokenId` token from `from` to `to`, checking first that contract recipients * are aware of the ERC721 protocol to prevent tokens from being forever locked. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must exist and be owned by `from`. * - If the caller is not `from`, it must be have been allowed to move this token by either {approve} or {setApprovalForAll}. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function safeTransferFrom( address from, address to, uint256 tokenId ) external; /** * @dev Transfers `tokenId` token from `from` to `to`. * * WARNING: Usage of this method is discouraged, use {safeTransferFrom} whenever possible. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must be owned by `from`. * - If the caller is not `from`, it must be approved to move this token by either {approve} or {setApprovalForAll}. * * Emits a {Transfer} event. */ function transferFrom( address from, address to, uint256 tokenId ) external; /** * @dev Gives permission to `to` to transfer `tokenId` token to another account. * The approval is cleared when the token is transferred. * * Only a single account can be approved at a time, so approving the zero address clears previous approvals. * * Requirements: * * - The caller must own the token or be an approved operator. * - `tokenId` must exist. * * Emits an {Approval} event. */ function approve(address to, uint256 tokenId) external; /** * @dev Returns the account approved for `tokenId` token. * * Requirements: * * - `tokenId` must exist. */ function getApproved(uint256 tokenId) external view returns (address operator); /** * @dev Approve or remove `operator` as an operator for the caller. * Operators can call {transferFrom} or {safeTransferFrom} for any token owned by the caller. * * Requirements: * * - The `operator` cannot be the caller. * * Emits an {ApprovalForAll} event. */ function setApprovalForAll(address operator, bool _approved) external; /** * @dev Returns if the `operator` is allowed to manage all of the assets of `owner`. * * See {setApprovalForAll} */ function isApprovedForAll(address owner, address operator) external view returns (bool); /** * @dev Safely transfers `tokenId` token from `from` to `to`. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must exist and be owned by `from`. * - If the caller is not `from`, it must be approved to move this token by either {approve} or {setApprovalForAll}. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function safeTransferFrom( address from, address to, uint256 tokenId, bytes calldata data ) external; }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/Context.sol) pragma solidity ^0.8.0; /** * @dev Provides information about the current execution context, including the * sender of the transaction and its data. While these are generally available * via msg.sender and msg.data, they should not be accessed in such a direct * manner, since when dealing with meta-transactions the account sending and * paying for execution may not be the actual sender (as far as an application * is concerned). * * This contract is only required for intermediate, library-like contracts. */ abstract contract Context { function _msgSender() internal view virtual returns (address) { return msg.sender; } function _msgData() internal view virtual returns (bytes calldata) { return msg.data; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/Strings.sol) pragma solidity ^0.8.0; /** * @dev String operations. */ library Strings { bytes16 private constant _HEX_SYMBOLS = "0123456789abcdef"; /** * @dev Converts a `uint256` to its ASCII `string` decimal representation. */ function toString(uint256 value) internal pure returns (string memory) { // Inspired by OraclizeAPI's implementation - MIT licence // https://github.com/oraclize/ethereum-api/blob/b42146b063c7d6ee1358846c198246239e9360e8/oraclizeAPI_0.4.25.sol if (value == 0) { return "0"; } uint256 temp = value; uint256 digits; while (temp != 0) { digits++; temp /= 10; } bytes memory buffer = new bytes(digits); while (value != 0) { digits -= 1; buffer[digits] = bytes1(uint8(48 + uint256(value % 10))); value /= 10; } return string(buffer); } /** * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation. */ function toHexString(uint256 value) internal pure returns (string memory) { if (value == 0) { return "0x00"; } uint256 temp = value; uint256 length = 0; while (temp != 0) { length++; temp >>= 8; } return toHexString(value, length); } /** * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation with fixed length. */ function toHexString(uint256 value, uint256 length) internal pure returns (string memory) { bytes memory buffer = new bytes(2 * length + 2); buffer[0] = "0"; buffer[1] = "x"; for (uint256 i = 2 * length + 1; i > 1; --i) { buffer[i] = _HEX_SYMBOLS[value & 0xf]; value >>= 4; } require(value == 0, "Strings: hex length insufficient"); return string(buffer); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/introspection/IERC165.sol) pragma solidity ^0.8.0; /** * @dev Interface of the ERC165 standard, as defined in the * https://eips.ethereum.org/EIPS/eip-165[EIP]. * * Implementers can declare support of contract interfaces, which can then be * queried by others ({ERC165Checker}). * * For an implementation, see {ERC165}. */ interface IERC165 { /** * @dev Returns true if this contract implements the interface defined by * `interfaceId`. See the corresponding * https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified[EIP section] * to learn more about how these ids are created. * * This function call must use less than 30 000 gas. */ function supportsInterface(bytes4 interfaceId) external view returns (bool); }
{ "optimizer": { "enabled": true, "runs": 2000 }, "outputSelection": { "*": { "*": [ "evm.bytecode", "evm.deployedBytecode", "devdoc", "userdoc", "metadata", "abi" ] } }, "libraries": {} }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"inputs":[{"internalType":"address","name":"_paperTokenAddress","type":"address"},{"internalType":"address","name":"_nftTokenAddress","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"walletAddress","type":"address"},{"indexed":false,"internalType":"uint256","name":"claimedAmount","type":"uint256"}],"name":"PaperClaimed","type":"event"},{"stateMutability":"payable","type":"fallback"},{"inputs":[{"internalType":"uint256[]","name":"tokenIds","type":"uint256[]"}],"name":"checkTokensStatus","outputs":[{"internalType":"bool[]","name":"result","type":"bool[]"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes","name":"signature","type":"bytes"},{"internalType":"uint256","name":"tokensEarned","type":"uint256"},{"internalType":"uint256[]","name":"tokenIds","type":"uint256[]"}],"name":"claimTokens","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"claimedTokens","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"isActive","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"nftTokenAddress","outputs":[{"internalType":"contract IERC721","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"paperTokenAddress","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"newIsActive","type":"bool"}],"name":"setActive","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newtokenAddress","type":"address"}],"name":"setNFTTokenAddress","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newtokenAddress","type":"address"}],"name":"setPaperTokenAddress","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newSignerAddress","type":"address"}],"name":"setSignerAddress","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"signerAddress","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalClaimedTokens","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256[]","name":"tokenIds","type":"uint256[]"},{"internalType":"bool[]","name":"newClaimStatus","type":"bool[]"}],"name":"updateTokensClaimedStatus","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"percentWithdrawl","type":"uint256"}],"name":"withdraw","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"percentWithdrawl","type":"uint256"}],"name":"withdrawPaperTokens","outputs":[],"stateMutability":"nonpayable","type":"function"},{"stateMutability":"payable","type":"receive"}]
Contract Creation Code
60806040526002805460ff191690553480156200001b57600080fd5b50604051620020fb380380620020fb8339810160408190526200003e9162000128565b6200004933620000bb565b600480546001600160a01b031916331790556001600160a01b038216156200008757600580546001600160a01b0319166001600160a01b0384161790555b6001600160a01b03811615620000b357600680546001600160a01b0319166001600160a01b0383161790555b505062000160565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b80516001600160a01b03811681146200012357600080fd5b919050565b600080604083850312156200013c57600080fd5b62000147836200010b565b915062000157602084016200010b565b90509250929050565b611f8b80620001706000396000f3fe60806040526004361061011b5760003560e01c806362dc54591161009c578063acec338a1161006e578063e5a342a311610056578063e5a342a31461032b578063f2fde38b1461035b578063fcb56f471461037b57005b8063acec338a146102eb578063c22c294c1461030b57005b806362dc545914610278578063715018a6146102985780638da5cb5b146102ad5780639b103e67146102cb57005b80632e1a7d4d116100ed578063480a7472116100d5578063480a747214610218578063574453e6146102385780635b7633d01461025857005b80632e1a7d4d146101cb5780632e866124146101eb57005b8063046dc16614610124578063059cd0cd1461014457806322f3e2d4146101815780632561f858146101ab57005b3661012257005b005b34801561013057600080fd5b5061012261013f366004611b5c565b61039e565b34801561015057600080fd5b50600654610164906001600160a01b031681565b6040516001600160a01b0390911681526020015b60405180910390f35b34801561018d57600080fd5b5060025461019b9060ff1681565b6040519015158152602001610178565b3480156101b757600080fd5b506101226101c6366004611cd8565b610482565b3480156101d757600080fd5b506101226101e6366004611d99565b610962565b3480156101f757600080fd5b5061020b610206366004611b96565b610ac0565b6040516101789190611dcb565b34801561022457600080fd5b50610122610233366004611b5c565b610bde565b34801561024457600080fd5b50610122610253366004611bd3565b610cbd565b34801561026457600080fd5b50600454610164906001600160a01b031681565b34801561028457600080fd5b50610122610293366004611d99565b610ee2565b3480156102a457600080fd5b506101226111e6565b3480156102b957600080fd5b506000546001600160a01b0316610164565b3480156102d757600080fd5b50600554610164906001600160a01b031681565b3480156102f757600080fd5b50610122610306366004611c9e565b61124c565b34801561031757600080fd5b50610122610326366004611b5c565b6112e6565b34801561033757600080fd5b5061019b610346366004611d99565b60036020526000908152604090205460ff1681565b34801561036757600080fd5b50610122610376366004611b5c565b6113c5565b34801561038757600080fd5b506103906114a4565b604051908152602001610178565b6000546001600160a01b031633146103fd5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064015b60405180910390fd5b6001600160a01b0381166104535760405162461bcd60e51b815260206004820152601560248201527f496e76616c696420746f6b656e2061646472657373000000000000000000000060448201526064016103f4565b6004805473ffffffffffffffffffffffffffffffffffffffff19166001600160a01b0392909216919091179055565b60025460ff166104d45760405162461bcd60e51b815260206004820152601660248201527f436f6e7472616374206973206e6f74206163746976650000000000000000000060448201526064016103f4565b600082116105245760405162461bcd60e51b815260206004820152601b60248201527f546f6b656e73206561726e65642073686f756c64206265203e2030000000000060448201526064016103f4565b60008151116105755760405162461bcd60e51b815260206004820152601160248201527f546f6b656e20496473206e6f742073657400000000000000000000000000000060448201526064016103f4565b61059a838260008151811061058c5761058c611f06565b6020026020010151846114b4565b6105e65760405162461bcd60e51b815260206004820152600e60248201527f496e76616c69642041636365737300000000000000000000000000000000000060448201526064016103f4565b60005b81518110156107a0576003600083838151811061060857610608611f06565b60209081029190910181015182528101919091526040016000205460ff16156106995760405162461bcd60e51b815260206004820152602d60248201527f4f6e65206f662074686520546f6b656e2049442068617320616c72656164792060448201527f6265656e20636c61696d6564210000000000000000000000000000000000000060648201526084016103f4565b600654825133916001600160a01b031690636352211e908590859081106106c2576106c2611f06565b60200260200101516040518263ffffffff1660e01b81526004016106e891815260200190565b60206040518083038186803b15801561070057600080fd5b505afa158015610714573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906107389190611b79565b6001600160a01b03161461078e5760405162461bcd60e51b815260206004820152601460248201527f546f6b656e206f776e6572206d69736d6174636800000000000000000000000060448201526064016103f4565b8061079881611ebf565b9150506105e9565b5060005b8151811015610813576107bb600180546001019055565b6001600360008484815181106107d3576107d3611f06565b6020026020010151815260200190815260200160002060006101000a81548160ff021916908315150217905550808061080b90611ebf565b9150506107a4565b5060405182815233907fbdd1dcd1151b8c39111bce5dc6264a99601b1bb56ec40e0182d9b343ca990f039060200160405180910390a26005546040517fa9059cbb000000000000000000000000000000000000000000000000000000008152336004820152602481018490526000916001600160a01b03169063a9059cbb90604401602060405180830381600087803b1580156108af57600080fd5b505af11580156108c3573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906108e79190611cbb565b90508061095c5760405162461bcd60e51b815260206004820152602660248201527f636c61696d546f6b656e733a20556e61626c6520746f207472616e736665722060448201527f746f6b656e73000000000000000000000000000000000000000000000000000060648201526084016103f4565b50505050565b6000546001600160a01b031633146109bc5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064016103f4565b4780610a0a5760405162461bcd60e51b815260206004820152601260248201527f4e6f2066756e647320617661696c61626c65000000000000000000000000000060448201526064016103f4565b600082118015610a1b575060648211155b610a8d5760405162461bcd60e51b815260206004820152602a60248201527f57697468647261776c2070657263656e742073686f756c64206265203e20302060448201527f616e64203c3d203130300000000000000000000000000000000000000000000060648201526084016103f4565b610abc610aa26000546001600160a01b031690565b610ab76064610ab18587611591565b906115a4565b6115b0565b5050565b60606000825111610b135760405162461bcd60e51b815260206004820152601160248201527f546f6b656e20496473206e6f742073657400000000000000000000000000000060448201526064016103f4565b6000825167ffffffffffffffff811115610b2f57610b2f611f1c565b604051908082528060200260200182016040528015610b58578160200160208202803683370190505b50905060005b8351811015610bd75760036000858381518110610b7d57610b7d611f06565b60209081029190910181015182528101919091526040016000205460ff1615610bc5576001828281518110610bb457610bb4611f06565b911515602092830291909101909101525b80610bcf81611ebf565b915050610b5e565b5092915050565b6000546001600160a01b03163314610c385760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064016103f4565b6001600160a01b038116610c8e5760405162461bcd60e51b815260206004820152601560248201527f496e76616c696420746f6b656e2061646472657373000000000000000000000060448201526064016103f4565b6006805473ffffffffffffffffffffffffffffffffffffffff19166001600160a01b0392909216919091179055565b6000546001600160a01b03163314610d175760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064016103f4565b6000825111610d685760405162461bcd60e51b815260206004820152601160248201527f546f6b656e20496473206e6f742073657400000000000000000000000000000060448201526064016103f4565b6000815111610db95760405162461bcd60e51b815260206004820152601460248201527f436c61696d20737461747573206e6f742073657400000000000000000000000060448201526064016103f4565b8051825114610e0a5760405162461bcd60e51b815260206004820152600d60248201527f44617461206d69736d617463680000000000000000000000000000000000000060448201526064016103f4565b60005b8251811015610edd57818181518110610e2857610e28611f06565b6020026020010151151560036000858481518110610e4857610e48611f06565b60209081029190910181015182528101919091526040016000205460ff16151514610ecb57818181518110610e7f57610e7f611f06565b602002602001015160036000858481518110610e9d57610e9d611f06565b6020026020010151815260200190815260200160002060006101000a81548160ff0219169083151502179055505b80610ed581611ebf565b915050610e0d565b505050565b6000546001600160a01b03163314610f3c5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064016103f4565b600081118015610f4d575060648111155b610fbf5760405162461bcd60e51b815260206004820152602a60248201527f57697468647261776c2070657263656e742073686f756c64206265203e20302060448201527f616e64203c3d203130300000000000000000000000000000000000000000000060648201526084016103f4565b6005546040517f70a082310000000000000000000000000000000000000000000000000000000081523060048201526000916001600160a01b0316906370a082319060240160206040518083038186803b15801561101c57600080fd5b505afa158015611030573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906110549190611db2565b9050600081116110a65760405162461bcd60e51b815260206004820152601560248201527f2450415045522062616c616e6365206973206c6f77000000000000000000000060448201526064016103f4565b6005546000906001600160a01b031663a9059cbb6110cc6000546001600160a01b031690565b6110db6064610ab18789611591565b6040517fffffffff0000000000000000000000000000000000000000000000000000000060e085901b1681526001600160a01b0390921660048301526024820152604401602060405180830381600087803b15801561113957600080fd5b505af115801561114d573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906111719190611cbb565b905080610edd5760405162461bcd60e51b815260206004820152602e60248201527f77697468647261775061706572546f6b656e733a20556e61626c6520746f207460448201527f72616e7366657220746f6b656e7300000000000000000000000000000000000060648201526084016103f4565b6000546001600160a01b031633146112405760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064016103f4565b61124a60006116c9565b565b6000546001600160a01b031633146112a65760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064016103f4565b60025460ff161515811515146112e357600280547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff00168215151790555b50565b6000546001600160a01b031633146113405760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064016103f4565b6001600160a01b0381166113965760405162461bcd60e51b815260206004820152601560248201527f496e76616c696420746f6b656e2061646472657373000000000000000000000060448201526064016103f4565b6005805473ffffffffffffffffffffffffffffffffffffffff19166001600160a01b0392909216919091179055565b6000546001600160a01b0316331461141f5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064016103f4565b6001600160a01b03811661149b5760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201527f646472657373000000000000000000000000000000000000000000000000000060648201526084016103f4565b6112e3816116c9565b60006114af60015490565b905090565b6040517fffffffffffffffffffffffffffffffffffffffff0000000000000000000000003360601b1660208201526034810183905260548101829052600090819061156590607401604051602081830303815290604052805190602001206040517f19457468657265756d205369676e6564204d6573736167653a0a3332000000006020820152603c8101829052600090605c01604051602081830303815290604052805190602001209050919050565b6004549091506001600160a01b031661157e8287611726565b6001600160a01b03161495945050505050565b600061159d8284611ea0565b9392505050565b600061159d8284611e7e565b804710156116005760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a20696e73756666696369656e742062616c616e636500000060448201526064016103f4565b6000826001600160a01b03168260405160006040518083038185875af1925050503d806000811461164d576040519150601f19603f3d011682016040523d82523d6000602084013e611652565b606091505b5050905080610edd5760405162461bcd60e51b815260206004820152603a60248201527f416464726573733a20756e61626c6520746f2073656e642076616c75652c207260448201527f6563697069656e74206d6179206861766520726576657274656400000000000060648201526084016103f4565b600080546001600160a01b0383811673ffffffffffffffffffffffffffffffffffffffff19831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b6000806000611735858561174a565b91509150611742816117ba565b509392505050565b6000808251604114156117815760208301516040840151606085015160001a611775878285856119ab565b945094505050506117b3565b8251604014156117ab57602083015160408401516117a0868383611a98565b9350935050506117b3565b506000905060025b9250929050565b60008160048111156117ce576117ce611ef0565b14156117d75750565b60018160048111156117eb576117eb611ef0565b14156118395760405162461bcd60e51b815260206004820152601860248201527f45434453413a20696e76616c6964207369676e6174757265000000000000000060448201526064016103f4565b600281600481111561184d5761184d611ef0565b141561189b5760405162461bcd60e51b815260206004820152601f60248201527f45434453413a20696e76616c6964207369676e6174757265206c656e6774680060448201526064016103f4565b60038160048111156118af576118af611ef0565b14156119235760405162461bcd60e51b815260206004820152602260248201527f45434453413a20696e76616c6964207369676e6174757265202773272076616c60448201527f756500000000000000000000000000000000000000000000000000000000000060648201526084016103f4565b600481600481111561193757611937611ef0565b14156112e35760405162461bcd60e51b815260206004820152602260248201527f45434453413a20696e76616c6964207369676e6174757265202776272076616c60448201527f756500000000000000000000000000000000000000000000000000000000000060648201526084016103f4565b6000807f7fffffffffffffffffffffffffffffff5d576e7357a4501ddfe92f46681b20a08311156119e25750600090506003611a8f565b8460ff16601b141580156119fa57508460ff16601c14155b15611a0b5750600090506004611a8f565b6040805160008082526020820180845289905260ff881692820192909252606081018690526080810185905260019060a0016020604051602081039080840390855afa158015611a5f573d6000803e3d6000fd5b5050604051601f1901519150506001600160a01b038116611a8857600060019250925050611a8f565b9150600090505b94509492505050565b6000807f7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff831681611ace60ff86901c601b611e66565b9050611adc878288856119ab565b935093505050935093915050565b600082601f830112611afb57600080fd5b81356020611b10611b0b83611e42565b611e11565b80838252828201915082860187848660051b8901011115611b3057600080fd5b60005b85811015611b4f57813584529284019290840190600101611b33565b5090979650505050505050565b600060208284031215611b6e57600080fd5b813561159d81611f32565b600060208284031215611b8b57600080fd5b815161159d81611f32565b600060208284031215611ba857600080fd5b813567ffffffffffffffff811115611bbf57600080fd5b611bcb84828501611aea565b949350505050565b60008060408385031215611be657600080fd5b823567ffffffffffffffff80821115611bfe57600080fd5b611c0a86838701611aea565b9350602091508185013581811115611c2157600080fd5b85019050601f81018613611c3457600080fd5b8035611c42611b0b82611e42565b80828252848201915084840189868560051b8701011115611c6257600080fd5b600094505b83851015611c8e578035611c7a81611f47565b835260019490940193918501918501611c67565b5080955050505050509250929050565b600060208284031215611cb057600080fd5b813561159d81611f47565b600060208284031215611ccd57600080fd5b815161159d81611f47565b600080600060608486031215611ced57600080fd5b833567ffffffffffffffff80821115611d0557600080fd5b818601915086601f830112611d1957600080fd5b8135602082821115611d2d57611d2d611f1c565b611d3f81601f19601f85011601611e11565b8281528982848701011115611d5357600080fd5b8282860183830137600092810182019290925290955086013593506040860135915080821115611d8257600080fd5b50611d8f86828701611aea565b9150509250925092565b600060208284031215611dab57600080fd5b5035919050565b600060208284031215611dc457600080fd5b5051919050565b6020808252825182820181905260009190848201906040850190845b81811015611e05578351151583529284019291840191600101611de7565b50909695505050505050565b604051601f8201601f1916810167ffffffffffffffff81118282101715611e3a57611e3a611f1c565b604052919050565b600067ffffffffffffffff821115611e5c57611e5c611f1c565b5060051b60200190565b60008219821115611e7957611e79611eda565b500190565b600082611e9b57634e487b7160e01b600052601260045260246000fd5b500490565b6000816000190483118215151615611eba57611eba611eda565b500290565b6000600019821415611ed357611ed3611eda565b5060010190565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052602160045260246000fd5b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052604160045260246000fd5b6001600160a01b03811681146112e357600080fd5b80151581146112e357600080fdfea26469706673582212209b452e8bdb49c27792b27b1fa85368d54233e4ba8f821d38e25dc6337ef1144964736f6c6343000807003300000000000000000000000021018cbc9ad730542130be180b577b74db2a9397000000000000000000000000d73acd7f5099fdd910215dbff029185f21ffbcf0
Deployed Bytecode
0x60806040526004361061011b5760003560e01c806362dc54591161009c578063acec338a1161006e578063e5a342a311610056578063e5a342a31461032b578063f2fde38b1461035b578063fcb56f471461037b57005b8063acec338a146102eb578063c22c294c1461030b57005b806362dc545914610278578063715018a6146102985780638da5cb5b146102ad5780639b103e67146102cb57005b80632e1a7d4d116100ed578063480a7472116100d5578063480a747214610218578063574453e6146102385780635b7633d01461025857005b80632e1a7d4d146101cb5780632e866124146101eb57005b8063046dc16614610124578063059cd0cd1461014457806322f3e2d4146101815780632561f858146101ab57005b3661012257005b005b34801561013057600080fd5b5061012261013f366004611b5c565b61039e565b34801561015057600080fd5b50600654610164906001600160a01b031681565b6040516001600160a01b0390911681526020015b60405180910390f35b34801561018d57600080fd5b5060025461019b9060ff1681565b6040519015158152602001610178565b3480156101b757600080fd5b506101226101c6366004611cd8565b610482565b3480156101d757600080fd5b506101226101e6366004611d99565b610962565b3480156101f757600080fd5b5061020b610206366004611b96565b610ac0565b6040516101789190611dcb565b34801561022457600080fd5b50610122610233366004611b5c565b610bde565b34801561024457600080fd5b50610122610253366004611bd3565b610cbd565b34801561026457600080fd5b50600454610164906001600160a01b031681565b34801561028457600080fd5b50610122610293366004611d99565b610ee2565b3480156102a457600080fd5b506101226111e6565b3480156102b957600080fd5b506000546001600160a01b0316610164565b3480156102d757600080fd5b50600554610164906001600160a01b031681565b3480156102f757600080fd5b50610122610306366004611c9e565b61124c565b34801561031757600080fd5b50610122610326366004611b5c565b6112e6565b34801561033757600080fd5b5061019b610346366004611d99565b60036020526000908152604090205460ff1681565b34801561036757600080fd5b50610122610376366004611b5c565b6113c5565b34801561038757600080fd5b506103906114a4565b604051908152602001610178565b6000546001600160a01b031633146103fd5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064015b60405180910390fd5b6001600160a01b0381166104535760405162461bcd60e51b815260206004820152601560248201527f496e76616c696420746f6b656e2061646472657373000000000000000000000060448201526064016103f4565b6004805473ffffffffffffffffffffffffffffffffffffffff19166001600160a01b0392909216919091179055565b60025460ff166104d45760405162461bcd60e51b815260206004820152601660248201527f436f6e7472616374206973206e6f74206163746976650000000000000000000060448201526064016103f4565b600082116105245760405162461bcd60e51b815260206004820152601b60248201527f546f6b656e73206561726e65642073686f756c64206265203e2030000000000060448201526064016103f4565b60008151116105755760405162461bcd60e51b815260206004820152601160248201527f546f6b656e20496473206e6f742073657400000000000000000000000000000060448201526064016103f4565b61059a838260008151811061058c5761058c611f06565b6020026020010151846114b4565b6105e65760405162461bcd60e51b815260206004820152600e60248201527f496e76616c69642041636365737300000000000000000000000000000000000060448201526064016103f4565b60005b81518110156107a0576003600083838151811061060857610608611f06565b60209081029190910181015182528101919091526040016000205460ff16156106995760405162461bcd60e51b815260206004820152602d60248201527f4f6e65206f662074686520546f6b656e2049442068617320616c72656164792060448201527f6265656e20636c61696d6564210000000000000000000000000000000000000060648201526084016103f4565b600654825133916001600160a01b031690636352211e908590859081106106c2576106c2611f06565b60200260200101516040518263ffffffff1660e01b81526004016106e891815260200190565b60206040518083038186803b15801561070057600080fd5b505afa158015610714573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906107389190611b79565b6001600160a01b03161461078e5760405162461bcd60e51b815260206004820152601460248201527f546f6b656e206f776e6572206d69736d6174636800000000000000000000000060448201526064016103f4565b8061079881611ebf565b9150506105e9565b5060005b8151811015610813576107bb600180546001019055565b6001600360008484815181106107d3576107d3611f06565b6020026020010151815260200190815260200160002060006101000a81548160ff021916908315150217905550808061080b90611ebf565b9150506107a4565b5060405182815233907fbdd1dcd1151b8c39111bce5dc6264a99601b1bb56ec40e0182d9b343ca990f039060200160405180910390a26005546040517fa9059cbb000000000000000000000000000000000000000000000000000000008152336004820152602481018490526000916001600160a01b03169063a9059cbb90604401602060405180830381600087803b1580156108af57600080fd5b505af11580156108c3573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906108e79190611cbb565b90508061095c5760405162461bcd60e51b815260206004820152602660248201527f636c61696d546f6b656e733a20556e61626c6520746f207472616e736665722060448201527f746f6b656e73000000000000000000000000000000000000000000000000000060648201526084016103f4565b50505050565b6000546001600160a01b031633146109bc5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064016103f4565b4780610a0a5760405162461bcd60e51b815260206004820152601260248201527f4e6f2066756e647320617661696c61626c65000000000000000000000000000060448201526064016103f4565b600082118015610a1b575060648211155b610a8d5760405162461bcd60e51b815260206004820152602a60248201527f57697468647261776c2070657263656e742073686f756c64206265203e20302060448201527f616e64203c3d203130300000000000000000000000000000000000000000000060648201526084016103f4565b610abc610aa26000546001600160a01b031690565b610ab76064610ab18587611591565b906115a4565b6115b0565b5050565b60606000825111610b135760405162461bcd60e51b815260206004820152601160248201527f546f6b656e20496473206e6f742073657400000000000000000000000000000060448201526064016103f4565b6000825167ffffffffffffffff811115610b2f57610b2f611f1c565b604051908082528060200260200182016040528015610b58578160200160208202803683370190505b50905060005b8351811015610bd75760036000858381518110610b7d57610b7d611f06565b60209081029190910181015182528101919091526040016000205460ff1615610bc5576001828281518110610bb457610bb4611f06565b911515602092830291909101909101525b80610bcf81611ebf565b915050610b5e565b5092915050565b6000546001600160a01b03163314610c385760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064016103f4565b6001600160a01b038116610c8e5760405162461bcd60e51b815260206004820152601560248201527f496e76616c696420746f6b656e2061646472657373000000000000000000000060448201526064016103f4565b6006805473ffffffffffffffffffffffffffffffffffffffff19166001600160a01b0392909216919091179055565b6000546001600160a01b03163314610d175760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064016103f4565b6000825111610d685760405162461bcd60e51b815260206004820152601160248201527f546f6b656e20496473206e6f742073657400000000000000000000000000000060448201526064016103f4565b6000815111610db95760405162461bcd60e51b815260206004820152601460248201527f436c61696d20737461747573206e6f742073657400000000000000000000000060448201526064016103f4565b8051825114610e0a5760405162461bcd60e51b815260206004820152600d60248201527f44617461206d69736d617463680000000000000000000000000000000000000060448201526064016103f4565b60005b8251811015610edd57818181518110610e2857610e28611f06565b6020026020010151151560036000858481518110610e4857610e48611f06565b60209081029190910181015182528101919091526040016000205460ff16151514610ecb57818181518110610e7f57610e7f611f06565b602002602001015160036000858481518110610e9d57610e9d611f06565b6020026020010151815260200190815260200160002060006101000a81548160ff0219169083151502179055505b80610ed581611ebf565b915050610e0d565b505050565b6000546001600160a01b03163314610f3c5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064016103f4565b600081118015610f4d575060648111155b610fbf5760405162461bcd60e51b815260206004820152602a60248201527f57697468647261776c2070657263656e742073686f756c64206265203e20302060448201527f616e64203c3d203130300000000000000000000000000000000000000000000060648201526084016103f4565b6005546040517f70a082310000000000000000000000000000000000000000000000000000000081523060048201526000916001600160a01b0316906370a082319060240160206040518083038186803b15801561101c57600080fd5b505afa158015611030573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906110549190611db2565b9050600081116110a65760405162461bcd60e51b815260206004820152601560248201527f2450415045522062616c616e6365206973206c6f77000000000000000000000060448201526064016103f4565b6005546000906001600160a01b031663a9059cbb6110cc6000546001600160a01b031690565b6110db6064610ab18789611591565b6040517fffffffff0000000000000000000000000000000000000000000000000000000060e085901b1681526001600160a01b0390921660048301526024820152604401602060405180830381600087803b15801561113957600080fd5b505af115801561114d573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906111719190611cbb565b905080610edd5760405162461bcd60e51b815260206004820152602e60248201527f77697468647261775061706572546f6b656e733a20556e61626c6520746f207460448201527f72616e7366657220746f6b656e7300000000000000000000000000000000000060648201526084016103f4565b6000546001600160a01b031633146112405760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064016103f4565b61124a60006116c9565b565b6000546001600160a01b031633146112a65760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064016103f4565b60025460ff161515811515146112e357600280547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff00168215151790555b50565b6000546001600160a01b031633146113405760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064016103f4565b6001600160a01b0381166113965760405162461bcd60e51b815260206004820152601560248201527f496e76616c696420746f6b656e2061646472657373000000000000000000000060448201526064016103f4565b6005805473ffffffffffffffffffffffffffffffffffffffff19166001600160a01b0392909216919091179055565b6000546001600160a01b0316331461141f5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064016103f4565b6001600160a01b03811661149b5760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201527f646472657373000000000000000000000000000000000000000000000000000060648201526084016103f4565b6112e3816116c9565b60006114af60015490565b905090565b6040517fffffffffffffffffffffffffffffffffffffffff0000000000000000000000003360601b1660208201526034810183905260548101829052600090819061156590607401604051602081830303815290604052805190602001206040517f19457468657265756d205369676e6564204d6573736167653a0a3332000000006020820152603c8101829052600090605c01604051602081830303815290604052805190602001209050919050565b6004549091506001600160a01b031661157e8287611726565b6001600160a01b03161495945050505050565b600061159d8284611ea0565b9392505050565b600061159d8284611e7e565b804710156116005760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a20696e73756666696369656e742062616c616e636500000060448201526064016103f4565b6000826001600160a01b03168260405160006040518083038185875af1925050503d806000811461164d576040519150601f19603f3d011682016040523d82523d6000602084013e611652565b606091505b5050905080610edd5760405162461bcd60e51b815260206004820152603a60248201527f416464726573733a20756e61626c6520746f2073656e642076616c75652c207260448201527f6563697069656e74206d6179206861766520726576657274656400000000000060648201526084016103f4565b600080546001600160a01b0383811673ffffffffffffffffffffffffffffffffffffffff19831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b6000806000611735858561174a565b91509150611742816117ba565b509392505050565b6000808251604114156117815760208301516040840151606085015160001a611775878285856119ab565b945094505050506117b3565b8251604014156117ab57602083015160408401516117a0868383611a98565b9350935050506117b3565b506000905060025b9250929050565b60008160048111156117ce576117ce611ef0565b14156117d75750565b60018160048111156117eb576117eb611ef0565b14156118395760405162461bcd60e51b815260206004820152601860248201527f45434453413a20696e76616c6964207369676e6174757265000000000000000060448201526064016103f4565b600281600481111561184d5761184d611ef0565b141561189b5760405162461bcd60e51b815260206004820152601f60248201527f45434453413a20696e76616c6964207369676e6174757265206c656e6774680060448201526064016103f4565b60038160048111156118af576118af611ef0565b14156119235760405162461bcd60e51b815260206004820152602260248201527f45434453413a20696e76616c6964207369676e6174757265202773272076616c60448201527f756500000000000000000000000000000000000000000000000000000000000060648201526084016103f4565b600481600481111561193757611937611ef0565b14156112e35760405162461bcd60e51b815260206004820152602260248201527f45434453413a20696e76616c6964207369676e6174757265202776272076616c60448201527f756500000000000000000000000000000000000000000000000000000000000060648201526084016103f4565b6000807f7fffffffffffffffffffffffffffffff5d576e7357a4501ddfe92f46681b20a08311156119e25750600090506003611a8f565b8460ff16601b141580156119fa57508460ff16601c14155b15611a0b5750600090506004611a8f565b6040805160008082526020820180845289905260ff881692820192909252606081018690526080810185905260019060a0016020604051602081039080840390855afa158015611a5f573d6000803e3d6000fd5b5050604051601f1901519150506001600160a01b038116611a8857600060019250925050611a8f565b9150600090505b94509492505050565b6000807f7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff831681611ace60ff86901c601b611e66565b9050611adc878288856119ab565b935093505050935093915050565b600082601f830112611afb57600080fd5b81356020611b10611b0b83611e42565b611e11565b80838252828201915082860187848660051b8901011115611b3057600080fd5b60005b85811015611b4f57813584529284019290840190600101611b33565b5090979650505050505050565b600060208284031215611b6e57600080fd5b813561159d81611f32565b600060208284031215611b8b57600080fd5b815161159d81611f32565b600060208284031215611ba857600080fd5b813567ffffffffffffffff811115611bbf57600080fd5b611bcb84828501611aea565b949350505050565b60008060408385031215611be657600080fd5b823567ffffffffffffffff80821115611bfe57600080fd5b611c0a86838701611aea565b9350602091508185013581811115611c2157600080fd5b85019050601f81018613611c3457600080fd5b8035611c42611b0b82611e42565b80828252848201915084840189868560051b8701011115611c6257600080fd5b600094505b83851015611c8e578035611c7a81611f47565b835260019490940193918501918501611c67565b5080955050505050509250929050565b600060208284031215611cb057600080fd5b813561159d81611f47565b600060208284031215611ccd57600080fd5b815161159d81611f47565b600080600060608486031215611ced57600080fd5b833567ffffffffffffffff80821115611d0557600080fd5b818601915086601f830112611d1957600080fd5b8135602082821115611d2d57611d2d611f1c565b611d3f81601f19601f85011601611e11565b8281528982848701011115611d5357600080fd5b8282860183830137600092810182019290925290955086013593506040860135915080821115611d8257600080fd5b50611d8f86828701611aea565b9150509250925092565b600060208284031215611dab57600080fd5b5035919050565b600060208284031215611dc457600080fd5b5051919050565b6020808252825182820181905260009190848201906040850190845b81811015611e05578351151583529284019291840191600101611de7565b50909695505050505050565b604051601f8201601f1916810167ffffffffffffffff81118282101715611e3a57611e3a611f1c565b604052919050565b600067ffffffffffffffff821115611e5c57611e5c611f1c565b5060051b60200190565b60008219821115611e7957611e79611eda565b500190565b600082611e9b57634e487b7160e01b600052601260045260246000fd5b500490565b6000816000190483118215151615611eba57611eba611eda565b500290565b6000600019821415611ed357611ed3611eda565b5060010190565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052602160045260246000fd5b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052604160045260246000fd5b6001600160a01b03811681146112e357600080fd5b80151581146112e357600080fdfea26469706673582212209b452e8bdb49c27792b27b1fa85368d54233e4ba8f821d38e25dc6337ef1144964736f6c63430008070033
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
00000000000000000000000021018cbc9ad730542130be180b577b74db2a9397000000000000000000000000d73acd7f5099fdd910215dbff029185f21ffbcf0
-----Decoded View---------------
Arg [0] : _paperTokenAddress (address): 0x21018CBC9ad730542130bE180b577b74DB2a9397
Arg [1] : _nftTokenAddress (address): 0xD73ACd7F5099fdd910215Dbff029185F21ffBCf0
-----Encoded View---------------
2 Constructor Arguments found :
Arg [0] : 00000000000000000000000021018cbc9ad730542130be180b577b74db2a9397
Arg [1] : 000000000000000000000000d73acd7f5099fdd910215dbff029185f21ffbcf0
Loading...
Loading
Loading...
Loading
Multichain Portfolio | 30 Chains
Chain | Token | Portfolio % | Price | Amount | Value |
---|---|---|---|---|---|
ETH | Ether (ETH) | 100.00% | $3,489.63 | 0.0104 | $36.42 |
Loading...
Loading
[ Download: CSV Export ]
[ Download: CSV Export ]
A contract address hosts a smart contract, which is a set of code stored on the blockchain that runs when predetermined conditions are met. Learn more about addresses in our Knowledge Base.