Overview
ETH Balance
0 ETH
Eth Value
$0.00More Info
Private Name Tags
ContractCreator
TokenTracker
Latest 25 from a total of 42 transactions
Transaction Hash |
Method
|
Block
|
From
|
To
|
|||||
---|---|---|---|---|---|---|---|---|---|
Approve | 19493900 | 168 days ago | IN | 0 ETH | 0.00102326 | ||||
Approve | 19194416 | 210 days ago | IN | 0 ETH | 0.00207961 | ||||
Approve | 19187049 | 211 days ago | IN | 0 ETH | 0.00281419 | ||||
Approve | 19187038 | 211 days ago | IN | 0 ETH | 0.00330402 | ||||
Approve | 19187037 | 211 days ago | IN | 0 ETH | 0.00329324 | ||||
Approve | 19187033 | 211 days ago | IN | 0 ETH | 0.00324697 | ||||
Approve | 19187027 | 211 days ago | IN | 0 ETH | 0.00348354 | ||||
Approve | 19187027 | 211 days ago | IN | 0 ETH | 0.00358504 | ||||
Set Name Symbol | 19187016 | 211 days ago | IN | 0 ETH | 0.00251264 | ||||
Approve | 19187014 | 211 days ago | IN | 0 ETH | 0.00432926 | ||||
Approve | 19187012 | 211 days ago | IN | 0 ETH | 0.00435418 | ||||
Approve | 19187012 | 211 days ago | IN | 0 ETH | 0.00435418 | ||||
Approve | 19187010 | 211 days ago | IN | 0 ETH | 0.00413612 | ||||
Approve | 19187010 | 211 days ago | IN | 0 ETH | 0.00413612 | ||||
Approve | 19187010 | 211 days ago | IN | 0 ETH | 0.00423843 | ||||
Approve | 19187008 | 211 days ago | IN | 0 ETH | 0.00390485 | ||||
Approve | 19187008 | 211 days ago | IN | 0 ETH | 0.00400688 | ||||
Approve | 19187007 | 211 days ago | IN | 0 ETH | 0.00357051 | ||||
Approve | 19187007 | 211 days ago | IN | 0 ETH | 0.00357051 | ||||
Disable Token Am... | 19187003 | 211 days ago | IN | 0 ETH | 0.0015526 | ||||
Approve | 19187003 | 211 days ago | IN | 0 ETH | 0.00390977 | ||||
Approve | 19187001 | 211 days ago | IN | 0 ETH | 0.00328491 | ||||
Approve | 19187001 | 211 days ago | IN | 0 ETH | 0.00338617 | ||||
Approve | 19186999 | 211 days ago | IN | 0 ETH | 0.00307097 | ||||
Approve | 19186998 | 211 days ago | IN | 0 ETH | 0.00301314 |
View more zero value Internal Transactions in Advanced View mode
Advanced mode:
Loading...
Loading
Contract Name:
KarratMB
Compiler Version
v0.8.20+commit.a1b79de6
Contract Source Code (Solidity Standard Json-Input format)
//SPDX-License-Identifier: UNLICENSED pragma solidity ^0.8.0; import "./ERC404/ERC404.sol"; import "@openzeppelin/contracts/utils/Strings.sol"; contract KarratMB is ERC404 { string public baseTokenURI; string public dataURI; constructor( address _owner ) ERC404("Karrat Mystery Boxes", "KARRAT", 18, 8888, _owner, 5) { balanceOf[_owner] = 8888 * 10 ** 18; dataURI = "https://nftstorage.link/ipfs/bafybeiao3obpxyj662i7sw2smhudh42pruxewpsrweqh2kzyopaonj7reu/"; whitelist[_owner] = true; } function setDataURI(string memory _dataURI) public onlyOwner { dataURI = _dataURI; } function setTokenURI(string memory _tokenURI) public onlyOwner { baseTokenURI = _tokenURI; } function setNameSymbol( string memory _name, string memory _symbol ) public onlyOwner { _setNameSymbol(_name, _symbol); } function tokenURI(uint256 id) public view override returns (string memory) { if (bytes(baseTokenURI).length > 0) { return string.concat(baseTokenURI, Strings.toString(id)); } else { uint8 seed = uint8(bytes1(keccak256(abi.encodePacked(id)))); string memory image; string memory size; if (seed <= 100) { image = "1.png"; size = "Mini"; } else if (seed <= 160) { image = "2.png"; size = "Standard"; } else if (seed <= 210) { image = "3.png"; size = "Premium"; } else if (seed <= 240) { image = "4.png"; size = "Deluxe"; } else if (seed <= 255) { image = "5.png"; size = "Ultimate"; } string memory jsonPreImage = string.concat( string.concat( string.concat( '{"name": "Karrat Box #', Strings.toString(id) ), '","description":"The Karrat Box from AMGI Studios is a treasure-filled loot box for My Pet Hooligan, offering exclusive items, rare collectibles, and the chance to unlock Karrat Tokens for secret game modes.","external_url":"https://www.mypethooligangame.com/","image":"' ), string.concat(dataURI, image) ); string memory jsonPostImage = string.concat( '","attributes":[{"trait_type":"Size","value":"', size ); string memory jsonPostTraits = '"}]}'; return string.concat( "data:application/json;utf8,", string.concat( string.concat(jsonPreImage, jsonPostImage), jsonPostTraits ) ); } } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v5.0.0) (utils/Strings.sol) pragma solidity ^0.8.20; import {Math} from "./math/Math.sol"; import {SignedMath} from "./math/SignedMath.sol"; /** * @dev String operations. */ library Strings { bytes16 private constant HEX_DIGITS = "0123456789abcdef"; uint8 private constant ADDRESS_LENGTH = 20; /** * @dev The `value` string doesn't fit in the specified `length`. */ error StringsInsufficientHexLength(uint256 value, uint256 length); /** * @dev Converts a `uint256` to its ASCII `string` decimal representation. */ function toString(uint256 value) internal pure returns (string memory) { unchecked { uint256 length = Math.log10(value) + 1; string memory buffer = new string(length); uint256 ptr; /// @solidity memory-safe-assembly assembly { ptr := add(buffer, add(32, length)) } while (true) { ptr--; /// @solidity memory-safe-assembly assembly { mstore8(ptr, byte(mod(value, 10), HEX_DIGITS)) } value /= 10; if (value == 0) break; } return buffer; } } /** * @dev Converts a `int256` to its ASCII `string` decimal representation. */ function toStringSigned(int256 value) internal pure returns (string memory) { return string.concat(value < 0 ? "-" : "", toString(SignedMath.abs(value))); } /** * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation. */ function toHexString(uint256 value) internal pure returns (string memory) { unchecked { return toHexString(value, Math.log256(value) + 1); } } /** * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation with fixed length. */ function toHexString(uint256 value, uint256 length) internal pure returns (string memory) { uint256 localValue = value; 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_DIGITS[localValue & 0xf]; localValue >>= 4; } if (localValue != 0) { revert StringsInsufficientHexLength(value, length); } return string(buffer); } /** * @dev Converts an `address` with fixed length of 20 bytes to its not checksummed ASCII `string` hexadecimal * representation. */ function toHexString(address addr) internal pure returns (string memory) { return toHexString(uint256(uint160(addr)), ADDRESS_LENGTH); } /** * @dev Returns true if the two strings are equal. */ function equal(string memory a, string memory b) internal pure returns (bool) { return bytes(a).length == bytes(b).length && keccak256(bytes(a)) == keccak256(bytes(b)); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v5.0.0) (utils/math/Math.sol) pragma solidity ^0.8.20; /** * @dev Standard math utilities missing in the Solidity language. */ library Math { /** * @dev Muldiv operation overflow. */ error MathOverflowedMulDiv(); enum Rounding { Floor, // Toward negative infinity Ceil, // Toward positive infinity Trunc, // Toward zero Expand // Away from zero } /** * @dev Returns the addition of two unsigned integers, with an overflow flag. */ function tryAdd(uint256 a, uint256 b) internal pure returns (bool, uint256) { unchecked { uint256 c = a + b; if (c < a) return (false, 0); return (true, c); } } /** * @dev Returns the subtraction of two unsigned integers, with an overflow flag. */ 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. */ 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. */ 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. */ 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 largest of two numbers. */ function max(uint256 a, uint256 b) internal pure returns (uint256) { return a > b ? a : b; } /** * @dev Returns the smallest of two numbers. */ function min(uint256 a, uint256 b) internal pure returns (uint256) { return a < b ? a : b; } /** * @dev Returns the average of two numbers. The result is rounded towards * zero. */ function average(uint256 a, uint256 b) internal pure returns (uint256) { // (a + b) / 2 can overflow. return (a & b) + (a ^ b) / 2; } /** * @dev Returns the ceiling of the division of two numbers. * * This differs from standard division with `/` in that it rounds towards infinity instead * of rounding towards zero. */ function ceilDiv(uint256 a, uint256 b) internal pure returns (uint256) { if (b == 0) { // Guarantee the same behavior as in a regular Solidity division. return a / b; } // (a + b - 1) / b can overflow on addition, so we distribute. return a == 0 ? 0 : (a - 1) / b + 1; } /** * @notice Calculates floor(x * y / denominator) with full precision. Throws if result overflows a uint256 or * denominator == 0. * @dev Original credit to Remco Bloemen under MIT license (https://xn--2-umb.com/21/muldiv) with further edits by * Uniswap Labs also under MIT license. */ function mulDiv(uint256 x, uint256 y, uint256 denominator) internal pure returns (uint256 result) { unchecked { // 512-bit multiply [prod1 prod0] = x * y. Compute the product mod 2^256 and mod 2^256 - 1, then use // use the Chinese Remainder Theorem to reconstruct the 512 bit result. The result is stored in two 256 // variables such that product = prod1 * 2^256 + prod0. uint256 prod0 = x * y; // Least significant 256 bits of the product uint256 prod1; // Most significant 256 bits of the product assembly { let mm := mulmod(x, y, not(0)) prod1 := sub(sub(mm, prod0), lt(mm, prod0)) } // Handle non-overflow cases, 256 by 256 division. if (prod1 == 0) { // Solidity will revert if denominator == 0, unlike the div opcode on its own. // The surrounding unchecked block does not change this fact. // See https://docs.soliditylang.org/en/latest/control-structures.html#checked-or-unchecked-arithmetic. return prod0 / denominator; } // Make sure the result is less than 2^256. Also prevents denominator == 0. if (denominator <= prod1) { revert MathOverflowedMulDiv(); } /////////////////////////////////////////////// // 512 by 256 division. /////////////////////////////////////////////// // Make division exact by subtracting the remainder from [prod1 prod0]. uint256 remainder; assembly { // Compute remainder using mulmod. remainder := mulmod(x, y, denominator) // Subtract 256 bit number from 512 bit number. prod1 := sub(prod1, gt(remainder, prod0)) prod0 := sub(prod0, remainder) } // Factor powers of two out of denominator and compute largest power of two divisor of denominator. // Always >= 1. See https://cs.stackexchange.com/q/138556/92363. uint256 twos = denominator & (0 - denominator); assembly { // Divide denominator by twos. denominator := div(denominator, twos) // Divide [prod1 prod0] by twos. prod0 := div(prod0, twos) // Flip twos such that it is 2^256 / twos. If twos is zero, then it becomes one. twos := add(div(sub(0, twos), twos), 1) } // Shift in bits from prod1 into prod0. prod0 |= prod1 * twos; // Invert denominator mod 2^256. Now that denominator is an odd number, it has an inverse modulo 2^256 such // that denominator * inv = 1 mod 2^256. Compute the inverse by starting with a seed that is correct for // four bits. That is, denominator * inv = 1 mod 2^4. uint256 inverse = (3 * denominator) ^ 2; // Use the Newton-Raphson iteration to improve the precision. Thanks to Hensel's lifting lemma, this also // works in modular arithmetic, doubling the correct bits in each step. inverse *= 2 - denominator * inverse; // inverse mod 2^8 inverse *= 2 - denominator * inverse; // inverse mod 2^16 inverse *= 2 - denominator * inverse; // inverse mod 2^32 inverse *= 2 - denominator * inverse; // inverse mod 2^64 inverse *= 2 - denominator * inverse; // inverse mod 2^128 inverse *= 2 - denominator * inverse; // inverse mod 2^256 // Because the division is now exact we can divide by multiplying with the modular inverse of denominator. // This will give us the correct result modulo 2^256. Since the preconditions guarantee that the outcome is // less than 2^256, this is the final result. We don't need to compute the high bits of the result and prod1 // is no longer required. result = prod0 * inverse; return result; } } /** * @notice Calculates x * y / denominator with full precision, following the selected rounding direction. */ function mulDiv(uint256 x, uint256 y, uint256 denominator, Rounding rounding) internal pure returns (uint256) { uint256 result = mulDiv(x, y, denominator); if (unsignedRoundsUp(rounding) && mulmod(x, y, denominator) > 0) { result += 1; } return result; } /** * @dev Returns the square root of a number. If the number is not a perfect square, the value is rounded * towards zero. * * Inspired by Henry S. Warren, Jr.'s "Hacker's Delight" (Chapter 11). */ function sqrt(uint256 a) internal pure returns (uint256) { if (a == 0) { return 0; } // For our first guess, we get the biggest power of 2 which is smaller than the square root of the target. // // We know that the "msb" (most significant bit) of our target number `a` is a power of 2 such that we have // `msb(a) <= a < 2*msb(a)`. This value can be written `msb(a)=2**k` with `k=log2(a)`. // // This can be rewritten `2**log2(a) <= a < 2**(log2(a) + 1)` // → `sqrt(2**k) <= sqrt(a) < sqrt(2**(k+1))` // → `2**(k/2) <= sqrt(a) < 2**((k+1)/2) <= 2**(k/2 + 1)` // // Consequently, `2**(log2(a) / 2)` is a good first approximation of `sqrt(a)` with at least 1 correct bit. uint256 result = 1 << (log2(a) >> 1); // At this point `result` is an estimation with one bit of precision. We know the true value is a uint128, // since it is the square root of a uint256. Newton's method converges quadratically (precision doubles at // every iteration). We thus need at most 7 iteration to turn our partial result with one bit of precision // into the expected uint128 result. unchecked { result = (result + a / result) >> 1; result = (result + a / result) >> 1; result = (result + a / result) >> 1; result = (result + a / result) >> 1; result = (result + a / result) >> 1; result = (result + a / result) >> 1; result = (result + a / result) >> 1; return min(result, a / result); } } /** * @notice Calculates sqrt(a), following the selected rounding direction. */ function sqrt(uint256 a, Rounding rounding) internal pure returns (uint256) { unchecked { uint256 result = sqrt(a); return result + (unsignedRoundsUp(rounding) && result * result < a ? 1 : 0); } } /** * @dev Return the log in base 2 of a positive value rounded towards zero. * Returns 0 if given 0. */ function log2(uint256 value) internal pure returns (uint256) { uint256 result = 0; unchecked { if (value >> 128 > 0) { value >>= 128; result += 128; } if (value >> 64 > 0) { value >>= 64; result += 64; } if (value >> 32 > 0) { value >>= 32; result += 32; } if (value >> 16 > 0) { value >>= 16; result += 16; } if (value >> 8 > 0) { value >>= 8; result += 8; } if (value >> 4 > 0) { value >>= 4; result += 4; } if (value >> 2 > 0) { value >>= 2; result += 2; } if (value >> 1 > 0) { result += 1; } } return result; } /** * @dev Return the log in base 2, following the selected rounding direction, of a positive value. * Returns 0 if given 0. */ function log2(uint256 value, Rounding rounding) internal pure returns (uint256) { unchecked { uint256 result = log2(value); return result + (unsignedRoundsUp(rounding) && 1 << result < value ? 1 : 0); } } /** * @dev Return the log in base 10 of a positive value rounded towards zero. * Returns 0 if given 0. */ function log10(uint256 value) internal pure returns (uint256) { uint256 result = 0; unchecked { if (value >= 10 ** 64) { value /= 10 ** 64; result += 64; } if (value >= 10 ** 32) { value /= 10 ** 32; result += 32; } if (value >= 10 ** 16) { value /= 10 ** 16; result += 16; } if (value >= 10 ** 8) { value /= 10 ** 8; result += 8; } if (value >= 10 ** 4) { value /= 10 ** 4; result += 4; } if (value >= 10 ** 2) { value /= 10 ** 2; result += 2; } if (value >= 10 ** 1) { result += 1; } } return result; } /** * @dev Return the log in base 10, following the selected rounding direction, of a positive value. * Returns 0 if given 0. */ function log10(uint256 value, Rounding rounding) internal pure returns (uint256) { unchecked { uint256 result = log10(value); return result + (unsignedRoundsUp(rounding) && 10 ** result < value ? 1 : 0); } } /** * @dev Return the log in base 256 of a positive value rounded towards zero. * Returns 0 if given 0. * * Adding one to the result gives the number of pairs of hex symbols needed to represent `value` as a hex string. */ function log256(uint256 value) internal pure returns (uint256) { uint256 result = 0; unchecked { if (value >> 128 > 0) { value >>= 128; result += 16; } if (value >> 64 > 0) { value >>= 64; result += 8; } if (value >> 32 > 0) { value >>= 32; result += 4; } if (value >> 16 > 0) { value >>= 16; result += 2; } if (value >> 8 > 0) { result += 1; } } return result; } /** * @dev Return the log in base 256, following the selected rounding direction, of a positive value. * Returns 0 if given 0. */ function log256(uint256 value, Rounding rounding) internal pure returns (uint256) { unchecked { uint256 result = log256(value); return result + (unsignedRoundsUp(rounding) && 1 << (result << 3) < value ? 1 : 0); } } /** * @dev Returns whether a provided rounding mode is considered rounding up for unsigned integers. */ function unsignedRoundsUp(Rounding rounding) internal pure returns (bool) { return uint8(rounding) % 2 == 1; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v5.0.0) (utils/math/SignedMath.sol) pragma solidity ^0.8.20; /** * @dev Standard signed math utilities missing in the Solidity language. */ library SignedMath { /** * @dev Returns the largest of two signed numbers. */ function max(int256 a, int256 b) internal pure returns (int256) { return a > b ? a : b; } /** * @dev Returns the smallest of two signed numbers. */ function min(int256 a, int256 b) internal pure returns (int256) { return a < b ? a : b; } /** * @dev Returns the average of two signed numbers without overflow. * The result is rounded towards zero. */ function average(int256 a, int256 b) internal pure returns (int256) { // Formula from the book "Hacker's Delight" int256 x = (a & b) + ((a ^ b) >> 1); return x + (int256(uint256(x) >> 255) & (a ^ b)); } /** * @dev Returns the absolute unsigned value of a signed value. */ function abs(int256 n) internal pure returns (uint256) { unchecked { // must be unchecked in order to support `n = type(int256).min` return uint256(n >= 0 ? n : -n); } } }
//SPDX-License-Identifier: UNLICENSED pragma solidity ^0.8.0; abstract contract Ownable { event OwnershipTransferred(address indexed user, address indexed newOwner); address public owner; error Unauthorized(); error InvalidOwner(); modifier onlyOwner() virtual { if (msg.sender != owner) revert Unauthorized(); _; } constructor(address _owner) { if (_owner == address(0)) revert InvalidOwner(); owner = _owner; emit OwnershipTransferred(address(0), _owner); } function transferOwnership(address _owner) public virtual onlyOwner { if (_owner == address(0)) revert InvalidOwner(); owner = _owner; emit OwnershipTransferred(msg.sender, _owner); } function revokeOwnership() public virtual onlyOwner { owner = address(0); emit OwnershipTransferred(msg.sender, address(0)); } } abstract contract ERC721Receiver { function onERC721Received( address, address, uint256, bytes calldata ) external virtual returns (bytes4) { return ERC721Receiver.onERC721Received.selector; } } /// @notice ERC404 /// A gas-efficient, mixed ERC20 / ERC721 implementation /// with native liquidity and fractionalization. /// /// This is an experimental standard designed to integrate /// with pre-existing ERC20 / ERC721 support as smoothly as /// possible. /// /// @dev In order to support full functionality of ERC20 and ERC721 /// supply assumptions are made that slightly constraint usage. /// Ensure decimals are sufficiently large (standard 18 recommended) /// as ids are effectively encoded in the lowest range of amounts. /// /// NFTs are spent on ERC20 functions in a FILO queue, this is by /// design. /// abstract contract ERC404 is Ownable { // Events event ERC20Transfer( address indexed from, address indexed to, uint256 amount ); event Approval( address indexed owner, address indexed spender, uint256 amount ); event Transfer( address indexed from, address indexed to, uint256 indexed id ); event ERC721Approval( address indexed owner, address indexed spender, uint256 indexed id ); event ApprovalForAll( address indexed owner, address indexed operator, bool approved ); // Errors error NotFound(); error AlreadyExists(); error InvalidRecipient(); error InvalidSender(); error UnsafeRecipient(); error MaxBalanceExceeded(); // Metadata /// @dev Token name string public name; /// @dev Token symbol string public symbol; /// @dev Decimals for fractional representation uint8 public immutable decimals; /// @dev Total supply in fractionalized representation uint256 public immutable totalSupply; /// @dev Current mint counter, monotonically increasing to ensure accurate ownership uint256 public minted; // Mappings /// @dev Balance of user in fractional representation mapping(address => uint256) public balanceOf; /// @dev Allowance of user in fractional representation mapping(address => mapping(address => uint256)) public allowance; /// @dev Approval in native representaion mapping(uint256 => address) public getApproved; /// @dev Approval for all in native representation mapping(address => mapping(address => bool)) public isApprovedForAll; /// @dev Owner of id in native representation mapping(uint256 => address) internal _ownerOf; /// @dev Array of owned ids in native representation mapping(address => uint256[]) internal _owned; /// @dev Tracks indices for the _owned mapping mapping(uint256 => uint256) internal _ownedIndex; /// @dev Addresses whitelisted from minting / burning for gas savings (pairs, routers, etc) mapping(address => bool) public whitelist; bool public tokenAmountCheck; uint256 public maxTokensAmountPerWallet; // Constructor constructor( string memory _name, string memory _symbol, uint8 _decimals, uint256 _totalNativeSupply, address _owner, uint256 _maxTokensAmountPerWallet ) Ownable(_owner) { name = _name; symbol = _symbol; decimals = _decimals; totalSupply = _totalNativeSupply * (10 ** decimals); if(_maxTokensAmountPerWallet > 0){ tokenAmountCheck = true; maxTokensAmountPerWallet = _maxTokensAmountPerWallet; } } function disableTokenAmountCheck() public onlyOwner { tokenAmountCheck = false; } /// @notice Initialization function to set pairs / etc /// saving gas by avoiding mint / burn on unnecessary targets function setWhitelist(address target, bool state) public onlyOwner { whitelist[target] = state; } /// @notice Function to find owner of a given native token function ownerOf(uint256 id) public view virtual returns (address owner) { owner = _ownerOf[id]; if (owner == address(0)) { revert NotFound(); } } /// @notice tokenURI must be implemented by child contract function tokenURI(uint256 id) public view virtual returns (string memory); /// @notice Function for token approvals /// @dev This function assumes id / native if amount less than or equal to current max id function approve( address spender, uint256 amountOrId ) public virtual returns (bool) { if (amountOrId <= minted && amountOrId > 0) { address owner = _ownerOf[amountOrId]; if (msg.sender != owner && !isApprovedForAll[owner][msg.sender]) { revert Unauthorized(); } getApproved[amountOrId] = spender; emit Approval(owner, spender, amountOrId); } else { allowance[msg.sender][spender] = amountOrId; emit Approval(msg.sender, spender, amountOrId); } return true; } /// @notice Function native approvals function setApprovalForAll(address operator, bool approved) public virtual { isApprovedForAll[msg.sender][operator] = approved; emit ApprovalForAll(msg.sender, operator, approved); } /// @notice Function for mixed transfers /// @dev This function assumes id / native if amount less than or equal to current max id function transferFrom( address from, address to, uint256 amountOrId ) public virtual { if (amountOrId <= minted) { if (from != _ownerOf[amountOrId]) { revert InvalidSender(); } if (to == address(0)) { revert InvalidRecipient(); } if ( msg.sender != from && !isApprovedForAll[from][msg.sender] && msg.sender != getApproved[amountOrId] ) { revert Unauthorized(); } balanceOf[from] -= _getUnit(); unchecked { balanceOf[to] += _getUnit(); } _ownerOf[amountOrId] = to; delete getApproved[amountOrId]; // update _owned for sender uint256 updatedId = _owned[from][_owned[from].length - 1]; _owned[from][_ownedIndex[amountOrId]] = updatedId; // pop _owned[from].pop(); // update index for the moved id _ownedIndex[updatedId] = _ownedIndex[amountOrId]; // push token to to owned _owned[to].push(amountOrId); // update index for to owned _ownedIndex[amountOrId] = _owned[to].length - 1; emit Transfer(from, to, amountOrId); emit ERC20Transfer(from, to, _getUnit()); } else { uint256 allowed = allowance[from][msg.sender]; if (allowed != type(uint256).max) allowance[from][msg.sender] = allowed - amountOrId; _transfer(from, to, amountOrId); } } /// @notice Function for fractional transfers function transfer( address to, uint256 amount ) public virtual returns (bool) { return _transfer(msg.sender, to, amount); } /// @notice Function for native transfers with contract support function safeTransferFrom( address from, address to, uint256 id ) public virtual { transferFrom(from, to, id); if ( to.code.length != 0 && ERC721Receiver(to).onERC721Received(msg.sender, from, id, "") != ERC721Receiver.onERC721Received.selector ) { revert UnsafeRecipient(); } } /// @notice Function for native transfers with contract support and callback data function safeTransferFrom( address from, address to, uint256 id, bytes calldata data ) public virtual { transferFrom(from, to, id); if ( to.code.length != 0 && ERC721Receiver(to).onERC721Received(msg.sender, from, id, data) != ERC721Receiver.onERC721Received.selector ) { revert UnsafeRecipient(); } } /// @notice Internal function for fractional transfers function _transfer( address from, address to, uint256 amount ) internal returns (bool) { uint256 unit = _getUnit(); uint256 balanceBeforeSender = balanceOf[from]; uint256 balanceBeforeReceiver = balanceOf[to]; balanceOf[from] -= amount; unchecked { balanceOf[to] += amount; } // Skip burn for certain addresses to save gas if (!whitelist[from]) { uint256 tokens_to_burn = (balanceBeforeSender / unit) - (balanceOf[from] / unit); for (uint256 i = 0; i < tokens_to_burn; i++) { _burn(from); } } // Skip minting for certain addresses to save gas if (!whitelist[to]) { if(tokenAmountCheck){ if(balanceOf[to]/unit > maxTokensAmountPerWallet){ revert MaxBalanceExceeded(); } } uint256 tokens_to_mint = (balanceOf[to] / unit) - (balanceBeforeReceiver / unit); for (uint256 i = 0; i < tokens_to_mint; i++) { _mint(to); } } emit ERC20Transfer(from, to, amount); return true; } // Internal utility logic function _getUnit() internal view returns (uint256) { return 10 ** decimals; } function _mint(address to) internal virtual { if (to == address(0)) { revert InvalidRecipient(); } unchecked { minted++; } uint256 id = minted; if (_ownerOf[id] != address(0)) { revert AlreadyExists(); } _ownerOf[id] = to; _owned[to].push(id); _ownedIndex[id] = _owned[to].length - 1; emit Transfer(address(0), to, id); } function _burn(address from) internal virtual { if (from == address(0)) { revert InvalidSender(); } uint256 id = _owned[from][_owned[from].length - 1]; _owned[from].pop(); delete _ownedIndex[id]; delete _ownerOf[id]; delete getApproved[id]; emit Transfer(from, address(0), id); } function _setNameSymbol( string memory _name, string memory _symbol ) internal { name = _name; symbol = _symbol; } }
{ "evmVersion": "paris", "libraries": {}, "metadata": { "bytecodeHash": "ipfs", "useLiteralContent": true }, "optimizer": { "enabled": true, "runs": 15 }, "remappings": [], "outputSelection": { "*": { "*": [ "evm.bytecode", "evm.deployedBytecode", "devdoc", "userdoc", "metadata", "abi" ] } } }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"inputs":[{"internalType":"address","name":"_owner","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[],"name":"AlreadyExists","type":"error"},{"inputs":[],"name":"InvalidOwner","type":"error"},{"inputs":[],"name":"InvalidRecipient","type":"error"},{"inputs":[],"name":"InvalidSender","type":"error"},{"inputs":[],"name":"MaxBalanceExceeded","type":"error"},{"inputs":[],"name":"NotFound","type":"error"},{"inputs":[],"name":"Unauthorized","type":"error"},{"inputs":[],"name":"UnsafeRecipient","type":"error"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"spender","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":false,"internalType":"bool","name":"approved","type":"bool"}],"name":"ApprovalForAll","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"ERC20Transfer","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"spender","type":"address"},{"indexed":true,"internalType":"uint256","name":"id","type":"uint256"}],"name":"ERC721Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"user","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":true,"internalType":"uint256","name":"id","type":"uint256"}],"name":"Transfer","type":"event"},{"inputs":[{"internalType":"address","name":"","type":"address"},{"internalType":"address","name":"","type":"address"}],"name":"allowance","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"amountOrId","type":"uint256"}],"name":"approve","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"baseTokenURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"dataURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"decimals","outputs":[{"internalType":"uint8","name":"","type":"uint8"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"disableTokenAmountCheck","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"getApproved","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"},{"internalType":"address","name":"","type":"address"}],"name":"isApprovedForAll","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"maxTokensAmountPerWallet","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"minted","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"id","type":"uint256"}],"name":"ownerOf","outputs":[{"internalType":"address","name":"owner","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"revokeOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"id","type":"uint256"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"id","type":"uint256"},{"internalType":"bytes","name":"data","type":"bytes"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"bool","name":"approved","type":"bool"}],"name":"setApprovalForAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"_dataURI","type":"string"}],"name":"setDataURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"_name","type":"string"},{"internalType":"string","name":"_symbol","type":"string"}],"name":"setNameSymbol","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"_tokenURI","type":"string"}],"name":"setTokenURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"target","type":"address"},{"internalType":"bool","name":"state","type":"bool"}],"name":"setWhitelist","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"tokenAmountCheck","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"id","type":"uint256"}],"name":"tokenURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"transfer","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"amountOrId","type":"uint256"}],"name":"transferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_owner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"whitelist","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"}]
Contract Creation Code
60c06040523480156200001157600080fd5b5060405162002683380380620026838339810160408190526200003491620001e9565b604080518082018252601481527f4b6172726174204d79737465727920426f7865730000000000000000000000006020808301919091528251808401909352600683526512d05494905560d21b908301529060126122b8846005816001600160a01b038116620000b7576040516349e27cff60e01b815260040160405180910390fd5b600080546001600160a01b0319166001600160a01b03831690811782556040519091907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908290a35060016200010e8782620002c0565b5060026200011d8682620002c0565b5060ff841660808190526200013490600a620004a1565b620001409084620004b2565b60a05280156200015d57600c805460ff19166001179055600d8190555b5050505050506901e1d1c72d5b97e0000060046000836001600160a01b03166001600160a01b03168152602001908152602001600020819055506040518060800160405280605981526020016200262a60599139600f90620001c09082620002c0565b506001600160a01b03166000908152600b60205260409020805460ff19166001179055620004cc565b600060208284031215620001fc57600080fd5b81516001600160a01b03811681146200021457600080fd5b9392505050565b634e487b7160e01b600052604160045260246000fd5b600181811c908216806200024657607f821691505b6020821081036200026757634e487b7160e01b600052602260045260246000fd5b50919050565b601f821115620002bb57600081815260208120601f850160051c81016020861015620002965750805b601f850160051c820191505b81811015620002b757828155600101620002a2565b5050505b505050565b81516001600160401b03811115620002dc57620002dc6200021b565b620002f481620002ed845462000231565b846200026d565b602080601f8311600181146200032c5760008415620003135750858301515b600019600386901b1c1916600185901b178555620002b7565b600085815260208120601f198616915b828110156200035d578886015182559484019460019091019084016200033c565b50858210156200037c5787850151600019600388901b60f8161c191681555b5050505050600190811b01905550565b634e487b7160e01b600052601160045260246000fd5b600181815b80851115620003e3578160001904821115620003c757620003c76200038c565b80851615620003d557918102915b93841c9390800290620003a7565b509250929050565b600082620003fc575060016200049b565b816200040b575060006200049b565b81600181146200042457600281146200042f576200044f565b60019150506200049b565b60ff8411156200044357620004436200038c565b50506001821b6200049b565b5060208310610133831016604e8410600b841016171562000474575081810a6200049b565b620004808383620003a2565b80600019048211156200049757620004976200038c565b0290505b92915050565b60006200021460ff841683620003eb565b80820281158282048414176200049b576200049b6200038c565b60805160a051612131620004f960003960006101f601526000818161025b015261118401526121316000f3fe608060405234801561001057600080fd5b506004361061016a5760003560e01c806306fdde031461016f578063081812fc1461018d578063095ea7b3146101ce57806318160ddd146101f157806318d217c31461022657806323b872dd1461023b5780632b9689581461024e578063313ce56714610256578063366d9a9b1461028f57806342842e0e146102975780634f02c420146102aa578063504334c2146102b357806353d6fd59146102c65780635db8f68d146102d95780636352211e146102e657806370a08231146102f95780638da5cb5b1461031957806394c529381461032c57806395d89b41146103355780639b19251a1461033d578063a22cb46514610360578063a9059cbb14610373578063b88d4fde14610386578063c87b56dd14610399578063d547cfb7146103ac578063dd62ed3e146103b4578063e0df5b6f146103df578063e985e9c5146103f2578063f28ca1dd14610420578063f2fde38b14610428575b600080fd5b61017761043b565b6040516101849190611776565b60405180910390f35b6101b661019b3660046117a9565b6006602052600090815260409020546001600160a01b031681565b6040516001600160a01b039091168152602001610184565b6101e16101dc3660046117d9565b6104c9565b6040519015158152602001610184565b6102187f000000000000000000000000000000000000000000000000000000000000000081565b604051908152602001610184565b6102396102343660046118a5565b61061a565b005b6102396102493660046118e1565b610654565b6102396109cb565b61027d7f000000000000000000000000000000000000000000000000000000000000000081565b60405160ff9091168152602001610184565b610239610a31565b6102396102a53660046118e1565b610a67565b61021860035481565b6102396102c136600461191d565b610b3c565b6102396102d4366004611980565b610b70565b600c546101e19060ff1681565b6101b66102f43660046117a9565b610bc5565b6102186103073660046119bc565b60046020526000908152604090205481565b6000546101b6906001600160a01b031681565b610218600d5481565b610177610c00565b6101e161034b3660046119bc565b600b6020526000908152604090205460ff1681565b61023961036e366004611980565b610c0d565b6101e16103813660046117d9565b610c79565b6102396103943660046119d7565b610c8d565b6101776103a73660046117a9565b610d50565b610177611091565b6102186103c2366004611a71565b600560209081526000928352604080842090915290825290205481565b6102396103ed3660046118a5565b61109e565b6101e1610400366004611a71565b600760209081526000928352604080842090915290825290205460ff1681565b6101776110d4565b6102396104363660046119bc565b6110e1565b6001805461044890611aa4565b80601f016020809104026020016040519081016040528092919081815260200182805461047490611aa4565b80156104c15780601f10610496576101008083540402835291602001916104c1565b820191906000526020600020905b8154815290600101906020018083116104a457829003601f168201915b505050505081565b600060035482111580156104dd5750600082115b156105b4576000828152600860205260409020546001600160a01b031633811480159061052e57506001600160a01b038116600090815260076020908152604080832033845290915290205460ff16155b1561054b576040516282b42960e81b815260040160405180910390fd5b60008381526006602090815260409182902080546001600160a01b0319166001600160a01b038881169182179092559251868152908416917f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925910160405180910390a350610610565b3360008181526005602090815260408083206001600160a01b03881680855290835292819020869055518581529192917f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925910160405180910390a35b5060015b92915050565b6000546001600160a01b03163314610644576040516282b42960e81b815260040160405180910390fd5b600f6106508282611b2c565b5050565b600354811161095c576000818152600860205260409020546001600160a01b0384811691161461069757604051636edaef2f60e11b815260040160405180910390fd5b6001600160a01b0382166106be57604051634e46966960e11b815260040160405180910390fd5b336001600160a01b038416148015906106fb57506001600160a01b038316600090815260076020908152604080832033845290915290205460ff16155b801561071e57506000818152600660205260409020546001600160a01b03163314155b1561073b576040516282b42960e81b815260040160405180910390fd5b61074361117d565b6001600160a01b0384166000908152600460205260408120805490919061076b908490611c01565b90915550610779905061117d565b6001600160a01b03808416600081815260046020908152604080832080549096019095558582526008815284822080546001600160a01b0319908116909417905560068152848220805490931690925591861682526009905290812080546107e390600190611c01565b815481106107f3576107f3611c14565b60009182526020808320909101546001600160a01b0387168352600982526040808420868552600a9093529092205481549293508392811061083757610837611c14565b60009182526020808320909101929092556001600160a01b038616815260099091526040902080548061086c5761086c611c2a565b600082815260208082208301600019908101839055909201909255838252600a8152604080832054848452818420556001600160a01b0386168084526009835290832080546001818101835582865293852001869055925290546108d09190611c01565b6000838152600a602052604080822092909255905183916001600160a01b0380871692908816916000805160206120dc83398151915291a4826001600160a01b0316846001600160a01b03167fe59fdd36d0d223c0c7d996db7ad796880f45e1936cb0bb7ac102e7082e03148761094561117d565b60405190815260200160405180910390a350505050565b6001600160a01b038316600090815260056020908152604080832033845290915290205460001981146109b8576109938282611c01565b6001600160a01b03851660009081526005602090815260408083203384529091529020555b6109c38484846111af565b50505b505050565b6000546001600160a01b031633146109f5576040516282b42960e81b815260040160405180910390fd5b600080546001600160a01b031916815560405133907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908390a3565b6000546001600160a01b03163314610a5b576040516282b42960e81b815260040160405180910390fd5b600c805460ff19169055565b610a72838383610654565b6001600160a01b0382163b15801590610b1e5750604051630a85bd0160e11b8082523360048301526001600160a01b03858116602484015260448301849052608060648401526000608484015290919084169063150b7a029060a4016020604051808303816000875af1158015610aed573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610b119190611c40565b6001600160e01b03191614155b156109c657604051633da6393160e01b815260040160405180910390fd5b6000546001600160a01b03163314610b66576040516282b42960e81b815260040160405180910390fd5b61065082826113c2565b6000546001600160a01b03163314610b9a576040516282b42960e81b815260040160405180910390fd5b6001600160a01b03919091166000908152600b60205260409020805460ff1916911515919091179055565b6000818152600860205260409020546001600160a01b031680610bfb5760405163c5723b5160e01b815260040160405180910390fd5b919050565b6002805461044890611aa4565b3360008181526007602090815260408083206001600160a01b03871680855290835292819020805460ff191686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b6000610c863384846111af565b9392505050565b610c98858585610654565b6001600160a01b0384163b15801590610d325750604051630a85bd0160e11b808252906001600160a01b0386169063150b7a0290610ce29033908a90899089908990600401611c6a565b6020604051808303816000875af1158015610d01573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610d259190611c40565b6001600160e01b03191614155b156109c357604051633da6393160e01b815260040160405180910390fd5b60606000600e8054610d6190611aa4565b90501115610d9b57600e610d74836113db565b604051602001610d85929190611cbe565b6040516020818303038152906040529050919050565b600082604051602001610db091815260200190565b6040516020818303038152906040528051906020012060f81c905060608060648360ff1611610e1d5760405180604001604052806005815260200164312e706e6760d81b8152509150604051806040016040528060048152602001634d696e6960e01b8152509050610f62565b60a08360ff1611610e705760405180604001604052806005815260200164322e706e6760d81b81525091506040518060400160405280600881526020016714dd185b99185c9960c21b8152509050610f62565b60d28360ff1611610ec25760405180604001604052806005815260200164332e706e6760d81b8152509150604051806040016040528060078152602001665072656d69756d60c81b8152509050610f62565b60f08360ff1611610f135760405180604001604052806005815260200164342e706e6760d81b81525091506040518060400160405280600681526020016544656c75786560d01b8152509050610f62565b60ff8360ff1611610f625760405180604001604052806005815260200164352e706e6760d81b815250915060405180604001604052806008815260200167556c74696d61746560c01b81525090505b6000610f6d866113db565b604051602001610f7d9190611d45565b60408051601f1981840301815290829052610f9a91602001611d84565b604051602081830303815290604052600f84604051602001610fbd929190611cbe565b60408051601f1981840301815290829052610fdb9291602001611ee8565b6040516020818303038152906040529050600082604051602001610fff9190611f0e565b60408051601f1981840301815282820182526004835263227d5d7d60e01b6020848101919091529151909350611039918591859101611ee8565b60408051601f1981840301815290829052611058918390602001611ee8565b60408051601f198184030181529082905261107591602001611f6a565b6040516020818303038152906040529650505050505050919050565b600e805461044890611aa4565b6000546001600160a01b031633146110c8576040516282b42960e81b815260040160405180910390fd5b600e6106508282611b2c565b600f805461044890611aa4565b6000546001600160a01b0316331461110b576040516282b42960e81b815260040160405180910390fd5b6001600160a01b038116611132576040516349e27cff60e01b815260040160405180910390fd5b600080546001600160a01b0319166001600160a01b0383169081178255604051909133917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a350565b60006111aa7f0000000000000000000000000000000000000000000000000000000000000000600a612091565b905090565b6000806111ba61117d565b6001600160a01b038087166000818152600460205260408082208054948a16835290822054928252939450919290918691906111f68386611c01565b90915550506001600160a01b03808716600090815260046020908152604080832080548a019055928a168252600b9052205460ff16611292576001600160a01b0387166000908152600460205260408120546112539085906120a0565b61125d85856120a0565b6112679190611c01565b905060005b8181101561128f5761127d8961146d565b80611287816120c2565b91505061126c565b50505b6001600160a01b0386166000908152600b602052604090205460ff1661136857600c5460ff161561130357600d546001600160a01b0387166000908152600460205260409020546112e49085906120a0565b1115611303576040516324691f6b60e01b815260040160405180910390fd5b600061130f84836120a0565b6001600160a01b0388166000908152600460205260409020546113339086906120a0565b61133d9190611c01565b905060005b818110156113655761135388611583565b8061135d816120c2565b915050611342565b50505b856001600160a01b0316876001600160a01b03167fe59fdd36d0d223c0c7d996db7ad796880f45e1936cb0bb7ac102e7082e031487876040516113ad91815260200190565b60405180910390a35060019695505050505050565b60016113ce8382611b2c565b5060026109c68282611b2c565b606060006113e88361167c565b60010190506000816001600160401b0381111561140757611407611803565b6040519080825280601f01601f191660200182016040528015611431576020820181803683370190505b5090508181016020015b600019016f181899199a1a9b1b9c1cb0b131b232b360811b600a86061a8153600a850494508461143b57509392505050565b6001600160a01b03811661149457604051636edaef2f60e11b815260040160405180910390fd5b6001600160a01b038116600090815260096020526040812080546114ba90600190611c01565b815481106114ca576114ca611c14565b9060005260206000200154905060096000836001600160a01b03166001600160a01b0316815260200190815260200160002080548061150b5761150b611c2a565b600082815260208082208301600019908101839055909201909255828252600a815260408083208390556008825280832080546001600160a01b031990811690915560069092528083208054909216909155518291906001600160a01b038516906000805160206120dc833981519152908390a45050565b6001600160a01b0381166115aa57604051634e46966960e11b815260040160405180910390fd5b60038054600101908190556000818152600860205260409020546001600160a01b0316156115eb5760405163119b4fd360e11b815260040160405180910390fd5b600081815260086020908152604080832080546001600160a01b0319166001600160a01b0387169081179091558084526009835290832080546001818101835582865293852001859055925290546116439190611c01565b6000828152600a602052604080822092909255905182916001600160a01b038516916000805160206120dc833981519152908290a45050565b60008072184f03e93ff9f4daa797ed6e38ed64bf6a1f0160401b83106116bb5772184f03e93ff9f4daa797ed6e38ed64bf6a1f0160401b830492506040015b6904ee2d6d415b85acef8160201b83106116e5576904ee2d6d415b85acef8160201b830492506020015b662386f26fc10000831061170357662386f26fc10000830492506010015b6305f5e100831061171b576305f5e100830492506008015b612710831061172f57612710830492506004015b60648310611741576064830492506002015b600a83106106145760010192915050565b60005b8381101561176d578181015183820152602001611755565b50506000910152565b6020815260008251806020840152611795816040850160208701611752565b601f01601f19169190910160400192915050565b6000602082840312156117bb57600080fd5b5035919050565b80356001600160a01b0381168114610bfb57600080fd5b600080604083850312156117ec57600080fd5b6117f5836117c2565b946020939093013593505050565b634e487b7160e01b600052604160045260246000fd5b600082601f83011261182a57600080fd5b81356001600160401b038082111561184457611844611803565b604051601f8301601f19908116603f0116810190828211818310171561186c5761186c611803565b8160405283815286602085880101111561188557600080fd5b836020870160208301376000602085830101528094505050505092915050565b6000602082840312156118b757600080fd5b81356001600160401b038111156118cd57600080fd5b6118d984828501611819565b949350505050565b6000806000606084860312156118f657600080fd5b6118ff846117c2565b925061190d602085016117c2565b9150604084013590509250925092565b6000806040838503121561193057600080fd5b82356001600160401b038082111561194757600080fd5b61195386838701611819565b9350602085013591508082111561196957600080fd5b5061197685828601611819565b9150509250929050565b6000806040838503121561199357600080fd5b61199c836117c2565b9150602083013580151581146119b157600080fd5b809150509250929050565b6000602082840312156119ce57600080fd5b610c86826117c2565b6000806000806000608086880312156119ef57600080fd5b6119f8866117c2565b9450611a06602087016117c2565b93506040860135925060608601356001600160401b0380821115611a2957600080fd5b818801915088601f830112611a3d57600080fd5b813581811115611a4c57600080fd5b896020828501011115611a5e57600080fd5b9699959850939650602001949392505050565b60008060408385031215611a8457600080fd5b611a8d836117c2565b9150611a9b602084016117c2565b90509250929050565b600181811c90821680611ab857607f821691505b602082108103611ad857634e487b7160e01b600052602260045260246000fd5b50919050565b601f8211156109c657600081815260208120601f850160051c81016020861015611b055750805b601f850160051c820191505b81811015611b2457828155600101611b11565b505050505050565b81516001600160401b03811115611b4557611b45611803565b611b5981611b538454611aa4565b84611ade565b602080601f831160018114611b8e5760008415611b765750858301515b600019600386901b1c1916600185901b178555611b24565b600085815260208120601f198616915b82811015611bbd57888601518255948401946001909101908401611b9e565b5085821015611bdb5787850151600019600388901b60f8161c191681555b5050505050600190811b01905550565b634e487b7160e01b600052601160045260246000fd5b8181038181111561061457610614611beb565b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052603160045260246000fd5b600060208284031215611c5257600080fd5b81516001600160e01b031981168114610c8657600080fd5b6001600160a01b038681168252851660208201526040810184905260806060820181905281018290526000828460a0840137600060a0848401015260a0601f19601f85011683010190509695505050505050565b6000808454611ccc81611aa4565b60018281168015611ce45760018114611cf957611d28565b60ff1984168752821515830287019450611d28565b8860005260208060002060005b85811015611d1f5781548a820152908401908201611d06565b50505082870194505b505050508351611d3c818360208801611752565b01949350505050565b757b226e616d65223a20224b617272617420426f78202360501b81528151600090611d77816016850160208701611752565b9190910160160192915050565b60008251611d96818460208701611752565b7f222c226465736372697074696f6e223a22546865204b617272617420426f78209201918252507f66726f6d20414d47492053747564696f7320697320612074726561737572652d60208201527f66696c6c6564206c6f6f7420626f7820666f72204d792050657420486f6f6c6960408201527f67616e2c206f66666572696e67206578636c7573697665206974656d732c207260608201527f61726520636f6c6c65637469626c65732c20616e6420746865206368616e636560808201527f20746f20756e6c6f636b204b617272617420546f6b656e7320666f722073656360a08201527f7265742067616d65206d6f6465732e222c2265787465726e616c5f75726c223a60c08201527f2268747470733a2f2f7777772e6d79706574686f6f6c6967616e67616d652e6360e08201526d37b69791161134b6b0b3b2911d1160911b61010082015261010e01919050565b60008351611efa818460208801611752565b835190830190611d3c818360208801611752565b7f222c2261747472696275746573223a5b7b2274726169745f74797065223a225381526d34bd329116113b30b63ab2911d1160911b602082015260008251611f5d81602e850160208701611752565b91909101602e0192915050565b7a19185d184e985c1c1b1a58d85d1a5bdb8bda9cdbdb8edd5d198e0b602a1b815260008251611fa081601b850160208701611752565b91909101601b0192915050565b600181815b80851115611fe8578160001904821115611fce57611fce611beb565b80851615611fdb57918102915b93841c9390800290611fb2565b509250929050565b600082611fff57506001610614565b8161200c57506000610614565b8160018114612022576002811461202c57612048565b6001915050610614565b60ff84111561203d5761203d611beb565b50506001821b610614565b5060208310610133831016604e8410600b841016171561206b575081810a610614565b6120758383611fad565b806000190482111561208957612089611beb565b029392505050565b6000610c8660ff841683611ff0565b6000826120bd57634e487b7160e01b600052601260045260246000fd5b500490565b6000600182016120d4576120d4611beb565b506001019056feddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3efa264697066735822122058534eb2a46b258ad7ef4cc918a64e32d06440b842b915385aadec6f683a72e564736f6c6343000814003368747470733a2f2f6e667473746f726167652e6c696e6b2f697066732f62616679626569616f336f627078796a3636326937737732736d68756468343270727578657770737277657168326b7a796f70616f6e6a377265752f00000000000000000000000089170a18898f5cd8ba57e36847cb5497b6ee1031
Deployed Bytecode
0x608060405234801561001057600080fd5b506004361061016a5760003560e01c806306fdde031461016f578063081812fc1461018d578063095ea7b3146101ce57806318160ddd146101f157806318d217c31461022657806323b872dd1461023b5780632b9689581461024e578063313ce56714610256578063366d9a9b1461028f57806342842e0e146102975780634f02c420146102aa578063504334c2146102b357806353d6fd59146102c65780635db8f68d146102d95780636352211e146102e657806370a08231146102f95780638da5cb5b1461031957806394c529381461032c57806395d89b41146103355780639b19251a1461033d578063a22cb46514610360578063a9059cbb14610373578063b88d4fde14610386578063c87b56dd14610399578063d547cfb7146103ac578063dd62ed3e146103b4578063e0df5b6f146103df578063e985e9c5146103f2578063f28ca1dd14610420578063f2fde38b14610428575b600080fd5b61017761043b565b6040516101849190611776565b60405180910390f35b6101b661019b3660046117a9565b6006602052600090815260409020546001600160a01b031681565b6040516001600160a01b039091168152602001610184565b6101e16101dc3660046117d9565b6104c9565b6040519015158152602001610184565b6102187f0000000000000000000000000000000000000000000001e1d1c72d5b97e0000081565b604051908152602001610184565b6102396102343660046118a5565b61061a565b005b6102396102493660046118e1565b610654565b6102396109cb565b61027d7f000000000000000000000000000000000000000000000000000000000000001281565b60405160ff9091168152602001610184565b610239610a31565b6102396102a53660046118e1565b610a67565b61021860035481565b6102396102c136600461191d565b610b3c565b6102396102d4366004611980565b610b70565b600c546101e19060ff1681565b6101b66102f43660046117a9565b610bc5565b6102186103073660046119bc565b60046020526000908152604090205481565b6000546101b6906001600160a01b031681565b610218600d5481565b610177610c00565b6101e161034b3660046119bc565b600b6020526000908152604090205460ff1681565b61023961036e366004611980565b610c0d565b6101e16103813660046117d9565b610c79565b6102396103943660046119d7565b610c8d565b6101776103a73660046117a9565b610d50565b610177611091565b6102186103c2366004611a71565b600560209081526000928352604080842090915290825290205481565b6102396103ed3660046118a5565b61109e565b6101e1610400366004611a71565b600760209081526000928352604080842090915290825290205460ff1681565b6101776110d4565b6102396104363660046119bc565b6110e1565b6001805461044890611aa4565b80601f016020809104026020016040519081016040528092919081815260200182805461047490611aa4565b80156104c15780601f10610496576101008083540402835291602001916104c1565b820191906000526020600020905b8154815290600101906020018083116104a457829003601f168201915b505050505081565b600060035482111580156104dd5750600082115b156105b4576000828152600860205260409020546001600160a01b031633811480159061052e57506001600160a01b038116600090815260076020908152604080832033845290915290205460ff16155b1561054b576040516282b42960e81b815260040160405180910390fd5b60008381526006602090815260409182902080546001600160a01b0319166001600160a01b038881169182179092559251868152908416917f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925910160405180910390a350610610565b3360008181526005602090815260408083206001600160a01b03881680855290835292819020869055518581529192917f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925910160405180910390a35b5060015b92915050565b6000546001600160a01b03163314610644576040516282b42960e81b815260040160405180910390fd5b600f6106508282611b2c565b5050565b600354811161095c576000818152600860205260409020546001600160a01b0384811691161461069757604051636edaef2f60e11b815260040160405180910390fd5b6001600160a01b0382166106be57604051634e46966960e11b815260040160405180910390fd5b336001600160a01b038416148015906106fb57506001600160a01b038316600090815260076020908152604080832033845290915290205460ff16155b801561071e57506000818152600660205260409020546001600160a01b03163314155b1561073b576040516282b42960e81b815260040160405180910390fd5b61074361117d565b6001600160a01b0384166000908152600460205260408120805490919061076b908490611c01565b90915550610779905061117d565b6001600160a01b03808416600081815260046020908152604080832080549096019095558582526008815284822080546001600160a01b0319908116909417905560068152848220805490931690925591861682526009905290812080546107e390600190611c01565b815481106107f3576107f3611c14565b60009182526020808320909101546001600160a01b0387168352600982526040808420868552600a9093529092205481549293508392811061083757610837611c14565b60009182526020808320909101929092556001600160a01b038616815260099091526040902080548061086c5761086c611c2a565b600082815260208082208301600019908101839055909201909255838252600a8152604080832054848452818420556001600160a01b0386168084526009835290832080546001818101835582865293852001869055925290546108d09190611c01565b6000838152600a602052604080822092909255905183916001600160a01b0380871692908816916000805160206120dc83398151915291a4826001600160a01b0316846001600160a01b03167fe59fdd36d0d223c0c7d996db7ad796880f45e1936cb0bb7ac102e7082e03148761094561117d565b60405190815260200160405180910390a350505050565b6001600160a01b038316600090815260056020908152604080832033845290915290205460001981146109b8576109938282611c01565b6001600160a01b03851660009081526005602090815260408083203384529091529020555b6109c38484846111af565b50505b505050565b6000546001600160a01b031633146109f5576040516282b42960e81b815260040160405180910390fd5b600080546001600160a01b031916815560405133907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908390a3565b6000546001600160a01b03163314610a5b576040516282b42960e81b815260040160405180910390fd5b600c805460ff19169055565b610a72838383610654565b6001600160a01b0382163b15801590610b1e5750604051630a85bd0160e11b8082523360048301526001600160a01b03858116602484015260448301849052608060648401526000608484015290919084169063150b7a029060a4016020604051808303816000875af1158015610aed573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610b119190611c40565b6001600160e01b03191614155b156109c657604051633da6393160e01b815260040160405180910390fd5b6000546001600160a01b03163314610b66576040516282b42960e81b815260040160405180910390fd5b61065082826113c2565b6000546001600160a01b03163314610b9a576040516282b42960e81b815260040160405180910390fd5b6001600160a01b03919091166000908152600b60205260409020805460ff1916911515919091179055565b6000818152600860205260409020546001600160a01b031680610bfb5760405163c5723b5160e01b815260040160405180910390fd5b919050565b6002805461044890611aa4565b3360008181526007602090815260408083206001600160a01b03871680855290835292819020805460ff191686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b6000610c863384846111af565b9392505050565b610c98858585610654565b6001600160a01b0384163b15801590610d325750604051630a85bd0160e11b808252906001600160a01b0386169063150b7a0290610ce29033908a90899089908990600401611c6a565b6020604051808303816000875af1158015610d01573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610d259190611c40565b6001600160e01b03191614155b156109c357604051633da6393160e01b815260040160405180910390fd5b60606000600e8054610d6190611aa4565b90501115610d9b57600e610d74836113db565b604051602001610d85929190611cbe565b6040516020818303038152906040529050919050565b600082604051602001610db091815260200190565b6040516020818303038152906040528051906020012060f81c905060608060648360ff1611610e1d5760405180604001604052806005815260200164312e706e6760d81b8152509150604051806040016040528060048152602001634d696e6960e01b8152509050610f62565b60a08360ff1611610e705760405180604001604052806005815260200164322e706e6760d81b81525091506040518060400160405280600881526020016714dd185b99185c9960c21b8152509050610f62565b60d28360ff1611610ec25760405180604001604052806005815260200164332e706e6760d81b8152509150604051806040016040528060078152602001665072656d69756d60c81b8152509050610f62565b60f08360ff1611610f135760405180604001604052806005815260200164342e706e6760d81b81525091506040518060400160405280600681526020016544656c75786560d01b8152509050610f62565b60ff8360ff1611610f625760405180604001604052806005815260200164352e706e6760d81b815250915060405180604001604052806008815260200167556c74696d61746560c01b81525090505b6000610f6d866113db565b604051602001610f7d9190611d45565b60408051601f1981840301815290829052610f9a91602001611d84565b604051602081830303815290604052600f84604051602001610fbd929190611cbe565b60408051601f1981840301815290829052610fdb9291602001611ee8565b6040516020818303038152906040529050600082604051602001610fff9190611f0e565b60408051601f1981840301815282820182526004835263227d5d7d60e01b6020848101919091529151909350611039918591859101611ee8565b60408051601f1981840301815290829052611058918390602001611ee8565b60408051601f198184030181529082905261107591602001611f6a565b6040516020818303038152906040529650505050505050919050565b600e805461044890611aa4565b6000546001600160a01b031633146110c8576040516282b42960e81b815260040160405180910390fd5b600e6106508282611b2c565b600f805461044890611aa4565b6000546001600160a01b0316331461110b576040516282b42960e81b815260040160405180910390fd5b6001600160a01b038116611132576040516349e27cff60e01b815260040160405180910390fd5b600080546001600160a01b0319166001600160a01b0383169081178255604051909133917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a350565b60006111aa7f0000000000000000000000000000000000000000000000000000000000000012600a612091565b905090565b6000806111ba61117d565b6001600160a01b038087166000818152600460205260408082208054948a16835290822054928252939450919290918691906111f68386611c01565b90915550506001600160a01b03808716600090815260046020908152604080832080548a019055928a168252600b9052205460ff16611292576001600160a01b0387166000908152600460205260408120546112539085906120a0565b61125d85856120a0565b6112679190611c01565b905060005b8181101561128f5761127d8961146d565b80611287816120c2565b91505061126c565b50505b6001600160a01b0386166000908152600b602052604090205460ff1661136857600c5460ff161561130357600d546001600160a01b0387166000908152600460205260409020546112e49085906120a0565b1115611303576040516324691f6b60e01b815260040160405180910390fd5b600061130f84836120a0565b6001600160a01b0388166000908152600460205260409020546113339086906120a0565b61133d9190611c01565b905060005b818110156113655761135388611583565b8061135d816120c2565b915050611342565b50505b856001600160a01b0316876001600160a01b03167fe59fdd36d0d223c0c7d996db7ad796880f45e1936cb0bb7ac102e7082e031487876040516113ad91815260200190565b60405180910390a35060019695505050505050565b60016113ce8382611b2c565b5060026109c68282611b2c565b606060006113e88361167c565b60010190506000816001600160401b0381111561140757611407611803565b6040519080825280601f01601f191660200182016040528015611431576020820181803683370190505b5090508181016020015b600019016f181899199a1a9b1b9c1cb0b131b232b360811b600a86061a8153600a850494508461143b57509392505050565b6001600160a01b03811661149457604051636edaef2f60e11b815260040160405180910390fd5b6001600160a01b038116600090815260096020526040812080546114ba90600190611c01565b815481106114ca576114ca611c14565b9060005260206000200154905060096000836001600160a01b03166001600160a01b0316815260200190815260200160002080548061150b5761150b611c2a565b600082815260208082208301600019908101839055909201909255828252600a815260408083208390556008825280832080546001600160a01b031990811690915560069092528083208054909216909155518291906001600160a01b038516906000805160206120dc833981519152908390a45050565b6001600160a01b0381166115aa57604051634e46966960e11b815260040160405180910390fd5b60038054600101908190556000818152600860205260409020546001600160a01b0316156115eb5760405163119b4fd360e11b815260040160405180910390fd5b600081815260086020908152604080832080546001600160a01b0319166001600160a01b0387169081179091558084526009835290832080546001818101835582865293852001859055925290546116439190611c01565b6000828152600a602052604080822092909255905182916001600160a01b038516916000805160206120dc833981519152908290a45050565b60008072184f03e93ff9f4daa797ed6e38ed64bf6a1f0160401b83106116bb5772184f03e93ff9f4daa797ed6e38ed64bf6a1f0160401b830492506040015b6904ee2d6d415b85acef8160201b83106116e5576904ee2d6d415b85acef8160201b830492506020015b662386f26fc10000831061170357662386f26fc10000830492506010015b6305f5e100831061171b576305f5e100830492506008015b612710831061172f57612710830492506004015b60648310611741576064830492506002015b600a83106106145760010192915050565b60005b8381101561176d578181015183820152602001611755565b50506000910152565b6020815260008251806020840152611795816040850160208701611752565b601f01601f19169190910160400192915050565b6000602082840312156117bb57600080fd5b5035919050565b80356001600160a01b0381168114610bfb57600080fd5b600080604083850312156117ec57600080fd5b6117f5836117c2565b946020939093013593505050565b634e487b7160e01b600052604160045260246000fd5b600082601f83011261182a57600080fd5b81356001600160401b038082111561184457611844611803565b604051601f8301601f19908116603f0116810190828211818310171561186c5761186c611803565b8160405283815286602085880101111561188557600080fd5b836020870160208301376000602085830101528094505050505092915050565b6000602082840312156118b757600080fd5b81356001600160401b038111156118cd57600080fd5b6118d984828501611819565b949350505050565b6000806000606084860312156118f657600080fd5b6118ff846117c2565b925061190d602085016117c2565b9150604084013590509250925092565b6000806040838503121561193057600080fd5b82356001600160401b038082111561194757600080fd5b61195386838701611819565b9350602085013591508082111561196957600080fd5b5061197685828601611819565b9150509250929050565b6000806040838503121561199357600080fd5b61199c836117c2565b9150602083013580151581146119b157600080fd5b809150509250929050565b6000602082840312156119ce57600080fd5b610c86826117c2565b6000806000806000608086880312156119ef57600080fd5b6119f8866117c2565b9450611a06602087016117c2565b93506040860135925060608601356001600160401b0380821115611a2957600080fd5b818801915088601f830112611a3d57600080fd5b813581811115611a4c57600080fd5b896020828501011115611a5e57600080fd5b9699959850939650602001949392505050565b60008060408385031215611a8457600080fd5b611a8d836117c2565b9150611a9b602084016117c2565b90509250929050565b600181811c90821680611ab857607f821691505b602082108103611ad857634e487b7160e01b600052602260045260246000fd5b50919050565b601f8211156109c657600081815260208120601f850160051c81016020861015611b055750805b601f850160051c820191505b81811015611b2457828155600101611b11565b505050505050565b81516001600160401b03811115611b4557611b45611803565b611b5981611b538454611aa4565b84611ade565b602080601f831160018114611b8e5760008415611b765750858301515b600019600386901b1c1916600185901b178555611b24565b600085815260208120601f198616915b82811015611bbd57888601518255948401946001909101908401611b9e565b5085821015611bdb5787850151600019600388901b60f8161c191681555b5050505050600190811b01905550565b634e487b7160e01b600052601160045260246000fd5b8181038181111561061457610614611beb565b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052603160045260246000fd5b600060208284031215611c5257600080fd5b81516001600160e01b031981168114610c8657600080fd5b6001600160a01b038681168252851660208201526040810184905260806060820181905281018290526000828460a0840137600060a0848401015260a0601f19601f85011683010190509695505050505050565b6000808454611ccc81611aa4565b60018281168015611ce45760018114611cf957611d28565b60ff1984168752821515830287019450611d28565b8860005260208060002060005b85811015611d1f5781548a820152908401908201611d06565b50505082870194505b505050508351611d3c818360208801611752565b01949350505050565b757b226e616d65223a20224b617272617420426f78202360501b81528151600090611d77816016850160208701611752565b9190910160160192915050565b60008251611d96818460208701611752565b7f222c226465736372697074696f6e223a22546865204b617272617420426f78209201918252507f66726f6d20414d47492053747564696f7320697320612074726561737572652d60208201527f66696c6c6564206c6f6f7420626f7820666f72204d792050657420486f6f6c6960408201527f67616e2c206f66666572696e67206578636c7573697665206974656d732c207260608201527f61726520636f6c6c65637469626c65732c20616e6420746865206368616e636560808201527f20746f20756e6c6f636b204b617272617420546f6b656e7320666f722073656360a08201527f7265742067616d65206d6f6465732e222c2265787465726e616c5f75726c223a60c08201527f2268747470733a2f2f7777772e6d79706574686f6f6c6967616e67616d652e6360e08201526d37b69791161134b6b0b3b2911d1160911b61010082015261010e01919050565b60008351611efa818460208801611752565b835190830190611d3c818360208801611752565b7f222c2261747472696275746573223a5b7b2274726169745f74797065223a225381526d34bd329116113b30b63ab2911d1160911b602082015260008251611f5d81602e850160208701611752565b91909101602e0192915050565b7a19185d184e985c1c1b1a58d85d1a5bdb8bda9cdbdb8edd5d198e0b602a1b815260008251611fa081601b850160208701611752565b91909101601b0192915050565b600181815b80851115611fe8578160001904821115611fce57611fce611beb565b80851615611fdb57918102915b93841c9390800290611fb2565b509250929050565b600082611fff57506001610614565b8161200c57506000610614565b8160018114612022576002811461202c57612048565b6001915050610614565b60ff84111561203d5761203d611beb565b50506001821b610614565b5060208310610133831016604e8410600b841016171561206b575081810a610614565b6120758383611fad565b806000190482111561208957612089611beb565b029392505050565b6000610c8660ff841683611ff0565b6000826120bd57634e487b7160e01b600052601260045260246000fd5b500490565b6000600182016120d4576120d4611beb565b506001019056feddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3efa264697066735822122058534eb2a46b258ad7ef4cc918a64e32d06440b842b915385aadec6f683a72e564736f6c63430008140033
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
00000000000000000000000089170a18898f5cd8ba57e36847cb5497b6ee1031
-----Decoded View---------------
Arg [0] : _owner (address): 0x89170A18898F5cD8ba57E36847cb5497B6Ee1031
-----Encoded View---------------
1 Constructor Arguments found :
Arg [0] : 00000000000000000000000089170a18898f5cd8ba57e36847cb5497b6ee1031
Loading...
Loading
Loading...
Loading
Multichain Portfolio | 26 Chains
Chain | Token | Portfolio % | Price | Amount | Value |
---|
Loading...
Loading
[ Download: CSV Export ]
A contract address hosts a smart contract, which is a set of code stored on the blockchain that runs when predetermined conditions are met. Learn more about addresses in our Knowledge Base.