Feature Tip: Add private address tag to any address under My Name Tag !
Source Code
Overview
ETH Balance
0 ETH
Eth Value
$0.00Latest 1 from a total of 1 transactions
| Transaction Hash |
Method
|
Block
|
From
|
|
To
|
||||
|---|---|---|---|---|---|---|---|---|---|
| Set Addresses | 16061247 | 1192 days ago | IN | 0 ETH | 0.00092343 |
Loading...
Loading
Loading...
Loading
Cross-Chain Transactions
Loading...
Loading
Contract Name:
Hotleads
Compiler Version
v0.8.13+commit.abaa5c0e
Optimization Enabled:
No with 200 runs
Other Settings:
default evmVersion
Contract Source Code (Solidity Standard Json-Input format)
// .*(%%&&&@@@@@@@@@@@@@@@@@@@@@&&%#*
// *(&&@@@@@@&&%%#//***,. ..*/#%&@@@@@@%(,
// (@@@&#, .*(#%%%&&&&&&@@&&&@@&&&%#/, ./%&@@@@&(.
// #@&* /&&&&@@&*./&@/ .%, ,&% *&( #@&//&@&&%(, ,#&@@@&(.
// ,&@&.,&&, /@@, .%/ .%# (, ,&&, ,&&, %@@@@%#&&&(. .(&@@&,
// /@@% /&# (&( .&&, %@# #@( #@@@@( /@@@%&&%* ,&@&*
// .%@@/.%&* ,( (%. / .&@# (@&, ,&%. /@@@@( (@@&* (&*.%@@#.
// ,&@&.,&%. / *%* #@&/*#&@%..(&* ./&&/ #@@&, #&%&# .&@&*
// (@@# (&%..%@@#*(&@@@@@@@@@@@@@@@@@@@@@&#(&( *%&. .,&@&, (@@#
// .%@&..%@@@@&%###%@@@@@@@@@@@@@@&%/,,*#&@@@@@@&#/#* .#@@@/ ,&@&,
// *&@# /&@@# .%&&* /*. ,%/ .&@@@@@@@@@@%//&@% %@@%
// /@@* #@@@@@@@@@@* (&&/ ## ** . /&@@@@&, /@@@*
// (@&, %@@@/ *%&%. *%(. .*#&@@@&#/**/%&% *&@&% #@@@( .&@@#.
// /@%.,&@@@&%. .,*%@@@@@@@@@@@@@@@@@@@@@% .%@@@@%#%@@&. (@@&* ..
// #@% .&@@@@@@@@@@@@@@@@@&&&&&@@@@@@&@@@@@@&, .%@@@@&* ,&@@(
// #@% .&@@@@&#....,*/%&@@@@@@&%###%&@@@@@@@@@@&&&&&@@@@# %@@%
// #@% .%@@@@&, /&@@@% .#@@@@&&&&&&&@@@# %@@%.
// (@&. #@@@@&, (@@%. .&@@/ ,(* %@@&&&&&&@@&# %@@%
// (@@( ,&@@@&, (@@@&, (@% %@@@/ .%@@@&&&@@&/ %@@(
// ,&@&. #@@@&* /@@@/ %&* /@@@@&. #@@@@@@@%. *&@@*
// #@@# .%@@@# .&@( .&@@@@# %@@@@@&/ %@@#
// ,&@@/ .&@@&. ,#@@@# %@@@@# (@@@@&( /&@&.
// *&@&/ ,&@@( ,&@@@@@&. (@@&( .%@@@&* (@@&.
// /@@&* ,&@&, /&@@@&* *%(. .%@@&( .%@@%.
// /@@@/ .&@%. #@@@( .#@@@#. (@@@(
// ,&@@# %@# ,&@&/ ,(&@@@&, *&@@%,
// #@@&, ,&@@@@@@@@@@@@@@@@&/ .%@@%,
// ,&@@# /&@@@@@&@@@@@&/ #@@%,
// ,&@@/ /&@@@@@@&/ (@@#.
// .%@&* /&@&/ .(&&/
// #@&/ (&%,
// *&&%%&(.
pragma solidity ^0.8.13;
import "@openzeppelin/contracts/access/Ownable.sol";
import "@openzeppelin/contracts/utils/cryptography/ECDSA.sol";
import "@openzeppelin/contracts/security/ReentrancyGuard.sol";
import "@openzeppelin/contracts/token/ERC721/IERC721Receiver.sol";
interface ICrimereports {
function balanceOf(address _address) external view returns (uint256);
function safeTransferFrom(
address from,
address to,
uint256 id,
bytes memory data
) external;
function getOwnedCrimes(address _owner) external returns (uint256[] memory);
}
contract Hotleads is Ownable, ReentrancyGuard, IERC721Receiver {
address private VAULT;
address private SIGNER;
mapping(bytes => uint256) private usedSignaturesCounter;
uint256 mintPrice = 333000000000000000;
bool public opened;
ICrimereports private CRIMEREPORTS;
function commitACrime(bytes memory _sig) external payable nonReentrant {
require(opened || msg.sender == owner(), "Not opened");
require(CRIMEREPORTS.balanceOf(address(this)) > 0, "No more...");
require(msg.value == mintPrice, "Not exact ETH");
require(_recoverSigner(msg.sender, _sig) == SIGNER, "Not on allowlist");
require(usedSignaturesCounter[_sig] < 2, "Signature used");
usedSignaturesCounter[_sig]++;
uint256 id = CRIMEREPORTS.getOwnedCrimes(address(this))[0];
CRIMEREPORTS.safeTransferFrom(address(this), msg.sender, id, "");
}
function _recoverSigner(address _toCheck, bytes memory signature)
internal
pure
returns (address)
{
bytes32 messageDigest = keccak256(
abi.encodePacked(
"\x19Ethereum Signed Message:\n32",
keccak256(abi.encodePacked(_toCheck))
)
);
return ECDSA.recover(messageDigest, signature);
}
function onERC721Received(
address,
address,
uint256,
bytes calldata
) external pure override returns (bytes4) {
return IERC721Receiver.onERC721Received.selector;
}
function pacify() external onlyOwner {
uint256 balance = CRIMEREPORTS.balanceOf(address(this));
for (uint256 i = 0; i < balance; i++) {
uint256 id = CRIMEREPORTS.getOwnedCrimes(address(this))[0];
CRIMEREPORTS.safeTransferFrom(address(this), VAULT, id, "");
}
}
function setAddresses(
address _crimeReports,
address _vault,
address _signer
) external onlyOwner {
CRIMEREPORTS = ICrimereports(_crimeReports);
VAULT = _vault;
SIGNER = _signer;
}
function setPrice(uint256 _newPrice) external onlyOwner {
mintPrice = _newPrice;
}
function setOpened(bool _flag) external onlyOwner {
opened = _flag;
}
function withdraw() external onlyOwner {
require(VAULT != address(0), "no vault");
require(payable(VAULT).send(address(this).balance));
}
}// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.7.0) (access/Ownable.sol)
pragma solidity ^0.8.0;
import "../utils/Context.sol";
/**
* @dev Contract module which provides a basic access control mechanism, where
* there is an account (an owner) that can be granted exclusive access to
* specific functions.
*
* By default, the owner account will be the one that deploys the contract. This
* can later be changed with {transferOwnership}.
*
* This module is used through inheritance. It will make available the modifier
* `onlyOwner`, which can be applied to your functions to restrict their use to
* the owner.
*/
abstract contract Ownable is Context {
address private _owner;
event OwnershipTransferred(address indexed previousOwner, address indexed newOwner);
/**
* @dev Initializes the contract setting the deployer as the initial owner.
*/
constructor() {
_transferOwnership(_msgSender());
}
/**
* @dev Throws if called by any account other than the owner.
*/
modifier onlyOwner() {
_checkOwner();
_;
}
/**
* @dev Returns the address of the current owner.
*/
function owner() public view virtual returns (address) {
return _owner;
}
/**
* @dev Throws if the sender is not the owner.
*/
function _checkOwner() internal view virtual {
require(owner() == _msgSender(), "Ownable: caller is not the owner");
}
/**
* @dev Leaves the contract without owner. It will not be possible to call
* `onlyOwner` functions anymore. Can only be called by the current owner.
*
* NOTE: Renouncing ownership will leave the contract without an owner,
* thereby removing any functionality that is only available to the owner.
*/
function renounceOwnership() public virtual onlyOwner {
_transferOwnership(address(0));
}
/**
* @dev Transfers ownership of the contract to a new account (`newOwner`).
* Can only be called by the current owner.
*/
function transferOwnership(address newOwner) public virtual onlyOwner {
require(newOwner != address(0), "Ownable: new owner is the zero address");
_transferOwnership(newOwner);
}
/**
* @dev Transfers ownership of the contract to a new account (`newOwner`).
* Internal function without access restriction.
*/
function _transferOwnership(address newOwner) internal virtual {
address oldOwner = _owner;
_owner = newOwner;
emit OwnershipTransferred(oldOwner, newOwner);
}
}// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.8.0) (utils/cryptography/ECDSA.sol)
pragma solidity ^0.8.0;
import "../Strings.sol";
/**
* @dev Elliptic Curve Digital Signature Algorithm (ECDSA) operations.
*
* These functions can be used to verify that a message was signed by the holder
* of the private keys of a given address.
*/
library ECDSA {
enum RecoverError {
NoError,
InvalidSignature,
InvalidSignatureLength,
InvalidSignatureS,
InvalidSignatureV // Deprecated in v4.8
}
function _throwError(RecoverError error) private pure {
if (error == RecoverError.NoError) {
return; // no error: do nothing
} else if (error == RecoverError.InvalidSignature) {
revert("ECDSA: invalid signature");
} else if (error == RecoverError.InvalidSignatureLength) {
revert("ECDSA: invalid signature length");
} else if (error == RecoverError.InvalidSignatureS) {
revert("ECDSA: invalid signature 's' value");
}
}
/**
* @dev Returns the address that signed a hashed message (`hash`) with
* `signature` or error string. This address can then be used for verification purposes.
*
* The `ecrecover` EVM opcode allows for malleable (non-unique) signatures:
* this function rejects them by requiring the `s` value to be in the lower
* half order, and the `v` value to be either 27 or 28.
*
* IMPORTANT: `hash` _must_ be the result of a hash operation for the
* verification to be secure: it is possible to craft signatures that
* recover to arbitrary addresses for non-hashed data. A safe way to ensure
* this is by receiving a hash of the original message (which may otherwise
* be too long), and then calling {toEthSignedMessageHash} on it.
*
* Documentation for signature generation:
* - with https://web3js.readthedocs.io/en/v1.3.4/web3-eth-accounts.html#sign[Web3.js]
* - with https://docs.ethers.io/v5/api/signer/#Signer-signMessage[ethers]
*
* _Available since v4.3._
*/
function tryRecover(bytes32 hash, bytes memory signature) internal pure returns (address, RecoverError) {
if (signature.length == 65) {
bytes32 r;
bytes32 s;
uint8 v;
// ecrecover takes the signature parameters, and the only way to get them
// currently is to use assembly.
/// @solidity memory-safe-assembly
assembly {
r := mload(add(signature, 0x20))
s := mload(add(signature, 0x40))
v := byte(0, mload(add(signature, 0x60)))
}
return tryRecover(hash, v, r, s);
} else {
return (address(0), RecoverError.InvalidSignatureLength);
}
}
/**
* @dev Returns the address that signed a hashed message (`hash`) with
* `signature`. This address can then be used for verification purposes.
*
* The `ecrecover` EVM opcode allows for malleable (non-unique) signatures:
* this function rejects them by requiring the `s` value to be in the lower
* half order, and the `v` value to be either 27 or 28.
*
* IMPORTANT: `hash` _must_ be the result of a hash operation for the
* verification to be secure: it is possible to craft signatures that
* recover to arbitrary addresses for non-hashed data. A safe way to ensure
* this is by receiving a hash of the original message (which may otherwise
* be too long), and then calling {toEthSignedMessageHash} on it.
*/
function recover(bytes32 hash, bytes memory signature) internal pure returns (address) {
(address recovered, RecoverError error) = tryRecover(hash, signature);
_throwError(error);
return recovered;
}
/**
* @dev Overload of {ECDSA-tryRecover} that receives the `r` and `vs` short-signature fields separately.
*
* See https://eips.ethereum.org/EIPS/eip-2098[EIP-2098 short signatures]
*
* _Available since v4.3._
*/
function tryRecover(
bytes32 hash,
bytes32 r,
bytes32 vs
) internal pure returns (address, RecoverError) {
bytes32 s = vs & bytes32(0x7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff);
uint8 v = uint8((uint256(vs) >> 255) + 27);
return tryRecover(hash, v, r, s);
}
/**
* @dev Overload of {ECDSA-recover} that receives the `r and `vs` short-signature fields separately.
*
* _Available since v4.2._
*/
function recover(
bytes32 hash,
bytes32 r,
bytes32 vs
) internal pure returns (address) {
(address recovered, RecoverError error) = tryRecover(hash, r, vs);
_throwError(error);
return recovered;
}
/**
* @dev Overload of {ECDSA-tryRecover} that receives the `v`,
* `r` and `s` signature fields separately.
*
* _Available since v4.3._
*/
function tryRecover(
bytes32 hash,
uint8 v,
bytes32 r,
bytes32 s
) internal pure returns (address, RecoverError) {
// EIP-2 still allows signature malleability for ecrecover(). Remove this possibility and make the signature
// unique. Appendix F in the Ethereum Yellow paper (https://ethereum.github.io/yellowpaper/paper.pdf), defines
// the valid range for s in (301): 0 < s < secp256k1n ÷ 2 + 1, and for v in (302): v ∈ {27, 28}. Most
// signatures from current libraries generate a unique signature with an s-value in the lower half order.
//
// If your library generates malleable signatures, such as s-values in the upper range, calculate a new s-value
// with 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFEBAAEDCE6AF48A03BBFD25E8CD0364141 - s1 and flip v from 27 to 28 or
// vice versa. If your library also generates signatures with 0/1 for v instead 27/28, add 27 to v to accept
// these malleable signatures as well.
if (uint256(s) > 0x7FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF5D576E7357A4501DDFE92F46681B20A0) {
return (address(0), RecoverError.InvalidSignatureS);
}
// If the signature is valid (and not malleable), return the signer address
address signer = ecrecover(hash, v, r, s);
if (signer == address(0)) {
return (address(0), RecoverError.InvalidSignature);
}
return (signer, RecoverError.NoError);
}
/**
* @dev Overload of {ECDSA-recover} that receives the `v`,
* `r` and `s` signature fields separately.
*/
function recover(
bytes32 hash,
uint8 v,
bytes32 r,
bytes32 s
) internal pure returns (address) {
(address recovered, RecoverError error) = tryRecover(hash, v, r, s);
_throwError(error);
return recovered;
}
/**
* @dev Returns an Ethereum Signed Message, created from a `hash`. This
* produces hash corresponding to the one signed with the
* https://eth.wiki/json-rpc/API#eth_sign[`eth_sign`]
* JSON-RPC method as part of EIP-191.
*
* See {recover}.
*/
function toEthSignedMessageHash(bytes32 hash) internal pure returns (bytes32) {
// 32 is the length in bytes of hash,
// enforced by the type signature above
return keccak256(abi.encodePacked("\x19Ethereum Signed Message:\n32", hash));
}
/**
* @dev Returns an Ethereum Signed Message, created from `s`. This
* produces hash corresponding to the one signed with the
* https://eth.wiki/json-rpc/API#eth_sign[`eth_sign`]
* JSON-RPC method as part of EIP-191.
*
* See {recover}.
*/
function toEthSignedMessageHash(bytes memory s) internal pure returns (bytes32) {
return keccak256(abi.encodePacked("\x19Ethereum Signed Message:\n", Strings.toString(s.length), s));
}
/**
* @dev Returns an Ethereum Signed Typed Data, created from a
* `domainSeparator` and a `structHash`. This produces hash corresponding
* to the one signed with the
* https://eips.ethereum.org/EIPS/eip-712[`eth_signTypedData`]
* JSON-RPC method as part of EIP-712.
*
* See {recover}.
*/
function toTypedDataHash(bytes32 domainSeparator, bytes32 structHash) internal pure returns (bytes32) {
return keccak256(abi.encodePacked("\x19\x01", domainSeparator, structHash));
}
}// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.8.0) (security/ReentrancyGuard.sol)
pragma solidity ^0.8.0;
/**
* @dev Contract module that helps prevent reentrant calls to a function.
*
* Inheriting from `ReentrancyGuard` will make the {nonReentrant} modifier
* available, which can be applied to functions to make sure there are no nested
* (reentrant) calls to them.
*
* Note that because there is a single `nonReentrant` guard, functions marked as
* `nonReentrant` may not call one another. This can be worked around by making
* those functions `private`, and then adding `external` `nonReentrant` entry
* points to them.
*
* TIP: If you would like to learn more about reentrancy and alternative ways
* to protect against it, check out our blog post
* https://blog.openzeppelin.com/reentrancy-after-istanbul/[Reentrancy After Istanbul].
*/
abstract contract ReentrancyGuard {
// Booleans are more expensive than uint256 or any type that takes up a full
// word because each write operation emits an extra SLOAD to first read the
// slot's contents, replace the bits taken up by the boolean, and then write
// back. This is the compiler's defense against contract upgrades and
// pointer aliasing, and it cannot be disabled.
// The values being non-zero value makes deployment a bit more expensive,
// but in exchange the refund on every call to nonReentrant will be lower in
// amount. Since refunds are capped to a percentage of the total
// transaction's gas, it is best to keep them low in cases like this one, to
// increase the likelihood of the full refund coming into effect.
uint256 private constant _NOT_ENTERED = 1;
uint256 private constant _ENTERED = 2;
uint256 private _status;
constructor() {
_status = _NOT_ENTERED;
}
/**
* @dev Prevents a contract from calling itself, directly or indirectly.
* Calling a `nonReentrant` function from another `nonReentrant`
* function is not supported. It is possible to prevent this from happening
* by making the `nonReentrant` function external, and making it call a
* `private` function that does the actual work.
*/
modifier nonReentrant() {
_nonReentrantBefore();
_;
_nonReentrantAfter();
}
function _nonReentrantBefore() private {
// On the first call to nonReentrant, _status will be _NOT_ENTERED
require(_status != _ENTERED, "ReentrancyGuard: reentrant call");
// Any calls to nonReentrant after this point will fail
_status = _ENTERED;
}
function _nonReentrantAfter() private {
// By storing the original value once again, a refund is triggered (see
// https://eips.ethereum.org/EIPS/eip-2200)
_status = _NOT_ENTERED;
}
}// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.6.0) (token/ERC721/IERC721Receiver.sol)
pragma solidity ^0.8.0;
/**
* @title ERC721 token receiver interface
* @dev Interface for any contract that wants to support safeTransfers
* from ERC721 asset contracts.
*/
interface IERC721Receiver {
/**
* @dev Whenever an {IERC721} `tokenId` token is transferred to this contract via {IERC721-safeTransferFrom}
* by `operator` from `from`, this function is called.
*
* It must return its Solidity selector to confirm the token transfer.
* If any other value is returned or the interface is not implemented by the recipient, the transfer will be reverted.
*
* The selector can be obtained in Solidity with `IERC721Receiver.onERC721Received.selector`.
*/
function onERC721Received(
address operator,
address from,
uint256 tokenId,
bytes calldata data
) external returns (bytes4);
}// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (utils/Context.sol)
pragma solidity ^0.8.0;
/**
* @dev Provides information about the current execution context, including the
* sender of the transaction and its data. While these are generally available
* via msg.sender and msg.data, they should not be accessed in such a direct
* manner, since when dealing with meta-transactions the account sending and
* paying for execution may not be the actual sender (as far as an application
* is concerned).
*
* This contract is only required for intermediate, library-like contracts.
*/
abstract contract Context {
function _msgSender() internal view virtual returns (address) {
return msg.sender;
}
function _msgData() internal view virtual returns (bytes calldata) {
return msg.data;
}
}// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.8.0) (utils/Strings.sol)
pragma solidity ^0.8.0;
import "./math/Math.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 `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);
}
}// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.8.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) {
return prod0 / denominator;
}
// Make sure the result is less than 2^256. Also prevents denominator == 0.
require(denominator > prod1);
///////////////////////////////////////////////
// 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 10, 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 * 8) < value ? 1 : 0);
}
}
}{
"optimizer": {
"enabled": false,
"runs": 200
},
"outputSelection": {
"*": {
"*": [
"evm.bytecode",
"evm.deployedBytecode",
"devdoc",
"userdoc",
"metadata",
"abi"
]
}
},
"libraries": {}
}Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
Contract ABI
API[{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"inputs":[{"internalType":"bytes","name":"_sig","type":"bytes"}],"name":"commitACrime","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"},{"internalType":"address","name":"","type":"address"},{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"bytes","name":"","type":"bytes"}],"name":"onERC721Received","outputs":[{"internalType":"bytes4","name":"","type":"bytes4"}],"stateMutability":"pure","type":"function"},{"inputs":[],"name":"opened","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"pacify","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_crimeReports","type":"address"},{"internalType":"address","name":"_vault","type":"address"},{"internalType":"address","name":"_signer","type":"address"}],"name":"setAddresses","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"_flag","type":"bool"}],"name":"setOpened","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_newPrice","type":"uint256"}],"name":"setPrice","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"withdraw","outputs":[],"stateMutability":"nonpayable","type":"function"}]Contract Creation Code
608060405267049f0dbc5634800060055534801561001c57600080fd5b5061003961002e61004560201b60201c565b61004d60201b60201c565b60018081905550610111565b600033905090565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050816000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b611faa806101206000396000f3fe60806040526004361061009c5760003560e01c80638da5cb5b116100645780638da5cb5b1461016057806391b7f5ed1461018b5780639a0a18bf146101b4578063a2e92ba7146101dd578063f2fde38b146101f4578063f3e290d21461021d5761009c565b8063150b7a02146100a1578063363bf964146100de5780633ccfd60b146101075780635f88eade1461011e578063715018a614610149575b600080fd5b3480156100ad57600080fd5b506100c860048036038101906100c3919061117a565b610239565b6040516100d5919061123d565b60405180910390f35b3480156100ea57600080fd5b5061010560048036038101906101009190611258565b61024e565b005b34801561011357600080fd5b5061011c61031e565b005b34801561012a57600080fd5b50610133610419565b60405161014091906112c6565b60405180910390f35b34801561015557600080fd5b5061015e61042c565b005b34801561016c57600080fd5b50610175610440565b60405161018291906112f0565b60405180910390f35b34801561019757600080fd5b506101b260048036038101906101ad919061130b565b610469565b005b3480156101c057600080fd5b506101db60048036038101906101d69190611364565b61047b565b005b3480156101e957600080fd5b506101f26104a0565b005b34801561020057600080fd5b5061021b60048036038101906102169190611391565b6106e0565b005b610237600480360381019061023291906114ff565b610763565b005b600063150b7a0260e01b905095945050505050565b610256610ba6565b82600660016101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555081600260006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555080600360006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550505050565b610326610ba6565b600073ffffffffffffffffffffffffffffffffffffffff16600260009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16036103b7576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016103ae906115a5565b60405180910390fd5b600260009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166108fc479081150290604051600060405180830381858888f1935050505061041757600080fd5b565b600660009054906101000a900460ff1681565b610434610ba6565b61043e6000610c24565b565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b610471610ba6565b8060058190555050565b610483610ba6565b80600660006101000a81548160ff02191690831515021790555050565b6104a8610ba6565b6000600660019054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166370a08231306040518263ffffffff1660e01b815260040161050591906112f0565b602060405180830381865afa158015610522573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061054691906115da565b905060005b818110156106dc576000600660019054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166376e81ba3306040518263ffffffff1660e01b81526004016105b091906112f0565b6000604051808303816000875af11580156105cf573d6000803e3d6000fd5b505050506040513d6000823e3d601f19601f820116820180604052508101906105f891906116ca565b60008151811061060b5761060a611713565b5b60200260200101519050600660019054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663b88d4fde30600260009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16846040518463ffffffff1660e01b815260040161069693929190611788565b600060405180830381600087803b1580156106b057600080fd5b505af11580156106c4573d6000803e3d6000fd5b505050505080806106d490611801565b91505061054b565b5050565b6106e8610ba6565b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1603610757576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161074e906118bb565b60405180910390fd5b61076081610c24565b50565b61076b610ce8565b600660009054906101000a900460ff16806107b85750610789610440565b73ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16145b6107f7576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016107ee90611927565b60405180910390fd5b6000600660019054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166370a08231306040518263ffffffff1660e01b815260040161085491906112f0565b602060405180830381865afa158015610871573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061089591906115da565b116108d5576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016108cc90611993565b60405180910390fd5b6005543414610919576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610910906119ff565b60405180910390fd5b600360009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1661095c3383610d37565b73ffffffffffffffffffffffffffffffffffffffff16146109b2576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016109a990611a6b565b60405180910390fd5b60026004826040516109c49190611b05565b90815260200160405180910390205410610a13576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610a0a90611b68565b60405180910390fd5b600481604051610a239190611b05565b90815260200160405180910390206000815480929190610a4290611801565b91905055506000600660019054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166376e81ba3306040518263ffffffff1660e01b8152600401610aa491906112f0565b6000604051808303816000875af1158015610ac3573d6000803e3d6000fd5b505050506040513d6000823e3d601f19601f82011682018060405250810190610aec91906116ca565b600081518110610aff57610afe611713565b5b60200260200101519050600660019054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663b88d4fde3033846040518463ffffffff1660e01b8152600401610b6893929190611788565b600060405180830381600087803b158015610b8257600080fd5b505af1158015610b96573d6000803e3d6000fd5b5050505050610ba3610d9c565b50565b610bae610da5565b73ffffffffffffffffffffffffffffffffffffffff16610bcc610440565b73ffffffffffffffffffffffffffffffffffffffff1614610c22576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610c1990611bd4565b60405180910390fd5b565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050816000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b600260015403610d2d576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610d2490611c40565b60405180910390fd5b6002600181905550565b60008083604051602001610d4b9190611ca8565b60405160208183030381529060405280519060200120604051602001610d719190611d45565b604051602081830303815290604052805190602001209050610d938184610dad565b91505092915050565b60018081905550565b600033905090565b6000806000610dbc8585610dd4565b91509150610dc981610e25565b819250505092915050565b6000806041835103610e155760008060006020860151925060408601519150606086015160001a9050610e0987828585610f8b565b94509450505050610e1e565b60006002915091505b9250929050565b60006004811115610e3957610e38611d6b565b5b816004811115610e4c57610e4b611d6b565b5b0315610f885760016004811115610e6657610e65611d6b565b5b816004811115610e7957610e78611d6b565b5b03610eb9576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610eb090611de6565b60405180910390fd5b60026004811115610ecd57610ecc611d6b565b5b816004811115610ee057610edf611d6b565b5b03610f20576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610f1790611e52565b60405180910390fd5b60036004811115610f3457610f33611d6b565b5b816004811115610f4757610f46611d6b565b5b03610f87576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610f7e90611ee4565b60405180910390fd5b5b50565b6000807f7fffffffffffffffffffffffffffffff5d576e7357a4501ddfe92f46681b20a08360001c1115610fc6576000600391509150611064565b600060018787878760405160008152602001604052604051610feb9493929190611f2f565b6020604051602081039080840390855afa15801561100d573d6000803e3d6000fd5b505050602060405103519050600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff160361105b57600060019250925050611064565b80600092509250505b94509492505050565b6000604051905090565b600080fd5b600080fd5b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b60006110ac82611081565b9050919050565b6110bc816110a1565b81146110c757600080fd5b50565b6000813590506110d9816110b3565b92915050565b6000819050919050565b6110f2816110df565b81146110fd57600080fd5b50565b60008135905061110f816110e9565b92915050565b600080fd5b600080fd5b600080fd5b60008083601f84011261113a57611139611115565b5b8235905067ffffffffffffffff8111156111575761115661111a565b5b6020830191508360018202830111156111735761117261111f565b5b9250929050565b60008060008060006080868803121561119657611195611077565b5b60006111a4888289016110ca565b95505060206111b5888289016110ca565b94505060406111c688828901611100565b935050606086013567ffffffffffffffff8111156111e7576111e661107c565b5b6111f388828901611124565b92509250509295509295909350565b60007fffffffff0000000000000000000000000000000000000000000000000000000082169050919050565b61123781611202565b82525050565b6000602082019050611252600083018461122e565b92915050565b60008060006060848603121561127157611270611077565b5b600061127f868287016110ca565b9350506020611290868287016110ca565b92505060406112a1868287016110ca565b9150509250925092565b60008115159050919050565b6112c0816112ab565b82525050565b60006020820190506112db60008301846112b7565b92915050565b6112ea816110a1565b82525050565b600060208201905061130560008301846112e1565b92915050565b60006020828403121561132157611320611077565b5b600061132f84828501611100565b91505092915050565b611341816112ab565b811461134c57600080fd5b50565b60008135905061135e81611338565b92915050565b60006020828403121561137a57611379611077565b5b60006113888482850161134f565b91505092915050565b6000602082840312156113a7576113a6611077565b5b60006113b5848285016110ca565b91505092915050565b600080fd5b6000601f19601f8301169050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b61140c826113c3565b810181811067ffffffffffffffff8211171561142b5761142a6113d4565b5b80604052505050565b600061143e61106d565b905061144a8282611403565b919050565b600067ffffffffffffffff82111561146a576114696113d4565b5b611473826113c3565b9050602081019050919050565b82818337600083830152505050565b60006114a261149d8461144f565b611434565b9050828152602081018484840111156114be576114bd6113be565b5b6114c9848285611480565b509392505050565b600082601f8301126114e6576114e5611115565b5b81356114f684826020860161148f565b91505092915050565b60006020828403121561151557611514611077565b5b600082013567ffffffffffffffff8111156115335761153261107c565b5b61153f848285016114d1565b91505092915050565b600082825260208201905092915050565b7f6e6f207661756c74000000000000000000000000000000000000000000000000600082015250565b600061158f600883611548565b915061159a82611559565b602082019050919050565b600060208201905081810360008301526115be81611582565b9050919050565b6000815190506115d4816110e9565b92915050565b6000602082840312156115f0576115ef611077565b5b60006115fe848285016115c5565b91505092915050565b600067ffffffffffffffff821115611622576116216113d4565b5b602082029050602081019050919050565b600061164661164184611607565b611434565b905080838252602082019050602084028301858111156116695761166861111f565b5b835b81811015611692578061167e88826115c5565b84526020840193505060208101905061166b565b5050509392505050565b600082601f8301126116b1576116b0611115565b5b81516116c1848260208601611633565b91505092915050565b6000602082840312156116e0576116df611077565b5b600082015167ffffffffffffffff8111156116fe576116fd61107c565b5b61170a8482850161169c565b91505092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b61174b816110df565b82525050565b600082825260208201905092915050565b50565b6000611772600083611751565b915061177d82611762565b600082019050919050565b600060808201905061179d60008301866112e1565b6117aa60208301856112e1565b6117b76040830184611742565b81810360608301526117c881611765565b9050949350505050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b600061180c826110df565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff820361183e5761183d6117d2565b5b600182019050919050565b7f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160008201527f6464726573730000000000000000000000000000000000000000000000000000602082015250565b60006118a5602683611548565b91506118b082611849565b604082019050919050565b600060208201905081810360008301526118d481611898565b9050919050565b7f4e6f74206f70656e656400000000000000000000000000000000000000000000600082015250565b6000611911600a83611548565b915061191c826118db565b602082019050919050565b6000602082019050818103600083015261194081611904565b9050919050565b7f4e6f206d6f72652e2e2e00000000000000000000000000000000000000000000600082015250565b600061197d600a83611548565b915061198882611947565b602082019050919050565b600060208201905081810360008301526119ac81611970565b9050919050565b7f4e6f742065786163742045544800000000000000000000000000000000000000600082015250565b60006119e9600d83611548565b91506119f4826119b3565b602082019050919050565b60006020820190508181036000830152611a18816119dc565b9050919050565b7f4e6f74206f6e20616c6c6f776c69737400000000000000000000000000000000600082015250565b6000611a55601083611548565b9150611a6082611a1f565b602082019050919050565b60006020820190508181036000830152611a8481611a48565b9050919050565b600081519050919050565b600081905092915050565b60005b83811015611abf578082015181840152602081019050611aa4565b83811115611ace576000848401525b50505050565b6000611adf82611a8b565b611ae98185611a96565b9350611af9818560208601611aa1565b80840191505092915050565b6000611b118284611ad4565b915081905092915050565b7f5369676e61747572652075736564000000000000000000000000000000000000600082015250565b6000611b52600e83611548565b9150611b5d82611b1c565b602082019050919050565b60006020820190508181036000830152611b8181611b45565b9050919050565b7f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572600082015250565b6000611bbe602083611548565b9150611bc982611b88565b602082019050919050565b60006020820190508181036000830152611bed81611bb1565b9050919050565b7f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00600082015250565b6000611c2a601f83611548565b9150611c3582611bf4565b602082019050919050565b60006020820190508181036000830152611c5981611c1d565b9050919050565b60008160601b9050919050565b6000611c7882611c60565b9050919050565b6000611c8a82611c6d565b9050919050565b611ca2611c9d826110a1565b611c7f565b82525050565b6000611cb48284611c91565b60148201915081905092915050565b600081905092915050565b7f19457468657265756d205369676e6564204d6573736167653a0a333200000000600082015250565b6000611d04601c83611cc3565b9150611d0f82611cce565b601c82019050919050565b6000819050919050565b6000819050919050565b611d3f611d3a82611d1a565b611d24565b82525050565b6000611d5082611cf7565b9150611d5c8284611d2e565b60208201915081905092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602160045260246000fd5b7f45434453413a20696e76616c6964207369676e61747572650000000000000000600082015250565b6000611dd0601883611548565b9150611ddb82611d9a565b602082019050919050565b60006020820190508181036000830152611dff81611dc3565b9050919050565b7f45434453413a20696e76616c6964207369676e6174757265206c656e67746800600082015250565b6000611e3c601f83611548565b9150611e4782611e06565b602082019050919050565b60006020820190508181036000830152611e6b81611e2f565b9050919050565b7f45434453413a20696e76616c6964207369676e6174757265202773272076616c60008201527f7565000000000000000000000000000000000000000000000000000000000000602082015250565b6000611ece602283611548565b9150611ed982611e72565b604082019050919050565b60006020820190508181036000830152611efd81611ec1565b9050919050565b611f0d81611d1a565b82525050565b600060ff82169050919050565b611f2981611f13565b82525050565b6000608082019050611f446000830187611f04565b611f516020830186611f20565b611f5e6040830185611f04565b611f6b6060830184611f04565b9594505050505056fea26469706673582212200b9209e0cdb26ebdc68457e26eaf517081881835bb839072266ffe39bda4d7a264736f6c634300080d0033
Deployed Bytecode
0x60806040526004361061009c5760003560e01c80638da5cb5b116100645780638da5cb5b1461016057806391b7f5ed1461018b5780639a0a18bf146101b4578063a2e92ba7146101dd578063f2fde38b146101f4578063f3e290d21461021d5761009c565b8063150b7a02146100a1578063363bf964146100de5780633ccfd60b146101075780635f88eade1461011e578063715018a614610149575b600080fd5b3480156100ad57600080fd5b506100c860048036038101906100c3919061117a565b610239565b6040516100d5919061123d565b60405180910390f35b3480156100ea57600080fd5b5061010560048036038101906101009190611258565b61024e565b005b34801561011357600080fd5b5061011c61031e565b005b34801561012a57600080fd5b50610133610419565b60405161014091906112c6565b60405180910390f35b34801561015557600080fd5b5061015e61042c565b005b34801561016c57600080fd5b50610175610440565b60405161018291906112f0565b60405180910390f35b34801561019757600080fd5b506101b260048036038101906101ad919061130b565b610469565b005b3480156101c057600080fd5b506101db60048036038101906101d69190611364565b61047b565b005b3480156101e957600080fd5b506101f26104a0565b005b34801561020057600080fd5b5061021b60048036038101906102169190611391565b6106e0565b005b610237600480360381019061023291906114ff565b610763565b005b600063150b7a0260e01b905095945050505050565b610256610ba6565b82600660016101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555081600260006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555080600360006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550505050565b610326610ba6565b600073ffffffffffffffffffffffffffffffffffffffff16600260009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16036103b7576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016103ae906115a5565b60405180910390fd5b600260009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166108fc479081150290604051600060405180830381858888f1935050505061041757600080fd5b565b600660009054906101000a900460ff1681565b610434610ba6565b61043e6000610c24565b565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b610471610ba6565b8060058190555050565b610483610ba6565b80600660006101000a81548160ff02191690831515021790555050565b6104a8610ba6565b6000600660019054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166370a08231306040518263ffffffff1660e01b815260040161050591906112f0565b602060405180830381865afa158015610522573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061054691906115da565b905060005b818110156106dc576000600660019054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166376e81ba3306040518263ffffffff1660e01b81526004016105b091906112f0565b6000604051808303816000875af11580156105cf573d6000803e3d6000fd5b505050506040513d6000823e3d601f19601f820116820180604052508101906105f891906116ca565b60008151811061060b5761060a611713565b5b60200260200101519050600660019054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663b88d4fde30600260009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16846040518463ffffffff1660e01b815260040161069693929190611788565b600060405180830381600087803b1580156106b057600080fd5b505af11580156106c4573d6000803e3d6000fd5b505050505080806106d490611801565b91505061054b565b5050565b6106e8610ba6565b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1603610757576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161074e906118bb565b60405180910390fd5b61076081610c24565b50565b61076b610ce8565b600660009054906101000a900460ff16806107b85750610789610440565b73ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16145b6107f7576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016107ee90611927565b60405180910390fd5b6000600660019054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166370a08231306040518263ffffffff1660e01b815260040161085491906112f0565b602060405180830381865afa158015610871573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061089591906115da565b116108d5576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016108cc90611993565b60405180910390fd5b6005543414610919576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610910906119ff565b60405180910390fd5b600360009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1661095c3383610d37565b73ffffffffffffffffffffffffffffffffffffffff16146109b2576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016109a990611a6b565b60405180910390fd5b60026004826040516109c49190611b05565b90815260200160405180910390205410610a13576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610a0a90611b68565b60405180910390fd5b600481604051610a239190611b05565b90815260200160405180910390206000815480929190610a4290611801565b91905055506000600660019054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166376e81ba3306040518263ffffffff1660e01b8152600401610aa491906112f0565b6000604051808303816000875af1158015610ac3573d6000803e3d6000fd5b505050506040513d6000823e3d601f19601f82011682018060405250810190610aec91906116ca565b600081518110610aff57610afe611713565b5b60200260200101519050600660019054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663b88d4fde3033846040518463ffffffff1660e01b8152600401610b6893929190611788565b600060405180830381600087803b158015610b8257600080fd5b505af1158015610b96573d6000803e3d6000fd5b5050505050610ba3610d9c565b50565b610bae610da5565b73ffffffffffffffffffffffffffffffffffffffff16610bcc610440565b73ffffffffffffffffffffffffffffffffffffffff1614610c22576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610c1990611bd4565b60405180910390fd5b565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050816000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b600260015403610d2d576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610d2490611c40565b60405180910390fd5b6002600181905550565b60008083604051602001610d4b9190611ca8565b60405160208183030381529060405280519060200120604051602001610d719190611d45565b604051602081830303815290604052805190602001209050610d938184610dad565b91505092915050565b60018081905550565b600033905090565b6000806000610dbc8585610dd4565b91509150610dc981610e25565b819250505092915050565b6000806041835103610e155760008060006020860151925060408601519150606086015160001a9050610e0987828585610f8b565b94509450505050610e1e565b60006002915091505b9250929050565b60006004811115610e3957610e38611d6b565b5b816004811115610e4c57610e4b611d6b565b5b0315610f885760016004811115610e6657610e65611d6b565b5b816004811115610e7957610e78611d6b565b5b03610eb9576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610eb090611de6565b60405180910390fd5b60026004811115610ecd57610ecc611d6b565b5b816004811115610ee057610edf611d6b565b5b03610f20576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610f1790611e52565b60405180910390fd5b60036004811115610f3457610f33611d6b565b5b816004811115610f4757610f46611d6b565b5b03610f87576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610f7e90611ee4565b60405180910390fd5b5b50565b6000807f7fffffffffffffffffffffffffffffff5d576e7357a4501ddfe92f46681b20a08360001c1115610fc6576000600391509150611064565b600060018787878760405160008152602001604052604051610feb9493929190611f2f565b6020604051602081039080840390855afa15801561100d573d6000803e3d6000fd5b505050602060405103519050600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff160361105b57600060019250925050611064565b80600092509250505b94509492505050565b6000604051905090565b600080fd5b600080fd5b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b60006110ac82611081565b9050919050565b6110bc816110a1565b81146110c757600080fd5b50565b6000813590506110d9816110b3565b92915050565b6000819050919050565b6110f2816110df565b81146110fd57600080fd5b50565b60008135905061110f816110e9565b92915050565b600080fd5b600080fd5b600080fd5b60008083601f84011261113a57611139611115565b5b8235905067ffffffffffffffff8111156111575761115661111a565b5b6020830191508360018202830111156111735761117261111f565b5b9250929050565b60008060008060006080868803121561119657611195611077565b5b60006111a4888289016110ca565b95505060206111b5888289016110ca565b94505060406111c688828901611100565b935050606086013567ffffffffffffffff8111156111e7576111e661107c565b5b6111f388828901611124565b92509250509295509295909350565b60007fffffffff0000000000000000000000000000000000000000000000000000000082169050919050565b61123781611202565b82525050565b6000602082019050611252600083018461122e565b92915050565b60008060006060848603121561127157611270611077565b5b600061127f868287016110ca565b9350506020611290868287016110ca565b92505060406112a1868287016110ca565b9150509250925092565b60008115159050919050565b6112c0816112ab565b82525050565b60006020820190506112db60008301846112b7565b92915050565b6112ea816110a1565b82525050565b600060208201905061130560008301846112e1565b92915050565b60006020828403121561132157611320611077565b5b600061132f84828501611100565b91505092915050565b611341816112ab565b811461134c57600080fd5b50565b60008135905061135e81611338565b92915050565b60006020828403121561137a57611379611077565b5b60006113888482850161134f565b91505092915050565b6000602082840312156113a7576113a6611077565b5b60006113b5848285016110ca565b91505092915050565b600080fd5b6000601f19601f8301169050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b61140c826113c3565b810181811067ffffffffffffffff8211171561142b5761142a6113d4565b5b80604052505050565b600061143e61106d565b905061144a8282611403565b919050565b600067ffffffffffffffff82111561146a576114696113d4565b5b611473826113c3565b9050602081019050919050565b82818337600083830152505050565b60006114a261149d8461144f565b611434565b9050828152602081018484840111156114be576114bd6113be565b5b6114c9848285611480565b509392505050565b600082601f8301126114e6576114e5611115565b5b81356114f684826020860161148f565b91505092915050565b60006020828403121561151557611514611077565b5b600082013567ffffffffffffffff8111156115335761153261107c565b5b61153f848285016114d1565b91505092915050565b600082825260208201905092915050565b7f6e6f207661756c74000000000000000000000000000000000000000000000000600082015250565b600061158f600883611548565b915061159a82611559565b602082019050919050565b600060208201905081810360008301526115be81611582565b9050919050565b6000815190506115d4816110e9565b92915050565b6000602082840312156115f0576115ef611077565b5b60006115fe848285016115c5565b91505092915050565b600067ffffffffffffffff821115611622576116216113d4565b5b602082029050602081019050919050565b600061164661164184611607565b611434565b905080838252602082019050602084028301858111156116695761166861111f565b5b835b81811015611692578061167e88826115c5565b84526020840193505060208101905061166b565b5050509392505050565b600082601f8301126116b1576116b0611115565b5b81516116c1848260208601611633565b91505092915050565b6000602082840312156116e0576116df611077565b5b600082015167ffffffffffffffff8111156116fe576116fd61107c565b5b61170a8482850161169c565b91505092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b61174b816110df565b82525050565b600082825260208201905092915050565b50565b6000611772600083611751565b915061177d82611762565b600082019050919050565b600060808201905061179d60008301866112e1565b6117aa60208301856112e1565b6117b76040830184611742565b81810360608301526117c881611765565b9050949350505050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b600061180c826110df565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff820361183e5761183d6117d2565b5b600182019050919050565b7f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160008201527f6464726573730000000000000000000000000000000000000000000000000000602082015250565b60006118a5602683611548565b91506118b082611849565b604082019050919050565b600060208201905081810360008301526118d481611898565b9050919050565b7f4e6f74206f70656e656400000000000000000000000000000000000000000000600082015250565b6000611911600a83611548565b915061191c826118db565b602082019050919050565b6000602082019050818103600083015261194081611904565b9050919050565b7f4e6f206d6f72652e2e2e00000000000000000000000000000000000000000000600082015250565b600061197d600a83611548565b915061198882611947565b602082019050919050565b600060208201905081810360008301526119ac81611970565b9050919050565b7f4e6f742065786163742045544800000000000000000000000000000000000000600082015250565b60006119e9600d83611548565b91506119f4826119b3565b602082019050919050565b60006020820190508181036000830152611a18816119dc565b9050919050565b7f4e6f74206f6e20616c6c6f776c69737400000000000000000000000000000000600082015250565b6000611a55601083611548565b9150611a6082611a1f565b602082019050919050565b60006020820190508181036000830152611a8481611a48565b9050919050565b600081519050919050565b600081905092915050565b60005b83811015611abf578082015181840152602081019050611aa4565b83811115611ace576000848401525b50505050565b6000611adf82611a8b565b611ae98185611a96565b9350611af9818560208601611aa1565b80840191505092915050565b6000611b118284611ad4565b915081905092915050565b7f5369676e61747572652075736564000000000000000000000000000000000000600082015250565b6000611b52600e83611548565b9150611b5d82611b1c565b602082019050919050565b60006020820190508181036000830152611b8181611b45565b9050919050565b7f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572600082015250565b6000611bbe602083611548565b9150611bc982611b88565b602082019050919050565b60006020820190508181036000830152611bed81611bb1565b9050919050565b7f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00600082015250565b6000611c2a601f83611548565b9150611c3582611bf4565b602082019050919050565b60006020820190508181036000830152611c5981611c1d565b9050919050565b60008160601b9050919050565b6000611c7882611c60565b9050919050565b6000611c8a82611c6d565b9050919050565b611ca2611c9d826110a1565b611c7f565b82525050565b6000611cb48284611c91565b60148201915081905092915050565b600081905092915050565b7f19457468657265756d205369676e6564204d6573736167653a0a333200000000600082015250565b6000611d04601c83611cc3565b9150611d0f82611cce565b601c82019050919050565b6000819050919050565b6000819050919050565b611d3f611d3a82611d1a565b611d24565b82525050565b6000611d5082611cf7565b9150611d5c8284611d2e565b60208201915081905092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602160045260246000fd5b7f45434453413a20696e76616c6964207369676e61747572650000000000000000600082015250565b6000611dd0601883611548565b9150611ddb82611d9a565b602082019050919050565b60006020820190508181036000830152611dff81611dc3565b9050919050565b7f45434453413a20696e76616c6964207369676e6174757265206c656e67746800600082015250565b6000611e3c601f83611548565b9150611e4782611e06565b602082019050919050565b60006020820190508181036000830152611e6b81611e2f565b9050919050565b7f45434453413a20696e76616c6964207369676e6174757265202773272076616c60008201527f7565000000000000000000000000000000000000000000000000000000000000602082015250565b6000611ece602283611548565b9150611ed982611e72565b604082019050919050565b60006020820190508181036000830152611efd81611ec1565b9050919050565b611f0d81611d1a565b82525050565b600060ff82169050919050565b611f2981611f13565b82525050565b6000608082019050611f446000830187611f04565b611f516020830186611f20565b611f5e6040830185611f04565b611f6b6060830184611f04565b9594505050505056fea26469706673582212200b9209e0cdb26ebdc68457e26eaf517081881835bb839072266ffe39bda4d7a264736f6c634300080d0033
Loading...
Loading
Loading...
Loading
Net Worth in USD
$0.00
Net Worth in ETH
0
Multichain Portfolio | 33 Chains
| Chain | Token | Portfolio % | Price | Amount | Value |
|---|
Loading...
Loading
Loading...
Loading
Loading...
Loading
[ Download: CSV Export ]
A contract address hosts a smart contract, which is a set of code stored on the blockchain that runs when predetermined conditions are met. Learn more about addresses in our Knowledge Base.