Overview
ETH Balance
0 ETH
Eth Value
$0.00More Info
Private Name Tags
ContractCreator
View more zero value Internal Transactions in Advanced View mode
Advanced mode:
Loading...
Loading
Contract Source Code Verified (Exact Match)
Contract Name:
kamalapunkV2
Compiler Version
v0.8.20+commit.a1b79de6
Optimization Enabled:
No with 200 runs
Other Settings:
default evmVersion
Contract Source Code (Solidity Standard Json-Input format)
pragma solidity ^0.8.20; //buy kamala token from uniswapv3 using this address: 0x9CBB3dDef0eBb285b03e28FFd8D030Fd121C6648 // visit www.kamalapunk.org //import "@openzeppelin/contracts/proxy/transparent/TransparentUpgradeableProxy.sol"; import "@openzeppelin/contracts/proxy/utils/Initializable.sol"; import "@openzeppelin/contracts/token/ERC20/ERC20.sol"; interface cryptopunk{ function transferPunk(address to, uint punkIndex) external; function offerPunkForSale(uint punkIndex, uint minSalePriceInWei) external; function acceptBidForPunk(uint punkIndex, uint minPrice) external; function buyPunk(uint punkIndex) payable external; function punkIndexToAddress(uint punkIndex) external returns (address); } interface uniswap{ function addLiquidityETH( address token, uint amountTokenDesired, uint amountTokenMin, uint amountETHMin, address to, uint deadline ) external payable returns (uint amountToken, uint amountETH, uint liquidity); } // most democratic token contract kamalapunkV2 is ERC20 , Initializable{ address public _admin; address public _cpmarket; address public _router; uint public KHPI; // 1563; //kamala harris punk index uint256 public startTime; // 1730793600; //2024 us election start time in unix timestamp uint256 public endTime; // 1731398400; //7 days after startTime bool public devfee; bool public punksell; bool public lpsetup; modifier onlyAdmin(){ require(msg.sender == _admin , "only admin"); _; } function initialize(uint256 initialSupply ) public reinitializer(2) { //max totalsupply fixed to 24K _mint(_admin , initialSupply);// this liquidity will be added to uniswapv3 pool payable(_admin).transfer(address(this).balance); // this liquidity will be added to uniswapv3 pool } //already holders can sell by uniswapv3 equal to bought price /* function sell(uint256 amount) external { // penalty of 1% will apply if you sell before endTime require(block.timestamp < startTime , "initial sell ended"); _burn(msg.sender, amount); payable(msg.sender).transfer(amount*99/100); } */ function selloffer() public onlyAdmin {// sell offer on min instant buy with 2024K ETH cryptopunk(_cpmarket).offerPunkForSale(KHPI , 2024*1000 ether); } function acceptbid(uint256 minprice) public onlyAdmin{// after 7 days of auction if bids available cryptopunk(_cpmarket).acceptBidForPunk(KHPI , minprice); punksell = true; } function FeedHoldersSnapshot(address[] memory holders , uint256[] memory balances , uint256 portion , uint256 totalbalances) public onlyAdmin { // two phase of snapshot will take before selloffer and before acceptbid require(punksell); unchecked { for (uint256 i; i<holders.length; ) { holders[i].call{value: (balances[i]*portion)/totalbalances }(""); // holders should be payable or revert // dev will profit from uniswap fees } } } receive() external payable { } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v5.0.0) (token/ERC20/ERC20.sol) pragma solidity ^0.8.20; import {IERC20} from "./IERC20.sol"; import {IERC20Metadata} from "./extensions/IERC20Metadata.sol"; import {Context} from "../../utils/Context.sol"; import {IERC20Errors} from "../../interfaces/draft-IERC6093.sol"; /** * @dev Implementation of the {IERC20} interface. * * This implementation is agnostic to the way tokens are created. This means * that a supply mechanism has to be added in a derived contract using {_mint}. * * TIP: For a detailed writeup see our guide * https://forum.openzeppelin.com/t/how-to-implement-erc20-supply-mechanisms/226[How * to implement supply mechanisms]. * * The default value of {decimals} is 18. To change this, you should override * this function so it returns a different value. * * We have followed general OpenZeppelin Contracts guidelines: functions revert * instead returning `false` on failure. This behavior is nonetheless * conventional and does not conflict with the expectations of ERC20 * applications. * * Additionally, an {Approval} event is emitted on calls to {transferFrom}. * This allows applications to reconstruct the allowance for all accounts just * by listening to said events. Other implementations of the EIP may not emit * these events, as it isn't required by the specification. */ abstract contract ERC20 is Context, IERC20, IERC20Metadata, IERC20Errors { mapping(address account => uint256) private _balances; mapping(address account => mapping(address spender => uint256)) private _allowances; uint256 private _totalSupply; string private _name; string private _symbol; /** * @dev Sets the values for {name} and {symbol}. * * All two of these values are immutable: they can only be set once during * construction. */ function initializeERC20(string memory name_, string memory symbol_) internal { _name = name_; _symbol = symbol_; } /** * @dev Returns the name of the token. */ function name() public view virtual returns (string memory) { return _name; } /** * @dev Returns the symbol of the token, usually a shorter version of the * name. */ function symbol() public view virtual returns (string memory) { return _symbol; } /** * @dev Returns the number of decimals used to get its user representation. * For example, if `decimals` equals `2`, a balance of `505` tokens should * be displayed to a user as `5.05` (`505 / 10 ** 2`). * * Tokens usually opt for a value of 18, imitating the relationship between * Ether and Wei. This is the default value returned by this function, unless * it's overridden. * * NOTE: This information is only used for _display_ purposes: it in * no way affects any of the arithmetic of the contract, including * {IERC20-balanceOf} and {IERC20-transfer}. */ function decimals() public view virtual returns (uint8) { return 18; } /** * @dev See {IERC20-totalSupply}. */ function totalSupply() public view virtual returns (uint256) { return _totalSupply; } /** * @dev See {IERC20-balanceOf}. */ function balanceOf(address account) public view virtual returns (uint256) { return _balances[account]; } /** * @dev See {IERC20-transfer}. * * Requirements: * * - `to` cannot be the zero address. * - the caller must have a balance of at least `value`. */ function transfer(address to, uint256 value) public virtual returns (bool) { address owner = _msgSender(); _transfer(owner, to, value); return true; } /** * @dev See {IERC20-allowance}. */ function allowance(address owner, address spender) public view virtual returns (uint256) { return _allowances[owner][spender]; } /** * @dev See {IERC20-approve}. * * NOTE: If `value` is the maximum `uint256`, the allowance is not updated on * `transferFrom`. This is semantically equivalent to an infinite approval. * * Requirements: * * - `spender` cannot be the zero address. */ function approve(address spender, uint256 value) public virtual returns (bool) { address owner = _msgSender(); _approve(owner, spender, value); return true; } /** * @dev See {IERC20-transferFrom}. * * Emits an {Approval} event indicating the updated allowance. This is not * required by the EIP. See the note at the beginning of {ERC20}. * * NOTE: Does not update the allowance if the current allowance * is the maximum `uint256`. * * Requirements: * * - `from` and `to` cannot be the zero address. * - `from` must have a balance of at least `value`. * - the caller must have allowance for ``from``'s tokens of at least * `value`. */ function transferFrom(address from, address to, uint256 value) public virtual returns (bool) { address spender = _msgSender(); _spendAllowance(from, spender, value); _transfer(from, to, value); return true; } /** * @dev Moves a `value` amount of tokens from `from` to `to`. * * This internal function is equivalent to {transfer}, and can be used to * e.g. implement automatic token fees, slashing mechanisms, etc. * * Emits a {Transfer} event. * * NOTE: This function is not virtual, {_update} should be overridden instead. */ function _transfer(address from, address to, uint256 value) internal { if (from == address(0)) { revert ERC20InvalidSender(address(0)); } if (to == address(0)) { revert ERC20InvalidReceiver(address(0)); } _update(from, to, value); } /** * @dev Transfers a `value` amount of tokens from `from` to `to`, or alternatively mints (or burns) if `from` * (or `to`) is the zero address. All customizations to transfers, mints, and burns should be done by overriding * this function. * * Emits a {Transfer} event. */ function _update(address from, address to, uint256 value) internal virtual { if (from == address(0)) { // Overflow check required: The rest of the code assumes that totalSupply never overflows _totalSupply += value; } else { uint256 fromBalance = _balances[from]; if (fromBalance < value) { revert ERC20InsufficientBalance(from, fromBalance, value); } unchecked { // Overflow not possible: value <= fromBalance <= totalSupply. _balances[from] = fromBalance - value; } } if (to == address(0)) { unchecked { // Overflow not possible: value <= totalSupply or value <= fromBalance <= totalSupply. _totalSupply -= value; } } else { unchecked { // Overflow not possible: balance + value is at most totalSupply, which we know fits into a uint256. _balances[to] += value; } } emit Transfer(from, to, value); } /** * @dev Creates a `value` amount of tokens and assigns them to `account`, by transferring it from address(0). * Relies on the `_update` mechanism * * Emits a {Transfer} event with `from` set to the zero address. * * NOTE: This function is not virtual, {_update} should be overridden instead. */ function _mint(address account, uint256 value) internal { if (account == address(0)) { revert ERC20InvalidReceiver(address(0)); } _update(address(0), account, value); } /** * @dev Destroys a `value` amount of tokens from `account`, lowering the total supply. * Relies on the `_update` mechanism. * * Emits a {Transfer} event with `to` set to the zero address. * * NOTE: This function is not virtual, {_update} should be overridden instead */ function _burn(address account, uint256 value) internal { if (account == address(0)) { revert ERC20InvalidSender(address(0)); } _update(account, address(0), value); } /** * @dev Sets `value` as the allowance of `spender` over the `owner` s tokens. * * This internal function is equivalent to `approve`, and can be used to * e.g. set automatic allowances for certain subsystems, etc. * * Emits an {Approval} event. * * Requirements: * * - `owner` cannot be the zero address. * - `spender` cannot be the zero address. * * Overrides to this logic should be done to the variant with an additional `bool emitEvent` argument. */ function _approve(address owner, address spender, uint256 value) internal { _approve(owner, spender, value, true); } /** * @dev Variant of {_approve} with an optional flag to enable or disable the {Approval} event. * * By default (when calling {_approve}) the flag is set to true. On the other hand, approval changes made by * `_spendAllowance` during the `transferFrom` operation set the flag to false. This saves gas by not emitting any * `Approval` event during `transferFrom` operations. * * Anyone who wishes to continue emitting `Approval` events on the`transferFrom` operation can force the flag to * true using the following override: * ``` * function _approve(address owner, address spender, uint256 value, bool) internal virtual override { * super._approve(owner, spender, value, true); * } * ``` * * Requirements are the same as {_approve}. */ function _approve(address owner, address spender, uint256 value, bool emitEvent) internal virtual { if (owner == address(0)) { revert ERC20InvalidApprover(address(0)); } if (spender == address(0)) { revert ERC20InvalidSpender(address(0)); } _allowances[owner][spender] = value; if (emitEvent) { emit Approval(owner, spender, value); } } /** * @dev Updates `owner` s allowance for `spender` based on spent `value`. * * Does not update the allowance value in case of infinite allowance. * Revert if not enough allowance is available. * * Does not emit an {Approval} event. */ function _spendAllowance(address owner, address spender, uint256 value) internal virtual { uint256 currentAllowance = allowance(owner, spender); if (currentAllowance != type(uint256).max) { if (currentAllowance < value) { revert ERC20InsufficientAllowance(spender, currentAllowance, value); } unchecked { _approve(owner, spender, currentAllowance - value, false); } } } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v5.0.0) (proxy/utils/Initializable.sol) pragma solidity ^0.8.20; /** * @dev This is a base contract to aid in writing upgradeable contracts, or any kind of contract that will be deployed * behind a proxy. Since proxied contracts do not make use of a constructor, it's common to move constructor logic to an * external initializer function, usually called `initialize`. It then becomes necessary to protect this initializer * function so it can only be called once. The {initializer} modifier provided by this contract will have this effect. * * The initialization functions use a version number. Once a version number is used, it is consumed and cannot be * reused. This mechanism prevents re-execution of each "step" but allows the creation of new initialization steps in * case an upgrade adds a module that needs to be initialized. * * For example: * * [.hljs-theme-light.nopadding] * ```solidity * contract MyToken is ERC20Upgradeable { * function initialize() initializer public { * __ERC20_init("MyToken", "MTK"); * } * } * * contract MyTokenV2 is MyToken, ERC20PermitUpgradeable { * function initializeV2() reinitializer(2) public { * __ERC20Permit_init("MyToken"); * } * } * ``` * * TIP: To avoid leaving the proxy in an uninitialized state, the initializer function should be called as early as * possible by providing the encoded function call as the `_data` argument to {ERC1967Proxy-constructor}. * * CAUTION: When used with inheritance, manual care must be taken to not invoke a parent initializer twice, or to ensure * that all initializers are idempotent. This is not verified automatically as constructors are by Solidity. * * [CAUTION] * ==== * Avoid leaving a contract uninitialized. * * An uninitialized contract can be taken over by an attacker. This applies to both a proxy and its implementation * contract, which may impact the proxy. To prevent the implementation contract from being used, you should invoke * the {_disableInitializers} function in the constructor to automatically lock it when it is deployed: * * [.hljs-theme-light.nopadding] * ``` * /// @custom:oz-upgrades-unsafe-allow constructor * constructor() { * _disableInitializers(); * } * ``` * ==== */ abstract contract Initializable { /** * @dev Storage of the initializable contract. * * It's implemented on a custom ERC-7201 namespace to reduce the risk of storage collisions * when using with upgradeable contracts. * * @custom:storage-location erc7201:openzeppelin.storage.Initializable */ struct InitializableStorage { /** * @dev Indicates that the contract has been initialized. */ uint64 _initialized; /** * @dev Indicates that the contract is in the process of being initialized. */ bool _initializing; } // keccak256(abi.encode(uint256(keccak256("openzeppelin.storage.Initializable")) - 1)) & ~bytes32(uint256(0xff)) bytes32 private constant INITIALIZABLE_STORAGE = 0xf0c57e16840df040f15088dc2f81fe391c3923bec73e23a9662efc9c229c6a00; /** * @dev The contract is already initialized. */ error InvalidInitialization(); /** * @dev The contract is not initializing. */ error NotInitializing(); /** * @dev Triggered when the contract has been initialized or reinitialized. */ event Initialized(uint64 version); /** * @dev A modifier that defines a protected initializer function that can be invoked at most once. In its scope, * `onlyInitializing` functions can be used to initialize parent contracts. * * Similar to `reinitializer(1)`, except that in the context of a constructor an `initializer` may be invoked any * number of times. This behavior in the constructor can be useful during testing and is not expected to be used in * production. * * Emits an {Initialized} event. */ modifier initializer() { // solhint-disable-next-line var-name-mixedcase InitializableStorage storage $ = _getInitializableStorage(); // Cache values to avoid duplicated sloads bool isTopLevelCall = !$._initializing; uint64 initialized = $._initialized; // Allowed calls: // - initialSetup: the contract is not in the initializing state and no previous version was // initialized // - construction: the contract is initialized at version 1 (no reininitialization) and the // current contract is just being deployed bool initialSetup = initialized == 0 && isTopLevelCall; bool construction = initialized == 1 && address(this).code.length == 0; if (!initialSetup && !construction) { revert InvalidInitialization(); } $._initialized = 1; if (isTopLevelCall) { $._initializing = true; } _; if (isTopLevelCall) { $._initializing = false; emit Initialized(1); } } /** * @dev A modifier that defines a protected reinitializer function that can be invoked at most once, and only if the * contract hasn't been initialized to a greater version before. In its scope, `onlyInitializing` functions can be * used to initialize parent contracts. * * A reinitializer may be used after the original initialization step. This is essential to configure modules that * are added through upgrades and that require initialization. * * When `version` is 1, this modifier is similar to `initializer`, except that functions marked with `reinitializer` * cannot be nested. If one is invoked in the context of another, execution will revert. * * Note that versions can jump in increments greater than 1; this implies that if multiple reinitializers coexist in * a contract, executing them in the right order is up to the developer or operator. * * WARNING: Setting the version to 2**64 - 1 will prevent any future reinitialization. * * Emits an {Initialized} event. */ modifier reinitializer(uint64 version) { // solhint-disable-next-line var-name-mixedcase InitializableStorage storage $ = _getInitializableStorage(); if ($._initializing || $._initialized >= version) { revert InvalidInitialization(); } $._initialized = version; $._initializing = true; _; $._initializing = false; emit Initialized(version); } /** * @dev Modifier to protect an initialization function so that it can only be invoked by functions with the * {initializer} and {reinitializer} modifiers, directly or indirectly. */ modifier onlyInitializing() { _checkInitializing(); _; } /** * @dev Reverts if the contract is not in an initializing state. See {onlyInitializing}. */ function _checkInitializing() internal view virtual { if (!_isInitializing()) { revert NotInitializing(); } } /** * @dev Locks the contract, preventing any future reinitialization. This cannot be part of an initializer call. * Calling this in the constructor of a contract will prevent that contract from being initialized or reinitialized * to any version. It is recommended to use this to lock implementation contracts that are designed to be called * through proxies. * * Emits an {Initialized} event the first time it is successfully executed. */ function _disableInitializers() internal virtual { // solhint-disable-next-line var-name-mixedcase InitializableStorage storage $ = _getInitializableStorage(); if ($._initializing) { revert InvalidInitialization(); } if ($._initialized != type(uint64).max) { $._initialized = type(uint64).max; emit Initialized(type(uint64).max); } } /** * @dev Returns the highest version that has been initialized. See {reinitializer}. */ function _getInitializedVersion() internal view returns (uint64) { return _getInitializableStorage()._initialized; } /** * @dev Returns `true` if the contract is currently initializing. See {onlyInitializing}. */ function _isInitializing() internal view returns (bool) { return _getInitializableStorage()._initializing; } /** * @dev Returns a pointer to the storage namespace. */ // solhint-disable-next-line var-name-mixedcase function _getInitializableStorage() private pure returns (InitializableStorage storage $) { assembly { $.slot := INITIALIZABLE_STORAGE } } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v5.0.0) (interfaces/draft-IERC6093.sol) pragma solidity ^0.8.20; /** * @dev Standard ERC20 Errors * Interface of the https://eips.ethereum.org/EIPS/eip-6093[ERC-6093] custom errors for ERC20 tokens. */ interface IERC20Errors { /** * @dev Indicates an error related to the current `balance` of a `sender`. Used in transfers. * @param sender Address whose tokens are being transferred. * @param balance Current balance for the interacting account. * @param needed Minimum amount required to perform a transfer. */ error ERC20InsufficientBalance(address sender, uint256 balance, uint256 needed); /** * @dev Indicates a failure with the token `sender`. Used in transfers. * @param sender Address whose tokens are being transferred. */ error ERC20InvalidSender(address sender); /** * @dev Indicates a failure with the token `receiver`. Used in transfers. * @param receiver Address to which tokens are being transferred. */ error ERC20InvalidReceiver(address receiver); /** * @dev Indicates a failure with the `spender`’s `allowance`. Used in transfers. * @param spender Address that may be allowed to operate on tokens without being their owner. * @param allowance Amount of tokens a `spender` is allowed to operate with. * @param needed Minimum amount required to perform a transfer. */ error ERC20InsufficientAllowance(address spender, uint256 allowance, uint256 needed); /** * @dev Indicates a failure with the `approver` of a token to be approved. Used in approvals. * @param approver Address initiating an approval operation. */ error ERC20InvalidApprover(address approver); /** * @dev Indicates a failure with the `spender` to be approved. Used in approvals. * @param spender Address that may be allowed to operate on tokens without being their owner. */ error ERC20InvalidSpender(address spender); } /** * @dev Standard ERC721 Errors * Interface of the https://eips.ethereum.org/EIPS/eip-6093[ERC-6093] custom errors for ERC721 tokens. */ interface IERC721Errors { /** * @dev Indicates that an address can't be an owner. For example, `address(0)` is a forbidden owner in EIP-20. * Used in balance queries. * @param owner Address of the current owner of a token. */ error ERC721InvalidOwner(address owner); /** * @dev Indicates a `tokenId` whose `owner` is the zero address. * @param tokenId Identifier number of a token. */ error ERC721NonexistentToken(uint256 tokenId); /** * @dev Indicates an error related to the ownership over a particular token. Used in transfers. * @param sender Address whose tokens are being transferred. * @param tokenId Identifier number of a token. * @param owner Address of the current owner of a token. */ error ERC721IncorrectOwner(address sender, uint256 tokenId, address owner); /** * @dev Indicates a failure with the token `sender`. Used in transfers. * @param sender Address whose tokens are being transferred. */ error ERC721InvalidSender(address sender); /** * @dev Indicates a failure with the token `receiver`. Used in transfers. * @param receiver Address to which tokens are being transferred. */ error ERC721InvalidReceiver(address receiver); /** * @dev Indicates a failure with the `operator`’s approval. Used in transfers. * @param operator Address that may be allowed to operate on tokens without being their owner. * @param tokenId Identifier number of a token. */ error ERC721InsufficientApproval(address operator, uint256 tokenId); /** * @dev Indicates a failure with the `approver` of a token to be approved. Used in approvals. * @param approver Address initiating an approval operation. */ error ERC721InvalidApprover(address approver); /** * @dev Indicates a failure with the `operator` to be approved. Used in approvals. * @param operator Address that may be allowed to operate on tokens without being their owner. */ error ERC721InvalidOperator(address operator); } /** * @dev Standard ERC1155 Errors * Interface of the https://eips.ethereum.org/EIPS/eip-6093[ERC-6093] custom errors for ERC1155 tokens. */ interface IERC1155Errors { /** * @dev Indicates an error related to the current `balance` of a `sender`. Used in transfers. * @param sender Address whose tokens are being transferred. * @param balance Current balance for the interacting account. * @param needed Minimum amount required to perform a transfer. * @param tokenId Identifier number of a token. */ error ERC1155InsufficientBalance(address sender, uint256 balance, uint256 needed, uint256 tokenId); /** * @dev Indicates a failure with the token `sender`. Used in transfers. * @param sender Address whose tokens are being transferred. */ error ERC1155InvalidSender(address sender); /** * @dev Indicates a failure with the token `receiver`. Used in transfers. * @param receiver Address to which tokens are being transferred. */ error ERC1155InvalidReceiver(address receiver); /** * @dev Indicates a failure with the `operator`’s approval. Used in transfers. * @param operator Address that may be allowed to operate on tokens without being their owner. * @param owner Address of the current owner of a token. */ error ERC1155MissingApprovalForAll(address operator, address owner); /** * @dev Indicates a failure with the `approver` of a token to be approved. Used in approvals. * @param approver Address initiating an approval operation. */ error ERC1155InvalidApprover(address approver); /** * @dev Indicates a failure with the `operator` to be approved. Used in approvals. * @param operator Address that may be allowed to operate on tokens without being their owner. */ error ERC1155InvalidOperator(address operator); /** * @dev Indicates an array length mismatch between ids and values in a safeBatchTransferFrom operation. * Used in batch transfers. * @param idsLength Length of the array of token identifiers * @param valuesLength Length of the array of token amounts */ error ERC1155InvalidArrayLength(uint256 idsLength, uint256 valuesLength); }
// 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/ERC20/extensions/IERC20Metadata.sol) pragma solidity ^0.8.20; import {IERC20} from "../IERC20.sol"; /** * @dev Interface for the optional metadata functions from the ERC20 standard. */ interface IERC20Metadata is IERC20 { /** * @dev Returns the name of the token. */ function name() external view returns (string memory); /** * @dev Returns the symbol of the token. */ function symbol() external view returns (string memory); /** * @dev Returns the decimals places of the token. */ function decimals() external view returns (uint8); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v5.0.0) (token/ERC20/IERC20.sol) pragma solidity ^0.8.20; /** * @dev Interface of the ERC20 standard as defined in the EIP. */ interface IERC20 { /** * @dev Emitted when `value` tokens are moved from one account (`from`) to * another (`to`). * * Note that `value` may be zero. */ event Transfer(address indexed from, address indexed to, uint256 value); /** * @dev Emitted when the allowance of a `spender` for an `owner` is set by * a call to {approve}. `value` is the new allowance. */ event Approval(address indexed owner, address indexed spender, uint256 value); /** * @dev Returns the value of tokens in existence. */ function totalSupply() external view returns (uint256); /** * @dev Returns the value of tokens owned by `account`. */ function balanceOf(address account) external view returns (uint256); /** * @dev Moves a `value` amount of tokens from the caller's account to `to`. * * Returns a boolean value indicating whether the operation succeeded. * * Emits a {Transfer} event. */ function transfer(address to, uint256 value) external returns (bool); /** * @dev Returns the remaining number of tokens that `spender` will be * allowed to spend on behalf of `owner` through {transferFrom}. This is * zero by default. * * This value changes when {approve} or {transferFrom} are called. */ function allowance(address owner, address spender) external view returns (uint256); /** * @dev Sets a `value` amount of tokens as the allowance of `spender` over the * caller's tokens. * * Returns a boolean value indicating whether the operation succeeded. * * IMPORTANT: Beware that changing an allowance with this method brings the risk * that someone may use both the old and the new allowance by unfortunate * transaction ordering. One possible solution to mitigate this race * condition is to first reduce the spender's allowance to 0 and set the * desired value afterwards: * https://github.com/ethereum/EIPs/issues/20#issuecomment-263524729 * * Emits an {Approval} event. */ function approve(address spender, uint256 value) external returns (bool); /** * @dev Moves a `value` amount of tokens from `from` to `to` using the * allowance mechanism. `value` is then deducted from the caller's * allowance. * * Returns a boolean value indicating whether the operation succeeded. * * Emits a {Transfer} event. */ function transferFrom(address from, address to, uint256 value) external returns (bool); }
{ "optimizer": { "enabled": false, "runs": 200 }, "outputSelection": { "*": { "*": [ "evm.bytecode", "evm.deployedBytecode", "devdoc", "userdoc", "metadata", "abi" ] } } }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"inputs":[{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"allowance","type":"uint256"},{"internalType":"uint256","name":"needed","type":"uint256"}],"name":"ERC20InsufficientAllowance","type":"error"},{"inputs":[{"internalType":"address","name":"sender","type":"address"},{"internalType":"uint256","name":"balance","type":"uint256"},{"internalType":"uint256","name":"needed","type":"uint256"}],"name":"ERC20InsufficientBalance","type":"error"},{"inputs":[{"internalType":"address","name":"approver","type":"address"}],"name":"ERC20InvalidApprover","type":"error"},{"inputs":[{"internalType":"address","name":"receiver","type":"address"}],"name":"ERC20InvalidReceiver","type":"error"},{"inputs":[{"internalType":"address","name":"sender","type":"address"}],"name":"ERC20InvalidSender","type":"error"},{"inputs":[{"internalType":"address","name":"spender","type":"address"}],"name":"ERC20InvalidSpender","type":"error"},{"inputs":[],"name":"InvalidInitialization","type":"error"},{"inputs":[],"name":"NotInitializing","type":"error"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"spender","type":"address"},{"indexed":false,"internalType":"uint256","name":"value","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint64","name":"version","type":"uint64"}],"name":"Initialized","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":false,"internalType":"uint256","name":"value","type":"uint256"}],"name":"Transfer","type":"event"},{"inputs":[{"internalType":"address[]","name":"holders","type":"address[]"},{"internalType":"uint256[]","name":"balances","type":"uint256[]"},{"internalType":"uint256","name":"portion","type":"uint256"},{"internalType":"uint256","name":"totalbalances","type":"uint256"}],"name":"FeedHoldersSnapshot","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"KHPI","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"_admin","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"_cpmarket","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"_router","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"minprice","type":"uint256"}],"name":"acceptbid","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"spender","type":"address"}],"name":"allowance","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"value","type":"uint256"}],"name":"approve","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"decimals","outputs":[{"internalType":"uint8","name":"","type":"uint8"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"devfee","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"endTime","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"initialSupply","type":"uint256"}],"name":"initialize","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"lpsetup","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"punksell","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"selloffer","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"startTime","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"value","type":"uint256"}],"name":"transfer","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"value","type":"uint256"}],"name":"transferFrom","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"stateMutability":"payable","type":"receive"}]
Contract Creation Code
608060405234801561000f575f80fd5b50611c9d8061001d5f395ff3fe608060405260043610610138575f3560e01c806370a08231116100aa578063e96c406d1161006e578063e96c406d1461043b578063ecdd966214610465578063edae876f1461047b578063eee0f556146104a5578063fac31102146104cd578063fe4b84df146104f75761013f565b806370a082311461033357806378e979251461036f57806395d89b4114610399578063a9059cbb146103c3578063dd62ed3e146103ff5761013f565b806323b872dd116100fc57806323b872dd146102255780632a717b0414610261578063313ce5671461028b578063314094c2146102b55780633197cbb6146102df578063320dca3a146103095761013f565b806301bc45c91461014357806306fdde031461016d578063095ea7b3146101975780630b2ae8b5146101d357806318160ddd146101fb5761013f565b3661013f57005b5f80fd5b34801561014e575f80fd5b5061015761051f565b6040516101649190611429565b60405180910390f35b348015610178575f80fd5b50610181610544565b60405161018e91906114cc565b60405180910390f35b3480156101a2575f80fd5b506101bd60048036038101906101b8919061155a565b6105d4565b6040516101ca91906115b2565b60405180910390f35b3480156101de575f80fd5b506101f960048036038101906101f491906117cb565b6105f6565b005b348015610206575f80fd5b5061020f610760565b60405161021c9190611876565b60405180910390f35b348015610230575f80fd5b5061024b6004803603810190610246919061188f565b610769565b60405161025891906115b2565b60405180910390f35b34801561026c575f80fd5b50610275610797565b6040516102829190611876565b60405180910390f35b348015610296575f80fd5b5061029f61079d565b6040516102ac91906118fa565b60405180910390f35b3480156102c0575f80fd5b506102c96107a5565b6040516102d691906115b2565b60405180910390f35b3480156102ea575f80fd5b506102f36107b7565b6040516103009190611876565b60405180910390f35b348015610314575f80fd5b5061031d6107bd565b60405161032a9190611429565b60405180910390f35b34801561033e575f80fd5b5061035960048036038101906103549190611913565b6107e2565b6040516103669190611876565b60405180910390f35b34801561037a575f80fd5b50610383610827565b6040516103909190611876565b60405180910390f35b3480156103a4575f80fd5b506103ad61082d565b6040516103ba91906114cc565b60405180910390f35b3480156103ce575f80fd5b506103e960048036038101906103e4919061155a565b6108bd565b6040516103f691906115b2565b60405180910390f35b34801561040a575f80fd5b506104256004803603810190610420919061193e565b6108df565b6040516104329190611876565b60405180910390f35b348015610446575f80fd5b5061044f610961565b60405161045c91906115b2565b60405180910390f35b348015610470575f80fd5b50610479610974565b005b348015610486575f80fd5b5061048f610a9b565b60405161049c9190611429565b60405180910390f35b3480156104b0575f80fd5b506104cb60048036038101906104c6919061197c565b610ac0565b005b3480156104d8575f80fd5b506104e1610bf8565b6040516104ee91906115b2565b60405180910390f35b348015610502575f80fd5b5061051d6004803603810190610518919061197c565b610c0b565b005b60055f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b606060038054610553906119d4565b80601f016020809104026020016040519081016040528092919081815260200182805461057f906119d4565b80156105ca5780601f106105a1576101008083540402835291602001916105ca565b820191905f5260205f20905b8154815290600101906020018083116105ad57829003601f168201915b5050505050905090565b5f806105de610dc1565b90506105eb818585610dc8565b600191505092915050565b60055f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614610685576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161067c90611a4e565b60405180910390fd5b600b60019054906101000a900460ff1661069d575f80fd5b5f5b8451811015610759578481815181106106bb576106ba611a6c565b5b602002602001015173ffffffffffffffffffffffffffffffffffffffff1682848684815181106106ee576106ed611a6c565b5b6020026020010151028161070557610704611a99565b5b0460405161071290611af3565b5f6040518083038185875af1925050503d805f811461074c576040519150601f19603f3d011682016040523d82523d5f602084013e610751565b606091505b50505061069f565b5050505050565b5f600254905090565b5f80610773610dc1565b9050610780858285610dda565b61078b858585610e6c565b60019150509392505050565b60085481565b5f6012905090565b600b5f9054906101000a900460ff1681565b600a5481565b60065f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b5f805f8373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f20549050919050565b60095481565b60606004805461083c906119d4565b80601f0160208091040260200160405190810160405280929190818152602001828054610868906119d4565b80156108b35780601f1061088a576101008083540402835291602001916108b3565b820191905f5260205f20905b81548152906001019060200180831161089657829003601f168201915b5050505050905090565b5f806108c7610dc1565b90506108d4818585610e6c565b600191505092915050565b5f60015f8473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f8373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f2054905092915050565b600b60029054906101000a900460ff1681565b60055f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614610a03576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016109fa90611a4e565b60405180910390fd5b60065f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663c44193c36008546a01ac994285e468210000006040518363ffffffff1660e01b8152600401610a6c929190611b49565b5f604051808303815f87803b158015610a83575f80fd5b505af1158015610a95573d5f803e3d5ffd5b50505050565b60075f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b60055f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614610b4f576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610b4690611a4e565b60405180910390fd5b60065f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166323165b75600854836040518363ffffffff1660e01b8152600401610bad929190611b70565b5f604051808303815f87803b158015610bc4575f80fd5b505af1158015610bd6573d5f803e3d5ffd5b505050506001600b60016101000a81548160ff02191690831515021790555050565b600b60019054906101000a900460ff1681565b60025f610c16610f5c565b9050805f0160089054906101000a900460ff1680610c5e57508167ffffffffffffffff16815f015f9054906101000a900467ffffffffffffffff1667ffffffffffffffff1610155b15610c95576040517ff92ee8a900000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b81815f015f6101000a81548167ffffffffffffffff021916908367ffffffffffffffff1602179055506001815f0160086101000a81548160ff021916908315150217905550610d0560055f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1684610f83565b60055f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166108fc4790811502906040515f60405180830381858888f19350505050158015610d69573d5f803e3d5ffd5b505f815f0160086101000a81548160ff0219169083151502179055507fc7f505b2f371ae2175ee4913f4499e1f2633a7b5936321eed1cdaeb6115181d282604051610db49190611bb9565b60405180910390a1505050565b5f33905090565b610dd58383836001611002565b505050565b5f610de584846108df565b90507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff8114610e665781811015610e57578281836040517ffb8f41b2000000000000000000000000000000000000000000000000000000008152600401610e4e93929190611bd2565b60405180910390fd5b610e6584848484035f611002565b5b50505050565b5f73ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1603610edc575f6040517f96c6fd1e000000000000000000000000000000000000000000000000000000008152600401610ed39190611429565b60405180910390fd5b5f73ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1603610f4c575f6040517fec442f05000000000000000000000000000000000000000000000000000000008152600401610f439190611429565b60405180910390fd5b610f578383836111d1565b505050565b5f7ff0c57e16840df040f15088dc2f81fe391c3923bec73e23a9662efc9c229c6a00905090565b5f73ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1603610ff3575f6040517fec442f05000000000000000000000000000000000000000000000000000000008152600401610fea9190611429565b60405180910390fd5b610ffe5f83836111d1565b5050565b5f73ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff1603611072575f6040517fe602df050000000000000000000000000000000000000000000000000000000081526004016110699190611429565b60405180910390fd5b5f73ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff16036110e2575f6040517f94280d620000000000000000000000000000000000000000000000000000000081526004016110d99190611429565b60405180910390fd5b8160015f8673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f8573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f208190555080156111cb578273ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925846040516111c29190611876565b60405180910390a35b50505050565b5f73ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1603611221578060025f8282546112159190611c34565b925050819055506112ef565b5f805f8573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f20549050818110156112aa578381836040517fe450d38c0000000000000000000000000000000000000000000000000000000081526004016112a193929190611bd2565b60405180910390fd5b8181035f808673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f2081905550505b5f73ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1603611336578060025f8282540392505081905550611380565b805f808473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f82825401925050819055505b8173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef836040516113dd9190611876565b60405180910390a3505050565b5f73ffffffffffffffffffffffffffffffffffffffff82169050919050565b5f611413826113ea565b9050919050565b61142381611409565b82525050565b5f60208201905061143c5f83018461141a565b92915050565b5f81519050919050565b5f82825260208201905092915050565b5f5b8381101561147957808201518184015260208101905061145e565b5f8484015250505050565b5f601f19601f8301169050919050565b5f61149e82611442565b6114a8818561144c565b93506114b881856020860161145c565b6114c181611484565b840191505092915050565b5f6020820190508181035f8301526114e48184611494565b905092915050565b5f604051905090565b5f80fd5b5f80fd5b61150681611409565b8114611510575f80fd5b50565b5f81359050611521816114fd565b92915050565b5f819050919050565b61153981611527565b8114611543575f80fd5b50565b5f8135905061155481611530565b92915050565b5f80604083850312156115705761156f6114f5565b5b5f61157d85828601611513565b925050602061158e85828601611546565b9150509250929050565b5f8115159050919050565b6115ac81611598565b82525050565b5f6020820190506115c55f8301846115a3565b92915050565b5f80fd5b7f4e487b71000000000000000000000000000000000000000000000000000000005f52604160045260245ffd5b61160582611484565b810181811067ffffffffffffffff82111715611624576116236115cf565b5b80604052505050565b5f6116366114ec565b905061164282826115fc565b919050565b5f67ffffffffffffffff821115611661576116606115cf565b5b602082029050602081019050919050565b5f80fd5b5f61168861168384611647565b61162d565b905080838252602082019050602084028301858111156116ab576116aa611672565b5b835b818110156116d457806116c08882611513565b8452602084019350506020810190506116ad565b5050509392505050565b5f82601f8301126116f2576116f16115cb565b5b8135611702848260208601611676565b91505092915050565b5f67ffffffffffffffff821115611725576117246115cf565b5b602082029050602081019050919050565b5f6117486117438461170b565b61162d565b9050808382526020820190506020840283018581111561176b5761176a611672565b5b835b8181101561179457806117808882611546565b84526020840193505060208101905061176d565b5050509392505050565b5f82601f8301126117b2576117b16115cb565b5b81356117c2848260208601611736565b91505092915050565b5f805f80608085870312156117e3576117e26114f5565b5b5f85013567ffffffffffffffff811115611800576117ff6114f9565b5b61180c878288016116de565b945050602085013567ffffffffffffffff81111561182d5761182c6114f9565b5b6118398782880161179e565b935050604061184a87828801611546565b925050606061185b87828801611546565b91505092959194509250565b61187081611527565b82525050565b5f6020820190506118895f830184611867565b92915050565b5f805f606084860312156118a6576118a56114f5565b5b5f6118b386828701611513565b93505060206118c486828701611513565b92505060406118d586828701611546565b9150509250925092565b5f60ff82169050919050565b6118f4816118df565b82525050565b5f60208201905061190d5f8301846118eb565b92915050565b5f60208284031215611928576119276114f5565b5b5f61193584828501611513565b91505092915050565b5f8060408385031215611954576119536114f5565b5b5f61196185828601611513565b925050602061197285828601611513565b9150509250929050565b5f60208284031215611991576119906114f5565b5b5f61199e84828501611546565b91505092915050565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52602260045260245ffd5b5f60028204905060018216806119eb57607f821691505b6020821081036119fe576119fd6119a7565b5b50919050565b7f6f6e6c792061646d696e000000000000000000000000000000000000000000005f82015250565b5f611a38600a8361144c565b9150611a4382611a04565b602082019050919050565b5f6020820190508181035f830152611a6581611a2c565b9050919050565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52603260045260245ffd5b7f4e487b71000000000000000000000000000000000000000000000000000000005f52601260045260245ffd5b5f81905092915050565b50565b5f611ade5f83611ac6565b9150611ae982611ad0565b5f82019050919050565b5f611afd82611ad3565b9150819050919050565b5f819050919050565b5f819050919050565b5f611b33611b2e611b2984611b07565b611b10565b611527565b9050919050565b611b4381611b19565b82525050565b5f604082019050611b5c5f830185611867565b611b696020830184611b3a565b9392505050565b5f604082019050611b835f830185611867565b611b906020830184611867565b9392505050565b5f67ffffffffffffffff82169050919050565b611bb381611b97565b82525050565b5f602082019050611bcc5f830184611baa565b92915050565b5f606082019050611be55f83018661141a565b611bf26020830185611867565b611bff6040830184611867565b949350505050565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52601160045260245ffd5b5f611c3e82611527565b9150611c4983611527565b9250828201905080821115611c6157611c60611c07565b5b9291505056fea264697066735822122094ae8c2ab7c9f406315c6a3b08094c495d67c3245edce1673fa442356e678b4264736f6c63430008140033
Deployed Bytecode
0x608060405260043610610138575f3560e01c806370a08231116100aa578063e96c406d1161006e578063e96c406d1461043b578063ecdd966214610465578063edae876f1461047b578063eee0f556146104a5578063fac31102146104cd578063fe4b84df146104f75761013f565b806370a082311461033357806378e979251461036f57806395d89b4114610399578063a9059cbb146103c3578063dd62ed3e146103ff5761013f565b806323b872dd116100fc57806323b872dd146102255780632a717b0414610261578063313ce5671461028b578063314094c2146102b55780633197cbb6146102df578063320dca3a146103095761013f565b806301bc45c91461014357806306fdde031461016d578063095ea7b3146101975780630b2ae8b5146101d357806318160ddd146101fb5761013f565b3661013f57005b5f80fd5b34801561014e575f80fd5b5061015761051f565b6040516101649190611429565b60405180910390f35b348015610178575f80fd5b50610181610544565b60405161018e91906114cc565b60405180910390f35b3480156101a2575f80fd5b506101bd60048036038101906101b8919061155a565b6105d4565b6040516101ca91906115b2565b60405180910390f35b3480156101de575f80fd5b506101f960048036038101906101f491906117cb565b6105f6565b005b348015610206575f80fd5b5061020f610760565b60405161021c9190611876565b60405180910390f35b348015610230575f80fd5b5061024b6004803603810190610246919061188f565b610769565b60405161025891906115b2565b60405180910390f35b34801561026c575f80fd5b50610275610797565b6040516102829190611876565b60405180910390f35b348015610296575f80fd5b5061029f61079d565b6040516102ac91906118fa565b60405180910390f35b3480156102c0575f80fd5b506102c96107a5565b6040516102d691906115b2565b60405180910390f35b3480156102ea575f80fd5b506102f36107b7565b6040516103009190611876565b60405180910390f35b348015610314575f80fd5b5061031d6107bd565b60405161032a9190611429565b60405180910390f35b34801561033e575f80fd5b5061035960048036038101906103549190611913565b6107e2565b6040516103669190611876565b60405180910390f35b34801561037a575f80fd5b50610383610827565b6040516103909190611876565b60405180910390f35b3480156103a4575f80fd5b506103ad61082d565b6040516103ba91906114cc565b60405180910390f35b3480156103ce575f80fd5b506103e960048036038101906103e4919061155a565b6108bd565b6040516103f691906115b2565b60405180910390f35b34801561040a575f80fd5b506104256004803603810190610420919061193e565b6108df565b6040516104329190611876565b60405180910390f35b348015610446575f80fd5b5061044f610961565b60405161045c91906115b2565b60405180910390f35b348015610470575f80fd5b50610479610974565b005b348015610486575f80fd5b5061048f610a9b565b60405161049c9190611429565b60405180910390f35b3480156104b0575f80fd5b506104cb60048036038101906104c6919061197c565b610ac0565b005b3480156104d8575f80fd5b506104e1610bf8565b6040516104ee91906115b2565b60405180910390f35b348015610502575f80fd5b5061051d6004803603810190610518919061197c565b610c0b565b005b60055f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b606060038054610553906119d4565b80601f016020809104026020016040519081016040528092919081815260200182805461057f906119d4565b80156105ca5780601f106105a1576101008083540402835291602001916105ca565b820191905f5260205f20905b8154815290600101906020018083116105ad57829003601f168201915b5050505050905090565b5f806105de610dc1565b90506105eb818585610dc8565b600191505092915050565b60055f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614610685576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161067c90611a4e565b60405180910390fd5b600b60019054906101000a900460ff1661069d575f80fd5b5f5b8451811015610759578481815181106106bb576106ba611a6c565b5b602002602001015173ffffffffffffffffffffffffffffffffffffffff1682848684815181106106ee576106ed611a6c565b5b6020026020010151028161070557610704611a99565b5b0460405161071290611af3565b5f6040518083038185875af1925050503d805f811461074c576040519150601f19603f3d011682016040523d82523d5f602084013e610751565b606091505b50505061069f565b5050505050565b5f600254905090565b5f80610773610dc1565b9050610780858285610dda565b61078b858585610e6c565b60019150509392505050565b60085481565b5f6012905090565b600b5f9054906101000a900460ff1681565b600a5481565b60065f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b5f805f8373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f20549050919050565b60095481565b60606004805461083c906119d4565b80601f0160208091040260200160405190810160405280929190818152602001828054610868906119d4565b80156108b35780601f1061088a576101008083540402835291602001916108b3565b820191905f5260205f20905b81548152906001019060200180831161089657829003601f168201915b5050505050905090565b5f806108c7610dc1565b90506108d4818585610e6c565b600191505092915050565b5f60015f8473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f8373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f2054905092915050565b600b60029054906101000a900460ff1681565b60055f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614610a03576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016109fa90611a4e565b60405180910390fd5b60065f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663c44193c36008546a01ac994285e468210000006040518363ffffffff1660e01b8152600401610a6c929190611b49565b5f604051808303815f87803b158015610a83575f80fd5b505af1158015610a95573d5f803e3d5ffd5b50505050565b60075f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b60055f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614610b4f576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610b4690611a4e565b60405180910390fd5b60065f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166323165b75600854836040518363ffffffff1660e01b8152600401610bad929190611b70565b5f604051808303815f87803b158015610bc4575f80fd5b505af1158015610bd6573d5f803e3d5ffd5b505050506001600b60016101000a81548160ff02191690831515021790555050565b600b60019054906101000a900460ff1681565b60025f610c16610f5c565b9050805f0160089054906101000a900460ff1680610c5e57508167ffffffffffffffff16815f015f9054906101000a900467ffffffffffffffff1667ffffffffffffffff1610155b15610c95576040517ff92ee8a900000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b81815f015f6101000a81548167ffffffffffffffff021916908367ffffffffffffffff1602179055506001815f0160086101000a81548160ff021916908315150217905550610d0560055f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1684610f83565b60055f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166108fc4790811502906040515f60405180830381858888f19350505050158015610d69573d5f803e3d5ffd5b505f815f0160086101000a81548160ff0219169083151502179055507fc7f505b2f371ae2175ee4913f4499e1f2633a7b5936321eed1cdaeb6115181d282604051610db49190611bb9565b60405180910390a1505050565b5f33905090565b610dd58383836001611002565b505050565b5f610de584846108df565b90507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff8114610e665781811015610e57578281836040517ffb8f41b2000000000000000000000000000000000000000000000000000000008152600401610e4e93929190611bd2565b60405180910390fd5b610e6584848484035f611002565b5b50505050565b5f73ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1603610edc575f6040517f96c6fd1e000000000000000000000000000000000000000000000000000000008152600401610ed39190611429565b60405180910390fd5b5f73ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1603610f4c575f6040517fec442f05000000000000000000000000000000000000000000000000000000008152600401610f439190611429565b60405180910390fd5b610f578383836111d1565b505050565b5f7ff0c57e16840df040f15088dc2f81fe391c3923bec73e23a9662efc9c229c6a00905090565b5f73ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1603610ff3575f6040517fec442f05000000000000000000000000000000000000000000000000000000008152600401610fea9190611429565b60405180910390fd5b610ffe5f83836111d1565b5050565b5f73ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff1603611072575f6040517fe602df050000000000000000000000000000000000000000000000000000000081526004016110699190611429565b60405180910390fd5b5f73ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff16036110e2575f6040517f94280d620000000000000000000000000000000000000000000000000000000081526004016110d99190611429565b60405180910390fd5b8160015f8673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f8573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f208190555080156111cb578273ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925846040516111c29190611876565b60405180910390a35b50505050565b5f73ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1603611221578060025f8282546112159190611c34565b925050819055506112ef565b5f805f8573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f20549050818110156112aa578381836040517fe450d38c0000000000000000000000000000000000000000000000000000000081526004016112a193929190611bd2565b60405180910390fd5b8181035f808673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f2081905550505b5f73ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1603611336578060025f8282540392505081905550611380565b805f808473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f82825401925050819055505b8173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef836040516113dd9190611876565b60405180910390a3505050565b5f73ffffffffffffffffffffffffffffffffffffffff82169050919050565b5f611413826113ea565b9050919050565b61142381611409565b82525050565b5f60208201905061143c5f83018461141a565b92915050565b5f81519050919050565b5f82825260208201905092915050565b5f5b8381101561147957808201518184015260208101905061145e565b5f8484015250505050565b5f601f19601f8301169050919050565b5f61149e82611442565b6114a8818561144c565b93506114b881856020860161145c565b6114c181611484565b840191505092915050565b5f6020820190508181035f8301526114e48184611494565b905092915050565b5f604051905090565b5f80fd5b5f80fd5b61150681611409565b8114611510575f80fd5b50565b5f81359050611521816114fd565b92915050565b5f819050919050565b61153981611527565b8114611543575f80fd5b50565b5f8135905061155481611530565b92915050565b5f80604083850312156115705761156f6114f5565b5b5f61157d85828601611513565b925050602061158e85828601611546565b9150509250929050565b5f8115159050919050565b6115ac81611598565b82525050565b5f6020820190506115c55f8301846115a3565b92915050565b5f80fd5b7f4e487b71000000000000000000000000000000000000000000000000000000005f52604160045260245ffd5b61160582611484565b810181811067ffffffffffffffff82111715611624576116236115cf565b5b80604052505050565b5f6116366114ec565b905061164282826115fc565b919050565b5f67ffffffffffffffff821115611661576116606115cf565b5b602082029050602081019050919050565b5f80fd5b5f61168861168384611647565b61162d565b905080838252602082019050602084028301858111156116ab576116aa611672565b5b835b818110156116d457806116c08882611513565b8452602084019350506020810190506116ad565b5050509392505050565b5f82601f8301126116f2576116f16115cb565b5b8135611702848260208601611676565b91505092915050565b5f67ffffffffffffffff821115611725576117246115cf565b5b602082029050602081019050919050565b5f6117486117438461170b565b61162d565b9050808382526020820190506020840283018581111561176b5761176a611672565b5b835b8181101561179457806117808882611546565b84526020840193505060208101905061176d565b5050509392505050565b5f82601f8301126117b2576117b16115cb565b5b81356117c2848260208601611736565b91505092915050565b5f805f80608085870312156117e3576117e26114f5565b5b5f85013567ffffffffffffffff811115611800576117ff6114f9565b5b61180c878288016116de565b945050602085013567ffffffffffffffff81111561182d5761182c6114f9565b5b6118398782880161179e565b935050604061184a87828801611546565b925050606061185b87828801611546565b91505092959194509250565b61187081611527565b82525050565b5f6020820190506118895f830184611867565b92915050565b5f805f606084860312156118a6576118a56114f5565b5b5f6118b386828701611513565b93505060206118c486828701611513565b92505060406118d586828701611546565b9150509250925092565b5f60ff82169050919050565b6118f4816118df565b82525050565b5f60208201905061190d5f8301846118eb565b92915050565b5f60208284031215611928576119276114f5565b5b5f61193584828501611513565b91505092915050565b5f8060408385031215611954576119536114f5565b5b5f61196185828601611513565b925050602061197285828601611513565b9150509250929050565b5f60208284031215611991576119906114f5565b5b5f61199e84828501611546565b91505092915050565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52602260045260245ffd5b5f60028204905060018216806119eb57607f821691505b6020821081036119fe576119fd6119a7565b5b50919050565b7f6f6e6c792061646d696e000000000000000000000000000000000000000000005f82015250565b5f611a38600a8361144c565b9150611a4382611a04565b602082019050919050565b5f6020820190508181035f830152611a6581611a2c565b9050919050565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52603260045260245ffd5b7f4e487b71000000000000000000000000000000000000000000000000000000005f52601260045260245ffd5b5f81905092915050565b50565b5f611ade5f83611ac6565b9150611ae982611ad0565b5f82019050919050565b5f611afd82611ad3565b9150819050919050565b5f819050919050565b5f819050919050565b5f611b33611b2e611b2984611b07565b611b10565b611527565b9050919050565b611b4381611b19565b82525050565b5f604082019050611b5c5f830185611867565b611b696020830184611b3a565b9392505050565b5f604082019050611b835f830185611867565b611b906020830184611867565b9392505050565b5f67ffffffffffffffff82169050919050565b611bb381611b97565b82525050565b5f602082019050611bcc5f830184611baa565b92915050565b5f606082019050611be55f83018661141a565b611bf26020830185611867565b611bff6040830184611867565b949350505050565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52601160045260245ffd5b5f611c3e82611527565b9150611c4983611527565b9250828201905080821115611c6157611c60611c07565b5b9291505056fea264697066735822122094ae8c2ab7c9f406315c6a3b08094c495d67c3245edce1673fa442356e678b4264736f6c63430008140033
Loading...
Loading
Loading...
Loading
Multichain Portfolio | 31 Chains
Chain | Token | Portfolio % | Price | Amount | Value |
---|
Loading...
Loading
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.