Feature Tip: Add private address tag to any address under My Name Tag !
Overview
ETH Balance
0 ETH
Eth Value
$0.00More Info
Private Name Tags
ContractCreator
Loading...
Loading
Contract Name:
ChipBurner
Compiler Version
v0.8.20+commit.a1b79de6
Optimization Enabled:
Yes with 200 runs
Other Settings:
paris EvmVersion
Contract Source Code (Solidity Standard Json-Input format)
// SPDX-License-Identifier: MIT pragma solidity 0.8.20; import {Ownable} from "@openzeppelin/contracts/access/Ownable.sol"; import {Ownable2Step} from "@openzeppelin/contracts/access/Ownable2Step.sol"; import {Pausable} from "@openzeppelin/contracts/utils/Pausable.sol"; import {ReentrancyGuard} from "@openzeppelin/contracts/utils/ReentrancyGuard.sol"; import {IERC721Burnable} from "../interface/IERC721Burnable.sol"; contract ChipBurner is Ownable2Step, Pausable, ReentrancyGuard { error ExceedMaxBatchSize(); event MaxBatchSizeUpdated(uint256 size); event ChipBurned(uint256 tokenId, address owner); IERC721Burnable public immutable chip; uint256 public maxBatchSize = 50; mapping(uint256 => address) public burnedTokenOwners; mapping(address => uint256) public userBurnedCount; constructor(address chip_) Ownable(_msgSender()) { chip = IERC721Burnable(chip_); } function pause() external onlyOwner { _pause(); } function unpause() external onlyOwner { _unpause(); } function setMaxBatchSize(uint256 newSize) external onlyOwner { maxBatchSize = newSize; emit MaxBatchSizeUpdated(newSize); } function batchBurn(uint256[] calldata tokenIds) external whenNotPaused nonReentrant { uint256 tokenSize = tokenIds.length; if (tokenSize > maxBatchSize) { revert ExceedMaxBatchSize(); } userBurnedCount[_msgSender()] = userBurnedCount[_msgSender()] + tokenSize; for (uint256 i = 0; i < tokenSize; i++) { uint256 tokenId = tokenIds[i]; chip.transferFrom(_msgSender(), address(this), tokenId); chip.burn(tokenId); burnedTokenOwners[tokenId] = _msgSender(); emit ChipBurned(tokenId, _msgSender()); } } function notifyChipBurned(address owner, uint256 tokenId) external { if (owner != address(this)) { burnedTokenOwners[tokenId] = owner; userBurnedCount[owner] = userBurnedCount[owner] + 1; } } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v5.0.0) (access/Ownable.sol) pragma solidity ^0.8.20; import {Context} from "../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. * * The initial owner is set to the address provided by the deployer. 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; /** * @dev The caller account is not authorized to perform an operation. */ error OwnableUnauthorizedAccount(address account); /** * @dev The owner is not a valid owner account. (eg. `address(0)`) */ error OwnableInvalidOwner(address owner); event OwnershipTransferred(address indexed previousOwner, address indexed newOwner); /** * @dev Initializes the contract setting the address provided by the deployer as the initial owner. */ constructor(address initialOwner) { if (initialOwner == address(0)) { revert OwnableInvalidOwner(address(0)); } _transferOwnership(initialOwner); } /** * @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 { if (owner() != _msgSender()) { revert OwnableUnauthorizedAccount(_msgSender()); } } /** * @dev Leaves the contract without owner. It will not be possible to call * `onlyOwner` functions. Can only be called by the current owner. * * NOTE: Renouncing ownership will leave the contract without an owner, * thereby disabling 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 { if (newOwner == address(0)) { revert OwnableInvalidOwner(address(0)); } _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 v5.0.0) (access/Ownable2Step.sol) pragma solidity ^0.8.20; import {Ownable} from "./Ownable.sol"; /** * @dev Contract module which provides access control mechanism, where * there is an account (an owner) that can be granted exclusive access to * specific functions. * * This extension of the {Ownable} contract includes a two-step mechanism to transfer * ownership, where the new owner must call {acceptOwnership} in order to replace the * old one. This can help prevent common mistakes, such as transfers of ownership to * incorrect accounts, or to contracts that are unable to interact with the * permission system. * * The initial owner is specified at deployment time in the constructor for `Ownable`. This * can later be changed with {transferOwnership} and {acceptOwnership}. * * This module is used through inheritance. It will make available all functions * from parent (Ownable). */ abstract contract Ownable2Step is Ownable { address private _pendingOwner; event OwnershipTransferStarted(address indexed previousOwner, address indexed newOwner); /** * @dev Returns the address of the pending owner. */ function pendingOwner() public view virtual returns (address) { return _pendingOwner; } /** * @dev Starts the ownership transfer of the contract to a new account. Replaces the pending transfer if there is one. * Can only be called by the current owner. */ function transferOwnership(address newOwner) public virtual override onlyOwner { _pendingOwner = newOwner; emit OwnershipTransferStarted(owner(), newOwner); } /** * @dev Transfers ownership of the contract to a new account (`newOwner`) and deletes any pending owner. * Internal function without access restriction. */ function _transferOwnership(address newOwner) internal virtual override { delete _pendingOwner; super._transferOwnership(newOwner); } /** * @dev The new owner accepts the ownership transfer. */ function acceptOwnership() public virtual { address sender = _msgSender(); if (pendingOwner() != sender) { revert OwnableUnauthorizedAccount(sender); } _transferOwnership(sender); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v5.0.0) (utils/Pausable.sol) pragma solidity ^0.8.20; import {Context} from "../utils/Context.sol"; /** * @dev Contract module which allows children to implement an emergency stop * mechanism that can be triggered by an authorized account. * * This module is used through inheritance. It will make available the * modifiers `whenNotPaused` and `whenPaused`, which can be applied to * the functions of your contract. Note that they will not be pausable by * simply including this module, only once the modifiers are put in place. */ abstract contract Pausable is Context { bool private _paused; /** * @dev Emitted when the pause is triggered by `account`. */ event Paused(address account); /** * @dev Emitted when the pause is lifted by `account`. */ event Unpaused(address account); /** * @dev The operation failed because the contract is paused. */ error EnforcedPause(); /** * @dev The operation failed because the contract is not paused. */ error ExpectedPause(); /** * @dev Initializes the contract in unpaused state. */ constructor() { _paused = false; } /** * @dev Modifier to make a function callable only when the contract is not paused. * * Requirements: * * - The contract must not be paused. */ modifier whenNotPaused() { _requireNotPaused(); _; } /** * @dev Modifier to make a function callable only when the contract is paused. * * Requirements: * * - The contract must be paused. */ modifier whenPaused() { _requirePaused(); _; } /** * @dev Returns true if the contract is paused, and false otherwise. */ function paused() public view virtual returns (bool) { return _paused; } /** * @dev Throws if the contract is paused. */ function _requireNotPaused() internal view virtual { if (paused()) { revert EnforcedPause(); } } /** * @dev Throws if the contract is not paused. */ function _requirePaused() internal view virtual { if (!paused()) { revert ExpectedPause(); } } /** * @dev Triggers stopped state. * * Requirements: * * - The contract must not be paused. */ function _pause() internal virtual whenNotPaused { _paused = true; emit Paused(_msgSender()); } /** * @dev Returns to normal state. * * Requirements: * * - The contract must be paused. */ function _unpause() internal virtual whenPaused { _paused = false; emit Unpaused(_msgSender()); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v5.0.0) (utils/ReentrancyGuard.sol) pragma solidity ^0.8.20; /** * @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; /** * @dev Unauthorized reentrant call. */ error ReentrancyGuardReentrantCall(); 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 if (_status == ENTERED) { revert ReentrancyGuardReentrantCall(); } // 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; } /** * @dev Returns true if the reentrancy guard is currently set to "entered", which indicates there is a * `nonReentrant` function in the call stack. */ function _reentrancyGuardEntered() internal view returns (bool) { return _status == ENTERED; } }
// SPDX-License-Identifier: MIT pragma solidity 0.8.20; import {IERC721} from "@openzeppelin/contracts/token/ERC721/IERC721.sol"; interface IERC721Burnable is IERC721 { function burn(uint256 tokenId) external; }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v5.0.1) (utils/Context.sol) pragma solidity ^0.8.20; /** * @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; } function _contextSuffixLength() internal view virtual returns (uint256) { return 0; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v5.0.0) (token/ERC721/IERC721.sol) pragma solidity ^0.8.20; import {IERC165} from "../../utils/introspection/IERC165.sol"; /** * @dev Required interface of an ERC-721 compliant contract. */ interface IERC721 is IERC165 { /** * @dev Emitted when `tokenId` token is transferred from `from` to `to`. */ event Transfer(address indexed from, address indexed to, uint256 indexed tokenId); /** * @dev Emitted when `owner` enables `approved` to manage the `tokenId` token. */ event Approval(address indexed owner, address indexed approved, uint256 indexed tokenId); /** * @dev Emitted when `owner` enables or disables (`approved`) `operator` to manage all of its assets. */ event ApprovalForAll(address indexed owner, address indexed operator, bool approved); /** * @dev Returns the number of tokens in ``owner``'s account. */ function balanceOf(address owner) external view returns (uint256 balance); /** * @dev Returns the owner of the `tokenId` token. * * Requirements: * * - `tokenId` must exist. */ function ownerOf(uint256 tokenId) external view returns (address owner); /** * @dev Safely transfers `tokenId` token from `from` to `to`. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must exist and be owned by `from`. * - If the caller is not `from`, it must be approved to move this token by either {approve} or {setApprovalForAll}. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon * a safe transfer. * * Emits a {Transfer} event. */ function safeTransferFrom(address from, address to, uint256 tokenId, bytes calldata data) external; /** * @dev Safely transfers `tokenId` token from `from` to `to`, checking first that contract recipients * are aware of the ERC-721 protocol to prevent tokens from being forever locked. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must exist and be owned by `from`. * - If the caller is not `from`, it must have been allowed to move this token by either {approve} or * {setApprovalForAll}. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon * a safe transfer. * * Emits a {Transfer} event. */ function safeTransferFrom(address from, address to, uint256 tokenId) external; /** * @dev Transfers `tokenId` token from `from` to `to`. * * WARNING: Note that the caller is responsible to confirm that the recipient is capable of receiving ERC-721 * or else they may be permanently lost. Usage of {safeTransferFrom} prevents loss, though the caller must * understand this adds an external call which potentially creates a reentrancy vulnerability. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must be owned by `from`. * - If the caller is not `from`, it must be approved to move this token by either {approve} or {setApprovalForAll}. * * Emits a {Transfer} event. */ function transferFrom(address from, address to, uint256 tokenId) external; /** * @dev Gives permission to `to` to transfer `tokenId` token to another account. * The approval is cleared when the token is transferred. * * Only a single account can be approved at a time, so approving the zero address clears previous approvals. * * Requirements: * * - The caller must own the token or be an approved operator. * - `tokenId` must exist. * * Emits an {Approval} event. */ function approve(address to, uint256 tokenId) external; /** * @dev Approve or remove `operator` as an operator for the caller. * Operators can call {transferFrom} or {safeTransferFrom} for any token owned by the caller. * * Requirements: * * - The `operator` cannot be the address zero. * * Emits an {ApprovalForAll} event. */ function setApprovalForAll(address operator, bool approved) external; /** * @dev Returns the account approved for `tokenId` token. * * Requirements: * * - `tokenId` must exist. */ function getApproved(uint256 tokenId) external view returns (address operator); /** * @dev Returns if the `operator` is allowed to manage all of the assets of `owner`. * * See {setApprovalForAll} */ function isApprovedForAll(address owner, address operator) external view returns (bool); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v5.0.0) (utils/introspection/IERC165.sol) pragma solidity ^0.8.20; /** * @dev Interface of the ERC-165 standard, as defined in the * https://eips.ethereum.org/EIPS/eip-165[ERC]. * * Implementers can declare support of contract interfaces, which can then be * queried by others ({ERC165Checker}). * * For an implementation, see {ERC165}. */ interface IERC165 { /** * @dev Returns true if this contract implements the interface defined by * `interfaceId`. See the corresponding * https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified[ERC section] * to learn more about how these ids are created. * * This function call must use less than 30 000 gas. */ function supportsInterface(bytes4 interfaceId) external view returns (bool); }
{ "remappings": [ "ds-test/=lib/forge-std/lib/ds-test/src/", "erc4626-tests/=lib/openzeppelin-contracts/lib/erc4626-tests/", "forge-std/=lib/forge-std/src/", "@openzeppelin/contracts/=lib/openzeppelin-contracts/contracts/", "openzeppelin-contracts/=lib/openzeppelin-contracts/" ], "optimizer": { "enabled": true, "runs": 200 }, "metadata": { "useLiteralContent": false, "bytecodeHash": "ipfs", "appendCBOR": true }, "outputSelection": { "*": { "*": [ "evm.bytecode", "evm.deployedBytecode", "devdoc", "userdoc", "metadata", "abi" ] } }, "evmVersion": "paris", "libraries": {} }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"inputs":[{"internalType":"address","name":"chip_","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[],"name":"EnforcedPause","type":"error"},{"inputs":[],"name":"ExceedMaxBatchSize","type":"error"},{"inputs":[],"name":"ExpectedPause","type":"error"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"OwnableInvalidOwner","type":"error"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"OwnableUnauthorizedAccount","type":"error"},{"inputs":[],"name":"ReentrancyGuardReentrantCall","type":"error"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"tokenId","type":"uint256"},{"indexed":false,"internalType":"address","name":"owner","type":"address"}],"name":"ChipBurned","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"size","type":"uint256"}],"name":"MaxBatchSizeUpdated","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferStarted","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"account","type":"address"}],"name":"Paused","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"account","type":"address"}],"name":"Unpaused","type":"event"},{"inputs":[],"name":"acceptOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256[]","name":"tokenIds","type":"uint256[]"}],"name":"batchBurn","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"burnedTokenOwners","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"chip","outputs":[{"internalType":"contract IERC721Burnable","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"maxBatchSize","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"notifyChipBurned","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"pause","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"paused","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"pendingOwner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"newSize","type":"uint256"}],"name":"setMaxBatchSize","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"unpause","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"userBurnedCount","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"}]
Contract Creation Code
60a0604052603260035534801561001557600080fd5b50604051610a9f380380610a9f833981016040819052610034916100f1565b338061005a57604051631e4fbdf760e01b81526000600482015260240160405180910390fd5b61006381610085565b506001805460ff60a01b191681556002556001600160a01b0316608052610121565b600180546001600160a01b031916905561009e816100a1565b50565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b60006020828403121561010357600080fd5b81516001600160a01b038116811461011a57600080fd5b9392505050565b60805161095561014a600039600081816101df0152818161040601526104b401526109556000f3fe608060405234801561001057600080fd5b50600436106100f55760003560e01c80638456cb5911610097578063c012238611610066578063c012238614610201578063dc8e92ea14610214578063e30c397814610227578063f2fde38b1461023857600080fd5b80638456cb59146101a1578063880c29fd146101a95780638da5cb5b146101c9578063b61500e4146101da57600080fd5b80635c975abb116100d35780635c975abb14610133578063715018a61461015057806379ba50971461015857806381b86a181461016057600080fd5b80632913daa0146100fa5780632b26a6bf146101165780633f4ba83a1461012b575b600080fd5b61010360035481565b6040519081526020015b60405180910390f35b6101296101243660046107cb565b61024b565b005b61012961028e565b600154600160a01b900460ff16604051901515815260200161010d565b6101296102a0565b6101296102b2565b61018961016e3660046107cb565b6004602052600090815260409020546001600160a01b031681565b6040516001600160a01b03909116815260200161010d565b6101296102fb565b6101036101b7366004610800565b60056020526000908152604090205481565b6000546001600160a01b0316610189565b6101897f000000000000000000000000000000000000000000000000000000000000000081565b61012961020f366004610822565b61030b565b61012961022236600461084c565b61037b565b6001546001600160a01b0316610189565b610129610246366004610800565b6105af565b610253610620565b60038190556040518181527f25076f5d56ad1441963ac802aaa2f7a64f6ac48af52f929a5be59810a74d71d49060200160405180910390a150565b610296610620565b61029e61064d565b565b6102a8610620565b61029e60006106a2565b60015433906001600160a01b031681146102ef5760405163118cdaa760e01b81526001600160a01b03821660048201526024015b60405180910390fd5b6102f8816106a2565b50565b610303610620565b61029e6106bb565b6001600160a01b038216301461037757600081815260046020908152604080832080546001600160a01b0319166001600160a01b0387169081179091558352600590915290205461035d9060016108d7565b6001600160a01b0383166000908152600560205260409020555b5050565b6103836106fe565b61038b610729565b60035481908111156103b05760405163022209af60e11b815260040160405180910390fd5b336000908152600560205260409020546103cb9082906108d7565b336000908152600560205260408120919091555b818110156105a35760008484838181106103fb576103fb6108f0565b9050602002013590507f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03166323b872dd61043a3390565b6040516001600160e01b031960e084901b1681526001600160a01b03909116600482015230602482015260448101849052606401600060405180830381600087803b15801561048857600080fd5b505af115801561049c573d6000803e3d6000fd5b5050604051630852cd8d60e31b8152600481018490527f00000000000000000000000000000000000000000000000000000000000000006001600160a01b031692506342966c689150602401600060405180830381600087803b15801561050257600080fd5b505af1158015610516573d6000803e3d6000fd5b505050506105213390565b600082815260046020526040902080546001600160a01b0319166001600160a01b03929092169190911790557fb18851cd4e618965a2317b58e3c6c48436d45bfc0f05d1ef415322fb5a1df1258133604080519283526001600160a01b0390911660208301520160405180910390a1508061059b81610906565b9150506103df565b50506103776001600255565b6105b7610620565b600180546001600160a01b0383166001600160a01b031990911681179091556105e86000546001600160a01b031690565b6001600160a01b03167f38d16b8cac22d99fc7c124b9cd0de2d3fa1faef420bfe791d8c362d765e2270060405160405180910390a350565b6000546001600160a01b0316331461029e5760405163118cdaa760e01b81523360048201526024016102e6565b610655610751565b6001805460ff60a01b191690557f5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa335b6040516001600160a01b03909116815260200160405180910390a1565b600180546001600160a01b03191690556102f88161077b565b6106c36106fe565b6001805460ff60a01b1916600160a01b1790557f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a2586106853390565b600154600160a01b900460ff161561029e5760405163d93c066560e01b815260040160405180910390fd5b600280540361074b57604051633ee5aeb560e01b815260040160405180910390fd5b60028055565b600154600160a01b900460ff1661029e57604051638dfc202b60e01b815260040160405180910390fd5b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b6000602082840312156107dd57600080fd5b5035919050565b80356001600160a01b03811681146107fb57600080fd5b919050565b60006020828403121561081257600080fd5b61081b826107e4565b9392505050565b6000806040838503121561083557600080fd5b61083e836107e4565b946020939093013593505050565b6000806020838503121561085f57600080fd5b823567ffffffffffffffff8082111561087757600080fd5b818501915085601f83011261088b57600080fd5b81358181111561089a57600080fd5b8660208260051b85010111156108af57600080fd5b60209290920196919550909350505050565b634e487b7160e01b600052601160045260246000fd5b808201808211156108ea576108ea6108c1565b92915050565b634e487b7160e01b600052603260045260246000fd5b600060018201610918576109186108c1565b506001019056fea264697066735822122055db1f5c90dee2244c68db0831b5549d6d2b30e9d7cd8a2b562d97674b4d49e764736f6c63430008140033000000000000000000000000eb127cfb2972f56093862525023e117cf9dc8c38
Deployed Bytecode
0x608060405234801561001057600080fd5b50600436106100f55760003560e01c80638456cb5911610097578063c012238611610066578063c012238614610201578063dc8e92ea14610214578063e30c397814610227578063f2fde38b1461023857600080fd5b80638456cb59146101a1578063880c29fd146101a95780638da5cb5b146101c9578063b61500e4146101da57600080fd5b80635c975abb116100d35780635c975abb14610133578063715018a61461015057806379ba50971461015857806381b86a181461016057600080fd5b80632913daa0146100fa5780632b26a6bf146101165780633f4ba83a1461012b575b600080fd5b61010360035481565b6040519081526020015b60405180910390f35b6101296101243660046107cb565b61024b565b005b61012961028e565b600154600160a01b900460ff16604051901515815260200161010d565b6101296102a0565b6101296102b2565b61018961016e3660046107cb565b6004602052600090815260409020546001600160a01b031681565b6040516001600160a01b03909116815260200161010d565b6101296102fb565b6101036101b7366004610800565b60056020526000908152604090205481565b6000546001600160a01b0316610189565b6101897f000000000000000000000000eb127cfb2972f56093862525023e117cf9dc8c3881565b61012961020f366004610822565b61030b565b61012961022236600461084c565b61037b565b6001546001600160a01b0316610189565b610129610246366004610800565b6105af565b610253610620565b60038190556040518181527f25076f5d56ad1441963ac802aaa2f7a64f6ac48af52f929a5be59810a74d71d49060200160405180910390a150565b610296610620565b61029e61064d565b565b6102a8610620565b61029e60006106a2565b60015433906001600160a01b031681146102ef5760405163118cdaa760e01b81526001600160a01b03821660048201526024015b60405180910390fd5b6102f8816106a2565b50565b610303610620565b61029e6106bb565b6001600160a01b038216301461037757600081815260046020908152604080832080546001600160a01b0319166001600160a01b0387169081179091558352600590915290205461035d9060016108d7565b6001600160a01b0383166000908152600560205260409020555b5050565b6103836106fe565b61038b610729565b60035481908111156103b05760405163022209af60e11b815260040160405180910390fd5b336000908152600560205260409020546103cb9082906108d7565b336000908152600560205260408120919091555b818110156105a35760008484838181106103fb576103fb6108f0565b9050602002013590507f000000000000000000000000eb127cfb2972f56093862525023e117cf9dc8c386001600160a01b03166323b872dd61043a3390565b6040516001600160e01b031960e084901b1681526001600160a01b03909116600482015230602482015260448101849052606401600060405180830381600087803b15801561048857600080fd5b505af115801561049c573d6000803e3d6000fd5b5050604051630852cd8d60e31b8152600481018490527f000000000000000000000000eb127cfb2972f56093862525023e117cf9dc8c386001600160a01b031692506342966c689150602401600060405180830381600087803b15801561050257600080fd5b505af1158015610516573d6000803e3d6000fd5b505050506105213390565b600082815260046020526040902080546001600160a01b0319166001600160a01b03929092169190911790557fb18851cd4e618965a2317b58e3c6c48436d45bfc0f05d1ef415322fb5a1df1258133604080519283526001600160a01b0390911660208301520160405180910390a1508061059b81610906565b9150506103df565b50506103776001600255565b6105b7610620565b600180546001600160a01b0383166001600160a01b031990911681179091556105e86000546001600160a01b031690565b6001600160a01b03167f38d16b8cac22d99fc7c124b9cd0de2d3fa1faef420bfe791d8c362d765e2270060405160405180910390a350565b6000546001600160a01b0316331461029e5760405163118cdaa760e01b81523360048201526024016102e6565b610655610751565b6001805460ff60a01b191690557f5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa335b6040516001600160a01b03909116815260200160405180910390a1565b600180546001600160a01b03191690556102f88161077b565b6106c36106fe565b6001805460ff60a01b1916600160a01b1790557f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a2586106853390565b600154600160a01b900460ff161561029e5760405163d93c066560e01b815260040160405180910390fd5b600280540361074b57604051633ee5aeb560e01b815260040160405180910390fd5b60028055565b600154600160a01b900460ff1661029e57604051638dfc202b60e01b815260040160405180910390fd5b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b6000602082840312156107dd57600080fd5b5035919050565b80356001600160a01b03811681146107fb57600080fd5b919050565b60006020828403121561081257600080fd5b61081b826107e4565b9392505050565b6000806040838503121561083557600080fd5b61083e836107e4565b946020939093013593505050565b6000806020838503121561085f57600080fd5b823567ffffffffffffffff8082111561087757600080fd5b818501915085601f83011261088b57600080fd5b81358181111561089a57600080fd5b8660208260051b85010111156108af57600080fd5b60209290920196919550909350505050565b634e487b7160e01b600052601160045260246000fd5b808201808211156108ea576108ea6108c1565b92915050565b634e487b7160e01b600052603260045260246000fd5b600060018201610918576109186108c1565b506001019056fea264697066735822122055db1f5c90dee2244c68db0831b5549d6d2b30e9d7cd8a2b562d97674b4d49e764736f6c63430008140033
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
000000000000000000000000eb127cfb2972f56093862525023e117cf9dc8c38
-----Decoded View---------------
Arg [0] : chip_ (address): 0xEB127cFb2972F56093862525023e117CF9dc8C38
-----Encoded View---------------
1 Constructor Arguments found :
Arg [0] : 000000000000000000000000eb127cfb2972f56093862525023e117cf9dc8c38
Loading...
Loading
Loading...
Loading
Multichain Portfolio | 26 Chains
Chain | Token | Portfolio % | Price | Amount | Value |
---|
Loading...
Loading
[ Download: CSV Export ]
A contract address hosts a smart contract, which is a set of code stored on the blockchain that runs when predetermined conditions are met. Learn more about addresses in our Knowledge Base.