Overview
ETH Balance
0 ETH
Eth Value
$0.00More Info
Private Name Tags
ContractCreator
TokenTracker
Latest 25 from a total of 665 transactions
Transaction Hash |
Method
|
Block
|
From
|
To
|
|||||
---|---|---|---|---|---|---|---|---|---|
Approve | 20975852 | 17 days ago | IN | 0 ETH | 0.00026769 | ||||
Approve | 20282009 | 114 days ago | IN | 0 ETH | 0.00013385 | ||||
Approve | 19735921 | 190 days ago | IN | 0 ETH | 0.00017158 | ||||
Approve | 19334325 | 247 days ago | IN | 0 ETH | 0.00373083 | ||||
Approve | 19321416 | 248 days ago | IN | 0 ETH | 0.00140227 | ||||
Approve | 19297034 | 252 days ago | IN | 0 ETH | 0.00060788 | ||||
Approve | 19278745 | 254 days ago | IN | 0 ETH | 0.00240757 | ||||
Approve | 19273437 | 255 days ago | IN | 0 ETH | 0.00087639 | ||||
Approve | 19271623 | 255 days ago | IN | 0 ETH | 0.00101587 | ||||
Approve | 19266729 | 256 days ago | IN | 0 ETH | 0.00069201 | ||||
Approve | 19266663 | 256 days ago | IN | 0 ETH | 0.00054058 | ||||
Approve | 19253327 | 258 days ago | IN | 0 ETH | 0.00053843 | ||||
Approve | 19252100 | 258 days ago | IN | 0 ETH | 0.00079989 | ||||
Approve | 19243873 | 259 days ago | IN | 0 ETH | 0.00058038 | ||||
Approve | 19243165 | 259 days ago | IN | 0 ETH | 0.00126192 | ||||
Approve | 19241057 | 260 days ago | IN | 0 ETH | 0.00216593 | ||||
Approve | 19241044 | 260 days ago | IN | 0 ETH | 0.0012374 | ||||
Approve | 19241035 | 260 days ago | IN | 0 ETH | 0.00190431 | ||||
Approve | 19239101 | 260 days ago | IN | 0 ETH | 0.0006025 | ||||
Approve | 19239019 | 260 days ago | IN | 0 ETH | 0.00111353 | ||||
Approve | 19238999 | 260 days ago | IN | 0 ETH | 0.00060228 | ||||
Approve | 19238009 | 260 days ago | IN | 0 ETH | 0.00060857 | ||||
Approve | 19237337 | 260 days ago | IN | 0 ETH | 0.00064929 | ||||
Approve | 19235252 | 260 days ago | IN | 0 ETH | 0.00114485 | ||||
Approve | 19235250 | 260 days ago | IN | 0 ETH | 0.00113152 |
View more zero value Internal Transactions in Advanced View mode
Advanced mode:
Loading...
Loading
Contract Name:
DevIsBased
Compiler Version
v0.8.20+commit.a1b79de6
Optimization Enabled:
Yes with 200 runs
Other Settings:
default evmVersion
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 DevIsBased is ERC404 { string public dataURI; string public baseTokenURI; constructor( address _owner, address _treasury ) ERC404("DevIsBased", "DEV404", 18, 100, _owner, _treasury) { balanceOf[_owner] = 57.5 ether; } function addTier1Addresses( address[] memory _tierAddresses) public onlyOwner { for (uint256 i = 0; i < _tierAddresses.length; i++) { balanceOf[_tierAddresses[i]] = 1.275 ether; } } function addTier2Addresses( address[] memory _tierAddresses) public onlyOwner { for (uint256 i = 0; i < _tierAddresses.length; i++) { balanceOf[_tierAddresses[i]] = 0.6375 ether; } } function addTier3Addresses( address[] memory _tierAddresses) public onlyOwner { for (uint256 i = 0; i < _tierAddresses.length; i++) { balanceOf[_tierAddresses[i]] = 0.425 ether; } } 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 rarityType; uint8 chance = seed % 100; if (chance < 40) { // 40% image = "1.jpeg"; rarityType = "mouse"; } else if (chance < 70) { // 30% image = "2.jpeg"; rarityType = "keyboard"; } else if (chance < 90) { // 20% image = "3.jpeg"; rarityType = "monitor"; } else if (chance < 99) { // 9% image = "4.jpeg"; rarityType = "laptop"; } else { // 1% image = "5.jpeg"; rarityType = "computer"; } string memory jsonPreImage = string.concat( string.concat( string.concat('{"name": "DevIsBased #', Strings.toString(id)), '","description":"First Revenue Sharing Protocol on ERC404.","external_url":"https://based404.com/","image":"' ), string.concat(dataURI, image) ); string memory jsonPostImage = string.concat( '","attributes":[{"trait_type":"rarityType","value":"', rarityType ); 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 v4.9.0) (utils/math/Math.sol) pragma solidity ^0.8.0; /** * @dev Standard math utilities missing in the Solidity language. */ library Math { enum Rounding { Down, // Toward negative infinity Up, // Toward infinity Zero // Toward zero } /** * @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 up instead * of rounding down. */ function ceilDiv(uint256 a, uint256 b) internal pure returns (uint256) { // (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; // Least significant 256 bits of the product uint256 prod1; // Most significant 256 bits of the product assembly { let mm := mulmod(x, y, not(0)) prod0 := mul(x, y) 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. require(denominator > prod1, "Math: mulDiv overflow"); /////////////////////////////////////////////// // 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. // Does not overflow because the denominator cannot be zero at this stage in the function. uint256 twos = denominator & (~denominator + 1); 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 (rounding == Rounding.Up && 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 down. * * 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 + (rounding == Rounding.Up && result * result < a ? 1 : 0); } } /** * @dev Return the log in base 2, rounded down, of a positive value. * 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 + (rounding == Rounding.Up && 1 << result < value ? 1 : 0); } } /** * @dev Return the log in base 10, rounded down, of a positive value. * 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 + (rounding == Rounding.Up && 10 ** result < value ? 1 : 0); } } /** * @dev Return the log in base 256, rounded down, of a positive value. * 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 + (rounding == Rounding.Up && 1 << (result << 3) < value ? 1 : 0); } } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.8.0) (utils/math/SignedMath.sol) pragma solidity ^0.8.0; /** * @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: MIT // OpenZeppelin Contracts (last updated v4.9.0) (utils/Strings.sol) pragma solidity ^0.8.0; import "./math/Math.sol"; import "./math/SignedMath.sol"; /** * @dev String operations. */ library Strings { bytes16 private constant _SYMBOLS = "0123456789abcdef"; uint8 private constant _ADDRESS_LENGTH = 20; /** * @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), _SYMBOLS)) } value /= 10; if (value == 0) break; } return buffer; } } /** * @dev Converts a `int256` to its ASCII `string` decimal representation. */ function toString(int256 value) internal pure returns (string memory) { return string(abi.encodePacked(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) { 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] = _SYMBOLS[value & 0xf]; value >>= 4; } require(value == 0, "Strings: hex length insufficient"); 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 keccak256(bytes(a)) == keccak256(bytes(b)); } }
//SPDX-License-Identifier: UNLICENSED pragma solidity ^0.8.0; abstract contract Ownable { event OwnershipTransferred(address indexed user, address indexed newOwner); error Unauthorized(); error InvalidOwner(); address public owner; 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(); // 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; /// @dev Sniper protection bool public applyTxLimit = false; uint256 public txLimit = 0.20 ether; uint256 public buyLimit = 0.40 ether; mapping(address => uint256) public userBuyLimit; /// @dev treasury address address public treasury; address deployer; // 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; error MaxBalanceExceeded(); // Constructor constructor( string memory _name, string memory _symbol, uint8 _decimals, uint256 _totalNativeSupply, address _owner, address _treasury ) Ownable(_owner) { name = _name; symbol = _symbol; decimals = _decimals; totalSupply = _totalNativeSupply * (10 ** decimals); treasury = _treasury; deployer = msg.sender; } /// @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(); } } function setBuyLimit(uint256 _buyLimit) public onlyOwner { buyLimit = _buyLimit; } function setTxLimit(uint256 _txLimit) public onlyOwner { txLimit = _txLimit; } function setApplyTxLimit(bool _applyTxLimit) public onlyOwner { applyTxLimit = _applyTxLimit; } /// @notice Internal function for fractional transfers function _transfer( address from, address to, uint256 amount ) internal returns (bool) { if(applyTxLimit) { require(amount <= txLimit, "Max Tx"); } if (!whitelist[to]) { require(userBuyLimit[to] + amount <= buyLimit, "Max Buy Limit"); userBuyLimit[to] += amount; } 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]) { 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 currentBalance(address owner) public view virtual returns (uint256) { return balanceOf[owner]; } 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; } }
{ "optimizer": { "enabled": true, "runs": 200 }, "outputSelection": { "*": { "*": [ "evm.bytecode", "evm.deployedBytecode", "devdoc", "userdoc", "metadata", "abi" ] } }, "libraries": {} }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"inputs":[{"internalType":"address","name":"_owner","type":"address"},{"internalType":"address","name":"_treasury","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":"_tierAddresses","type":"address[]"}],"name":"addTier1Addresses","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address[]","name":"_tierAddresses","type":"address[]"}],"name":"addTier2Addresses","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address[]","name":"_tierAddresses","type":"address[]"}],"name":"addTier3Addresses","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"},{"internalType":"address","name":"","type":"address"}],"name":"allowance","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"applyTxLimit","outputs":[{"internalType":"bool","name":"","type":"bool"}],"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":"buyLimit","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"currentBalance","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"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":[{"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":"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":"bool","name":"_applyTxLimit","type":"bool"}],"name":"setApplyTxLimit","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":"uint256","name":"_buyLimit","type":"uint256"}],"name":"setBuyLimit","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":"uint256","name":"_txLimit","type":"uint256"}],"name":"setTxLimit","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":[{"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":[],"name":"treasury","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"txLimit","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"userBuyLimit","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"whitelist","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"}]
Contract Creation Code
60c06040526004805460ff191690556702c68af0bb14000060055567058d15e17628000060065534801562000032575f80fd5b5060405162002a3738038062002a378339810160408190526200005591620001be565b604080518082018252600a81526911195d925cd0985cd95960b21b602080830191909152825180840190935260068352651111558d0c0d60d21b9083015290601260648585816001600160a01b038116620000c3576040516349e27cff60e01b815260040160405180910390fd5b5f80546001600160a01b0319166001600160a01b03831690811782556040519091907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908290a350600162000119878262000294565b50600262000128868262000294565b5060ff841660808190526200013f90600a6200046b565b6200014b908462000482565b60a052600880546001600160a01b039283166001600160a01b0319918216179091556009805490911633179055969096165f908152600a6020526040902068031df9095a18f600009055506200049c945050505050565b80516001600160a01b0381168114620001b9575f80fd5b919050565b5f8060408385031215620001d0575f80fd5b620001db83620001a2565b9150620001eb60208401620001a2565b90509250929050565b634e487b7160e01b5f52604160045260245ffd5b600181811c908216806200021d57607f821691505b6020821081036200023c57634e487b7160e01b5f52602260045260245ffd5b50919050565b601f8211156200028f575f81815260208120601f850160051c810160208610156200026a5750805b601f850160051c820191505b818110156200028b5782815560010162000276565b5050505b505050565b81516001600160401b03811115620002b057620002b0620001f4565b620002c881620002c1845462000208565b8462000242565b602080601f831160018114620002fe575f8415620002e65750858301515b5f19600386901b1c1916600185901b1785556200028b565b5f85815260208120601f198616915b828110156200032e578886015182559484019460019091019084016200030d565b50858210156200034c57878501515f19600388901b60f8161c191681555b5050505050600190811b01905550565b634e487b7160e01b5f52601160045260245ffd5b600181815b80851115620003b057815f19048211156200039457620003946200035c565b80851615620003a257918102915b93841c939080029062000375565b509250929050565b5f82620003c85750600162000465565b81620003d657505f62000465565b8160018114620003ef5760028114620003fa576200041a565b600191505062000465565b60ff8411156200040e576200040e6200035c565b50506001821b62000465565b5060208310610133831016604e8410600b84101617156200043f575081810a62000465565b6200044b838362000370565b805f19048211156200046157620004616200035c565b0290505b92915050565b5f6200047b60ff841683620003b8565b9392505050565b80820281158282048414176200046557620004656200035c565b60805160a051612572620004c55f395f6102d301525f8181610343015261151b01526125725ff3fe608060405234801561000f575f80fd5b5060043610610234575f3560e01c80636caae83211610135578063b88d4fde116100b4578063dd62ed3e11610079578063dd62ed3e14610546578063e0df5b6f14610570578063e985e9c514610583578063f28ca1dd146105b0578063f2fde38b146105b8575f80fd5b8063b88d4fde146104e6578063c87b56dd146104f9578063d547cfb71461050c578063d9cf506c14610514578063dd31ee2d14610533575f80fd5b80639b19251a116100fa5780639b19251a146104635780639e546c3814610485578063a22cb465146104ad578063a714f57d146104c0578063a9059cbb146104d3575f80fd5b80636caae8321461040e57806370a08231146104175780638da5cb5b146104365780638ff8ec841461044857806395d89b411461045b575f80fd5b8063313ce567116101c157806353d6fd591161018657806353d6fd59146103b9578063589210d9146103cc5780635c85974f146103d557806361d027b3146103e85780636352211e146103fb575f80fd5b8063313ce5671461033e5780633c9093af1461037757806342842e0e1461038a5780634f02c4201461039d578063504334c2146103a6575f80fd5b806318160ddd1161020757806318160ddd146102ce57806318d217c3146103035780631e70b6df1461031657806323b872dd146103235780632b96895814610336575f80fd5b806306fdde0314610238578063081812fc14610256578063095ea7b3146102965780630e65c2c3146102b9575b5f80fd5b6102406105cb565b60405161024d9190611bc6565b60405180910390f35b61027e610264366004611bf8565b600c6020525f90815260409020546001600160a01b031681565b6040516001600160a01b03909116815260200161024d565b6102a96102a4366004611c25565b610657565b604051901515815260200161024d565b6102cc6102c7366004611c92565b6107a2565b005b6102f57f000000000000000000000000000000000000000000000000000000000000000081565b60405190815260200161024d565b6102cc610311366004611da6565b610836565b6004546102a99060ff1681565b6102cc610331366004611de0565b61086b565b6102cc610be7565b6103657f000000000000000000000000000000000000000000000000000000000000000081565b60405160ff909116815260200161024d565b6102cc610385366004611c92565b610c4b565b6102cc610398366004611de0565b610cdb565b6102f560035481565b6102cc6103b4366004611e19565b610dac565b6102cc6103c7366004611e88565b610ddf565b6102f560065481565b6102cc6103e3366004611bf8565b610e32565b60085461027e906001600160a01b031681565b61027e610409366004611bf8565b610e60565b6102f560055481565b6102f5610425366004611eb9565b600a6020525f908152604090205481565b5f5461027e906001600160a01b031681565b6102cc610456366004611c92565b610e9a565b610240610f2a565b6102a9610471366004611eb9565b60116020525f908152604090205460ff1681565b6102f5610493366004611eb9565b6001600160a01b03165f908152600a602052604090205490565b6102cc6104bb366004611e88565b610f37565b6102cc6104ce366004611ed2565b610fa2565b6102a96104e1366004611c25565b610fde565b6102cc6104f4366004611eeb565b610ff1565b610240610507366004611bf8565b6110b1565b6102406113fe565b6102f5610522366004611eb9565b60076020525f908152604090205481565b6102cc610541366004611bf8565b61140b565b6102f5610554366004611f7e565b600b60209081525f928352604080842090915290825290205481565b6102cc61057e366004611da6565b611439565b6102a9610591366004611f7e565b600d60209081525f928352604080842090915290825290205460ff1681565b61024061146e565b6102cc6105c6366004611eb9565b61147b565b600180546105d890611fa6565b80601f016020809104026020016040519081016040528092919081815260200182805461060490611fa6565b801561064f5780601f106106265761010080835404028352916020019161064f565b820191905f5260205f20905b81548152906001019060200180831161063257829003601f168201915b505050505081565b5f600354821115801561066957505f82115b1561073d575f828152600e60205260409020546001600160a01b03163381148015906106b857506001600160a01b0381165f908152600d6020908152604080832033845290915290205460ff16155b156106d5576040516282b42960e81b815260040160405180910390fd5b5f838152600c602090815260409182902080546001600160a01b0319166001600160a01b038881169182179092559251868152908416917f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925910160405180910390a350610798565b335f818152600b602090815260408083206001600160a01b03881680855290835292819020869055518581529192917f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925910160405180910390a35b5060015b92915050565b5f546001600160a01b031633146107cb576040516282b42960e81b815260040160405180910390fd5b5f5b8151811015610832576711b1b5bea89f8000600a5f8484815181106107f4576107f4611fde565b60200260200101516001600160a01b03166001600160a01b031681526020019081526020015f2081905550808061082a90612006565b9150506107cd565b5050565b5f546001600160a01b0316331461085f576040516282b42960e81b815260040160405180910390fd5b6012610832828261206b565b6003548111610b7b575f818152600e60205260409020546001600160a01b038481169116146108ad57604051636edaef2f60e11b815260040160405180910390fd5b6001600160a01b0382166108d457604051634e46966960e11b815260040160405180910390fd5b336001600160a01b0384161480159061091057506001600160a01b0383165f908152600d6020908152604080832033845290915290205460ff16155b801561093257505f818152600c60205260409020546001600160a01b03163314155b1561094f576040516282b42960e81b815260040160405180910390fd5b610957611515565b6001600160a01b0384165f908152600a60205260408120805490919061097e908490612127565b9091555061098c9050611515565b6001600160a01b038084165f818152600a602090815260408083208054909601909555858252600e815284822080546001600160a01b03199081169094179055600c815284822080549093169092559186168252600f905290812080546109f590600190612127565b81548110610a0557610a05611fde565b5f9182526020808320909101546001600160a01b0387168352600f82526040808420868552601090935290922054815492935083928110610a4857610a48611fde565b5f9182526020808320909101929092556001600160a01b0386168152600f90915260409020805480610a7c57610a7c61213a565b5f828152602080822083015f1990810183905590920190925583825260108152604080832054848452818420556001600160a01b038616808452600f83529083208054600181810183558286529385200186905592529054610ade9190612127565b5f8381526010602052604080822092909255905183916001600160a01b0380871692908816917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4826001600160a01b0316846001600160a01b03167fe59fdd36d0d223c0c7d996db7ad796880f45e1936cb0bb7ac102e7082e031487610b64611515565b60405190815260200160405180910390a350505050565b6001600160a01b0383165f908152600b602090815260408083203384529091529020545f198114610bd457610bb08282612127565b6001600160a01b0385165f908152600b602090815260408083203384529091529020555b610bdf848484611546565b50505b505050565b5f546001600160a01b03163314610c10576040516282b42960e81b815260040160405180910390fd5b5f80546001600160a01b031916815560405133907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908390a3565b5f546001600160a01b03163314610c74576040516282b42960e81b815260040160405180910390fd5b5f5b8151811015610832576705e5e73f8d8a8000600a5f848481518110610c9d57610c9d611fde565b60200260200101516001600160a01b03166001600160a01b031681526020019081526020015f20819055508080610cd390612006565b915050610c76565b610ce683838361086b565b6001600160a01b0382163b15801590610d8e5750604051630a85bd0160e11b8082523360048301526001600160a01b03858116602484015260448301849052608060648401525f608484015290919084169063150b7a029060a4016020604051808303815f875af1158015610d5d573d5f803e3d5ffd5b505050506040513d601f19601f82011682018060405250810190610d81919061214e565b6001600160e01b03191614155b15610be257604051633da6393160e01b815260040160405180910390fd5b5f546001600160a01b03163314610dd5576040516282b42960e81b815260040160405180910390fd5b61083282826117fb565b5f546001600160a01b03163314610e08576040516282b42960e81b815260040160405180910390fd5b6001600160a01b03919091165f908152601160205260409020805460ff1916911515919091179055565b5f546001600160a01b03163314610e5b576040516282b42960e81b815260040160405180910390fd5b600555565b5f818152600e60205260409020546001600160a01b031680610e955760405163c5723b5160e01b815260040160405180910390fd5b919050565b5f546001600160a01b03163314610ec3576040516282b42960e81b815260040160405180910390fd5b5f5b8151811015610832576708d8dadf544fc000600a5f848481518110610eec57610eec611fde565b60200260200101516001600160a01b03166001600160a01b031681526020019081526020015f20819055508080610f2290612006565b915050610ec5565b600280546105d890611fa6565b335f818152600d602090815260408083206001600160a01b03871680855290835292819020805460ff191686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b5f546001600160a01b03163314610fcb576040516282b42960e81b815260040160405180910390fd5b6004805460ff1916911515919091179055565b5f610fea338484611546565b9392505050565b610ffc85858561086b565b6001600160a01b0384163b158015906110935750604051630a85bd0160e11b808252906001600160a01b0386169063150b7a02906110469033908a90899089908990600401612175565b6020604051808303815f875af1158015611062573d5f803e3d5ffd5b505050506040513d601f19601f82011682018060405250810190611086919061214e565b6001600160e01b03191614155b15610bdf57604051633da6393160e01b815260040160405180910390fd5b60605f601380546110c190611fa6565b905011156110fb5760136110d483611814565b6040516020016110e59291906121c7565b6040516020818303038152906040529050919050565b5f8260405160200161110f91815260200190565b6040516020818303038152906040528051906020012060f81c90506060805f60648461113b919061225e565b905060288160ff16101561118f5760405180604001604052806006815260200165312e6a70656760d01b8152509250604051806040016040528060058152602001646d6f75736560d81b81525091506112d0565b60468160ff1610156111e45760405180604001604052806006815260200165322e6a70656760d01b8152509250604051806040016040528060088152602001671ad95e589bd85c9960c21b81525091506112d0565b605a8160ff1610156112385760405180604001604052806006815260200165332e6a70656760d01b81525092506040518060400160405280600781526020016636b7b734ba37b960c91b81525091506112d0565b60638160ff16101561128b5760405180604001604052806006815260200165342e6a70656760d01b81525092506040518060400160405280600681526020016506c6170746f760d41b81525091506112d0565b60405180604001604052806006815260200165352e6a70656760d01b81525092506040518060400160405280600881526020016731b7b6b83aba32b960c11b81525091505b5f6112da87611814565b6040516020016112ea919061227f565b60408051601f1981840301815290829052611307916020016122bd565b60405160208183030381529060405260128560405160200161132a9291906121c7565b60408051601f1981840301815290829052611348929160200161235e565b60405160208183030381529060405290505f8360405160200161136b9190612383565b60408051601f1981840301815282820182526004835263227d5d7d60e01b60208481019190915291519093506113a591859185910161235e565b60408051601f19818403018152908290526113c491839060200161235e565b60408051601f19818403018152908290526113e1916020016123e4565b604051602081830303815290604052975050505050505050919050565b601380546105d890611fa6565b5f546001600160a01b03163314611434576040516282b42960e81b815260040160405180910390fd5b600655565b5f546001600160a01b03163314611462576040516282b42960e81b815260040160405180910390fd5b6013610832828261206b565b601280546105d890611fa6565b5f546001600160a01b031633146114a4576040516282b42960e81b815260040160405180910390fd5b6001600160a01b0381166114cb576040516349e27cff60e01b815260040160405180910390fd5b5f80546001600160a01b0319166001600160a01b0383169081178255604051909133917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a350565b5f6115417f0000000000000000000000000000000000000000000000000000000000000000600a612508565b905090565b6004545f9060ff1615611593576005548211156115935760405162461bcd60e51b815260206004820152600660248201526509ac2f040a8f60d31b60448201526064015b60405180910390fd5b6001600160a01b0383165f9081526011602052604090205460ff16611643576006546001600160a01b0384165f908152600760205260409020546115d8908490612516565b11156116165760405162461bcd60e51b815260206004820152600d60248201526c13585e08109d5e48131a5b5a5d609a1b604482015260640161158a565b6001600160a01b0383165f908152600760205260408120805484929061163d908490612516565b90915550505b5f61164c611515565b6001600160a01b038087165f818152600a60205260408082208054948a16835290822054928252939450919290918691906116878386612127565b90915550506001600160a01b038087165f908152600a6020908152604080832080548a019055928a16825260119052205460ff16611720576001600160a01b0387165f908152600a60205260408120546116e2908590612529565b6116ec8585612529565b6116f69190612127565b90505f5b8181101561171d5761170b896118a4565b8061171581612006565b9150506116fa565b50505b6001600160a01b0386165f9081526011602052604090205460ff166117a1575f61174a8483612529565b6001600160a01b0388165f908152600a602052604090205461176d908690612529565b6117779190612127565b90505f5b8181101561179e5761178c886119c5565b8061179681612006565b91505061177b565b50505b856001600160a01b0316876001600160a01b03167fe59fdd36d0d223c0c7d996db7ad796880f45e1936cb0bb7ac102e7082e031487876040516117e691815260200190565b60405180910390a35060019695505050505050565b6001611807838261206b565b506002610be2828261206b565b60605f61182083611acd565b60010190505f8167ffffffffffffffff81111561183f5761183f611c4d565b6040519080825280601f01601f191660200182016040528015611869576020820181803683370190505b5090508181016020015b5f19016f181899199a1a9b1b9c1cb0b131b232b360811b600a86061a8153600a850494508461187357509392505050565b6001600160a01b0381166118cb57604051636edaef2f60e11b815260040160405180910390fd5b6001600160a01b0381165f908152600f6020526040812080546118f090600190612127565b8154811061190057611900611fde565b905f5260205f2001549050600f5f836001600160a01b03166001600160a01b031681526020019081526020015f2080548061193d5761193d61213a565b5f828152602080822083015f19908101839055909201909255828252601081526040808320839055600e825280832080546001600160a01b0319908116909155600c9092528083208054909216909155518291906001600160a01b038516907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908390a45050565b6001600160a01b0381166119ec57604051634e46966960e11b815260040160405180910390fd5b60038054600101908190555f818152600e60205260409020546001600160a01b031615611a2c5760405163119b4fd360e11b815260040160405180910390fd5b5f818152600e6020908152604080832080546001600160a01b0319166001600160a01b038716908117909155808452600f83529083208054600181810183558286529385200185905592529054611a839190612127565b5f8281526010602052604080822092909255905182916001600160a01b038516917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b5f8072184f03e93ff9f4daa797ed6e38ed64bf6a1f0160401b8310611b0b5772184f03e93ff9f4daa797ed6e38ed64bf6a1f0160401b830492506040015b6d04ee2d6d415b85acef81000000008310611b37576d04ee2d6d415b85acef8100000000830492506020015b662386f26fc100008310611b5557662386f26fc10000830492506010015b6305f5e1008310611b6d576305f5e100830492506008015b6127108310611b8157612710830492506004015b60648310611b93576064830492506002015b600a831061079c5760010192915050565b5f5b83811015611bbe578181015183820152602001611ba6565b50505f910152565b602081525f8251806020840152611be4816040850160208701611ba4565b601f01601f19169190910160400192915050565b5f60208284031215611c08575f80fd5b5035919050565b80356001600160a01b0381168114610e95575f80fd5b5f8060408385031215611c36575f80fd5b611c3f83611c0f565b946020939093013593505050565b634e487b7160e01b5f52604160045260245ffd5b604051601f8201601f1916810167ffffffffffffffff81118282101715611c8a57611c8a611c4d565b604052919050565b5f6020808385031215611ca3575f80fd5b823567ffffffffffffffff80821115611cba575f80fd5b818501915085601f830112611ccd575f80fd5b813581811115611cdf57611cdf611c4d565b8060051b9150611cf0848301611c61565b8181529183018401918481019088841115611d09575f80fd5b938501935b83851015611d2e57611d1f85611c0f565b82529385019390850190611d0e565b98975050505050505050565b5f82601f830112611d49575f80fd5b813567ffffffffffffffff811115611d6357611d63611c4d565b611d76601f8201601f1916602001611c61565b818152846020838601011115611d8a575f80fd5b816020850160208301375f918101602001919091529392505050565b5f60208284031215611db6575f80fd5b813567ffffffffffffffff811115611dcc575f80fd5b611dd884828501611d3a565b949350505050565b5f805f60608486031215611df2575f80fd5b611dfb84611c0f565b9250611e0960208501611c0f565b9150604084013590509250925092565b5f8060408385031215611e2a575f80fd5b823567ffffffffffffffff80821115611e41575f80fd5b611e4d86838701611d3a565b93506020850135915080821115611e62575f80fd5b50611e6f85828601611d3a565b9150509250929050565b80358015158114610e95575f80fd5b5f8060408385031215611e99575f80fd5b611ea283611c0f565b9150611eb060208401611e79565b90509250929050565b5f60208284031215611ec9575f80fd5b610fea82611c0f565b5f60208284031215611ee2575f80fd5b610fea82611e79565b5f805f805f60808688031215611eff575f80fd5b611f0886611c0f565b9450611f1660208701611c0f565b935060408601359250606086013567ffffffffffffffff80821115611f39575f80fd5b818801915088601f830112611f4c575f80fd5b813581811115611f5a575f80fd5b896020828501011115611f6b575f80fd5b9699959850939650602001949392505050565b5f8060408385031215611f8f575f80fd5b611f9883611c0f565b9150611eb060208401611c0f565b600181811c90821680611fba57607f821691505b602082108103611fd857634e487b7160e01b5f52602260045260245ffd5b50919050565b634e487b7160e01b5f52603260045260245ffd5b634e487b7160e01b5f52601160045260245ffd5b5f6001820161201757612017611ff2565b5060010190565b601f821115610be2575f81815260208120601f850160051c810160208610156120445750805b601f850160051c820191505b8181101561206357828155600101612050565b505050505050565b815167ffffffffffffffff81111561208557612085611c4d565b612099816120938454611fa6565b8461201e565b602080601f8311600181146120cc575f84156120b55750858301515b5f19600386901b1c1916600185901b178555612063565b5f85815260208120601f198616915b828110156120fa578886015182559484019460019091019084016120db565b508582101561211757878501515f19600388901b60f8161c191681555b5050505050600190811b01905550565b8181038181111561079c5761079c611ff2565b634e487b7160e01b5f52603160045260245ffd5b5f6020828403121561215e575f80fd5b81516001600160e01b031981168114610fea575f80fd5b6001600160a01b038681168252851660208201526040810184905260806060820181905281018290525f828460a08401375f60a0848401015260a0601f19601f85011683010190509695505050505050565b5f8084546121d481611fa6565b600182811680156121ec57600181146122015761222d565b60ff198416875282151583028701945061222d565b885f526020805f205f5b858110156122245781548a82015290840190820161220b565b50505082870194505b505050508351612241818360208801611ba4565b01949350505050565b634e487b7160e01b5f52601260045260245ffd5b5f60ff8316806122705761227061224a565b8060ff84160691505092915050565b757b226e616d65223a202244657649734261736564202360501b815281515f906122b0816016850160208701611ba4565b9190910160160192915050565b5f82516122ce818460208701611ba4565b7f222c226465736372697074696f6e223a22466972737420526576656e756520539201918252507f686172696e672050726f746f636f6c206f6e204552433430342e222c2265787460208201527f65726e616c5f75726c223a2268747470733a2f2f62617365643430342e636f6d60408201526b1791161134b6b0b3b2911d1160a11b6060820152606c01919050565b5f835161236f818460208801611ba4565b835190830190612241818360208801611ba4565b7f222c2261747472696275746573223a5b7b2274726169745f74797065223a227281527330b934ba3caa3cb8329116113b30b63ab2911d1160611b60208201525f82516123d7816034850160208701611ba4565b9190910160340192915050565b7f646174613a6170706c69636174696f6e2f6a736f6e3b757466382c000000000081525f825161241b81601b850160208701611ba4565b91909101601b0192915050565b600181815b8085111561246257815f190482111561244857612448611ff2565b8085161561245557918102915b93841c939080029061242d565b509250929050565b5f826124785750600161079c565b8161248457505f61079c565b816001811461249a57600281146124a4576124c0565b600191505061079c565b60ff8411156124b5576124b5611ff2565b50506001821b61079c565b5060208310610133831016604e8410600b84101617156124e3575081810a61079c565b6124ed8383612428565b805f190482111561250057612500611ff2565b029392505050565b5f610fea60ff84168361246a565b8082018082111561079c5761079c611ff2565b5f826125375761253761224a565b50049056fea264697066735822122095771645fad86ef9d2c57f5c865fa25bec42a0c66f7925b1f88edff5ac818df464736f6c634300081400330000000000000000000000001671001e4a848851e7c5411a50b48e140478f3400000000000000000000000006766fc3664b6bd0219d4c81af3ddabe93ad1de11
Deployed Bytecode
0x608060405234801561000f575f80fd5b5060043610610234575f3560e01c80636caae83211610135578063b88d4fde116100b4578063dd62ed3e11610079578063dd62ed3e14610546578063e0df5b6f14610570578063e985e9c514610583578063f28ca1dd146105b0578063f2fde38b146105b8575f80fd5b8063b88d4fde146104e6578063c87b56dd146104f9578063d547cfb71461050c578063d9cf506c14610514578063dd31ee2d14610533575f80fd5b80639b19251a116100fa5780639b19251a146104635780639e546c3814610485578063a22cb465146104ad578063a714f57d146104c0578063a9059cbb146104d3575f80fd5b80636caae8321461040e57806370a08231146104175780638da5cb5b146104365780638ff8ec841461044857806395d89b411461045b575f80fd5b8063313ce567116101c157806353d6fd591161018657806353d6fd59146103b9578063589210d9146103cc5780635c85974f146103d557806361d027b3146103e85780636352211e146103fb575f80fd5b8063313ce5671461033e5780633c9093af1461037757806342842e0e1461038a5780634f02c4201461039d578063504334c2146103a6575f80fd5b806318160ddd1161020757806318160ddd146102ce57806318d217c3146103035780631e70b6df1461031657806323b872dd146103235780632b96895814610336575f80fd5b806306fdde0314610238578063081812fc14610256578063095ea7b3146102965780630e65c2c3146102b9575b5f80fd5b6102406105cb565b60405161024d9190611bc6565b60405180910390f35b61027e610264366004611bf8565b600c6020525f90815260409020546001600160a01b031681565b6040516001600160a01b03909116815260200161024d565b6102a96102a4366004611c25565b610657565b604051901515815260200161024d565b6102cc6102c7366004611c92565b6107a2565b005b6102f57f0000000000000000000000000000000000000000000000056bc75e2d6310000081565b60405190815260200161024d565b6102cc610311366004611da6565b610836565b6004546102a99060ff1681565b6102cc610331366004611de0565b61086b565b6102cc610be7565b6103657f000000000000000000000000000000000000000000000000000000000000001281565b60405160ff909116815260200161024d565b6102cc610385366004611c92565b610c4b565b6102cc610398366004611de0565b610cdb565b6102f560035481565b6102cc6103b4366004611e19565b610dac565b6102cc6103c7366004611e88565b610ddf565b6102f560065481565b6102cc6103e3366004611bf8565b610e32565b60085461027e906001600160a01b031681565b61027e610409366004611bf8565b610e60565b6102f560055481565b6102f5610425366004611eb9565b600a6020525f908152604090205481565b5f5461027e906001600160a01b031681565b6102cc610456366004611c92565b610e9a565b610240610f2a565b6102a9610471366004611eb9565b60116020525f908152604090205460ff1681565b6102f5610493366004611eb9565b6001600160a01b03165f908152600a602052604090205490565b6102cc6104bb366004611e88565b610f37565b6102cc6104ce366004611ed2565b610fa2565b6102a96104e1366004611c25565b610fde565b6102cc6104f4366004611eeb565b610ff1565b610240610507366004611bf8565b6110b1565b6102406113fe565b6102f5610522366004611eb9565b60076020525f908152604090205481565b6102cc610541366004611bf8565b61140b565b6102f5610554366004611f7e565b600b60209081525f928352604080842090915290825290205481565b6102cc61057e366004611da6565b611439565b6102a9610591366004611f7e565b600d60209081525f928352604080842090915290825290205460ff1681565b61024061146e565b6102cc6105c6366004611eb9565b61147b565b600180546105d890611fa6565b80601f016020809104026020016040519081016040528092919081815260200182805461060490611fa6565b801561064f5780601f106106265761010080835404028352916020019161064f565b820191905f5260205f20905b81548152906001019060200180831161063257829003601f168201915b505050505081565b5f600354821115801561066957505f82115b1561073d575f828152600e60205260409020546001600160a01b03163381148015906106b857506001600160a01b0381165f908152600d6020908152604080832033845290915290205460ff16155b156106d5576040516282b42960e81b815260040160405180910390fd5b5f838152600c602090815260409182902080546001600160a01b0319166001600160a01b038881169182179092559251868152908416917f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925910160405180910390a350610798565b335f818152600b602090815260408083206001600160a01b03881680855290835292819020869055518581529192917f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925910160405180910390a35b5060015b92915050565b5f546001600160a01b031633146107cb576040516282b42960e81b815260040160405180910390fd5b5f5b8151811015610832576711b1b5bea89f8000600a5f8484815181106107f4576107f4611fde565b60200260200101516001600160a01b03166001600160a01b031681526020019081526020015f2081905550808061082a90612006565b9150506107cd565b5050565b5f546001600160a01b0316331461085f576040516282b42960e81b815260040160405180910390fd5b6012610832828261206b565b6003548111610b7b575f818152600e60205260409020546001600160a01b038481169116146108ad57604051636edaef2f60e11b815260040160405180910390fd5b6001600160a01b0382166108d457604051634e46966960e11b815260040160405180910390fd5b336001600160a01b0384161480159061091057506001600160a01b0383165f908152600d6020908152604080832033845290915290205460ff16155b801561093257505f818152600c60205260409020546001600160a01b03163314155b1561094f576040516282b42960e81b815260040160405180910390fd5b610957611515565b6001600160a01b0384165f908152600a60205260408120805490919061097e908490612127565b9091555061098c9050611515565b6001600160a01b038084165f818152600a602090815260408083208054909601909555858252600e815284822080546001600160a01b03199081169094179055600c815284822080549093169092559186168252600f905290812080546109f590600190612127565b81548110610a0557610a05611fde565b5f9182526020808320909101546001600160a01b0387168352600f82526040808420868552601090935290922054815492935083928110610a4857610a48611fde565b5f9182526020808320909101929092556001600160a01b0386168152600f90915260409020805480610a7c57610a7c61213a565b5f828152602080822083015f1990810183905590920190925583825260108152604080832054848452818420556001600160a01b038616808452600f83529083208054600181810183558286529385200186905592529054610ade9190612127565b5f8381526010602052604080822092909255905183916001600160a01b0380871692908816917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4826001600160a01b0316846001600160a01b03167fe59fdd36d0d223c0c7d996db7ad796880f45e1936cb0bb7ac102e7082e031487610b64611515565b60405190815260200160405180910390a350505050565b6001600160a01b0383165f908152600b602090815260408083203384529091529020545f198114610bd457610bb08282612127565b6001600160a01b0385165f908152600b602090815260408083203384529091529020555b610bdf848484611546565b50505b505050565b5f546001600160a01b03163314610c10576040516282b42960e81b815260040160405180910390fd5b5f80546001600160a01b031916815560405133907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908390a3565b5f546001600160a01b03163314610c74576040516282b42960e81b815260040160405180910390fd5b5f5b8151811015610832576705e5e73f8d8a8000600a5f848481518110610c9d57610c9d611fde565b60200260200101516001600160a01b03166001600160a01b031681526020019081526020015f20819055508080610cd390612006565b915050610c76565b610ce683838361086b565b6001600160a01b0382163b15801590610d8e5750604051630a85bd0160e11b8082523360048301526001600160a01b03858116602484015260448301849052608060648401525f608484015290919084169063150b7a029060a4016020604051808303815f875af1158015610d5d573d5f803e3d5ffd5b505050506040513d601f19601f82011682018060405250810190610d81919061214e565b6001600160e01b03191614155b15610be257604051633da6393160e01b815260040160405180910390fd5b5f546001600160a01b03163314610dd5576040516282b42960e81b815260040160405180910390fd5b61083282826117fb565b5f546001600160a01b03163314610e08576040516282b42960e81b815260040160405180910390fd5b6001600160a01b03919091165f908152601160205260409020805460ff1916911515919091179055565b5f546001600160a01b03163314610e5b576040516282b42960e81b815260040160405180910390fd5b600555565b5f818152600e60205260409020546001600160a01b031680610e955760405163c5723b5160e01b815260040160405180910390fd5b919050565b5f546001600160a01b03163314610ec3576040516282b42960e81b815260040160405180910390fd5b5f5b8151811015610832576708d8dadf544fc000600a5f848481518110610eec57610eec611fde565b60200260200101516001600160a01b03166001600160a01b031681526020019081526020015f20819055508080610f2290612006565b915050610ec5565b600280546105d890611fa6565b335f818152600d602090815260408083206001600160a01b03871680855290835292819020805460ff191686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b5f546001600160a01b03163314610fcb576040516282b42960e81b815260040160405180910390fd5b6004805460ff1916911515919091179055565b5f610fea338484611546565b9392505050565b610ffc85858561086b565b6001600160a01b0384163b158015906110935750604051630a85bd0160e11b808252906001600160a01b0386169063150b7a02906110469033908a90899089908990600401612175565b6020604051808303815f875af1158015611062573d5f803e3d5ffd5b505050506040513d601f19601f82011682018060405250810190611086919061214e565b6001600160e01b03191614155b15610bdf57604051633da6393160e01b815260040160405180910390fd5b60605f601380546110c190611fa6565b905011156110fb5760136110d483611814565b6040516020016110e59291906121c7565b6040516020818303038152906040529050919050565b5f8260405160200161110f91815260200190565b6040516020818303038152906040528051906020012060f81c90506060805f60648461113b919061225e565b905060288160ff16101561118f5760405180604001604052806006815260200165312e6a70656760d01b8152509250604051806040016040528060058152602001646d6f75736560d81b81525091506112d0565b60468160ff1610156111e45760405180604001604052806006815260200165322e6a70656760d01b8152509250604051806040016040528060088152602001671ad95e589bd85c9960c21b81525091506112d0565b605a8160ff1610156112385760405180604001604052806006815260200165332e6a70656760d01b81525092506040518060400160405280600781526020016636b7b734ba37b960c91b81525091506112d0565b60638160ff16101561128b5760405180604001604052806006815260200165342e6a70656760d01b81525092506040518060400160405280600681526020016506c6170746f760d41b81525091506112d0565b60405180604001604052806006815260200165352e6a70656760d01b81525092506040518060400160405280600881526020016731b7b6b83aba32b960c11b81525091505b5f6112da87611814565b6040516020016112ea919061227f565b60408051601f1981840301815290829052611307916020016122bd565b60405160208183030381529060405260128560405160200161132a9291906121c7565b60408051601f1981840301815290829052611348929160200161235e565b60405160208183030381529060405290505f8360405160200161136b9190612383565b60408051601f1981840301815282820182526004835263227d5d7d60e01b60208481019190915291519093506113a591859185910161235e565b60408051601f19818403018152908290526113c491839060200161235e565b60408051601f19818403018152908290526113e1916020016123e4565b604051602081830303815290604052975050505050505050919050565b601380546105d890611fa6565b5f546001600160a01b03163314611434576040516282b42960e81b815260040160405180910390fd5b600655565b5f546001600160a01b03163314611462576040516282b42960e81b815260040160405180910390fd5b6013610832828261206b565b601280546105d890611fa6565b5f546001600160a01b031633146114a4576040516282b42960e81b815260040160405180910390fd5b6001600160a01b0381166114cb576040516349e27cff60e01b815260040160405180910390fd5b5f80546001600160a01b0319166001600160a01b0383169081178255604051909133917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a350565b5f6115417f0000000000000000000000000000000000000000000000000000000000000012600a612508565b905090565b6004545f9060ff1615611593576005548211156115935760405162461bcd60e51b815260206004820152600660248201526509ac2f040a8f60d31b60448201526064015b60405180910390fd5b6001600160a01b0383165f9081526011602052604090205460ff16611643576006546001600160a01b0384165f908152600760205260409020546115d8908490612516565b11156116165760405162461bcd60e51b815260206004820152600d60248201526c13585e08109d5e48131a5b5a5d609a1b604482015260640161158a565b6001600160a01b0383165f908152600760205260408120805484929061163d908490612516565b90915550505b5f61164c611515565b6001600160a01b038087165f818152600a60205260408082208054948a16835290822054928252939450919290918691906116878386612127565b90915550506001600160a01b038087165f908152600a6020908152604080832080548a019055928a16825260119052205460ff16611720576001600160a01b0387165f908152600a60205260408120546116e2908590612529565b6116ec8585612529565b6116f69190612127565b90505f5b8181101561171d5761170b896118a4565b8061171581612006565b9150506116fa565b50505b6001600160a01b0386165f9081526011602052604090205460ff166117a1575f61174a8483612529565b6001600160a01b0388165f908152600a602052604090205461176d908690612529565b6117779190612127565b90505f5b8181101561179e5761178c886119c5565b8061179681612006565b91505061177b565b50505b856001600160a01b0316876001600160a01b03167fe59fdd36d0d223c0c7d996db7ad796880f45e1936cb0bb7ac102e7082e031487876040516117e691815260200190565b60405180910390a35060019695505050505050565b6001611807838261206b565b506002610be2828261206b565b60605f61182083611acd565b60010190505f8167ffffffffffffffff81111561183f5761183f611c4d565b6040519080825280601f01601f191660200182016040528015611869576020820181803683370190505b5090508181016020015b5f19016f181899199a1a9b1b9c1cb0b131b232b360811b600a86061a8153600a850494508461187357509392505050565b6001600160a01b0381166118cb57604051636edaef2f60e11b815260040160405180910390fd5b6001600160a01b0381165f908152600f6020526040812080546118f090600190612127565b8154811061190057611900611fde565b905f5260205f2001549050600f5f836001600160a01b03166001600160a01b031681526020019081526020015f2080548061193d5761193d61213a565b5f828152602080822083015f19908101839055909201909255828252601081526040808320839055600e825280832080546001600160a01b0319908116909155600c9092528083208054909216909155518291906001600160a01b038516907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908390a45050565b6001600160a01b0381166119ec57604051634e46966960e11b815260040160405180910390fd5b60038054600101908190555f818152600e60205260409020546001600160a01b031615611a2c5760405163119b4fd360e11b815260040160405180910390fd5b5f818152600e6020908152604080832080546001600160a01b0319166001600160a01b038716908117909155808452600f83529083208054600181810183558286529385200185905592529054611a839190612127565b5f8281526010602052604080822092909255905182916001600160a01b038516917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b5f8072184f03e93ff9f4daa797ed6e38ed64bf6a1f0160401b8310611b0b5772184f03e93ff9f4daa797ed6e38ed64bf6a1f0160401b830492506040015b6d04ee2d6d415b85acef81000000008310611b37576d04ee2d6d415b85acef8100000000830492506020015b662386f26fc100008310611b5557662386f26fc10000830492506010015b6305f5e1008310611b6d576305f5e100830492506008015b6127108310611b8157612710830492506004015b60648310611b93576064830492506002015b600a831061079c5760010192915050565b5f5b83811015611bbe578181015183820152602001611ba6565b50505f910152565b602081525f8251806020840152611be4816040850160208701611ba4565b601f01601f19169190910160400192915050565b5f60208284031215611c08575f80fd5b5035919050565b80356001600160a01b0381168114610e95575f80fd5b5f8060408385031215611c36575f80fd5b611c3f83611c0f565b946020939093013593505050565b634e487b7160e01b5f52604160045260245ffd5b604051601f8201601f1916810167ffffffffffffffff81118282101715611c8a57611c8a611c4d565b604052919050565b5f6020808385031215611ca3575f80fd5b823567ffffffffffffffff80821115611cba575f80fd5b818501915085601f830112611ccd575f80fd5b813581811115611cdf57611cdf611c4d565b8060051b9150611cf0848301611c61565b8181529183018401918481019088841115611d09575f80fd5b938501935b83851015611d2e57611d1f85611c0f565b82529385019390850190611d0e565b98975050505050505050565b5f82601f830112611d49575f80fd5b813567ffffffffffffffff811115611d6357611d63611c4d565b611d76601f8201601f1916602001611c61565b818152846020838601011115611d8a575f80fd5b816020850160208301375f918101602001919091529392505050565b5f60208284031215611db6575f80fd5b813567ffffffffffffffff811115611dcc575f80fd5b611dd884828501611d3a565b949350505050565b5f805f60608486031215611df2575f80fd5b611dfb84611c0f565b9250611e0960208501611c0f565b9150604084013590509250925092565b5f8060408385031215611e2a575f80fd5b823567ffffffffffffffff80821115611e41575f80fd5b611e4d86838701611d3a565b93506020850135915080821115611e62575f80fd5b50611e6f85828601611d3a565b9150509250929050565b80358015158114610e95575f80fd5b5f8060408385031215611e99575f80fd5b611ea283611c0f565b9150611eb060208401611e79565b90509250929050565b5f60208284031215611ec9575f80fd5b610fea82611c0f565b5f60208284031215611ee2575f80fd5b610fea82611e79565b5f805f805f60808688031215611eff575f80fd5b611f0886611c0f565b9450611f1660208701611c0f565b935060408601359250606086013567ffffffffffffffff80821115611f39575f80fd5b818801915088601f830112611f4c575f80fd5b813581811115611f5a575f80fd5b896020828501011115611f6b575f80fd5b9699959850939650602001949392505050565b5f8060408385031215611f8f575f80fd5b611f9883611c0f565b9150611eb060208401611c0f565b600181811c90821680611fba57607f821691505b602082108103611fd857634e487b7160e01b5f52602260045260245ffd5b50919050565b634e487b7160e01b5f52603260045260245ffd5b634e487b7160e01b5f52601160045260245ffd5b5f6001820161201757612017611ff2565b5060010190565b601f821115610be2575f81815260208120601f850160051c810160208610156120445750805b601f850160051c820191505b8181101561206357828155600101612050565b505050505050565b815167ffffffffffffffff81111561208557612085611c4d565b612099816120938454611fa6565b8461201e565b602080601f8311600181146120cc575f84156120b55750858301515b5f19600386901b1c1916600185901b178555612063565b5f85815260208120601f198616915b828110156120fa578886015182559484019460019091019084016120db565b508582101561211757878501515f19600388901b60f8161c191681555b5050505050600190811b01905550565b8181038181111561079c5761079c611ff2565b634e487b7160e01b5f52603160045260245ffd5b5f6020828403121561215e575f80fd5b81516001600160e01b031981168114610fea575f80fd5b6001600160a01b038681168252851660208201526040810184905260806060820181905281018290525f828460a08401375f60a0848401015260a0601f19601f85011683010190509695505050505050565b5f8084546121d481611fa6565b600182811680156121ec57600181146122015761222d565b60ff198416875282151583028701945061222d565b885f526020805f205f5b858110156122245781548a82015290840190820161220b565b50505082870194505b505050508351612241818360208801611ba4565b01949350505050565b634e487b7160e01b5f52601260045260245ffd5b5f60ff8316806122705761227061224a565b8060ff84160691505092915050565b757b226e616d65223a202244657649734261736564202360501b815281515f906122b0816016850160208701611ba4565b9190910160160192915050565b5f82516122ce818460208701611ba4565b7f222c226465736372697074696f6e223a22466972737420526576656e756520539201918252507f686172696e672050726f746f636f6c206f6e204552433430342e222c2265787460208201527f65726e616c5f75726c223a2268747470733a2f2f62617365643430342e636f6d60408201526b1791161134b6b0b3b2911d1160a11b6060820152606c01919050565b5f835161236f818460208801611ba4565b835190830190612241818360208801611ba4565b7f222c2261747472696275746573223a5b7b2274726169745f74797065223a227281527330b934ba3caa3cb8329116113b30b63ab2911d1160611b60208201525f82516123d7816034850160208701611ba4565b9190910160340192915050565b7f646174613a6170706c69636174696f6e2f6a736f6e3b757466382c000000000081525f825161241b81601b850160208701611ba4565b91909101601b0192915050565b600181815b8085111561246257815f190482111561244857612448611ff2565b8085161561245557918102915b93841c939080029061242d565b509250929050565b5f826124785750600161079c565b8161248457505f61079c565b816001811461249a57600281146124a4576124c0565b600191505061079c565b60ff8411156124b5576124b5611ff2565b50506001821b61079c565b5060208310610133831016604e8410600b84101617156124e3575081810a61079c565b6124ed8383612428565b805f190482111561250057612500611ff2565b029392505050565b5f610fea60ff84168361246a565b8082018082111561079c5761079c611ff2565b5f826125375761253761224a565b50049056fea264697066735822122095771645fad86ef9d2c57f5c865fa25bec42a0c66f7925b1f88edff5ac818df464736f6c63430008140033
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
0000000000000000000000001671001e4a848851e7c5411a50b48e140478f3400000000000000000000000006766fc3664b6bd0219d4c81af3ddabe93ad1de11
-----Decoded View---------------
Arg [0] : _owner (address): 0x1671001e4a848851E7C5411a50B48e140478F340
Arg [1] : _treasury (address): 0x6766fc3664B6bD0219d4C81Af3DDAbE93ad1de11
-----Encoded View---------------
2 Constructor Arguments found :
Arg [0] : 0000000000000000000000001671001e4a848851e7c5411a50b48e140478f340
Arg [1] : 0000000000000000000000006766fc3664b6bd0219d4c81af3ddabe93ad1de11
Loading...
Loading
Loading...
Loading
Multichain Portfolio | 30 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.