ERC-20
Overview
Max Total Supply
20,000,000,000 Ecat
Holders
262
Market
Onchain Market Cap
$0.00
Circulating Supply Market Cap
-
Other Info
Token Contract (WITH 18 Decimals)
Balance
0.000000001974117336 EcatValue
$0.00Loading...
Loading
Loading...
Loading
Loading...
Loading
# | Exchange | Pair | Price | 24H Volume | % Volume |
---|
Similar Match Source Code This contract matches the deployed Bytecode of the Source Code for Contract 0x0683e812...5c175230f The constructor portion of the code might be different and could alter the actual behaviour of the contract
Contract Name:
FairLaunchLimitBlockTokenV3
Compiler Version
v0.8.24+commit.e11b9ed9
Optimization Enabled:
Yes with 20000 runs
Other Settings:
paris EvmVersion
Contract Source Code (Solidity Standard Json-Input format)
// SPDX-License-Identifier: MIT pragma solidity =0.8.24; // IERC20 import {IERC20} from "openzeppelin-contracts/contracts/token/ERC20/IERC20.sol"; import {SafeERC20} from "openzeppelin-contracts/contracts/token/ERC20/utils/SafeERC20.sol"; import {ReentrancyGuard} from "openzeppelin-contracts/contracts/utils/ReentrancyGuard.sol"; import {Meme} from "./Meme.sol"; import {IFairLaunch, FairLaunchLimitBlockStruct} from "./IFairLaunch.sol"; import {NoDelegateCall} from "./NoDelegateCall.sol"; import {IERC721} from "openzeppelin-contracts/contracts/token/ERC721/IERC721.sol"; interface IUniLocker { function lock( address lpToken, uint256 amountOrId, uint256 unlockBlock ) external returns (uint256 id); } interface IUniswapV3Factory { function getPool( address tokenA, address tokenB, uint24 fee ) external view returns (address pool); function createPool( address tokenA, address tokenB, uint24 fee ) external returns (address pool); } interface INonfungiblePositionManager { function WETH9() external pure returns (address); struct MintParams { address token0; address token1; uint24 fee; int24 tickLower; int24 tickUpper; uint256 amount0Desired; uint256 amount1Desired; uint256 amount0Min; uint256 amount1Min; address recipient; uint256 deadline; } function mint( MintParams calldata params ) external payable returns ( uint256 tokenId, uint128 liquidity, uint256 amount0, uint256 amount1 ); function createAndInitializePoolIfNecessary( address token0, address token1, uint24 fee, uint160 sqrtPriceX96 ) external payable returns (address pool); function refundETH() external payable; } contract FairLaunchLimitBlockTokenV3 is IFairLaunch, Meme, ReentrancyGuard, NoDelegateCall { using SafeERC20 for IERC20; using Math for uint256; // refund command // before start, you can always refund // send 0.0002 ether to the contract address to refund all ethers uint256 public constant REFUND_COMMAND = 0.0002 ether; // claim command // after start, you can claim extra eth // send 0.0002 ether to the contract address to claim extra eth uint256 public constant CLAIM_COMMAND = 0.0002 ether; // start trading command // if the untilBlockNumber reached, you can start trading with this command // send 0.0005 ether to the contract address to start trading uint256 public constant START_COMMAND = 0.0005 ether; // mint command // if the untilBlockNumber reached, you can mint token with this command // send 0.0001 ether to the contract address to get tokens uint256 public constant MINT_COMMAND = 0.0001 ether; // minimal fund uint256 public constant MINIMAL_FUND = 0.0001 ether; // is trading started bool public started; address public immutable uniswapPositionManager; address public immutable uniswapFactory; // fund balance mapping(address => uint256) public fundBalanceOf; // is address minted mapping(address => bool) public minted; // total dispatch amount uint256 public immutable totalDispatch; // until block number uint256 public immutable untilBlockNumber; // total ethers funded uint256 public totalEthers; // soft top cap uint256 public immutable softTopCap; // refund fee rate uint256 public immutable refundFeeRate; // refund fee to address public immutable refundFeeTo; // is address claimed extra eth mapping(address => bool) public claimed; // recipient must be a contract address of IUniLocker address public immutable locker; // feePool uint24 public immutable poolFee; // project owner, whill receive the locked lp address public immutable projectOwner; constructor( address _locker, uint24 _poolFee, address _projectOwner, FairLaunchLimitBlockStruct memory params ) Meme(params.name, params.symbol, params.meta) { started = false; totalDispatch = params.totalSupply; _mint(address(this), totalDispatch); // set uniswap router uniswapPositionManager = params.uniswapRouter; uniswapFactory = params.uniswapFactory; meta = params.meta; untilBlockNumber = params.afterBlock + block.number; softTopCap = params.softTopCap; refundFeeRate = params.refundFeeRate; refundFeeTo = params.refundFeeTo; locker = _locker; projectOwner = _projectOwner; poolFee = _poolFee; } receive() external payable noDelegateCall { if (msg.sender == uniswapPositionManager) { return; } require( tx.origin == msg.sender, "FairMint: can not send command from contract." ); if (started) { // after started if (msg.value == MINT_COMMAND) { // mint token _mintToken(); } else if (msg.value == CLAIM_COMMAND) { _claimExtraETH(); } else { revert("FairMint: invalid command - mint or claim only"); } } else { // before started if (canStart()) { if (msg.value == REFUND_COMMAND) { // before start, you can always refund _refund(); } else if (msg.value == START_COMMAND) { // start trading, add liquidity to uniswap _start(); } else { revert("FairMint: invalid command - start or refund only"); } } else { if (msg.value == REFUND_COMMAND) { // before start, you can always refund _refund(); } else { // before start, any other value will be considered as fund _fund(); } } } } function canStart() public view returns (bool) { // return block.number >= untilBlockNumber || totalEthers >= softTopCap; // eth balance of this contract is more than zero return block.number >= untilBlockNumber; } // get extra eth function getExtraETH(address _addr) public view returns (uint256) { if (totalEthers > softTopCap) { uint256 claimAmount = (fundBalanceOf[_addr] * (totalEthers - softTopCap)) / totalEthers; return claimAmount; } return 0; } // claim extra eth function _claimExtraETH() private nonReentrant { // if the eth balance of this contract is more than soft top cap, withdraw it // must after start require(started, "FairMint: withdraw extra eth must after start"); require(softTopCap > 0, "FairMint: soft top cap must be set"); require(totalEthers > softTopCap, "FairMint: no extra eth"); uint256 extra = totalEthers - softTopCap; uint256 fundAmount = fundBalanceOf[msg.sender]; require(fundAmount > 0, "FairMint: no fund"); require(!claimed[msg.sender], "FairMint: already claimed"); claimed[msg.sender] = true; uint256 claimAmount = (fundAmount * extra) / totalEthers; // send to msg sender (bool success, ) = msg.sender.call{value: claimAmount + CLAIM_COMMAND}( "" ); require(success, "FairMint: withdraw failed"); } // estimate how many tokens you might get function mightGet(address account) public view returns (uint256) { if (totalEthers == 0) { return 0; } uint256 _mintAmount = (totalDispatch * fundBalanceOf[account]) / 2 / totalEthers; return _mintAmount; } function _fund() private nonReentrant { // require msg.value > 0.0001 ether require(!started, "FairMint: already started"); require(msg.value >= MINIMAL_FUND, "FairMint: value too low"); fundBalanceOf[msg.sender] += msg.value; totalEthers += msg.value; emit FundEvent(msg.sender, msg.value, 0); } function _refund() private nonReentrant { require(!started, "FairMint: already started"); address account = msg.sender; uint256 amount = fundBalanceOf[account]; require(amount > 0, "FairMint: no fund"); fundBalanceOf[account] = 0; totalEthers -= amount; uint256 fee = (amount * refundFeeRate) / 10000; assert(fee < amount); if (fee > 0 && refundFeeTo != address(0)) { (bool success, ) = refundFeeTo.call{value: fee}(""); require(success, "FairMint: refund fee failed"); } (bool success1, ) = account.call{value: amount - fee + REFUND_COMMAND}( "" ); require(success1, "FairMint: refund failed"); emit RefundEvent(account, 0, amount); } function _mintToken() private nonReentrant { require(started, "FairMint: not started"); require(msg.sender == tx.origin, "FairMint: can not mint to contract."); require(!minted[msg.sender], "FairMint: already minted"); minted[msg.sender] = true; uint256 _mintAmount = mightGet(msg.sender); require(_mintAmount > 0, "FairMint: mint amount is zero"); assert(_mintAmount <= totalDispatch / 2); _transfer(address(this), msg.sender, _mintAmount); (bool success, ) = msg.sender.call{value: MINT_COMMAND}(""); require(success, "FairMint: mint failed"); } function _start() private nonReentrant { require(!started, "FairMint: already started"); require(balanceOf(address(this)) > 0, "FairMint: no balance"); INonfungiblePositionManager _positionManager = INonfungiblePositionManager( uniswapPositionManager ); address _weth = _positionManager.WETH9(); address _poolAddress = IUniswapV3Factory(uniswapFactory).getPool( address(this), _weth, poolFee ); require( _poolAddress == address(0), "FairMint: pool already exists, can not start, please refund" ); uint256 totalAdd = softTopCap > 0 ? softTopCap < totalEthers ? softTopCap : totalEthers : totalEthers; _approve( address(this), uniswapPositionManager, type(uint256).max, false ); ( address token0, address token1, uint256 amount0, uint256 amount1, ) = _initPool(_weth, totalAdd, _positionManager); ( uint256 tokenId, uint128 liquidity, uint256 _amount0, uint256 _amount1 ) = _mintLiquidity( _positionManager, token0, token1, amount0, amount1, totalAdd ); started = true; emit LaunchEvent(address(this), _amount0, _amount1, liquidity); // _positionManager.refundETH(); // dumplia // lock lp into contract forever if (locker != address(0)) { IERC721(uniswapPositionManager).approve(locker, tokenId); IUniLocker _locker = IUniLocker(locker); uint256 _lockId = _locker.lock( uniswapPositionManager, tokenId, type(uint256).max ); IERC721(locker).transferFrom(address(this), projectOwner, _lockId); } (bool success, ) = msg.sender.call{value: START_COMMAND}(""); require(success, "FairMint: mint failed"); } function _mintLiquidity( INonfungiblePositionManager _positionManager, address token0, address token1, uint256 amount0, uint256 amount1, uint256 totalAdd ) private returns (uint256, uint128, uint256, uint256) { INonfungiblePositionManager.MintParams memory params = INonfungiblePositionManager.MintParams({ token0: token0, token1: token1, fee: poolFee, //tickLower: -887250, // base -887220, //tickUpper: 887250, // base 887220, tickLower: -887220, tickUpper: 887220, amount0Desired: amount0, amount1Desired: amount1, amount0Min: (amount0 * 98) / 100, amount1Min: (amount1 * 98) / 100, recipient: locker == address(0) ? address(0) : address(this), deadline: block.timestamp + 1 hours }); ( uint256 _tokenId, uint128 _liquidity, uint256 _amount0, uint256 _amount1 ) = _positionManager.mint{value: totalAdd}(params); _positionManager.refundETH(); return (_tokenId, _liquidity, _amount0, _amount1); } function _initPool( address _weth, uint256 totalAdd, INonfungiblePositionManager _positionManager ) private returns ( address token0, address token1, uint256 amount0, uint256 amount1, uint160 sqrtPriceX96 ) { (token0, token1) = address(this) < _weth ? (address(this), _weth) : (_weth, address(this)); (amount0, amount1) = address(this) < _weth ? (totalDispatch / 2, totalAdd) : (totalAdd, totalDispatch / 2); sqrtPriceX96 = getSqrtPriceX96(amount0, amount1); _positionManager.createAndInitializePoolIfNecessary( token0, token1, poolFee, sqrtPriceX96 ); } function getSqrtPriceX96( uint256 amount0, uint256 amount1 ) internal pure returns (uint160) { require(amount0 > 0 && amount1 > 0, "Amounts must be greater than 0"); uint256 price = (amount1 * 1e18) / amount0; uint256 sqrtPrice = price.sqrt(); uint256 sqrtPriceX96Full = (sqrtPrice << 96) / 1e9; return uint160(sqrtPriceX96Full); } } library Math { function sqrt(uint256 a) internal pure returns (uint256) { if (a == 0) return 0; uint256 result = a; uint256 k = a / 2 + 1; while (k < result) { result = k; k = (a / k + k) / 2; } return result; } }
// 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); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v5.0.0) (token/ERC20/utils/SafeERC20.sol) pragma solidity ^0.8.20; import {IERC20} from "../IERC20.sol"; import {IERC20Permit} from "../extensions/IERC20Permit.sol"; import {Address} from "../../../utils/Address.sol"; /** * @title SafeERC20 * @dev Wrappers around ERC20 operations that throw on failure (when the token * contract returns false). Tokens that return no value (and instead revert or * throw on failure) are also supported, non-reverting calls are assumed to be * successful. * To use this library you can add a `using SafeERC20 for IERC20;` statement to your contract, * which allows you to call the safe operations as `token.safeTransfer(...)`, etc. */ library SafeERC20 { using Address for address; /** * @dev An operation with an ERC20 token failed. */ error SafeERC20FailedOperation(address token); /** * @dev Indicates a failed `decreaseAllowance` request. */ error SafeERC20FailedDecreaseAllowance(address spender, uint256 currentAllowance, uint256 requestedDecrease); /** * @dev Transfer `value` amount of `token` from the calling contract to `to`. If `token` returns no value, * non-reverting calls are assumed to be successful. */ function safeTransfer(IERC20 token, address to, uint256 value) internal { _callOptionalReturn(token, abi.encodeCall(token.transfer, (to, value))); } /** * @dev Transfer `value` amount of `token` from `from` to `to`, spending the approval given by `from` to the * calling contract. If `token` returns no value, non-reverting calls are assumed to be successful. */ function safeTransferFrom(IERC20 token, address from, address to, uint256 value) internal { _callOptionalReturn(token, abi.encodeCall(token.transferFrom, (from, to, value))); } /** * @dev Increase the calling contract's allowance toward `spender` by `value`. If `token` returns no value, * non-reverting calls are assumed to be successful. */ function safeIncreaseAllowance(IERC20 token, address spender, uint256 value) internal { uint256 oldAllowance = token.allowance(address(this), spender); forceApprove(token, spender, oldAllowance + value); } /** * @dev Decrease the calling contract's allowance toward `spender` by `requestedDecrease`. If `token` returns no * value, non-reverting calls are assumed to be successful. */ function safeDecreaseAllowance(IERC20 token, address spender, uint256 requestedDecrease) internal { unchecked { uint256 currentAllowance = token.allowance(address(this), spender); if (currentAllowance < requestedDecrease) { revert SafeERC20FailedDecreaseAllowance(spender, currentAllowance, requestedDecrease); } forceApprove(token, spender, currentAllowance - requestedDecrease); } } /** * @dev Set the calling contract's allowance toward `spender` to `value`. If `token` returns no value, * non-reverting calls are assumed to be successful. Meant to be used with tokens that require the approval * to be set to zero before setting it to a non-zero value, such as USDT. */ function forceApprove(IERC20 token, address spender, uint256 value) internal { bytes memory approvalCall = abi.encodeCall(token.approve, (spender, value)); if (!_callOptionalReturnBool(token, approvalCall)) { _callOptionalReturn(token, abi.encodeCall(token.approve, (spender, 0))); _callOptionalReturn(token, approvalCall); } } /** * @dev Imitates a Solidity high-level call (i.e. a regular function call to a contract), relaxing the requirement * on the return value: the return value is optional (but if data is returned, it must not be false). * @param token The token targeted by the call. * @param data The call data (encoded using abi.encode or one of its variants). */ function _callOptionalReturn(IERC20 token, bytes memory data) private { // We need to perform a low level call here, to bypass Solidity's return data size checking mechanism, since // we're implementing it ourselves. We use {Address-functionCall} to perform this call, which verifies that // the target address contains contract code and also asserts for success in the low-level call. bytes memory returndata = address(token).functionCall(data); if (returndata.length != 0 && !abi.decode(returndata, (bool))) { revert SafeERC20FailedOperation(address(token)); } } /** * @dev Imitates a Solidity high-level call (i.e. a regular function call to a contract), relaxing the requirement * on the return value: the return value is optional (but if data is returned, it must not be false). * @param token The token targeted by the call. * @param data The call data (encoded using abi.encode or one of its variants). * * This is a variant of {_callOptionalReturn} that silents catches all reverts and returns a bool instead. */ function _callOptionalReturnBool(IERC20 token, bytes memory data) private returns (bool) { // We need to perform a low level call here, to bypass Solidity's return data size checking mechanism, since // we're implementing it ourselves. We cannot use {Address-functionCall} here since this should return false // and not revert is the subcall reverts. (bool success, bytes memory returndata) = address(token).call(data); return success && (returndata.length == 0 || abi.decode(returndata, (bool))) && address(token).code.length > 0; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v5.0.0) (utils/ReentrancyGuard.sol) pragma solidity ^0.8.20; /** * @dev Contract module that helps prevent reentrant calls to a function. * * Inheriting from `ReentrancyGuard` will make the {nonReentrant} modifier * available, which can be applied to functions to make sure there are no nested * (reentrant) calls to them. * * Note that because there is a single `nonReentrant` guard, functions marked as * `nonReentrant` may not call one another. This can be worked around by making * those functions `private`, and then adding `external` `nonReentrant` entry * points to them. * * TIP: If you would like to learn more about reentrancy and alternative ways * to protect against it, check out our blog post * https://blog.openzeppelin.com/reentrancy-after-istanbul/[Reentrancy After Istanbul]. */ abstract contract ReentrancyGuard { // Booleans are more expensive than uint256 or any type that takes up a full // word because each write operation emits an extra SLOAD to first read the // slot's contents, replace the bits taken up by the boolean, and then write // back. This is the compiler's defense against contract upgrades and // pointer aliasing, and it cannot be disabled. // The values being non-zero value makes deployment a bit more expensive, // but in exchange the refund on every call to nonReentrant will be lower in // amount. Since refunds are capped to a percentage of the total // transaction's gas, it is best to keep them low in cases like this one, to // increase the likelihood of the full refund coming into effect. uint256 private constant NOT_ENTERED = 1; uint256 private constant ENTERED = 2; uint256 private _status; /** * @dev Unauthorized reentrant call. */ error ReentrancyGuardReentrantCall(); constructor() { _status = NOT_ENTERED; } /** * @dev Prevents a contract from calling itself, directly or indirectly. * Calling a `nonReentrant` function from another `nonReentrant` * function is not supported. It is possible to prevent this from happening * by making the `nonReentrant` function external, and making it call a * `private` function that does the actual work. */ modifier nonReentrant() { _nonReentrantBefore(); _; _nonReentrantAfter(); } function _nonReentrantBefore() private { // On the first call to nonReentrant, _status will be NOT_ENTERED if (_status == ENTERED) { revert ReentrancyGuardReentrantCall(); } // Any calls to nonReentrant after this point will fail _status = ENTERED; } function _nonReentrantAfter() private { // By storing the original value once again, a refund is triggered (see // https://eips.ethereum.org/EIPS/eip-2200) _status = NOT_ENTERED; } /** * @dev Returns true if the reentrancy guard is currently set to "entered", which indicates there is a * `nonReentrant` function in the call stack. */ function _reentrancyGuardEntered() internal view returns (bool) { return _status == ENTERED; } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.19; import {IMeme} from "./IMeme.sol"; import {ERC20} from "openzeppelin-contracts/contracts/token/ERC20/ERC20.sol"; contract Meme is IMeme, ERC20 { string public override meta; constructor( string memory name, string memory symbol, string memory _meta) ERC20(name, symbol) { meta = _meta; } function _update(address from, address to, uint256 value) internal virtual override { super._update(from, to, value); } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.19; interface IFairLaunch { event Deployed(address indexed addr, uint256 _type); event FundEvent( address indexed to, uint256 ethAmount, uint256 amountOfTokens ); event LaunchEvent( address indexed to, uint256 amount, uint256 ethAmount, uint256 liquidity ); event RefundEvent(address indexed from, uint256 amount, uint256 eth); } struct FairLaunchLimitAmountStruct { uint256 price; uint256 amountPerUnits; uint256 totalSupply; address launcher; address uniswapRouter; address uniswapFactory; string name; string symbol; string meta; uint256 eachAddressLimitEthers; uint256 refundFeeRate; address refundFeeTo; } struct FairLaunchLimitBlockStruct { uint256 totalSupply; address uniswapRouter; address uniswapFactory; string name; string symbol; string meta; uint256 afterBlock; uint256 softTopCap; uint256 refundFeeRate; address refundFeeTo; }
// SPDX-License-Identifier: BUSL-1.1 pragma solidity ^0.8.19; /// @title Prevents delegatecall to a contract /// @notice Base contract that provides a modifier for preventing delegatecall to methods in a child contract abstract contract NoDelegateCall { /// @dev The original address of this contract address private immutable original; constructor() { // Immutables are computed in the init code of the contract, and then inlined into the deployed bytecode. // In other words, this variable won't change when it's checked at runtime. original = address(this); } /// @dev Private method is used instead of inlining into modifier because modifiers are copied into each method, /// and the use of immutable means the address bytes are copied in every place the modifier is used. function checkNotDelegateCall() private view { require(address(this) == original); } /// @notice Prevents delegatecall into the modified method modifier noDelegateCall() { checkNotDelegateCall(); _; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v5.0.0) (token/ERC721/IERC721.sol) pragma solidity ^0.8.20; import {IERC165} from "../../utils/introspection/IERC165.sol"; /** * @dev Required interface of an ERC721 compliant contract. */ interface IERC721 is IERC165 { /** * @dev Emitted when `tokenId` token is transferred from `from` to `to`. */ event Transfer(address indexed from, address indexed to, uint256 indexed tokenId); /** * @dev Emitted when `owner` enables `approved` to manage the `tokenId` token. */ event Approval(address indexed owner, address indexed approved, uint256 indexed tokenId); /** * @dev Emitted when `owner` enables or disables (`approved`) `operator` to manage all of its assets. */ event ApprovalForAll(address indexed owner, address indexed operator, bool approved); /** * @dev Returns the number of tokens in ``owner``'s account. */ function balanceOf(address owner) external view returns (uint256 balance); /** * @dev Returns the owner of the `tokenId` token. * * Requirements: * * - `tokenId` must exist. */ function ownerOf(uint256 tokenId) external view returns (address owner); /** * @dev Safely transfers `tokenId` token from `from` to `to`. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must exist and be owned by `from`. * - If the caller is not `from`, it must be approved to move this token by either {approve} or {setApprovalForAll}. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon * a safe transfer. * * Emits a {Transfer} event. */ function safeTransferFrom(address from, address to, uint256 tokenId, bytes calldata data) external; /** * @dev Safely transfers `tokenId` token from `from` to `to`, checking first that contract recipients * are aware of the ERC721 protocol to prevent tokens from being forever locked. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must exist and be owned by `from`. * - If the caller is not `from`, it must have been allowed to move this token by either {approve} or * {setApprovalForAll}. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon * a safe transfer. * * Emits a {Transfer} event. */ function safeTransferFrom(address from, address to, uint256 tokenId) external; /** * @dev Transfers `tokenId` token from `from` to `to`. * * WARNING: Note that the caller is responsible to confirm that the recipient is capable of receiving ERC721 * or else they may be permanently lost. Usage of {safeTransferFrom} prevents loss, though the caller must * understand this adds an external call which potentially creates a reentrancy vulnerability. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must be owned by `from`. * - If the caller is not `from`, it must be approved to move this token by either {approve} or {setApprovalForAll}. * * Emits a {Transfer} event. */ function transferFrom(address from, address to, uint256 tokenId) external; /** * @dev Gives permission to `to` to transfer `tokenId` token to another account. * The approval is cleared when the token is transferred. * * Only a single account can be approved at a time, so approving the zero address clears previous approvals. * * Requirements: * * - The caller must own the token or be an approved operator. * - `tokenId` must exist. * * Emits an {Approval} event. */ function approve(address to, uint256 tokenId) external; /** * @dev Approve or remove `operator` as an operator for the caller. * Operators can call {transferFrom} or {safeTransferFrom} for any token owned by the caller. * * Requirements: * * - The `operator` cannot be the address zero. * * Emits an {ApprovalForAll} event. */ function setApprovalForAll(address operator, bool approved) external; /** * @dev Returns the account approved for `tokenId` token. * * Requirements: * * - `tokenId` must exist. */ function getApproved(uint256 tokenId) external view returns (address operator); /** * @dev Returns if the `operator` is allowed to manage all of the assets of `owner`. * * See {setApprovalForAll} */ function isApprovedForAll(address owner, address operator) external view returns (bool); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v5.0.0) (token/ERC20/extensions/IERC20Permit.sol) pragma solidity ^0.8.20; /** * @dev Interface of the ERC20 Permit extension allowing approvals to be made via signatures, as defined in * https://eips.ethereum.org/EIPS/eip-2612[EIP-2612]. * * Adds the {permit} method, which can be used to change an account's ERC20 allowance (see {IERC20-allowance}) by * presenting a message signed by the account. By not relying on {IERC20-approve}, the token holder account doesn't * need to send a transaction, and thus is not required to hold Ether at all. * * ==== Security Considerations * * There are two important considerations concerning the use of `permit`. The first is that a valid permit signature * expresses an allowance, and it should not be assumed to convey additional meaning. In particular, it should not be * considered as an intention to spend the allowance in any specific way. The second is that because permits have * built-in replay protection and can be submitted by anyone, they can be frontrun. A protocol that uses permits should * take this into consideration and allow a `permit` call to fail. Combining these two aspects, a pattern that may be * generally recommended is: * * ```solidity * function doThingWithPermit(..., uint256 value, uint256 deadline, uint8 v, bytes32 r, bytes32 s) public { * try token.permit(msg.sender, address(this), value, deadline, v, r, s) {} catch {} * doThing(..., value); * } * * function doThing(..., uint256 value) public { * token.safeTransferFrom(msg.sender, address(this), value); * ... * } * ``` * * Observe that: 1) `msg.sender` is used as the owner, leaving no ambiguity as to the signer intent, and 2) the use of * `try/catch` allows the permit to fail and makes the code tolerant to frontrunning. (See also * {SafeERC20-safeTransferFrom}). * * Additionally, note that smart contract wallets (such as Argent or Safe) are not able to produce permit signatures, so * contracts should have entry points that don't rely on permit. */ interface IERC20Permit { /** * @dev Sets `value` as the allowance of `spender` over ``owner``'s tokens, * given ``owner``'s signed approval. * * IMPORTANT: The same issues {IERC20-approve} has related to transaction * ordering also apply here. * * Emits an {Approval} event. * * Requirements: * * - `spender` cannot be the zero address. * - `deadline` must be a timestamp in the future. * - `v`, `r` and `s` must be a valid `secp256k1` signature from `owner` * over the EIP712-formatted function arguments. * - the signature must use ``owner``'s current nonce (see {nonces}). * * For more information on the signature format, see the * https://eips.ethereum.org/EIPS/eip-2612#specification[relevant EIP * section]. * * CAUTION: See Security Considerations above. */ function permit( address owner, address spender, uint256 value, uint256 deadline, uint8 v, bytes32 r, bytes32 s ) external; /** * @dev Returns the current nonce for `owner`. This value must be * included whenever a signature is generated for {permit}. * * Every successful call to {permit} increases ``owner``'s nonce by one. This * prevents a signature from being used multiple times. */ function nonces(address owner) external view returns (uint256); /** * @dev Returns the domain separator used in the encoding of the signature for {permit}, as defined by {EIP712}. */ // solhint-disable-next-line func-name-mixedcase function DOMAIN_SEPARATOR() external view returns (bytes32); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v5.0.0) (utils/Address.sol) pragma solidity ^0.8.20; /** * @dev Collection of functions related to the address type */ library Address { /** * @dev The ETH balance of the account is not enough to perform the operation. */ error AddressInsufficientBalance(address account); /** * @dev There's no code at `target` (it is not a contract). */ error AddressEmptyCode(address target); /** * @dev A call to an address target failed. The target may have reverted. */ error FailedInnerCall(); /** * @dev Replacement for Solidity's `transfer`: sends `amount` wei to * `recipient`, forwarding all available gas and reverting on errors. * * https://eips.ethereum.org/EIPS/eip-1884[EIP1884] increases the gas cost * of certain opcodes, possibly making contracts go over the 2300 gas limit * imposed by `transfer`, making them unable to receive funds via * `transfer`. {sendValue} removes this limitation. * * https://consensys.net/diligence/blog/2019/09/stop-using-soliditys-transfer-now/[Learn more]. * * IMPORTANT: because control is transferred to `recipient`, care must be * taken to not create reentrancy vulnerabilities. Consider using * {ReentrancyGuard} or the * https://solidity.readthedocs.io/en/v0.8.20/security-considerations.html#use-the-checks-effects-interactions-pattern[checks-effects-interactions pattern]. */ function sendValue(address payable recipient, uint256 amount) internal { if (address(this).balance < amount) { revert AddressInsufficientBalance(address(this)); } (bool success, ) = recipient.call{value: amount}(""); if (!success) { revert FailedInnerCall(); } } /** * @dev Performs a Solidity function call using a low level `call`. A * plain `call` is an unsafe replacement for a function call: use this * function instead. * * If `target` reverts with a revert reason or custom error, it is bubbled * up by this function (like regular Solidity function calls). However, if * the call reverted with no returned reason, this function reverts with a * {FailedInnerCall} error. * * Returns the raw returned data. To convert to the expected return value, * use https://solidity.readthedocs.io/en/latest/units-and-global-variables.html?highlight=abi.decode#abi-encoding-and-decoding-functions[`abi.decode`]. * * Requirements: * * - `target` must be a contract. * - calling `target` with `data` must not revert. */ function functionCall(address target, bytes memory data) internal returns (bytes memory) { return functionCallWithValue(target, data, 0); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but also transferring `value` wei to `target`. * * Requirements: * * - the calling contract must have an ETH balance of at least `value`. * - the called Solidity function must be `payable`. */ function functionCallWithValue(address target, bytes memory data, uint256 value) internal returns (bytes memory) { if (address(this).balance < value) { revert AddressInsufficientBalance(address(this)); } (bool success, bytes memory returndata) = target.call{value: value}(data); return verifyCallResultFromTarget(target, success, returndata); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but performing a static call. */ function functionStaticCall(address target, bytes memory data) internal view returns (bytes memory) { (bool success, bytes memory returndata) = target.staticcall(data); return verifyCallResultFromTarget(target, success, returndata); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but performing a delegate call. */ function functionDelegateCall(address target, bytes memory data) internal returns (bytes memory) { (bool success, bytes memory returndata) = target.delegatecall(data); return verifyCallResultFromTarget(target, success, returndata); } /** * @dev Tool to verify that a low level call to smart-contract was successful, and reverts if the target * was not a contract or bubbling up the revert reason (falling back to {FailedInnerCall}) in case of an * unsuccessful call. */ function verifyCallResultFromTarget( address target, bool success, bytes memory returndata ) internal view returns (bytes memory) { if (!success) { _revert(returndata); } else { // only check if target is a contract if the call was successful and the return data is empty // otherwise we already know that it was a contract if (returndata.length == 0 && target.code.length == 0) { revert AddressEmptyCode(target); } return returndata; } } /** * @dev Tool to verify that a low level call was successful, and reverts if it wasn't, either by bubbling the * revert reason or with a default {FailedInnerCall} error. */ function verifyCallResult(bool success, bytes memory returndata) internal pure returns (bytes memory) { if (!success) { _revert(returndata); } else { return returndata; } } /** * @dev Reverts with returndata if present. Otherwise reverts with {FailedInnerCall}. */ function _revert(bytes memory returndata) private pure { // Look for revert reason and bubble it up if present if (returndata.length > 0) { // The easiest way to bubble the revert reason is using memory via assembly /// @solidity memory-safe-assembly assembly { let returndata_size := mload(returndata) revert(add(32, returndata), returndata_size) } } else { revert FailedInnerCall(); } } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.19; import {IERC20Metadata} from "openzeppelin-contracts/contracts/token/ERC20/extensions/IERC20Metadata.sol"; interface IMeme is IERC20Metadata { function meta() external view returns (string memory); }
// 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. */ 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}. * * 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) (utils/introspection/IERC165.sol) pragma solidity ^0.8.20; /** * @dev Interface of the ERC165 standard, as defined in the * https://eips.ethereum.org/EIPS/eip-165[EIP]. * * Implementers can declare support of contract interfaces, which can then be * queried by others ({ERC165Checker}). * * For an implementation, see {ERC165}. */ interface IERC165 { /** * @dev Returns true if this contract implements the interface defined by * `interfaceId`. See the corresponding * https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified[EIP section] * to learn more about how these ids are created. * * This function call must use less than 30 000 gas. */ function supportsInterface(bytes4 interfaceId) external view returns (bool); }
// 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.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 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); }
{ "remappings": [ "@openzeppelin/contracts/=lib/openzeppelin-contracts/contracts/", "ds-test/=lib/openzeppelin-contracts/lib/forge-std/lib/ds-test/src/", "erc4626-tests/=lib/openzeppelin-contracts/lib/erc4626-tests/", "forge-std/=lib/forge-std/src/", "openzeppelin-contracts/=lib/openzeppelin-contracts/" ], "optimizer": { "enabled": true, "runs": 20000 }, "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":"address","name":"_locker","type":"address"},{"internalType":"uint24","name":"_poolFee","type":"uint24"},{"internalType":"address","name":"_projectOwner","type":"address"},{"components":[{"internalType":"uint256","name":"totalSupply","type":"uint256"},{"internalType":"address","name":"uniswapRouter","type":"address"},{"internalType":"address","name":"uniswapFactory","type":"address"},{"internalType":"string","name":"name","type":"string"},{"internalType":"string","name":"symbol","type":"string"},{"internalType":"string","name":"meta","type":"string"},{"internalType":"uint256","name":"afterBlock","type":"uint256"},{"internalType":"uint256","name":"softTopCap","type":"uint256"},{"internalType":"uint256","name":"refundFeeRate","type":"uint256"},{"internalType":"address","name":"refundFeeTo","type":"address"}],"internalType":"struct FairLaunchLimitBlockStruct","name":"params","type":"tuple"}],"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":[],"name":"ReentrancyGuardReentrantCall","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":"addr","type":"address"},{"indexed":false,"internalType":"uint256","name":"_type","type":"uint256"}],"name":"Deployed","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":false,"internalType":"uint256","name":"ethAmount","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"amountOfTokens","type":"uint256"}],"name":"FundEvent","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"ethAmount","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"liquidity","type":"uint256"}],"name":"LaunchEvent","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"eth","type":"uint256"}],"name":"RefundEvent","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":"CLAIM_COMMAND","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"MINIMAL_FUND","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"MINT_COMMAND","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"REFUND_COMMAND","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"START_COMMAND","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","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":"canStart","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"claimed","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"decimals","outputs":[{"internalType":"uint8","name":"","type":"uint8"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"fundBalanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_addr","type":"address"}],"name":"getExtraETH","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"locker","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"meta","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"mightGet","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"minted","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":"poolFee","outputs":[{"internalType":"uint24","name":"","type":"uint24"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"projectOwner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"refundFeeRate","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"refundFeeTo","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"softTopCap","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"started","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalDispatch","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalEthers","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"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":[],"name":"uniswapFactory","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"uniswapPositionManager","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"untilBlockNumber","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"stateMutability":"payable","type":"receive"}]
Contract Creation Code
6101e06040523480156200001257600080fd5b5060405162003579380380620035798339810160408190526200003591620003d4565b6060810151608082015160a083015182826003620000548382620005d2565b506004620000638282620005d2565b50600591506200007690508282620005d2565b5050600160065550503060808190526007805460ff19169055815160e0819052620000a291906200012e565b60208101516001600160a01b0390811660a0908152604083015190911660c052810151600590620000d49082620005d2565b50438160c00151620000e791906200069e565b61010090815260e0820151610120908152908201516101405201516001600160a01b0390811661016052928316610180529091166101c05262ffffff166101a052620006c6565b6001600160a01b0382166200015e5760405163ec442f0560e01b8152600060048201526024015b60405180910390fd5b6200016c6000838362000170565b5050565b6200017d83838362000182565b505050565b6001600160a01b038316620001b1578060026000828254620001a591906200069e565b90915550620002259050565b6001600160a01b03831660009081526020819052604090205481811015620002065760405163391434e360e21b81526001600160a01b0385166004820152602481018290526044810183905260640162000155565b6001600160a01b03841660009081526020819052604090209082900390555b6001600160a01b038216620002435760028054829003905562000262565b6001600160a01b03821660009081526020819052604090208054820190555b816001600160a01b0316836001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef83604051620002a891815260200190565b60405180910390a3505050565b80516001600160a01b0381168114620002cd57600080fd5b919050565b634e487b7160e01b600052604160045260246000fd5b60405161014081016001600160401b03811182821017156200030e576200030e620002d2565b60405290565b604051601f8201601f191681016001600160401b03811182821017156200033f576200033f620002d2565b604052919050565b600082601f8301126200035957600080fd5b81516001600160401b03811115620003755762000375620002d2565b60206200038b601f8301601f1916820162000314565b8281528582848701011115620003a057600080fd5b60005b83811015620003c0578581018301518282018401528201620003a3565b506000928101909101919091529392505050565b60008060008060808587031215620003eb57600080fd5b620003f685620002b5565b9350602085015162ffffff811681146200040f57600080fd5b92506200041f60408601620002b5565b60608601519092506001600160401b03808211156200043d57600080fd5b9086019061014082890312156200045357600080fd5b6200045d620002e8565b825181526200046f60208401620002b5565b60208201526200048260408401620002b5565b60408201526060830151828111156200049a57600080fd5b620004a88a82860162000347565b606083015250608083015182811115620004c157600080fd5b620004cf8a82860162000347565b60808301525060a083015182811115620004e857600080fd5b620004f68a82860162000347565b60a08301525060c083015160c082015260e083015160e08201526101009150818301518282015261012091506200052f828401620002b5565b8282015280935050505092959194509250565b600181811c908216806200055757607f821691505b6020821081036200057857634e487b7160e01b600052602260045260246000fd5b50919050565b601f8211156200017d576000816000526020600020601f850160051c81016020861015620005a95750805b601f850160051c820191505b81811015620005ca57828155600101620005b5565b505050505050565b81516001600160401b03811115620005ee57620005ee620002d2565b6200060681620005ff845462000542565b846200057e565b602080601f8311600181146200063e5760008415620006255750858301515b600019600386901b1c1916600185901b178555620005ca565b600085815260208120601f198616915b828110156200066f578886015182559484019460019091019084016200064e565b50858210156200068e5787850151600019600388901b60f8161c191681555b5050505050600190811b01905550565b80820180821115620006c057634e487b7160e01b600052601160045260246000fd5b92915050565b60805160a05160c05160e05161010051610120516101405161016051610180516101a0516101c051612d4c6200082d600039600081816107b10152611a3801526000818161048a0152818161153c01528181612294015261236e015260008181610897015281816117ef015281816118660152818161198101528181611a6a015261241401526000818161060f0152818161116a01526111ab0152600081816105c1015261111d01526000818161098801528181610d2401528181610db801528181610e2b0152818161166501528181611696015281816116c401528181611e2d0152611e6001526000818161036d01528181610668015261094f0152600081816106ff01528181610bb801528181611dcd015281816121de015261220e01526000818161074e01526115690152600081816102270152818161091e0152818161145b015281816116ec01528181611895015261192c015260006109c20152612d4c6000f3fe6080604052600436106102025760003560e01c8063825521701161011d578063c884ef83116100b0578063dd62ed3e1161007f578063ec30903811610064578063ec30903814610940578063f570ee6b14610976578063fb5d5d4d1461078557600080fd5b8063dd62ed3e146108b9578063e5047b301461090c57600080fd5b8063c884ef8314610813578063c885044e14610843578063d35e7efc14610858578063d7b96d4e1461088557600080fd5b80639ecf0090116100ec5780639ecf0090146105e3578063a4475ce41461079f578063a9059cbb146107d3578063a92bc58a146107f357600080fd5b806382552170146107215780638bdb2afa1461073c57806395d89b4114610770578063996eba2d1461078557600080fd5b8063313ce567116101955780635ce38d99116101645780635ce38d991461065657806368b63c241461068a57806370a08231146106aa5780637b0fa954146106ed57600080fd5b8063313ce5671461059357806332c4f2bf146105af578063475a519f146105e3578063544d46a3146105fd57600080fd5b806318160ddd116101d157806318160ddd146105145780631e7269c5146105295780631f2698ab1461055957806323b872dd1461057357600080fd5b806306fdde031461044d578063089fe6aa14610478578063095ea7b3146104c05780630a4625af146104f057600080fd5b366104485761020f6109aa565b3373ffffffffffffffffffffffffffffffffffffffff7f000000000000000000000000000000000000000000000000000000000000000016146102e6573233146102c65760405162461bcd60e51b815260206004820152602d60248201527f466169724d696e743a2063616e206e6f742073656e6420636f6d6d616e64206660448201527f726f6d20636f6e74726163742e0000000000000000000000000000000000000060648201526084015b60405180910390fd5b60075460ff161561036b57655af3107a400034036102e8576102e66109ee565b005b65b5e620f4800034036102fd576102e6610ca0565b60405162461bcd60e51b815260206004820152602e60248201527f466169724d696e743a20696e76616c696420636f6d6d616e64202d206d696e7460448201527f206f7220636c61696d206f6e6c7900000000000000000000000000000000000060648201526084016102bd565b7f0000000000000000000000000000000000000000000000000000000000000000431061042b5765b5e620f4800034036103a7576102e661101b565b6601c6bf5263400034036103bd576102e661139f565b60405162461bcd60e51b815260206004820152603060248201527f466169724d696e743a20696e76616c696420636f6d6d616e64202d207374617260448201527f74206f7220726566756e64206f6e6c790000000000000000000000000000000060648201526084016102bd565b65b5e620f480003403610440576102e661101b565b6102e6611b81565b600080fd5b34801561045957600080fd5b50610462611cb4565b60405161046f9190612924565b60405180910390f35b34801561048457600080fd5b506104ac7f000000000000000000000000000000000000000000000000000000000000000081565b60405162ffffff909116815260200161046f565b3480156104cc57600080fd5b506104e06104db3660046129b6565b611d46565b604051901515815260200161046f565b3480156104fc57600080fd5b50610506600a5481565b60405190815260200161046f565b34801561052057600080fd5b50600254610506565b34801561053557600080fd5b506104e06105443660046129e2565b60096020526000908152604090205460ff1681565b34801561056557600080fd5b506007546104e09060ff1681565b34801561057f57600080fd5b506104e061058e3660046129ff565b611d60565b34801561059f57600080fd5b506040516012815260200161046f565b3480156105bb57600080fd5b506105067f000000000000000000000000000000000000000000000000000000000000000081565b3480156105ef57600080fd5b50610506655af3107a400081565b34801561060957600080fd5b506106317f000000000000000000000000000000000000000000000000000000000000000081565b60405173ffffffffffffffffffffffffffffffffffffffff909116815260200161046f565b34801561066257600080fd5b506105067f000000000000000000000000000000000000000000000000000000000000000081565b34801561069657600080fd5b506105066106a53660046129e2565b611d84565b3480156106b657600080fd5b506105066106c53660046129e2565b73ffffffffffffffffffffffffffffffffffffffff1660009081526020819052604090205490565b3480156106f957600080fd5b506105067f000000000000000000000000000000000000000000000000000000000000000081565b34801561072d57600080fd5b506105066601c6bf5263400081565b34801561074857600080fd5b506106317f000000000000000000000000000000000000000000000000000000000000000081565b34801561077c57600080fd5b50610462611e0c565b34801561079157600080fd5b5061050665b5e620f4800081565b3480156107ab57600080fd5b506106317f000000000000000000000000000000000000000000000000000000000000000081565b3480156107df57600080fd5b506104e06107ee3660046129b6565b611e1b565b3480156107ff57600080fd5b5061050661080e3660046129e2565b611e29565b34801561081f57600080fd5b506104e061082e3660046129e2565b600b6020526000908152604090205460ff1681565b34801561084f57600080fd5b50610462611ebd565b34801561086457600080fd5b506105066108733660046129e2565b60086020526000908152604090205481565b34801561089157600080fd5b506106317f000000000000000000000000000000000000000000000000000000000000000081565b3480156108c557600080fd5b506105066108d4366004612a40565b73ffffffffffffffffffffffffffffffffffffffff918216600090815260016020908152604080832093909416825291909152205490565b34801561091857600080fd5b506106317f000000000000000000000000000000000000000000000000000000000000000081565b34801561094c57600080fd5b507f00000000000000000000000000000000000000000000000000000000000000004310156104e0565b34801561098257600080fd5b506105067f000000000000000000000000000000000000000000000000000000000000000081565b3073ffffffffffffffffffffffffffffffffffffffff7f000000000000000000000000000000000000000000000000000000000000000016146109ec57600080fd5b565b6109f6611f4b565b60075460ff16610a485760405162461bcd60e51b815260206004820152601560248201527f466169724d696e743a206e6f742073746172746564000000000000000000000060448201526064016102bd565b333214610abd5760405162461bcd60e51b815260206004820152602360248201527f466169724d696e743a2063616e206e6f74206d696e7420746f20636f6e74726160448201527f63742e000000000000000000000000000000000000000000000000000000000060648201526084016102bd565b3360009081526009602052604090205460ff1615610b1d5760405162461bcd60e51b815260206004820152601860248201527f466169724d696e743a20616c7265616479206d696e746564000000000000000060448201526064016102bd565b33600081815260096020526040812080547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0016600117905590610b5f90611d84565b905060008111610bb15760405162461bcd60e51b815260206004820152601d60248201527f466169724d696e743a206d696e7420616d6f756e74206973207a65726f00000060448201526064016102bd565b610bdc60027f0000000000000000000000000000000000000000000000000000000000000000612aa8565b811115610beb57610beb612ae3565b610bf6303383611f8e565b6040516000903390655af3107a4000908381818185875af1925050503d8060008114610c3e576040519150601f19603f3d011682016040523d82523d6000602084013e610c43565b606091505b5050905080610c945760405162461bcd60e51b815260206004820152601560248201527f466169724d696e743a206d696e74206661696c6564000000000000000000000060448201526064016102bd565b50506109ec6001600655565b610ca8611f4b565b60075460ff16610d205760405162461bcd60e51b815260206004820152602d60248201527f466169724d696e743a20776974686472617720657874726120657468206d757360448201527f742061667465722073746172740000000000000000000000000000000000000060648201526084016102bd565b60007f000000000000000000000000000000000000000000000000000000000000000011610db65760405162461bcd60e51b815260206004820152602260248201527f466169724d696e743a20736f667420746f7020636170206d757374206265207360448201527f657400000000000000000000000000000000000000000000000000000000000060648201526084016102bd565b7f0000000000000000000000000000000000000000000000000000000000000000600a5411610e275760405162461bcd60e51b815260206004820152601660248201527f466169724d696e743a206e6f206578747261206574680000000000000000000060448201526064016102bd565b60007f0000000000000000000000000000000000000000000000000000000000000000600a54610e579190612b12565b3360009081526008602052604090205490915080610eb75760405162461bcd60e51b815260206004820152601160248201527f466169724d696e743a206e6f2066756e6400000000000000000000000000000060448201526064016102bd565b336000908152600b602052604090205460ff1615610f175760405162461bcd60e51b815260206004820152601960248201527f466169724d696e743a20616c726561647920636c61696d65640000000000000060448201526064016102bd565b336000908152600b6020526040812080547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff00166001179055600a54610f5c8484612b25565b610f669190612aa8565b9050600033610f7b65b5e620f4800084612b3c565b604051600081818185875af1925050503d8060008114610fb7576040519150601f19603f3d011682016040523d82523d6000602084013e610fbc565b606091505b505090508061100d5760405162461bcd60e51b815260206004820152601960248201527f466169724d696e743a207769746864726177206661696c65640000000000000060448201526064016102bd565b505050506109ec6001600655565b611023611f4b565b60075460ff16156110765760405162461bcd60e51b815260206004820152601960248201527f466169724d696e743a20616c726561647920737461727465640000000000000060448201526064016102bd565b33600081815260086020526040902054806110d35760405162461bcd60e51b815260206004820152601160248201527f466169724d696e743a206e6f2066756e6400000000000000000000000000000060448201526064016102bd565b73ffffffffffffffffffffffffffffffffffffffff82166000908152600860205260408120819055600a805483929061110d908490612b12565b90915550600090506127106111427f000000000000000000000000000000000000000000000000000000000000000084612b25565b61114c9190612aa8565b905081811061115d5761115d612ae3565b6000811180156111a257507f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff1615155b156112795760007f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff168260405160006040518083038185875af1925050503d8060008114611221576040519150601f19603f3d011682016040523d82523d6000602084013e611226565b606091505b50509050806112775760405162461bcd60e51b815260206004820152601b60248201527f466169724d696e743a20726566756e6420666565206661696c6564000000000060448201526064016102bd565b505b600073ffffffffffffffffffffffffffffffffffffffff841665b5e620f480006112a38486612b12565b6112ad9190612b3c565b604051600081818185875af1925050503d80600081146112e9576040519150601f19603f3d011682016040523d82523d6000602084013e6112ee565b606091505b505090508061133f5760405162461bcd60e51b815260206004820152601760248201527f466169724d696e743a20726566756e64206661696c656400000000000000000060448201526064016102bd565b60408051600081526020810185905273ffffffffffffffffffffffffffffffffffffffff8616917fb24b09fd2e8e4d8904c3c26f3e935824e032891520ffda419dec9f086b0e1eea910160405180910390a2505050506109ec6001600655565b6113a7611f4b565b60075460ff16156113fa5760405162461bcd60e51b815260206004820152601960248201527f466169724d696e743a20616c726561647920737461727465640000000000000060448201526064016102bd565b30600090815260208190526040812054116114575760405162461bcd60e51b815260206004820152601460248201527f466169724d696e743a206e6f2062616c616e636500000000000000000000000060448201526064016102bd565b60007f0000000000000000000000000000000000000000000000000000000000000000905060008173ffffffffffffffffffffffffffffffffffffffff16634aa4a4fc6040518163ffffffff1660e01b8152600401602060405180830381865afa1580156114c9573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906114ed9190612b4f565b6040517f1698ee8200000000000000000000000000000000000000000000000000000000815230600482015273ffffffffffffffffffffffffffffffffffffffff808316602483015262ffffff7f00000000000000000000000000000000000000000000000000000000000000001660448301529192506000917f00000000000000000000000000000000000000000000000000000000000000001690631698ee8290606401602060405180830381865afa1580156115b0573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906115d49190612b4f565b905073ffffffffffffffffffffffffffffffffffffffff8116156116605760405162461bcd60e51b815260206004820152603b60248201527f466169724d696e743a20706f6f6c20616c7265616479206578697374732c206360448201527f616e206e6f742073746172742c20706c6561736520726566756e64000000000060648201526084016102bd565b6000807f00000000000000000000000000000000000000000000000000000000000000001161169157600a546116e4565b600a547f0000000000000000000000000000000000000000000000000000000000000000106116c257600a546116e4565b7f00000000000000000000000000000000000000000000000000000000000000005b9050611733307f00000000000000000000000000000000000000000000000000000000000000007fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff600061203e565b60008060008061174487868a612187565b5093509350935093506000806000806117618c898989898e612320565b600780547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0016600117905560408051838152602081018390526fffffffffffffffffffffffffffffffff8516918101919091529397509195509350915030907fef1e73540aed31615f5f09b178cff91261e831560c37718c23862e93a3fc3ceb9060600160405180910390a27f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff1615611acb576040517f095ea7b300000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff7f000000000000000000000000000000000000000000000000000000000000000081166004830152602482018690527f0000000000000000000000000000000000000000000000000000000000000000169063095ea7b390604401600060405180830381600087803b1580156118d957600080fd5b505af11580156118ed573d6000803e3d6000fd5b50506040517fe2ab691d00000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff7f000000000000000000000000000000000000000000000000000000000000000081166004830152602482018890527fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff60448301527f000000000000000000000000000000000000000000000000000000000000000093506000925083169063e2ab691d906064016020604051808303816000875af11580156119d1573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906119f59190612b6c565b6040517f23b872dd00000000000000000000000000000000000000000000000000000000815230600482015273ffffffffffffffffffffffffffffffffffffffff7f000000000000000000000000000000000000000000000000000000000000000081166024830152604482018390529192507f0000000000000000000000000000000000000000000000000000000000000000909116906323b872dd90606401600060405180830381600087803b158015611ab057600080fd5b505af1158015611ac4573d6000803e3d6000fd5b5050505050505b60405160009033906601c6bf52634000908381818185875af1925050503d8060008114611b14576040519150601f19603f3d011682016040523d82523d6000602084013e611b19565b606091505b5050905080611b6a5760405162461bcd60e51b815260206004820152601560248201527f466169724d696e743a206d696e74206661696c6564000000000000000000000060448201526064016102bd565b505050505050505050505050506109ec6001600655565b611b89611f4b565b60075460ff1615611bdc5760405162461bcd60e51b815260206004820152601960248201527f466169724d696e743a20616c726561647920737461727465640000000000000060448201526064016102bd565b655af3107a4000341015611c325760405162461bcd60e51b815260206004820152601760248201527f466169724d696e743a2076616c756520746f6f206c6f7700000000000000000060448201526064016102bd565b3360009081526008602052604081208054349290611c51908490612b3c565b9250508190555034600a6000828254611c6a9190612b3c565b9091555050604080513481526000602082015233917f4c10b3a5590fcdc7a6f3b564c09870bd275facbd00a0bcf68c8b069e32f9508b910160405180910390a26109ec6001600655565b606060038054611cc390612b85565b80601f0160208091040260200160405190810160405280929190818152602001828054611cef90612b85565b8015611d3c5780601f10611d1157610100808354040283529160200191611d3c565b820191906000526020600020905b815481529060010190602001808311611d1f57829003601f168201915b5050505050905090565b600033611d54818585612587565b60019150505b92915050565b600033611d6e858285612594565b611d79858585611f8e565b506001949350505050565b6000600a54600003611d9857506000919050565b600a5473ffffffffffffffffffffffffffffffffffffffff8316600090815260086020526040812054909190600290611df1907f0000000000000000000000000000000000000000000000000000000000000000612b25565b611dfb9190612aa8565b611e059190612aa8565b9392505050565b606060048054611cc390612b85565b600033611d54818585611f8e565b60007f0000000000000000000000000000000000000000000000000000000000000000600a541115611eb557600a54600090611e857f000000000000000000000000000000000000000000000000000000000000000082612b12565b73ffffffffffffffffffffffffffffffffffffffff8516600090815260086020526040902054611dfb9190612b25565b506000919050565b60058054611eca90612b85565b80601f0160208091040260200160405190810160405280929190818152602001828054611ef690612b85565b8015611f435780601f10611f1857610100808354040283529160200191611f43565b820191906000526020600020905b815481529060010190602001808311611f2657829003601f168201915b505050505081565b600260065403611f87576040517f3ee5aeb500000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6002600655565b73ffffffffffffffffffffffffffffffffffffffff8316611fde576040517f96c6fd1e000000000000000000000000000000000000000000000000000000008152600060048201526024016102bd565b73ffffffffffffffffffffffffffffffffffffffff821661202e576040517fec442f05000000000000000000000000000000000000000000000000000000008152600060048201526024016102bd565b61203983838361265d565b505050565b73ffffffffffffffffffffffffffffffffffffffff841661208e576040517fe602df05000000000000000000000000000000000000000000000000000000008152600060048201526024016102bd565b73ffffffffffffffffffffffffffffffffffffffff83166120de576040517f94280d62000000000000000000000000000000000000000000000000000000008152600060048201526024016102bd565b73ffffffffffffffffffffffffffffffffffffffff80851660009081526001602090815260408083209387168352929052208290558015612181578273ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b9258460405161217891815260200190565b60405180910390a35b50505050565b60008080808073ffffffffffffffffffffffffffffffffffffffff881630106121b15787306121b4565b30885b909550935073ffffffffffffffffffffffffffffffffffffffff88163010612207578661220260027f0000000000000000000000000000000000000000000000000000000000000000612aa8565b612234565b61223260027f0000000000000000000000000000000000000000000000000000000000000000612aa8565b875b90935091506122438383612668565b6040517f13ead56200000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff8781166004830152868116602483015262ffffff7f00000000000000000000000000000000000000000000000000000000000000001660448301528083166064830152919250908716906313ead562906084016020604051808303816000875af11580156122f0573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906123149190612b4f565b50939792965093509350565b60008060008060006040518061016001604052808b73ffffffffffffffffffffffffffffffffffffffff1681526020018a73ffffffffffffffffffffffffffffffffffffffff1681526020017f000000000000000000000000000000000000000000000000000000000000000062ffffff1681526020017ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff2764c60020b8152602001620d89b460020b815260200189815260200188815260200160648a60626123e79190612b25565b6123f19190612aa8565b815260200160646124038a6062612b25565b61240d9190612aa8565b81526020017f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff16156124545730612457565b60005b73ffffffffffffffffffffffffffffffffffffffff16815260200161247e42610e10612b3c565b81525090506000806000808e73ffffffffffffffffffffffffffffffffffffffff1663883164568b876040518363ffffffff1660e01b81526004016124c39190612bd8565b60806040518083038185885af11580156124e1573d6000803e3d6000fd5b50505050506040513d601f19601f820116820180604052508101906125069190612cc3565b93509350935093508e73ffffffffffffffffffffffffffffffffffffffff166312210e8a6040518163ffffffff1660e01b8152600401600060405180830381600087803b15801561255657600080fd5b505af115801561256a573d6000803e3d6000fd5b50959a509398509196509450505050509650965096509692505050565b612039838383600161203e565b73ffffffffffffffffffffffffffffffffffffffff8381166000908152600160209081526040808320938616835292905220547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff8114612181578181101561264e576040517ffb8f41b200000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff8416600482015260248101829052604481018390526064016102bd565b6121818484848403600061203e565b612039838383612711565b600080831180156126795750600082115b6126c55760405162461bcd60e51b815260206004820152601e60248201527f416d6f756e7473206d7573742062652067726561746572207468616e2030000060448201526064016102bd565b6000836126da84670de0b6b3a7640000612b25565b6126e49190612aa8565b905060006126f1826128bc565b90506000612707633b9aca00606084901b612aa8565b9695505050505050565b73ffffffffffffffffffffffffffffffffffffffff831661274957806002600082825461273e9190612b3c565b909155506127fb9050565b73ffffffffffffffffffffffffffffffffffffffff8316600090815260208190526040902054818110156127cf576040517fe450d38c00000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff8516600482015260248101829052604481018390526064016102bd565b73ffffffffffffffffffffffffffffffffffffffff841660009081526020819052604090209082900390555b73ffffffffffffffffffffffffffffffffffffffff821661282457600280548290039055612850565b73ffffffffffffffffffffffffffffffffffffffff821660009081526020819052604090208054820190555b8173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef836040516128af91815260200190565b60405180910390a3505050565b6000816000036128ce57506000919050565b8160006128dc600283612aa8565b6128e7906001612b3c565b90505b8181101561291d579050806002816129028187612aa8565b61290c9190612b3c565b6129169190612aa8565b90506128ea565b5092915050565b60006020808352835180602085015260005b8181101561295257858101830151858201604001528201612936565b5060006040828601015260407fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0601f8301168501019250505092915050565b73ffffffffffffffffffffffffffffffffffffffff811681146129b357600080fd5b50565b600080604083850312156129c957600080fd5b82356129d481612991565b946020939093013593505050565b6000602082840312156129f457600080fd5b8135611e0581612991565b600080600060608486031215612a1457600080fd5b8335612a1f81612991565b92506020840135612a2f81612991565b929592945050506040919091013590565b60008060408385031215612a5357600080fd5b8235612a5e81612991565b91506020830135612a6e81612991565b809150509250929050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b600082612ade577f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b500490565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052600160045260246000fd5b81810381811115611d5a57611d5a612a79565b8082028115828204841417611d5a57611d5a612a79565b80820180821115611d5a57611d5a612a79565b600060208284031215612b6157600080fd5b8151611e0581612991565b600060208284031215612b7e57600080fd5b5051919050565b600181811c90821680612b9957607f821691505b602082108103612bd2577f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b50919050565b815173ffffffffffffffffffffffffffffffffffffffff16815261016081016020830151612c1e602084018273ffffffffffffffffffffffffffffffffffffffff169052565b506040830151612c35604084018262ffffff169052565b506060830151612c4a606084018260020b9052565b506080830151612c5f608084018260020b9052565b5060a083015160a083015260c083015160c083015260e083015160e083015261010080840151818401525061012080840151612cb28285018273ffffffffffffffffffffffffffffffffffffffff169052565b505061014092830151919092015290565b60008060008060808587031215612cd957600080fd5b8451935060208501516fffffffffffffffffffffffffffffffff81168114612d0057600080fd5b604086015160609096015194979096509250505056fea264697066735822122047a579627b388c16b4cc15c9df29589f19013dcece432fd8a49177b0eddf761e64736f6c6343000818003300000000000000000000000099090d2d220901de904c6e3d003d7ced4b6ec2a40000000000000000000000000000000000000000000000000000000000000bb8000000000000000000000000abb2ad44d78e0349b02cc514dd9d91a97470acd900000000000000000000000000000000000000000000000000000000000000800000000000000000000000000000000000000000409f9cbc7c4a04c220000000000000000000000000000000c36442b4a4522e871399cd717abdd847ab11fe880000000000000000000000001f98431c8ad98523631ae4a59f267346ea31f9840000000000000000000000000000000000000000000000000000000000000140000000000000000000000000000000000000000000000000000000000000018000000000000000000000000000000000000000000000000000000000000001c00000000000000000000000000000000000000000000000000000000000000115000000000000000000000000000000000000000000000001158e460913d00000000000000000000000000000000000000000000000000000000000000000025800000000000000000000000069691ce612c244b0829b9e124cca063816da1448000000000000000000000000000000000000000000000000000000000000000445505041000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000004455050410000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000f9646174613a6170706c69636174696f6e2f6a736f6e3b6261736536342c5733736964484a686158526664486c775a534936496d526c63324e79615842306157397549697769646d4673645755694f694a4655464242496e307365794a30636d4670644639306558426c496a6f69615731685a3255694c434a32595778315a534936496d68306448427a4f69387659584e7a5a58527a4c6e4a765932746c644335745a57316c4c32467a63325630637938794d4449304d4467774f4445344c7a4133595445334e4467344c5745354d3245744e474a694f5330354f544d774c545a6d4d474d795a4445775a4746684d693577626d63696656303d00000000000000
Deployed Bytecode
0x6080604052600436106102025760003560e01c8063825521701161011d578063c884ef83116100b0578063dd62ed3e1161007f578063ec30903811610064578063ec30903814610940578063f570ee6b14610976578063fb5d5d4d1461078557600080fd5b8063dd62ed3e146108b9578063e5047b301461090c57600080fd5b8063c884ef8314610813578063c885044e14610843578063d35e7efc14610858578063d7b96d4e1461088557600080fd5b80639ecf0090116100ec5780639ecf0090146105e3578063a4475ce41461079f578063a9059cbb146107d3578063a92bc58a146107f357600080fd5b806382552170146107215780638bdb2afa1461073c57806395d89b4114610770578063996eba2d1461078557600080fd5b8063313ce567116101955780635ce38d99116101645780635ce38d991461065657806368b63c241461068a57806370a08231146106aa5780637b0fa954146106ed57600080fd5b8063313ce5671461059357806332c4f2bf146105af578063475a519f146105e3578063544d46a3146105fd57600080fd5b806318160ddd116101d157806318160ddd146105145780631e7269c5146105295780631f2698ab1461055957806323b872dd1461057357600080fd5b806306fdde031461044d578063089fe6aa14610478578063095ea7b3146104c05780630a4625af146104f057600080fd5b366104485761020f6109aa565b3373ffffffffffffffffffffffffffffffffffffffff7f000000000000000000000000c36442b4a4522e871399cd717abdd847ab11fe8816146102e6573233146102c65760405162461bcd60e51b815260206004820152602d60248201527f466169724d696e743a2063616e206e6f742073656e6420636f6d6d616e64206660448201527f726f6d20636f6e74726163742e0000000000000000000000000000000000000060648201526084015b60405180910390fd5b60075460ff161561036b57655af3107a400034036102e8576102e66109ee565b005b65b5e620f4800034036102fd576102e6610ca0565b60405162461bcd60e51b815260206004820152602e60248201527f466169724d696e743a20696e76616c696420636f6d6d616e64202d206d696e7460448201527f206f7220636c61696d206f6e6c7900000000000000000000000000000000000060648201526084016102bd565b7f00000000000000000000000000000000000000000000000000000000013b5b9e431061042b5765b5e620f4800034036103a7576102e661101b565b6601c6bf5263400034036103bd576102e661139f565b60405162461bcd60e51b815260206004820152603060248201527f466169724d696e743a20696e76616c696420636f6d6d616e64202d207374617260448201527f74206f7220726566756e64206f6e6c790000000000000000000000000000000060648201526084016102bd565b65b5e620f480003403610440576102e661101b565b6102e6611b81565b600080fd5b34801561045957600080fd5b50610462611cb4565b60405161046f9190612924565b60405180910390f35b34801561048457600080fd5b506104ac7f0000000000000000000000000000000000000000000000000000000000000bb881565b60405162ffffff909116815260200161046f565b3480156104cc57600080fd5b506104e06104db3660046129b6565b611d46565b604051901515815260200161046f565b3480156104fc57600080fd5b50610506600a5481565b60405190815260200161046f565b34801561052057600080fd5b50600254610506565b34801561053557600080fd5b506104e06105443660046129e2565b60096020526000908152604090205460ff1681565b34801561056557600080fd5b506007546104e09060ff1681565b34801561057f57600080fd5b506104e061058e3660046129ff565b611d60565b34801561059f57600080fd5b506040516012815260200161046f565b3480156105bb57600080fd5b506105067f000000000000000000000000000000000000000000000000000000000000025881565b3480156105ef57600080fd5b50610506655af3107a400081565b34801561060957600080fd5b506106317f00000000000000000000000069691ce612c244b0829b9e124cca063816da144881565b60405173ffffffffffffffffffffffffffffffffffffffff909116815260200161046f565b34801561066257600080fd5b506105067f00000000000000000000000000000000000000000000000000000000013b5b9e81565b34801561069657600080fd5b506105066106a53660046129e2565b611d84565b3480156106b657600080fd5b506105066106c53660046129e2565b73ffffffffffffffffffffffffffffffffffffffff1660009081526020819052604090205490565b3480156106f957600080fd5b506105067f0000000000000000000000000000000000000000409f9cbc7c4a04c22000000081565b34801561072d57600080fd5b506105066601c6bf5263400081565b34801561074857600080fd5b506106317f0000000000000000000000001f98431c8ad98523631ae4a59f267346ea31f98481565b34801561077c57600080fd5b50610462611e0c565b34801561079157600080fd5b5061050665b5e620f4800081565b3480156107ab57600080fd5b506106317f000000000000000000000000abb2ad44d78e0349b02cc514dd9d91a97470acd981565b3480156107df57600080fd5b506104e06107ee3660046129b6565b611e1b565b3480156107ff57600080fd5b5061050661080e3660046129e2565b611e29565b34801561081f57600080fd5b506104e061082e3660046129e2565b600b6020526000908152604090205460ff1681565b34801561084f57600080fd5b50610462611ebd565b34801561086457600080fd5b506105066108733660046129e2565b60086020526000908152604090205481565b34801561089157600080fd5b506106317f00000000000000000000000099090d2d220901de904c6e3d003d7ced4b6ec2a481565b3480156108c557600080fd5b506105066108d4366004612a40565b73ffffffffffffffffffffffffffffffffffffffff918216600090815260016020908152604080832093909416825291909152205490565b34801561091857600080fd5b506106317f000000000000000000000000c36442b4a4522e871399cd717abdd847ab11fe8881565b34801561094c57600080fd5b507f00000000000000000000000000000000000000000000000000000000013b5b9e4310156104e0565b34801561098257600080fd5b506105067f000000000000000000000000000000000000000000000001158e460913d0000081565b3073ffffffffffffffffffffffffffffffffffffffff7f0000000000000000000000000683e81290364e8738eb3552326be8d5c175230f16146109ec57600080fd5b565b6109f6611f4b565b60075460ff16610a485760405162461bcd60e51b815260206004820152601560248201527f466169724d696e743a206e6f742073746172746564000000000000000000000060448201526064016102bd565b333214610abd5760405162461bcd60e51b815260206004820152602360248201527f466169724d696e743a2063616e206e6f74206d696e7420746f20636f6e74726160448201527f63742e000000000000000000000000000000000000000000000000000000000060648201526084016102bd565b3360009081526009602052604090205460ff1615610b1d5760405162461bcd60e51b815260206004820152601860248201527f466169724d696e743a20616c7265616479206d696e746564000000000000000060448201526064016102bd565b33600081815260096020526040812080547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0016600117905590610b5f90611d84565b905060008111610bb15760405162461bcd60e51b815260206004820152601d60248201527f466169724d696e743a206d696e7420616d6f756e74206973207a65726f00000060448201526064016102bd565b610bdc60027f0000000000000000000000000000000000000000409f9cbc7c4a04c220000000612aa8565b811115610beb57610beb612ae3565b610bf6303383611f8e565b6040516000903390655af3107a4000908381818185875af1925050503d8060008114610c3e576040519150601f19603f3d011682016040523d82523d6000602084013e610c43565b606091505b5050905080610c945760405162461bcd60e51b815260206004820152601560248201527f466169724d696e743a206d696e74206661696c6564000000000000000000000060448201526064016102bd565b50506109ec6001600655565b610ca8611f4b565b60075460ff16610d205760405162461bcd60e51b815260206004820152602d60248201527f466169724d696e743a20776974686472617720657874726120657468206d757360448201527f742061667465722073746172740000000000000000000000000000000000000060648201526084016102bd565b60007f000000000000000000000000000000000000000000000001158e460913d0000011610db65760405162461bcd60e51b815260206004820152602260248201527f466169724d696e743a20736f667420746f7020636170206d757374206265207360448201527f657400000000000000000000000000000000000000000000000000000000000060648201526084016102bd565b7f000000000000000000000000000000000000000000000001158e460913d00000600a5411610e275760405162461bcd60e51b815260206004820152601660248201527f466169724d696e743a206e6f206578747261206574680000000000000000000060448201526064016102bd565b60007f000000000000000000000000000000000000000000000001158e460913d00000600a54610e579190612b12565b3360009081526008602052604090205490915080610eb75760405162461bcd60e51b815260206004820152601160248201527f466169724d696e743a206e6f2066756e6400000000000000000000000000000060448201526064016102bd565b336000908152600b602052604090205460ff1615610f175760405162461bcd60e51b815260206004820152601960248201527f466169724d696e743a20616c726561647920636c61696d65640000000000000060448201526064016102bd565b336000908152600b6020526040812080547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff00166001179055600a54610f5c8484612b25565b610f669190612aa8565b9050600033610f7b65b5e620f4800084612b3c565b604051600081818185875af1925050503d8060008114610fb7576040519150601f19603f3d011682016040523d82523d6000602084013e610fbc565b606091505b505090508061100d5760405162461bcd60e51b815260206004820152601960248201527f466169724d696e743a207769746864726177206661696c65640000000000000060448201526064016102bd565b505050506109ec6001600655565b611023611f4b565b60075460ff16156110765760405162461bcd60e51b815260206004820152601960248201527f466169724d696e743a20616c726561647920737461727465640000000000000060448201526064016102bd565b33600081815260086020526040902054806110d35760405162461bcd60e51b815260206004820152601160248201527f466169724d696e743a206e6f2066756e6400000000000000000000000000000060448201526064016102bd565b73ffffffffffffffffffffffffffffffffffffffff82166000908152600860205260408120819055600a805483929061110d908490612b12565b90915550600090506127106111427f000000000000000000000000000000000000000000000000000000000000025884612b25565b61114c9190612aa8565b905081811061115d5761115d612ae3565b6000811180156111a257507f00000000000000000000000069691ce612c244b0829b9e124cca063816da144873ffffffffffffffffffffffffffffffffffffffff1615155b156112795760007f00000000000000000000000069691ce612c244b0829b9e124cca063816da144873ffffffffffffffffffffffffffffffffffffffff168260405160006040518083038185875af1925050503d8060008114611221576040519150601f19603f3d011682016040523d82523d6000602084013e611226565b606091505b50509050806112775760405162461bcd60e51b815260206004820152601b60248201527f466169724d696e743a20726566756e6420666565206661696c6564000000000060448201526064016102bd565b505b600073ffffffffffffffffffffffffffffffffffffffff841665b5e620f480006112a38486612b12565b6112ad9190612b3c565b604051600081818185875af1925050503d80600081146112e9576040519150601f19603f3d011682016040523d82523d6000602084013e6112ee565b606091505b505090508061133f5760405162461bcd60e51b815260206004820152601760248201527f466169724d696e743a20726566756e64206661696c656400000000000000000060448201526064016102bd565b60408051600081526020810185905273ffffffffffffffffffffffffffffffffffffffff8616917fb24b09fd2e8e4d8904c3c26f3e935824e032891520ffda419dec9f086b0e1eea910160405180910390a2505050506109ec6001600655565b6113a7611f4b565b60075460ff16156113fa5760405162461bcd60e51b815260206004820152601960248201527f466169724d696e743a20616c726561647920737461727465640000000000000060448201526064016102bd565b30600090815260208190526040812054116114575760405162461bcd60e51b815260206004820152601460248201527f466169724d696e743a206e6f2062616c616e636500000000000000000000000060448201526064016102bd565b60007f000000000000000000000000c36442b4a4522e871399cd717abdd847ab11fe88905060008173ffffffffffffffffffffffffffffffffffffffff16634aa4a4fc6040518163ffffffff1660e01b8152600401602060405180830381865afa1580156114c9573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906114ed9190612b4f565b6040517f1698ee8200000000000000000000000000000000000000000000000000000000815230600482015273ffffffffffffffffffffffffffffffffffffffff808316602483015262ffffff7f0000000000000000000000000000000000000000000000000000000000000bb81660448301529192506000917f0000000000000000000000001f98431c8ad98523631ae4a59f267346ea31f9841690631698ee8290606401602060405180830381865afa1580156115b0573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906115d49190612b4f565b905073ffffffffffffffffffffffffffffffffffffffff8116156116605760405162461bcd60e51b815260206004820152603b60248201527f466169724d696e743a20706f6f6c20616c7265616479206578697374732c206360448201527f616e206e6f742073746172742c20706c6561736520726566756e64000000000060648201526084016102bd565b6000807f000000000000000000000000000000000000000000000001158e460913d000001161169157600a546116e4565b600a547f000000000000000000000000000000000000000000000001158e460913d00000106116c257600a546116e4565b7f000000000000000000000000000000000000000000000001158e460913d000005b9050611733307f000000000000000000000000c36442b4a4522e871399cd717abdd847ab11fe887fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff600061203e565b60008060008061174487868a612187565b5093509350935093506000806000806117618c898989898e612320565b600780547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0016600117905560408051838152602081018390526fffffffffffffffffffffffffffffffff8516918101919091529397509195509350915030907fef1e73540aed31615f5f09b178cff91261e831560c37718c23862e93a3fc3ceb9060600160405180910390a27f00000000000000000000000099090d2d220901de904c6e3d003d7ced4b6ec2a473ffffffffffffffffffffffffffffffffffffffff1615611acb576040517f095ea7b300000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff7f00000000000000000000000099090d2d220901de904c6e3d003d7ced4b6ec2a481166004830152602482018690527f000000000000000000000000c36442b4a4522e871399cd717abdd847ab11fe88169063095ea7b390604401600060405180830381600087803b1580156118d957600080fd5b505af11580156118ed573d6000803e3d6000fd5b50506040517fe2ab691d00000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff7f000000000000000000000000c36442b4a4522e871399cd717abdd847ab11fe8881166004830152602482018890527fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff60448301527f00000000000000000000000099090d2d220901de904c6e3d003d7ced4b6ec2a493506000925083169063e2ab691d906064016020604051808303816000875af11580156119d1573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906119f59190612b6c565b6040517f23b872dd00000000000000000000000000000000000000000000000000000000815230600482015273ffffffffffffffffffffffffffffffffffffffff7f000000000000000000000000abb2ad44d78e0349b02cc514dd9d91a97470acd981166024830152604482018390529192507f00000000000000000000000099090d2d220901de904c6e3d003d7ced4b6ec2a4909116906323b872dd90606401600060405180830381600087803b158015611ab057600080fd5b505af1158015611ac4573d6000803e3d6000fd5b5050505050505b60405160009033906601c6bf52634000908381818185875af1925050503d8060008114611b14576040519150601f19603f3d011682016040523d82523d6000602084013e611b19565b606091505b5050905080611b6a5760405162461bcd60e51b815260206004820152601560248201527f466169724d696e743a206d696e74206661696c6564000000000000000000000060448201526064016102bd565b505050505050505050505050506109ec6001600655565b611b89611f4b565b60075460ff1615611bdc5760405162461bcd60e51b815260206004820152601960248201527f466169724d696e743a20616c726561647920737461727465640000000000000060448201526064016102bd565b655af3107a4000341015611c325760405162461bcd60e51b815260206004820152601760248201527f466169724d696e743a2076616c756520746f6f206c6f7700000000000000000060448201526064016102bd565b3360009081526008602052604081208054349290611c51908490612b3c565b9250508190555034600a6000828254611c6a9190612b3c565b9091555050604080513481526000602082015233917f4c10b3a5590fcdc7a6f3b564c09870bd275facbd00a0bcf68c8b069e32f9508b910160405180910390a26109ec6001600655565b606060038054611cc390612b85565b80601f0160208091040260200160405190810160405280929190818152602001828054611cef90612b85565b8015611d3c5780601f10611d1157610100808354040283529160200191611d3c565b820191906000526020600020905b815481529060010190602001808311611d1f57829003601f168201915b5050505050905090565b600033611d54818585612587565b60019150505b92915050565b600033611d6e858285612594565b611d79858585611f8e565b506001949350505050565b6000600a54600003611d9857506000919050565b600a5473ffffffffffffffffffffffffffffffffffffffff8316600090815260086020526040812054909190600290611df1907f0000000000000000000000000000000000000000409f9cbc7c4a04c220000000612b25565b611dfb9190612aa8565b611e059190612aa8565b9392505050565b606060048054611cc390612b85565b600033611d54818585611f8e565b60007f000000000000000000000000000000000000000000000001158e460913d00000600a541115611eb557600a54600090611e857f000000000000000000000000000000000000000000000001158e460913d0000082612b12565b73ffffffffffffffffffffffffffffffffffffffff8516600090815260086020526040902054611dfb9190612b25565b506000919050565b60058054611eca90612b85565b80601f0160208091040260200160405190810160405280929190818152602001828054611ef690612b85565b8015611f435780601f10611f1857610100808354040283529160200191611f43565b820191906000526020600020905b815481529060010190602001808311611f2657829003601f168201915b505050505081565b600260065403611f87576040517f3ee5aeb500000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6002600655565b73ffffffffffffffffffffffffffffffffffffffff8316611fde576040517f96c6fd1e000000000000000000000000000000000000000000000000000000008152600060048201526024016102bd565b73ffffffffffffffffffffffffffffffffffffffff821661202e576040517fec442f05000000000000000000000000000000000000000000000000000000008152600060048201526024016102bd565b61203983838361265d565b505050565b73ffffffffffffffffffffffffffffffffffffffff841661208e576040517fe602df05000000000000000000000000000000000000000000000000000000008152600060048201526024016102bd565b73ffffffffffffffffffffffffffffffffffffffff83166120de576040517f94280d62000000000000000000000000000000000000000000000000000000008152600060048201526024016102bd565b73ffffffffffffffffffffffffffffffffffffffff80851660009081526001602090815260408083209387168352929052208290558015612181578273ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b9258460405161217891815260200190565b60405180910390a35b50505050565b60008080808073ffffffffffffffffffffffffffffffffffffffff881630106121b15787306121b4565b30885b909550935073ffffffffffffffffffffffffffffffffffffffff88163010612207578661220260027f0000000000000000000000000000000000000000409f9cbc7c4a04c220000000612aa8565b612234565b61223260027f0000000000000000000000000000000000000000409f9cbc7c4a04c220000000612aa8565b875b90935091506122438383612668565b6040517f13ead56200000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff8781166004830152868116602483015262ffffff7f0000000000000000000000000000000000000000000000000000000000000bb81660448301528083166064830152919250908716906313ead562906084016020604051808303816000875af11580156122f0573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906123149190612b4f565b50939792965093509350565b60008060008060006040518061016001604052808b73ffffffffffffffffffffffffffffffffffffffff1681526020018a73ffffffffffffffffffffffffffffffffffffffff1681526020017f0000000000000000000000000000000000000000000000000000000000000bb862ffffff1681526020017ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff2764c60020b8152602001620d89b460020b815260200189815260200188815260200160648a60626123e79190612b25565b6123f19190612aa8565b815260200160646124038a6062612b25565b61240d9190612aa8565b81526020017f00000000000000000000000099090d2d220901de904c6e3d003d7ced4b6ec2a473ffffffffffffffffffffffffffffffffffffffff16156124545730612457565b60005b73ffffffffffffffffffffffffffffffffffffffff16815260200161247e42610e10612b3c565b81525090506000806000808e73ffffffffffffffffffffffffffffffffffffffff1663883164568b876040518363ffffffff1660e01b81526004016124c39190612bd8565b60806040518083038185885af11580156124e1573d6000803e3d6000fd5b50505050506040513d601f19601f820116820180604052508101906125069190612cc3565b93509350935093508e73ffffffffffffffffffffffffffffffffffffffff166312210e8a6040518163ffffffff1660e01b8152600401600060405180830381600087803b15801561255657600080fd5b505af115801561256a573d6000803e3d6000fd5b50959a509398509196509450505050509650965096509692505050565b612039838383600161203e565b73ffffffffffffffffffffffffffffffffffffffff8381166000908152600160209081526040808320938616835292905220547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff8114612181578181101561264e576040517ffb8f41b200000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff8416600482015260248101829052604481018390526064016102bd565b6121818484848403600061203e565b612039838383612711565b600080831180156126795750600082115b6126c55760405162461bcd60e51b815260206004820152601e60248201527f416d6f756e7473206d7573742062652067726561746572207468616e2030000060448201526064016102bd565b6000836126da84670de0b6b3a7640000612b25565b6126e49190612aa8565b905060006126f1826128bc565b90506000612707633b9aca00606084901b612aa8565b9695505050505050565b73ffffffffffffffffffffffffffffffffffffffff831661274957806002600082825461273e9190612b3c565b909155506127fb9050565b73ffffffffffffffffffffffffffffffffffffffff8316600090815260208190526040902054818110156127cf576040517fe450d38c00000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff8516600482015260248101829052604481018390526064016102bd565b73ffffffffffffffffffffffffffffffffffffffff841660009081526020819052604090209082900390555b73ffffffffffffffffffffffffffffffffffffffff821661282457600280548290039055612850565b73ffffffffffffffffffffffffffffffffffffffff821660009081526020819052604090208054820190555b8173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef836040516128af91815260200190565b60405180910390a3505050565b6000816000036128ce57506000919050565b8160006128dc600283612aa8565b6128e7906001612b3c565b90505b8181101561291d579050806002816129028187612aa8565b61290c9190612b3c565b6129169190612aa8565b90506128ea565b5092915050565b60006020808352835180602085015260005b8181101561295257858101830151858201604001528201612936565b5060006040828601015260407fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0601f8301168501019250505092915050565b73ffffffffffffffffffffffffffffffffffffffff811681146129b357600080fd5b50565b600080604083850312156129c957600080fd5b82356129d481612991565b946020939093013593505050565b6000602082840312156129f457600080fd5b8135611e0581612991565b600080600060608486031215612a1457600080fd5b8335612a1f81612991565b92506020840135612a2f81612991565b929592945050506040919091013590565b60008060408385031215612a5357600080fd5b8235612a5e81612991565b91506020830135612a6e81612991565b809150509250929050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b600082612ade577f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b500490565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052600160045260246000fd5b81810381811115611d5a57611d5a612a79565b8082028115828204841417611d5a57611d5a612a79565b80820180821115611d5a57611d5a612a79565b600060208284031215612b6157600080fd5b8151611e0581612991565b600060208284031215612b7e57600080fd5b5051919050565b600181811c90821680612b9957607f821691505b602082108103612bd2577f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b50919050565b815173ffffffffffffffffffffffffffffffffffffffff16815261016081016020830151612c1e602084018273ffffffffffffffffffffffffffffffffffffffff169052565b506040830151612c35604084018262ffffff169052565b506060830151612c4a606084018260020b9052565b506080830151612c5f608084018260020b9052565b5060a083015160a083015260c083015160c083015260e083015160e083015261010080840151818401525061012080840151612cb28285018273ffffffffffffffffffffffffffffffffffffffff169052565b505061014092830151919092015290565b60008060008060808587031215612cd957600080fd5b8451935060208501516fffffffffffffffffffffffffffffffff81168114612d0057600080fd5b604086015160609096015194979096509250505056fea264697066735822122047a579627b388c16b4cc15c9df29589f19013dcece432fd8a49177b0eddf761e64736f6c63430008180033
Loading...
Loading
Loading...
Loading
[ Download: CSV Export ]
[ Download: CSV Export ]
A token is a representation of an on-chain or off-chain asset. The token page shows information such as price, total supply, holders, transfers and social links. Learn more about this page in our Knowledge Base.