More Info
Private Name Tags
ContractCreator
TokenTracker
Latest 25 from a total of 19,492 transactions
Transaction Hash |
Method
|
Block
|
From
|
To
|
|||||
---|---|---|---|---|---|---|---|---|---|
Approve | 21249926 | 2 hrs ago | IN | 0 ETH | 0.00052214 | ||||
Approve | 21249161 | 4 hrs ago | IN | 0 ETH | 0.00026695 | ||||
Approve | 21248814 | 6 hrs ago | IN | 0 ETH | 0.00027482 | ||||
Approve | 21248520 | 7 hrs ago | IN | 0 ETH | 0.00028252 | ||||
Approve | 21248520 | 7 hrs ago | IN | 0 ETH | 0.00028183 | ||||
Approve | 21248469 | 7 hrs ago | IN | 0 ETH | 0.00051053 | ||||
Approve | 21222689 | 3 days ago | IN | 0 ETH | 0.00051607 | ||||
Approve | 21220217 | 4 days ago | IN | 0 ETH | 0.00050312 | ||||
Approve | 21212175 | 5 days ago | IN | 0 ETH | 0.00046801 | ||||
Approve | 21212135 | 5 days ago | IN | 0 ETH | 0.00050067 | ||||
Approve | 21211126 | 5 days ago | IN | 0 ETH | 0.00054148 | ||||
Transfer | 21211116 | 5 days ago | IN | 0 ETH | 0.00032479 | ||||
Transfer | 21211112 | 5 days ago | IN | 0 ETH | 0.0003273 | ||||
Transfer | 21211109 | 5 days ago | IN | 0 ETH | 0.00035375 | ||||
Transfer | 21211105 | 5 days ago | IN | 0 ETH | 0.00035753 | ||||
Approve | 21208364 | 5 days ago | IN | 0 ETH | 0.00028391 | ||||
Approve | 21206729 | 6 days ago | IN | 0 ETH | 0.00045634 | ||||
Approve | 21203340 | 6 days ago | IN | 0 ETH | 0.00053572 | ||||
Approve | 21200023 | 7 days ago | IN | 0 ETH | 0.0003368 | ||||
Transfer | 21198897 | 7 days ago | IN | 0 ETH | 0.00079718 | ||||
Transfer | 21198646 | 7 days ago | IN | 0 ETH | 0.00078897 | ||||
Transfer | 21198170 | 7 days ago | IN | 0 ETH | 0.00076303 | ||||
Transfer | 21198142 | 7 days ago | IN | 0 ETH | 0.00080049 | ||||
Transfer | 21198138 | 7 days ago | IN | 0 ETH | 0.00068059 | ||||
Transfer | 21198128 | 7 days ago | IN | 0 ETH | 0.00068532 |
Latest 1 internal transaction
Advanced mode:
Parent Transaction Hash | Block | From | To | |||
---|---|---|---|---|---|---|
21021637 | 31 days ago | 10.8675 ETH |
Loading...
Loading
Contract Source Code Verified (Exact Match)
Contract Name:
DuckAI
Compiler Version
v0.8.26+commit.8a97fa7a
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 "@openzeppelin/contracts/token/ERC20/ERC20.sol"; import "@openzeppelin/contracts/access/Ownable.sol"; import "@uniswap/v2-periphery/contracts/interfaces/IUniswapV2Router02.sol"; import "./PoW.sol"; contract DuckAI is ERC20, PoW, Ownable { uint256 public MINT_DURATION_BLOCKS; uint256 public startBlock; uint256 public DIFFICULTY = 100_000; uint256 public constant MINT_FEE = 0.00069 ether; uint256 public constant MAX_MINTS_PER_ADDRESS = 10; uint256 public DIFFICULTY_ADJUSTMENT_INTERVAL; uint256 public MAX_SUPPLY; uint256 public MINT_AMOUNT_PER_TX; struct DifficultyAdjustment { uint256 step; uint256 level; } mapping(uint256 => uint256) public difficultyMap; uint256 public lastDifficultyAdjustmentBlock; mapping(address => uint256) public mintCount; IUniswapV2Router02 public uniswapRouter; constructor( uint256 maxSupply, uint256 tokenPerMint, uint256 mintDurationBlocks, uint256 difficultyAdjustmentInterval, uint256 _startBlock, DifficultyAdjustment[] memory _difficultyAdjustments, address _uniswapRouter ) ERC20("DuckAI", "DUCKAI") Ownable(msg.sender) { MAX_SUPPLY = maxSupply; MINT_AMOUNT_PER_TX = tokenPerMint; MINT_DURATION_BLOCKS = mintDurationBlocks; startBlock = _startBlock; DIFFICULTY_ADJUSTMENT_INTERVAL = difficultyAdjustmentInterval; for (uint256 i = 0; i < _difficultyAdjustments.length; i++) { difficultyMap[_difficultyAdjustments[i].step] = _difficultyAdjustments[i].level; } uint256 initialMintAmount = (maxSupply * 25) / 100; _mint(address(this), initialMintAmount); uniswapRouter = IUniswapV2Router02(_uniswapRouter); } function mint(uint256 nonce) external payable { require(block.number >= startBlock, "Minting has not started yet"); require(msg.sender == tx.origin, "Deny contract mint"); require(totalSupply() + MINT_AMOUNT_PER_TX <= MAX_SUPPLY, "Max supply reached"); require(mintCount[msg.sender] < MAX_MINTS_PER_ADDRESS, "Mint limit reached for the address"); require(msg.value == MINT_FEE, "Insufficient mint fee"); uint256 blocksElapsed = block.number - startBlock; if (blocksElapsed > MINT_DURATION_BLOCKS) { MAX_SUPPLY = totalSupply(); payable(msg.sender).transfer(msg.value); // refund the mint fee to msg.sender return; } _verifyPoW(nonce, DIFFICULTY); mintCount[msg.sender]++; _mint(msg.sender, MINT_AMOUNT_PER_TX); if (blocksElapsed > lastDifficultyAdjustmentBlock) { uint256 adjustmentBlock = (blocksElapsed / DIFFICULTY_ADJUSTMENT_INTERVAL) * DIFFICULTY_ADJUSTMENT_INTERVAL; uint256 newDifficulty = difficultyMap[adjustmentBlock]; if (newDifficulty != 0 && newDifficulty != DIFFICULTY) { DIFFICULTY = newDifficulty; lastDifficultyAdjustmentBlock = adjustmentBlock; } } } function addLiquidity() external { require(totalSupply() == MAX_SUPPLY, "Minting is still active"); uint256 tokenBalance = balanceOf(address(this)); uint256 ethBalance = address(this).balance; require(tokenBalance > 0, "No tokens to add to liquidity"); require(ethBalance > 0, "No ETH to add to liquidity"); _approve(address(this), address(uniswapRouter), tokenBalance); uniswapRouter.addLiquidityETH{value: ethBalance}( address(this), tokenBalance, 0, 0, 0x0000000000000000000000000000000000000000, // burn LP tokens block.timestamp ); } function transferOwnership(address /* newOwner */) public override onlyOwner { // transfer ownership to vitalik.eth super.transferOwnership(0xd8dA6BF26964aF9D7eEd9e03E53415D37aA96045); } }
// 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 ERC-20 * applications. */ 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. */ constructor(string memory name_, string memory symbol_) { _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}. * * Skips emitting an {Approval} event indicating an allowance update. This is not * required by the ERC. See {xref-ERC20-_approve-address-address-uint256-bool-}[_approve]. * * 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: * * ```solidity * 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) (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); } }
pragma solidity >=0.6.2; import './IUniswapV2Router01.sol'; interface IUniswapV2Router02 is IUniswapV2Router01 { function removeLiquidityETHSupportingFeeOnTransferTokens( address token, uint liquidity, uint amountTokenMin, uint amountETHMin, address to, uint deadline ) external returns (uint amountETH); function removeLiquidityETHWithPermitSupportingFeeOnTransferTokens( address token, uint liquidity, uint amountTokenMin, uint amountETHMin, address to, uint deadline, bool approveMax, uint8 v, bytes32 r, bytes32 s ) external returns (uint amountETH); function swapExactTokensForTokensSupportingFeeOnTransferTokens( uint amountIn, uint amountOutMin, address[] calldata path, address to, uint deadline ) external; function swapExactETHForTokensSupportingFeeOnTransferTokens( uint amountOutMin, address[] calldata path, address to, uint deadline ) external payable; function swapExactTokensForETHSupportingFeeOnTransferTokens( uint amountIn, uint amountOutMin, address[] calldata path, address to, uint deadline ) external; }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.20; contract PoW { mapping(uint256 => bool) private _usedNonce; function _verifyPoW(uint256 nonce, uint256 difficulty) internal { require(!_usedNonce[nonce], "Nonce already used"); _usedNonce[nonce] = true; bytes32 hash = keccak256( abi.encodePacked(address(this), msg.sender, nonce, difficulty) ); uint256 target = ~uint256(0) / difficulty; // ~uint256(0) equals 2^256 - 1 require(uint256(hash) < target, "PoW verification failed"); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v5.0.0) (token/ERC20/IERC20.sol) pragma solidity ^0.8.20; /** * @dev Interface of the ERC-20 standard as defined in the ERC. */ 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); }
// 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 ERC-20 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.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) (interfaces/draft-IERC6093.sol) pragma solidity ^0.8.20; /** * @dev Standard ERC-20 Errors * Interface of the https://eips.ethereum.org/EIPS/eip-6093[ERC-6093] custom errors for ERC-20 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 ERC-721 Errors * Interface of the https://eips.ethereum.org/EIPS/eip-6093[ERC-6093] custom errors for ERC-721 tokens. */ interface IERC721Errors { /** * @dev Indicates that an address can't be an owner. For example, `address(0)` is a forbidden owner in ERC-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 ERC-1155 Errors * Interface of the https://eips.ethereum.org/EIPS/eip-6093[ERC-6093] custom errors for ERC-1155 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); }
pragma solidity >=0.6.2; interface IUniswapV2Router01 { function factory() external pure returns (address); function WETH() external pure returns (address); function addLiquidity( address tokenA, address tokenB, uint amountADesired, uint amountBDesired, uint amountAMin, uint amountBMin, address to, uint deadline ) external returns (uint amountA, uint amountB, uint liquidity); function addLiquidityETH( address token, uint amountTokenDesired, uint amountTokenMin, uint amountETHMin, address to, uint deadline ) external payable returns (uint amountToken, uint amountETH, uint liquidity); function removeLiquidity( address tokenA, address tokenB, uint liquidity, uint amountAMin, uint amountBMin, address to, uint deadline ) external returns (uint amountA, uint amountB); function removeLiquidityETH( address token, uint liquidity, uint amountTokenMin, uint amountETHMin, address to, uint deadline ) external returns (uint amountToken, uint amountETH); function removeLiquidityWithPermit( address tokenA, address tokenB, uint liquidity, uint amountAMin, uint amountBMin, address to, uint deadline, bool approveMax, uint8 v, bytes32 r, bytes32 s ) external returns (uint amountA, uint amountB); function removeLiquidityETHWithPermit( address token, uint liquidity, uint amountTokenMin, uint amountETHMin, address to, uint deadline, bool approveMax, uint8 v, bytes32 r, bytes32 s ) external returns (uint amountToken, uint amountETH); function swapExactTokensForTokens( uint amountIn, uint amountOutMin, address[] calldata path, address to, uint deadline ) external returns (uint[] memory amounts); function swapTokensForExactTokens( uint amountOut, uint amountInMax, address[] calldata path, address to, uint deadline ) external returns (uint[] memory amounts); function swapExactETHForTokens(uint amountOutMin, address[] calldata path, address to, uint deadline) external payable returns (uint[] memory amounts); function swapTokensForExactETH(uint amountOut, uint amountInMax, address[] calldata path, address to, uint deadline) external returns (uint[] memory amounts); function swapExactTokensForETH(uint amountIn, uint amountOutMin, address[] calldata path, address to, uint deadline) external returns (uint[] memory amounts); function swapETHForExactTokens(uint amountOut, address[] calldata path, address to, uint deadline) external payable returns (uint[] memory amounts); function quote(uint amountA, uint reserveA, uint reserveB) external pure returns (uint amountB); function getAmountOut(uint amountIn, uint reserveIn, uint reserveOut) external pure returns (uint amountOut); function getAmountIn(uint amountOut, uint reserveIn, uint reserveOut) external pure returns (uint amountIn); function getAmountsOut(uint amountIn, address[] calldata path) external view returns (uint[] memory amounts); function getAmountsIn(uint amountOut, address[] calldata path) external view returns (uint[] memory amounts); }
{ "remappings": [ "@openzeppelin/=lib/openzeppelin-contracts/", "@uniswap/v2-periphery/=lib/v2-periphery/", "@openzeppelin/contracts/=lib/openzeppelin-contracts/contracts/", "erc4626-tests/=lib/openzeppelin-contracts/lib/erc4626-tests/", "forge-std/=lib/forge-std/src/", "halmos-cheatcodes/=lib/openzeppelin-contracts/lib/halmos-cheatcodes/src/", "openzeppelin-contracts/=lib/openzeppelin-contracts/", "v2-periphery/=lib/v2-periphery/contracts/" ], "optimizer": { "enabled": true, "runs": 200 }, "metadata": { "useLiteralContent": false, "bytecodeHash": "ipfs", "appendCBOR": true }, "outputSelection": { "*": { "*": [ "evm.bytecode", "evm.deployedBytecode", "devdoc", "userdoc", "metadata", "abi" ] } }, "evmVersion": "paris", "viaIR": false, "libraries": {} }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"inputs":[{"internalType":"uint256","name":"maxSupply","type":"uint256"},{"internalType":"uint256","name":"tokenPerMint","type":"uint256"},{"internalType":"uint256","name":"mintDurationBlocks","type":"uint256"},{"internalType":"uint256","name":"difficultyAdjustmentInterval","type":"uint256"},{"internalType":"uint256","name":"_startBlock","type":"uint256"},{"components":[{"internalType":"uint256","name":"step","type":"uint256"},{"internalType":"uint256","name":"level","type":"uint256"}],"internalType":"struct DuckAI.DifficultyAdjustment[]","name":"_difficultyAdjustments","type":"tuple[]"},{"internalType":"address","name":"_uniswapRouter","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"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":[{"internalType":"address","name":"owner","type":"address"}],"name":"OwnableInvalidOwner","type":"error"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"OwnableUnauthorizedAccount","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":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":false,"internalType":"uint256","name":"value","type":"uint256"}],"name":"Transfer","type":"event"},{"inputs":[],"name":"DIFFICULTY","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"DIFFICULTY_ADJUSTMENT_INTERVAL","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"MAX_MINTS_PER_ADDRESS","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"MAX_SUPPLY","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"MINT_AMOUNT_PER_TX","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"MINT_DURATION_BLOCKS","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"MINT_FEE","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"addLiquidity","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":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"difficultyMap","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"lastDifficultyAdjustmentBlock","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"nonce","type":"uint256"}],"name":"mint","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"mintCount","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"startBlock","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"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"uniswapRouter","outputs":[{"internalType":"contract IUniswapV2Router02","name":"","type":"address"}],"stateMutability":"view","type":"function"}]
Contract Creation Code
6080604052620186a060095534801561001757600080fd5b5060405161186b38038061186b833981016040819052610036916103dd565b33604051806040016040528060068152602001654475636b414960d01b815250604051806040016040528060068152602001654455434b414960d01b81525081600390816100849190610580565b5060046100918282610580565b5050506001600160a01b0381166100c357604051631e4fbdf760e01b8152600060048201526024015b60405180910390fd5b6100cc8161019d565b50600b879055600c86905560078590556008839055600a84905560005b825181101561014a578281815181106101045761010461063e565b602002602001015160200151600d60008584815181106101265761012661063e565b602090810291909101810151518252810191909152604001600020556001016100e9565b506000606461015a89601961066a565b6101649190610687565b905061017030826101ef565b50601080546001600160a01b0319166001600160a01b0392909216919091179055506106bc945050505050565b600680546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b6001600160a01b0382166102195760405163ec442f0560e01b8152600060048201526024016100ba565b61022560008383610229565b5050565b6001600160a01b03831661025457806002600082825461024991906106a9565b909155506102c69050565b6001600160a01b038316600090815260208190526040902054818110156102a75760405163391434e360e21b81526001600160a01b038516600482015260248101829052604481018390526064016100ba565b6001600160a01b03841660009081526020819052604090209082900390555b6001600160a01b0382166102e257600280548290039055610301565b6001600160a01b03821660009081526020819052604090208054820190555b816001600160a01b0316836001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef8360405161034691815260200190565b60405180910390a3505050565b634e487b7160e01b600052604160045260246000fd5b604080519081016001600160401b038111828210171561038b5761038b610353565b60405290565b604051601f8201601f191681016001600160401b03811182821017156103b9576103b9610353565b604052919050565b80516001600160a01b03811681146103d857600080fd5b919050565b600080600080600080600060e0888a0312156103f857600080fd5b8751602089015160408a015160608b015160808c015160a08d0151949b50929950909750955093506001600160401b0381111561043457600080fd5b8801601f81018a1361044557600080fd5b80516001600160401b0381111561045e5761045e610353565b61046d60208260051b01610391565b8082825260208201915060208360061b85010192508c83111561048f57600080fd5b6020840193505b828410156104d7576040848e0312156104ae57600080fd5b6104b6610369565b84518152602080860151818301529083526040909401939190910190610496565b94506104e99250505060c089016103c1565b905092959891949750929550565b600181811c9082168061050b57607f821691505b60208210810361052b57634e487b7160e01b600052602260045260246000fd5b50919050565b601f82111561057b57806000526020600020601f840160051c810160208510156105585750805b601f840160051c820191505b818110156105785760008155600101610564565b50505b505050565b81516001600160401b0381111561059957610599610353565b6105ad816105a784546104f7565b84610531565b6020601f8211600181146105e157600083156105c95750848201515b600019600385901b1c1916600184901b178455610578565b600084815260208120601f198516915b8281101561061157878501518255602094850194600190920191016105f1565b508482101561062f5786840151600019600387901b60f8161c191681555b50505050600190811b01905550565b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052601160045260246000fd5b808202811582820484141761068157610681610654565b92915050565b6000826106a457634e487b7160e01b600052601260045260246000fd5b500490565b8082018082111561068157610681610654565b6111a0806106cb6000396000f3fe6080604052600436106101815760003560e01c8063735de9f7116100d1578063b874ff431161008a578063e8078d9411610064578063e8078d9414610452578063ed9ec88814610467578063f2fde38b14610494578063f7d13407146104b457600080fd5b8063b874ff43146103dc578063d7bf81a3146103f1578063dd62ed3e1461040c57600080fd5b8063735de9f7146103285780638da5cb5b146103605780638e295e9f1461037e57806395d89b4114610394578063a0712d68146103a9578063a9059cbb146103bc57600080fd5b8063313ce5671161013e57806348cd4cb11161011857806348cd4cb1146102985780635f111c1e146102ae57806370a08231146102db578063715018a61461031157600080fd5b8063313ce5671461025057806332cb6b0c1461026c5780633fa352f51461028257600080fd5b806306fdde0314610186578063095ea7b3146101b15780630cf09db2146101e15780631087cafd1461020557806318160ddd1461021b57806323b872dd14610230575b600080fd5b34801561019257600080fd5b5061019b6104ca565b6040516101a89190610f35565b60405180910390f35b3480156101bd57600080fd5b506101d16101cc366004610f9f565b61055c565b60405190151581526020016101a8565b3480156101ed57600080fd5b506101f7600e5481565b6040519081526020016101a8565b34801561021157600080fd5b506101f760075481565b34801561022757600080fd5b506002546101f7565b34801561023c57600080fd5b506101d161024b366004610fc9565b610576565b34801561025c57600080fd5b50604051601281526020016101a8565b34801561027857600080fd5b506101f7600b5481565b34801561028e57600080fd5b506101f760095481565b3480156102a457600080fd5b506101f760085481565b3480156102ba57600080fd5b506101f76102c9366004611006565b600d6020526000908152604090205481565b3480156102e757600080fd5b506101f76102f636600461101f565b6001600160a01b031660009081526020819052604090205490565b34801561031d57600080fd5b5061032661059a565b005b34801561033457600080fd5b50601054610348906001600160a01b031681565b6040516001600160a01b0390911681526020016101a8565b34801561036c57600080fd5b506006546001600160a01b0316610348565b34801561038a57600080fd5b506101f7600c5481565b3480156103a057600080fd5b5061019b6105ae565b6103266103b7366004611006565b6105bd565b3480156103c857600080fd5b506101d16103d7366004610f9f565b61084f565b3480156103e857600080fd5b506101f7600a81565b3480156103fd57600080fd5b506101f76602738d24e5200081565b34801561041857600080fd5b506101f7610427366004611041565b6001600160a01b03918216600090815260016020908152604080832093909416825291909152205490565b34801561045e57600080fd5b5061032661085d565b34801561047357600080fd5b506101f761048236600461101f565b600f6020526000908152604090205481565b3480156104a057600080fd5b506103266104af36600461101f565b610a0f565b3480156104c057600080fd5b506101f7600a5481565b6060600380546104d990611074565b80601f016020809104026020016040519081016040528092919081815260200182805461050590611074565b80156105525780601f1061052757610100808354040283529160200191610552565b820191906000526020600020905b81548152906001019060200180831161053557829003601f168201915b5050505050905090565b60003361056a818585610a37565b60019150505b92915050565b600033610584858285610a44565b61058f858585610abc565b506001949350505050565b6105a2610b1b565b6105ac6000610b48565b565b6060600480546104d990611074565b6008544310156106145760405162461bcd60e51b815260206004820152601b60248201527f4d696e74696e6720686173206e6f74207374617274656420796574000000000060448201526064015b60405180910390fd5b3332146106585760405162461bcd60e51b815260206004820152601260248201527111195b9e4818dbdb9d1c9858dd081b5a5b9d60721b604482015260640161060b565b600b54600c5460025461066b91906110c4565b11156106ae5760405162461bcd60e51b815260206004820152601260248201527113585e081cdd5c1c1b1e481c995858da195960721b604482015260640161060b565b336000908152600f6020526040902054600a116107185760405162461bcd60e51b815260206004820152602260248201527f4d696e74206c696d6974207265616368656420666f7220746865206164647265604482015261737360f01b606482015260840161060b565b6602738d24e5200034146107665760405162461bcd60e51b8152602060048201526015602482015274496e73756666696369656e74206d696e742066656560581b604482015260640161060b565b60006008544361077691906110d7565b90506007548111156107b957600254600b5560405133903480156108fc02916000818181858888f193505050501580156107b4573d6000803e3d6000fd5b505050565b6107c582600954610b9a565b336000908152600f602052604081208054916107e0836110ea565b91905055506107f133600c54610cc5565b600e5481111561084b57600a5460009061080b8184611103565b6108159190611125565b6000818152600d6020526040902054909150801580159061083857506009548114155b15610848576009819055600e8290555b50505b5050565b60003361056a818585610abc565b600b54600254146108b05760405162461bcd60e51b815260206004820152601760248201527f4d696e74696e67206973207374696c6c20616374697665000000000000000000604482015260640161060b565b30600090815260208190526040902054478161090e5760405162461bcd60e51b815260206004820152601d60248201527f4e6f20746f6b656e7320746f2061646420746f206c6971756964697479000000604482015260640161060b565b6000811161095e5760405162461bcd60e51b815260206004820152601a60248201527f4e6f2045544820746f2061646420746f206c6971756964697479000000000000604482015260640161060b565b6010546109769030906001600160a01b031684610a37565b60105460405163f305d71960e01b8152306004820152602481018490526000604482018190526064820181905260848201524260a48201526001600160a01b039091169063f305d71990839060c40160606040518083038185885af11580156109e3573d6000803e3d6000fd5b50505050506040513d601f19601f82011682018060405250810190610a08919061113c565b5050505050565b610a17610b1b565b610a3473d8da6bf26964af9d7eed9e03e53415d37aa96045610cfb565b50565b6107b48383836001610d36565b6001600160a01b0383811660009081526001602090815260408083209386168352929052205460001981146108485781811015610aad57604051637dc7a0d960e11b81526001600160a01b0384166004820152602481018290526044810183905260640161060b565b61084884848484036000610d36565b6001600160a01b038316610ae657604051634b637e8f60e11b81526000600482015260240161060b565b6001600160a01b038216610b105760405163ec442f0560e01b81526000600482015260240161060b565b6107b4838383610e0b565b6006546001600160a01b031633146105ac5760405163118cdaa760e01b815233600482015260240161060b565b600680546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b60008281526005602052604090205460ff1615610bee5760405162461bcd60e51b8152602060048201526012602482015271139bdb98d948185b1c9958591e481d5cd95960721b604482015260640161060b565b6000828152600560209081526040808320805460ff1916600117905551610c4c91309133918791879101606094851b6bffffffffffffffffffffffff1990811682529390941b90921660148401526028830152604882015260680190565b60408051601f19818403018152919052805160209091012090506000610c7483600019611103565b90508082106108485760405162461bcd60e51b815260206004820152601760248201527f506f5720766572696669636174696f6e206661696c6564000000000000000000604482015260640161060b565b6001600160a01b038216610cef5760405163ec442f0560e01b81526000600482015260240161060b565b61084b60008383610e0b565b610d03610b1b565b6001600160a01b038116610d2d57604051631e4fbdf760e01b81526000600482015260240161060b565b610a3481610b48565b6001600160a01b038416610d605760405163e602df0560e01b81526000600482015260240161060b565b6001600160a01b038316610d8a57604051634a1406b160e11b81526000600482015260240161060b565b6001600160a01b038085166000908152600160209081526040808320938716835292905220829055801561084857826001600160a01b0316846001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92584604051610dfd91815260200190565b60405180910390a350505050565b6001600160a01b038316610e36578060026000828254610e2b91906110c4565b90915550610ea89050565b6001600160a01b03831660009081526020819052604090205481811015610e895760405163391434e360e21b81526001600160a01b0385166004820152602481018290526044810183905260640161060b565b6001600160a01b03841660009081526020819052604090209082900390555b6001600160a01b038216610ec457600280548290039055610ee3565b6001600160a01b03821660009081526020819052604090208054820190555b816001600160a01b0316836001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef83604051610f2891815260200190565b60405180910390a3505050565b602081526000825180602084015260005b81811015610f635760208186018101516040868401015201610f46565b506000604082850101526040601f19601f83011684010191505092915050565b80356001600160a01b0381168114610f9a57600080fd5b919050565b60008060408385031215610fb257600080fd5b610fbb83610f83565b946020939093013593505050565b600080600060608486031215610fde57600080fd5b610fe784610f83565b9250610ff560208501610f83565b929592945050506040919091013590565b60006020828403121561101857600080fd5b5035919050565b60006020828403121561103157600080fd5b61103a82610f83565b9392505050565b6000806040838503121561105457600080fd5b61105d83610f83565b915061106b60208401610f83565b90509250929050565b600181811c9082168061108857607f821691505b6020821081036110a857634e487b7160e01b600052602260045260246000fd5b50919050565b634e487b7160e01b600052601160045260246000fd5b80820180821115610570576105706110ae565b81810381811115610570576105706110ae565b6000600182016110fc576110fc6110ae565b5060010190565b60008261112057634e487b7160e01b600052601260045260246000fd5b500490565b8082028115828204841417610570576105706110ae565b60008060006060848603121561115157600080fd5b505081516020830151604090930151909492935091905056fea2646970667358221220cec25160fb8829fdcc0ee81590cb1e9dda7b7efa7dabe9542de13c0a42f84b3364736f6c634300081a0033000000000000000000000000000000000000000021ed657c8e0d427f840000000000000000000000000000000000000000000000000069e10de76676d0800000000000000000000000000000000000000000000000000000000000000000384000000000000000000000000000000000000000000000000000000000000012c0000000000000000000000000000000000000000000000000000000000140c14800000000000000000000000000000000000000000000000000000000000000e00000000000000000000000007a250d5630b4cf539739df2c5dacb4c659f2488d000000000000000000000000000000000000000000000000000000000000000200000000000000000000000000000000000000000000000000000000000012c000000000000000000000000000000000000000000000000000000000000f424000000000000000000000000000000000000000000000000000000000000025800000000000000000000000000000000000000000000000000000000000989680
Deployed Bytecode
0x6080604052600436106101815760003560e01c8063735de9f7116100d1578063b874ff431161008a578063e8078d9411610064578063e8078d9414610452578063ed9ec88814610467578063f2fde38b14610494578063f7d13407146104b457600080fd5b8063b874ff43146103dc578063d7bf81a3146103f1578063dd62ed3e1461040c57600080fd5b8063735de9f7146103285780638da5cb5b146103605780638e295e9f1461037e57806395d89b4114610394578063a0712d68146103a9578063a9059cbb146103bc57600080fd5b8063313ce5671161013e57806348cd4cb11161011857806348cd4cb1146102985780635f111c1e146102ae57806370a08231146102db578063715018a61461031157600080fd5b8063313ce5671461025057806332cb6b0c1461026c5780633fa352f51461028257600080fd5b806306fdde0314610186578063095ea7b3146101b15780630cf09db2146101e15780631087cafd1461020557806318160ddd1461021b57806323b872dd14610230575b600080fd5b34801561019257600080fd5b5061019b6104ca565b6040516101a89190610f35565b60405180910390f35b3480156101bd57600080fd5b506101d16101cc366004610f9f565b61055c565b60405190151581526020016101a8565b3480156101ed57600080fd5b506101f7600e5481565b6040519081526020016101a8565b34801561021157600080fd5b506101f760075481565b34801561022757600080fd5b506002546101f7565b34801561023c57600080fd5b506101d161024b366004610fc9565b610576565b34801561025c57600080fd5b50604051601281526020016101a8565b34801561027857600080fd5b506101f7600b5481565b34801561028e57600080fd5b506101f760095481565b3480156102a457600080fd5b506101f760085481565b3480156102ba57600080fd5b506101f76102c9366004611006565b600d6020526000908152604090205481565b3480156102e757600080fd5b506101f76102f636600461101f565b6001600160a01b031660009081526020819052604090205490565b34801561031d57600080fd5b5061032661059a565b005b34801561033457600080fd5b50601054610348906001600160a01b031681565b6040516001600160a01b0390911681526020016101a8565b34801561036c57600080fd5b506006546001600160a01b0316610348565b34801561038a57600080fd5b506101f7600c5481565b3480156103a057600080fd5b5061019b6105ae565b6103266103b7366004611006565b6105bd565b3480156103c857600080fd5b506101d16103d7366004610f9f565b61084f565b3480156103e857600080fd5b506101f7600a81565b3480156103fd57600080fd5b506101f76602738d24e5200081565b34801561041857600080fd5b506101f7610427366004611041565b6001600160a01b03918216600090815260016020908152604080832093909416825291909152205490565b34801561045e57600080fd5b5061032661085d565b34801561047357600080fd5b506101f761048236600461101f565b600f6020526000908152604090205481565b3480156104a057600080fd5b506103266104af36600461101f565b610a0f565b3480156104c057600080fd5b506101f7600a5481565b6060600380546104d990611074565b80601f016020809104026020016040519081016040528092919081815260200182805461050590611074565b80156105525780601f1061052757610100808354040283529160200191610552565b820191906000526020600020905b81548152906001019060200180831161053557829003601f168201915b5050505050905090565b60003361056a818585610a37565b60019150505b92915050565b600033610584858285610a44565b61058f858585610abc565b506001949350505050565b6105a2610b1b565b6105ac6000610b48565b565b6060600480546104d990611074565b6008544310156106145760405162461bcd60e51b815260206004820152601b60248201527f4d696e74696e6720686173206e6f74207374617274656420796574000000000060448201526064015b60405180910390fd5b3332146106585760405162461bcd60e51b815260206004820152601260248201527111195b9e4818dbdb9d1c9858dd081b5a5b9d60721b604482015260640161060b565b600b54600c5460025461066b91906110c4565b11156106ae5760405162461bcd60e51b815260206004820152601260248201527113585e081cdd5c1c1b1e481c995858da195960721b604482015260640161060b565b336000908152600f6020526040902054600a116107185760405162461bcd60e51b815260206004820152602260248201527f4d696e74206c696d6974207265616368656420666f7220746865206164647265604482015261737360f01b606482015260840161060b565b6602738d24e5200034146107665760405162461bcd60e51b8152602060048201526015602482015274496e73756666696369656e74206d696e742066656560581b604482015260640161060b565b60006008544361077691906110d7565b90506007548111156107b957600254600b5560405133903480156108fc02916000818181858888f193505050501580156107b4573d6000803e3d6000fd5b505050565b6107c582600954610b9a565b336000908152600f602052604081208054916107e0836110ea565b91905055506107f133600c54610cc5565b600e5481111561084b57600a5460009061080b8184611103565b6108159190611125565b6000818152600d6020526040902054909150801580159061083857506009548114155b15610848576009819055600e8290555b50505b5050565b60003361056a818585610abc565b600b54600254146108b05760405162461bcd60e51b815260206004820152601760248201527f4d696e74696e67206973207374696c6c20616374697665000000000000000000604482015260640161060b565b30600090815260208190526040902054478161090e5760405162461bcd60e51b815260206004820152601d60248201527f4e6f20746f6b656e7320746f2061646420746f206c6971756964697479000000604482015260640161060b565b6000811161095e5760405162461bcd60e51b815260206004820152601a60248201527f4e6f2045544820746f2061646420746f206c6971756964697479000000000000604482015260640161060b565b6010546109769030906001600160a01b031684610a37565b60105460405163f305d71960e01b8152306004820152602481018490526000604482018190526064820181905260848201524260a48201526001600160a01b039091169063f305d71990839060c40160606040518083038185885af11580156109e3573d6000803e3d6000fd5b50505050506040513d601f19601f82011682018060405250810190610a08919061113c565b5050505050565b610a17610b1b565b610a3473d8da6bf26964af9d7eed9e03e53415d37aa96045610cfb565b50565b6107b48383836001610d36565b6001600160a01b0383811660009081526001602090815260408083209386168352929052205460001981146108485781811015610aad57604051637dc7a0d960e11b81526001600160a01b0384166004820152602481018290526044810183905260640161060b565b61084884848484036000610d36565b6001600160a01b038316610ae657604051634b637e8f60e11b81526000600482015260240161060b565b6001600160a01b038216610b105760405163ec442f0560e01b81526000600482015260240161060b565b6107b4838383610e0b565b6006546001600160a01b031633146105ac5760405163118cdaa760e01b815233600482015260240161060b565b600680546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b60008281526005602052604090205460ff1615610bee5760405162461bcd60e51b8152602060048201526012602482015271139bdb98d948185b1c9958591e481d5cd95960721b604482015260640161060b565b6000828152600560209081526040808320805460ff1916600117905551610c4c91309133918791879101606094851b6bffffffffffffffffffffffff1990811682529390941b90921660148401526028830152604882015260680190565b60408051601f19818403018152919052805160209091012090506000610c7483600019611103565b90508082106108485760405162461bcd60e51b815260206004820152601760248201527f506f5720766572696669636174696f6e206661696c6564000000000000000000604482015260640161060b565b6001600160a01b038216610cef5760405163ec442f0560e01b81526000600482015260240161060b565b61084b60008383610e0b565b610d03610b1b565b6001600160a01b038116610d2d57604051631e4fbdf760e01b81526000600482015260240161060b565b610a3481610b48565b6001600160a01b038416610d605760405163e602df0560e01b81526000600482015260240161060b565b6001600160a01b038316610d8a57604051634a1406b160e11b81526000600482015260240161060b565b6001600160a01b038085166000908152600160209081526040808320938716835292905220829055801561084857826001600160a01b0316846001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92584604051610dfd91815260200190565b60405180910390a350505050565b6001600160a01b038316610e36578060026000828254610e2b91906110c4565b90915550610ea89050565b6001600160a01b03831660009081526020819052604090205481811015610e895760405163391434e360e21b81526001600160a01b0385166004820152602481018290526044810183905260640161060b565b6001600160a01b03841660009081526020819052604090209082900390555b6001600160a01b038216610ec457600280548290039055610ee3565b6001600160a01b03821660009081526020819052604090208054820190555b816001600160a01b0316836001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef83604051610f2891815260200190565b60405180910390a3505050565b602081526000825180602084015260005b81811015610f635760208186018101516040868401015201610f46565b506000604082850101526040601f19601f83011684010191505092915050565b80356001600160a01b0381168114610f9a57600080fd5b919050565b60008060408385031215610fb257600080fd5b610fbb83610f83565b946020939093013593505050565b600080600060608486031215610fde57600080fd5b610fe784610f83565b9250610ff560208501610f83565b929592945050506040919091013590565b60006020828403121561101857600080fd5b5035919050565b60006020828403121561103157600080fd5b61103a82610f83565b9392505050565b6000806040838503121561105457600080fd5b61105d83610f83565b915061106b60208401610f83565b90509250929050565b600181811c9082168061108857607f821691505b6020821081036110a857634e487b7160e01b600052602260045260246000fd5b50919050565b634e487b7160e01b600052601160045260246000fd5b80820180821115610570576105706110ae565b81810381811115610570576105706110ae565b6000600182016110fc576110fc6110ae565b5060010190565b60008261112057634e487b7160e01b600052601260045260246000fd5b500490565b8082028115828204841417610570576105706110ae565b60008060006060848603121561115157600080fd5b505081516020830151604090930151909492935091905056fea2646970667358221220cec25160fb8829fdcc0ee81590cb1e9dda7b7efa7dabe9542de13c0a42f84b3364736f6c634300081a0033
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
000000000000000000000000000000000000000021ed657c8e0d427f840000000000000000000000000000000000000000000000000069e10de76676d0800000000000000000000000000000000000000000000000000000000000000000384000000000000000000000000000000000000000000000000000000000000012c0000000000000000000000000000000000000000000000000000000000140c14800000000000000000000000000000000000000000000000000000000000000e00000000000000000000000007a250d5630b4cf539739df2c5dacb4c659f2488d000000000000000000000000000000000000000000000000000000000000000200000000000000000000000000000000000000000000000000000000000012c000000000000000000000000000000000000000000000000000000000000f424000000000000000000000000000000000000000000000000000000000000025800000000000000000000000000000000000000000000000000000000000989680
-----Decoded View---------------
Arg [0] : maxSupply (uint256): 10500000000000000000000000000
Arg [1] : tokenPerMint (uint256): 500000000000000000000000
Arg [2] : mintDurationBlocks (uint256): 14400
Arg [3] : difficultyAdjustmentInterval (uint256): 4800
Arg [4] : _startBlock (uint256): 21021000
Arg [5] : _difficultyAdjustments (tuple[]): System.Collections.Generic.List`1[Nethereum.ABI.FunctionEncoding.ParameterOutput],System.Collections.Generic.List`1[Nethereum.ABI.FunctionEncoding.ParameterOutput]
Arg [6] : _uniswapRouter (address): 0x7a250d5630B4cF539739dF2C5dAcb4c659F2488D
-----Encoded View---------------
12 Constructor Arguments found :
Arg [0] : 000000000000000000000000000000000000000021ed657c8e0d427f84000000
Arg [1] : 0000000000000000000000000000000000000000000069e10de76676d0800000
Arg [2] : 0000000000000000000000000000000000000000000000000000000000003840
Arg [3] : 00000000000000000000000000000000000000000000000000000000000012c0
Arg [4] : 000000000000000000000000000000000000000000000000000000000140c148
Arg [5] : 00000000000000000000000000000000000000000000000000000000000000e0
Arg [6] : 0000000000000000000000007a250d5630b4cf539739df2c5dacb4c659f2488d
Arg [7] : 0000000000000000000000000000000000000000000000000000000000000002
Arg [8] : 00000000000000000000000000000000000000000000000000000000000012c0
Arg [9] : 00000000000000000000000000000000000000000000000000000000000f4240
Arg [10] : 0000000000000000000000000000000000000000000000000000000000002580
Arg [11] : 0000000000000000000000000000000000000000000000000000000000989680
Loading...
Loading
Loading...
Loading
Multichain Portfolio | 30 Chains
Chain | Token | Portfolio % | Price | Amount | Value |
---|
Loading...
Loading
[ Download: CSV Export ]
[ 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.