Feature Tip: Add private address tag to any address under My Name Tag !
ERC-20
Overview
Max Total Supply
1,000,000,000 COOKER
Holders
28
Market
Onchain Market Cap
$0.00
Circulating Supply Market Cap
-
Other Info
Token Contract (WITH 18 Decimals)
Balance
8,206,042.950691772665130358 COOKERValue
$0.00Loading...
Loading
Loading...
Loading
Loading...
Loading
# | Exchange | Pair | Price | 24H Volume | % Volume |
---|
Contract Name:
cooker
Compiler Version
v0.8.19+commit.7dd6d404
Optimization Enabled:
Yes with 200 runs
Other Settings:
default evmVersion
Contract Source Code (Solidity Standard Json-Input format)
// SPDX-License-Identifier: MIT pragma solidity 0.8.19; import "ERC20.sol"; import "Ownable.sol"; import "IERC20.sol"; import "@uniswap/v2-core/contracts/interfaces/IUniswapV2Factory.sol"; import "@uniswap/v2-periphery/contracts/interfaces/IUniswapV2Router02.sol"; contract cooker is ERC20, Ownable { struct User { bool isBlacklisted; bool isAutomatedMarketMaker; bool isExcludedFromFees; bool isExcludedFromMaxTransactionAmount; } struct Fees { uint8 buy; uint8 sell; uint8 liquidity; uint8 cooker; uint8 team; } struct Settings { bool limitsInEffect; bool swapEnabled; bool blacklistRenounced; bool feeChangeRenounced; bool tradingActive; /// @dev Upon enabling trading, record the end block for bot protection fee /// @dev This fee is a 90% fee that is reduced by 5% every block for 18 blocks. uint216 endBlock; } IUniswapV2Router02 public immutable uniswapV2Router; address public immutable uniswapV2Pair; /// @dev Constant to access the allowance slot uint256 private constant _ALLOWANCE_SLOT_SEED = 0x7f5e9f20; uint256 public constant MAX_SUPPLY = 1_000_000_000 * 1e18; uint256 public constant MIN_SWAP_AMOUNT = MAX_SUPPLY / 100_000; // 0.001% uint256 public constant MAX_SWAP_AMOUNT = MAX_SUPPLY * 5 / 1_000; // 0.5% uint256 public maxTransactionAmount; uint256 public swapTokensAtAmount; uint256 public maxWallet; address public cookerWallet; address public teamWallet; bool private _swapping; uint256 public tokensForBotProtection; Fees public feeAmounts; Settings private settings = Settings({ limitsInEffect: true, swapEnabled: true, blacklistRenounced: false, feeChangeRenounced: false, tradingActive: false, endBlock: uint216(0) }); mapping(address => User) private _users; event ExcludeFromFees(address indexed account, bool isExcluded); event ExcludeFromMaxTransaction(address indexed account, bool isExcluded); event FailedSwapBackTransfer(address indexed destination, uint256 amount); event FeesUpdated(uint8 buyFee, uint8 sellFee, uint8 cookerPercent, uint8 liquidityPercent, uint8 teamPercent); event MaxTransactionAmountUpdated(uint256 newAmount, uint256 oldAmount); event MaxWalletAmountUpdated(uint256 newAmount, uint256 oldAmount); event cookerWalletUpdated(address indexed newWallet, address indexed oldWallet); event SetAutomatedMarketMakerPair(address indexed pair, bool value); event SwapAndLiquify(uint256 tokensSwapped, uint256 ethReceived); event SwapTokensAtAmountUpdated(uint256 newAmount, uint256 oldAmount); event TeamWalletUpdated(address indexed newWallet, address indexed oldWallet); event UpdateUniswapV2Router(address indexed newAddress, address indexed oldAddress); error cooker__BlacklistModificationDisabled(); error cooker__BuyAmountGreaterThanMax(); error cooker__CannotBlacklistLPPair(); error cooker__CannotBlacklistRouter(); error cooker__CannotRemovePairFromAMMs(); error cooker__CannotSetWalletToAddressZero(); error cooker__CannotTransferFromAddressZero(); error cooker__CannotTransferToAddressZero(); error cooker__ErrorWithdrawingEth(); error cooker__FeeChangeRenounced(); error cooker__MaxFeeFivePercent(); error cooker__MaxTransactionTooLow(); error cooker__MaxWalletAmountExceeded(); error cooker__MaxWalletAmountTooLow(); error cooker__OnlyOwner(); error cooker__ReceiverBlacklisted(); error cooker__ReceiverCannotBeAddressZero(); error cooker__SellAmountGreaterThanMax(); error cooker__SenderBlacklisted(); error cooker__StuckEthWithdrawError(); error cooker__SwapAmountGreaterThanMaximum(); error cooker__SwapAmountLowerThanMinimum(); error cooker__TokenAddressCannotBeAddressZero(); error cooker__TradingNotActive(); constructor(address ownerWallet, address teamWallet_, address cookerWallet_, address routerAddress) { IUniswapV2Router02 _uniswapV2Router = IUniswapV2Router02(routerAddress); uniswapV2Router = _uniswapV2Router; uniswapV2Pair = IUniswapV2Factory(_uniswapV2Router.factory()).createPair(address(this), _uniswapV2Router.WETH()); maxTransactionAmount = MAX_SUPPLY * 5 / 1_000; // 0.5% maxWallet = MAX_SUPPLY * 5 / 1_000; // 0.5% swapTokensAtAmount = MAX_SUPPLY * 5 / 10_000; // 0.05% feeAmounts = Fees({buy: 25, sell: 75, cooker: 0, liquidity: 0, team: 100}); cookerWallet = cookerWallet_; teamWallet = teamWallet_; _users[teamWallet_] = User({ isExcludedFromFees: true, isExcludedFromMaxTransactionAmount: true, isAutomatedMarketMaker: false, isBlacklisted: false }); _users[address(this)] = User({ isExcludedFromFees: true, isExcludedFromMaxTransactionAmount: true, isAutomatedMarketMaker: false, isBlacklisted: false }); _users[address(0xdead)] = User({ isExcludedFromFees: true, isExcludedFromMaxTransactionAmount: true, isAutomatedMarketMaker: false, isBlacklisted: false }); _users[address(ownerWallet)] = User({ isExcludedFromFees: true, isExcludedFromMaxTransactionAmount: true, isAutomatedMarketMaker: false, isBlacklisted: false }); _users[address(uniswapV2Router)] = User({ isExcludedFromMaxTransactionAmount: true, isAutomatedMarketMaker: false, isExcludedFromFees: false, isBlacklisted: false }); _users[address(uniswapV2Pair)] = User({ isExcludedFromMaxTransactionAmount: true, isAutomatedMarketMaker: true, isExcludedFromFees: false, isBlacklisted: false }); _mint(ownerWallet, MAX_SUPPLY); } receive() external payable {} function name() public pure override returns (string memory) { return "COOKER"; } function symbol() public pure override returns (string memory) { return "COOKER"; } function enableTrading() public { _requireIsOwner(); settings.endBlock = uint216(block.number) + 10; settings.tradingActive = true; } // remove limits after token is stable function removeLimits() external { _requireIsOwner(); settings.limitsInEffect = false; } // change the minimum amount of tokens to sell from fees function updateSwapTokensAtAmount(uint256 newAmount) external { _requireIsOwner(); if (newAmount < MIN_SWAP_AMOUNT) { revert cooker__SwapAmountLowerThanMinimum(); } if (newAmount > MAX_SWAP_AMOUNT) { revert cooker__SwapAmountGreaterThanMaximum(); } uint256 oldSwapAmount = swapTokensAtAmount; swapTokensAtAmount = newAmount; emit SwapTokensAtAmountUpdated(newAmount, oldSwapAmount); } function updateMaxTransactionAmount(uint256 newAmount) external { _requireIsOwner(); if (newAmount < MAX_SUPPLY * 5 / 1000) { revert cooker__MaxTransactionTooLow(); } uint256 oldMaxTransactionAmount = maxTransactionAmount; maxTransactionAmount = newAmount; emit MaxTransactionAmountUpdated(newAmount, oldMaxTransactionAmount); } function updateMaxWalletAmount(uint256 newNum) external { _requireIsOwner(); if (newNum < MAX_SUPPLY / 100) { revert cooker__MaxWalletAmountTooLow(); } uint256 oldMaxWallet = maxWallet; maxWallet = newNum; emit MaxWalletAmountUpdated(newNum, oldMaxWallet); } // only use to disable contract sales if absolutely necessary (emergency use only) function updateSwapEnabled(bool enabled) external { _requireIsOwner(); settings.swapEnabled = enabled; } function updateBuyFees(uint8 cookerFee, uint8 liquidityFee, uint8 teamFee) external { _requireIsOwner(); if (settings.feeChangeRenounced) { revert cooker__FeeChangeRenounced(); } uint8 totalFees = cookerFee + liquidityFee + teamFee; if (totalFees > 99) { revert cooker__MaxFeeFivePercent(); } uint8 sellFee = feeAmounts.sell; uint8 revPercent = cookerFee * 100 / totalFees; uint8 liqPercent = liquidityFee * 100 / totalFees; uint8 teamPercent = 100 - revPercent - liqPercent; feeAmounts = Fees({buy: totalFees, sell: sellFee, cooker: revPercent, liquidity: liqPercent, team: teamPercent}); emit FeesUpdated(totalFees, sellFee, revPercent, liqPercent, teamPercent); } function updateSellFees(uint8 cookerFee, uint8 liquidityFee, uint8 teamFee) external { _requireIsOwner(); if (settings.feeChangeRenounced) { revert cooker__FeeChangeRenounced(); } uint8 totalFees = cookerFee + liquidityFee + teamFee; if (totalFees > 99) { revert cooker__MaxFeeFivePercent(); } uint8 buyFee = feeAmounts.buy; uint8 revPercent = cookerFee * 100 / totalFees; uint8 liqPercent = liquidityFee * 100 / totalFees; uint8 teamPercent = 100 - revPercent - liqPercent; feeAmounts = Fees({buy: buyFee, sell: totalFees, cooker: revPercent, liquidity: liqPercent, team: teamPercent}); emit FeesUpdated(buyFee, totalFees, revPercent, liqPercent, teamPercent); } function excludeFromFees(address account, bool excluded) external { _requireIsOwner(); _users[account].isExcludedFromFees = excluded; emit ExcludeFromFees(account, excluded); } function excludeFromMaxTransaction(address account, bool isExcluded) external { _requireIsOwner(); _users[account].isExcludedFromMaxTransactionAmount = isExcluded; emit ExcludeFromMaxTransaction(account, isExcluded); } function setAutomatedMarketMakerPair(address pair, bool value) external { _requireIsOwner(); if (pair == uniswapV2Pair) { revert cooker__CannotRemovePairFromAMMs(); } _users[pair].isAutomatedMarketMaker = value; emit SetAutomatedMarketMakerPair(pair, value); } function updateCookersWallet(address newWallet) external { _requireIsOwner(); if (newWallet == address(0)) { revert cooker__CannotSetWalletToAddressZero(); } address oldWallet = cookerWallet; cookerWallet = newWallet; emit cookerWalletUpdated(newWallet, oldWallet); } function updateTeamWallet(address newWallet) external { _requireIsOwner(); if (newWallet == address(0)) { revert cooker__CannotSetWalletToAddressZero(); } address oldWallet = teamWallet; teamWallet = newWallet; emit TeamWalletUpdated(newWallet, oldWallet); } function withdrawStuckCookerEth(uint256 amount) external { _requireIsOwner(); uint256 transferAmount; if (amount == 0) { transferAmount = balanceOf(address(this)); } else { transferAmount = amount; } super._transfer(address(this), msg.sender, transferAmount); } function withdrawStuckToken(address _token) external { _requireIsOwner(); if (_token == address(0)) { revert cooker__TokenAddressCannotBeAddressZero(); } uint256 _contractBalance = IERC20(_token).balanceOf(address(this)); IERC20(_token).transfer(msg.sender, _contractBalance); } function withdrawStuckEth() external { _requireIsOwner(); (bool success,) = msg.sender.call{value: address(this).balance}(""); if (!success) { revert cooker__ErrorWithdrawingEth(); } } function renounceBlacklist() external { _requireIsOwner(); settings.blacklistRenounced = true; } function renounceFeeChange() external { _requireIsOwner(); settings.feeChangeRenounced = true; } function blacklist(address account) external { _requireIsOwner(); if (settings.blacklistRenounced) { revert cooker__BlacklistModificationDisabled(); } if (account == uniswapV2Pair) { revert cooker__CannotBlacklistLPPair(); } if (account == address(uniswapV2Router)) { revert cooker__CannotBlacklistRouter(); } _users[account].isBlacklisted = true; } // @dev unblacklist address; not affected by blacklistRenounced incase team wants to unblacklist v3 pools down the // @dev road function unblacklist(address account) external { _requireIsOwner(); _users[account].isBlacklisted = false; } function isExcludedFromFees(address account) external view returns (bool) { return _users[account].isExcludedFromFees; } function isExcludedFromMaxTransactionAmount(address account) external view returns (bool) { return _users[account].isExcludedFromMaxTransactionAmount; } function isAutomatedMarketMakerPair(address pair) external view returns (bool) { return _users[pair].isAutomatedMarketMaker; } function isBlacklisted(address account) external view returns (bool) { return _users[account].isBlacklisted; } function isSwapEnabled() external view returns (bool) { return settings.swapEnabled; } function isBlacklistRenounced() external view returns (bool) { return settings.blacklistRenounced; } function isFeeChangeRenounced() external view returns (bool) { return settings.feeChangeRenounced; } function isTradingActive() external view returns (bool) { return settings.tradingActive; } function isLimitInEffect() external view returns (bool) { return settings.limitsInEffect; } function transfer(address to, uint256 amount) public override returns (bool) { _transfer(msg.sender, to, amount); return true; } function transferFrom(address from, address to, uint256 amount) public override returns (bool) { // Check allowance and reduce it if used, reverts with `InsufficientAllowance()` if not approved. assembly { let from_ := shl(96, from) // Compute the allowance slot and load its value. mstore(0x20, caller()) mstore(0x0c, or(from_, _ALLOWANCE_SLOT_SEED)) let allowanceSlot := keccak256(0x0c, 0x34) let allowance_ := sload(allowanceSlot) // If the allowance is not the maximum uint256 value. if iszero(eq(allowance_, not(0))) { // Revert if the amount to be transferred exceeds the allowance. if gt(amount, allowance_) { mstore(0x00, 0x13be252b) // `InsufficientAllowance()`. revert(0x1c, 0x04) } // Subtract and store the updated allowance. sstore(allowanceSlot, sub(allowance_, amount)) } } _transfer(from, to, amount); return true; } function _transfer(address from, address to, uint256 amount) internal override { // Ignore mints, burns not enabled if (from == address(0)) { revert cooker__CannotTransferFromAddressZero(); } if (to == address(0)) { revert cooker__CannotTransferToAddressZero(); } User memory fromData = _users[from]; User memory toData = _users[to]; Settings memory settingCache = settings; if (!settingCache.tradingActive) { if (!fromData.isExcludedFromFees) { if (!toData.isExcludedFromFees) { revert cooker__TradingNotActive(); } } } // Apply blacklist protection if (fromData.isBlacklisted) { revert cooker__SenderBlacklisted(); } if (toData.isBlacklisted) { revert cooker__ReceiverBlacklisted(); } // If zero amount, continue if (amount == 0) { return; } bool excludedFromFees = fromData.isExcludedFromFees || toData.isExcludedFromFees; // Cache transaction type for reference. // 1 = Buy // 2 = Sell // 3 = Transfer uint8 txType = 3; if (fromData.isAutomatedMarketMaker) { // Buys originate from the AMM pair txType = 1; } else if (toData.isAutomatedMarketMaker) { // Sells send funds to AMM pair txType = 2; } if (!_swapping) { if (settingCache.limitsInEffect) { //when buy if (txType == 1 && !toData.isExcludedFromMaxTransactionAmount) { if (amount > maxTransactionAmount) { revert cooker__BuyAmountGreaterThanMax(); } if (amount + balanceOf(to) > maxWallet) { revert cooker__MaxWalletAmountExceeded(); } } //when sell else if (txType == 2 && !fromData.isExcludedFromMaxTransactionAmount) { if (amount > maxTransactionAmount) { revert cooker__SellAmountGreaterThanMax(); } } else if (!toData.isExcludedFromMaxTransactionAmount) { if (amount + balanceOf(to) > maxWallet) { revert cooker__MaxWalletAmountExceeded(); } } } if (settingCache.swapEnabled) { // Only sells will trigger the fee swap if (txType == 2) { if (balanceOf(address(this)) >= swapTokensAtAmount) { _swapping = true; _swapBack(); _swapping = false; } } } } if (txType < 3) { bool takeFee = !_swapping; // if any account belongs to _isExcludedFromFee account then remove the fee if (excludedFromFees) { takeFee = false; } uint256 fees = 0; // only take fees on buys/sells, do not take on wallet transfers if (takeFee) { Fees memory feeCache = feeAmounts; // on sell if (txType == 2) { if (feeCache.sell > 0) { fees = amount * feeCache.sell / 100; } } // on buy else if (txType == 1) { if (feeCache.buy > 0) { fees = amount * feeCache.buy / 100; } } if (block.number < settingCache.endBlock) { uint256 blocksLeft = settingCache.endBlock - block.number; uint256 botFeeMultiplier = 90; // Apply sniper protection - first 18 blocks have a fee reduced 5% each block. if (blocksLeft < 18) { botFeeMultiplier -= (5 * (18 - blocksLeft)); } uint256 botFee = (amount * botFeeMultiplier) / 100; super._transfer(from, teamWallet, botFee); amount -= botFee; tokensForBotProtection += botFee; } amount -= fees; if (fees > 0) { super._transfer(from, address(this), fees); } } } super._transfer(from, to, amount); } function _swapTokensForEth(uint256 tokenAmount) internal { // generate the uniswap pair path of token -> weth address[] memory path = new address[](2); path[0] = address(this); path[1] = uniswapV2Router.WETH(); _approve(address(this), address(uniswapV2Router), tokenAmount); // make the swap uniswapV2Router.swapExactTokensForETHSupportingFeeOnTransferTokens( tokenAmount, 0, // accept any amount of ETH path, address(this), block.timestamp ); } function _addLiquidity(uint256 tokenAmount, uint256 ethAmount) internal { // approve token transfer to cover all possible scenarios _approve(address(this), address(uniswapV2Router), tokenAmount); // add the liquidity uniswapV2Router.addLiquidityETH{value: ethAmount}( address(this), tokenAmount, 0, // slippage is unavoidable 0, // slippage is unavoidable owner(), block.timestamp ); } function _swapBack() internal { // Cache values uint256 contractBalance = balanceOf(address(this)); Fees memory feeCache = feeAmounts; bool success; if (contractBalance == 0) { return; } // Prevent too many tokens from being swapped uint256 maxAmount = swapTokensAtAmount * 20; if (contractBalance > maxAmount) { contractBalance = maxAmount; } uint256 liquidityAmount = contractBalance * feeCache.liquidity / 100; // Halve the amount of liquidity tokens uint256 liquidityTokens = liquidityAmount - (liquidityAmount / 2); uint256 amountToSwapForETH = contractBalance - liquidityTokens; uint256 initialETHBalance = address(this).balance; _swapTokensForEth(amountToSwapForETH); uint256 ethBalance = address(this).balance - initialETHBalance; uint256 ethForcooker = ethBalance * feeCache.cooker / 100; uint256 ethForTeam = ethBalance * feeCache.team / 100; uint256 ethForLiquidity = ethBalance - ethForcooker - ethForTeam; if (liquidityTokens > 0 && ethForLiquidity > 0) { _addLiquidity(liquidityTokens, ethForLiquidity); emit SwapAndLiquify(amountToSwapForETH, ethForLiquidity); } address teamWallet_ = teamWallet; (success,) = address(teamWallet_).call{value: ethForTeam}(""); if (!success) { emit FailedSwapBackTransfer(teamWallet_, ethForTeam); } if (ethForcooker > 0) { (success,) = address(cookerWallet).call{value: ethForcooker}(""); if (!success) { emit FailedSwapBackTransfer(cookerWallet, ethForcooker); } } } function _requireIsOwner() internal view { if (msg.sender != owner()) { revert cooker__OnlyOwner(); } } }
pragma solidity >=0.6.2; import './IUniswapV2Router01.sol'; interface IUniswapV2Router02 is IUniswapV2Router01 { function removeLiquidityETHSupportingFeeOnTransferTokens( address token, uint liquidity, uint amountTokenMin, uint amountETHMin, address to, uint deadline ) external returns (uint amountETH); function removeLiquidityETHWithPermitSupportingFeeOnTransferTokens( address token, uint liquidity, uint amountTokenMin, uint amountETHMin, address to, uint deadline, bool approveMax, uint8 v, bytes32 r, bytes32 s ) external returns (uint amountETH); function swapExactTokensForTokensSupportingFeeOnTransferTokens( uint amountIn, uint amountOutMin, address[] calldata path, address to, uint deadline ) external; function swapExactETHForTokensSupportingFeeOnTransferTokens( uint amountOutMin, address[] calldata path, address to, uint deadline ) external payable; function swapExactTokensForETHSupportingFeeOnTransferTokens( uint amountIn, uint amountOutMin, address[] calldata path, address to, uint deadline ) external; }
pragma solidity >=0.5.0; interface IUniswapV2Factory { event PairCreated(address indexed token0, address indexed token1, address pair, uint); function feeTo() external view returns (address); function feeToSetter() external view returns (address); function getPair(address tokenA, address tokenB) external view returns (address pair); function allPairs(uint) external view returns (address pair); function allPairsLength() external view returns (uint); function createPair(address tokenA, address tokenB) external returns (address pair); function setFeeTo(address) external; function setFeeToSetter(address) external; }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.9.0) (token/ERC20/IERC20.sol) pragma solidity ^0.8.0; /** * @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 amount of tokens in existence. */ function totalSupply() external view returns (uint256); /** * @dev Returns the amount of tokens owned by `account`. */ function balanceOf(address account) external view returns (uint256); /** * @dev Moves `amount` 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 amount) 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 `amount` 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 amount) external returns (bool); /** * @dev Moves `amount` tokens from `from` to `to` using the * allowance mechanism. `amount` 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 amount) external returns (bool); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.9.0) (access/Ownable.sol) pragma solidity ^0.8.0; import "Context.sol"; /** * @dev Contract module which provides a basic access control mechanism, where * there is an account (an owner) that can be granted exclusive access to * specific functions. * * By default, the owner account will be the one that deploys the contract. This * can later be changed with {transferOwnership}. * * This module is used through inheritance. It will make available the modifier * `onlyOwner`, which can be applied to your functions to restrict their use to * the owner. */ abstract contract Ownable is Context { address private _owner; event OwnershipTransferred(address indexed previousOwner, address indexed newOwner); /** * @dev Initializes the contract setting the deployer as the initial owner. */ constructor() { _transferOwnership(_msgSender()); } /** * @dev Throws if called by any account other than the owner. */ modifier onlyOwner() { _checkOwner(); _; } /** * @dev Returns the address of the current owner. */ function owner() public view virtual returns (address) { return _owner; } /** * @dev Throws if the sender is not the owner. */ function _checkOwner() internal view virtual { require(owner() == _msgSender(), "Ownable: caller is not the owner"); } /** * @dev Leaves the contract without owner. It will not be possible to call * `onlyOwner` functions. Can only be called by the current owner. * * NOTE: Renouncing ownership will leave the contract without an owner, * thereby disabling any functionality that is only available to the owner. */ function renounceOwnership() public virtual onlyOwner { _transferOwnership(address(0)); } /** * @dev Transfers ownership of the contract to a new account (`newOwner`). * Can only be called by the current owner. */ function transferOwnership(address newOwner) public virtual onlyOwner { require(newOwner != address(0), "Ownable: new owner is the zero address"); _transferOwnership(newOwner); } /** * @dev Transfers ownership of the contract to a new account (`newOwner`). * Internal function without access restriction. */ function _transferOwnership(address newOwner) internal virtual { address oldOwner = _owner; _owner = newOwner; emit OwnershipTransferred(oldOwner, newOwner); } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.4; /// @notice Simple ERC20 + EIP-2612 implementation. /// @author Solady (https://github.com/vectorized/solady/blob/main/src/tokens/ERC20.sol) /// @author Modified from Solmate (https://github.com/transmissions11/solmate/blob/main/src/tokens/ERC20.sol) /// @author Modified from OpenZeppelin (https://github.com/OpenZeppelin/openzeppelin-contracts/blob/master/contracts/token/ERC20/ERC20.sol) /// /// @dev Note: /// The ERC20 standard allows minting and transferring to and from the zero address, /// minting and transferring zero tokens, as well as self-approvals. /// For performance, this implementation WILL NOT revert for such actions. /// Please add any checks with overrides if desired. abstract contract ERC20 { /*´:°•.°+.*•´.*:˚.°*.˚•´.°:°•.°•.*•´.*:˚.°*.˚•´.°:°•.°+.*•´.*:*/ /* CUSTOM ERRORS */ /*.•°:°.´+˚.*°.˚:*.´•*.+°.•°:´*.´•*.•°.•°:°.´:•˚°.*°.˚:*.´+°.•*/ /// @dev The total supply has overflowed. error TotalSupplyOverflow(); /// @dev The allowance has overflowed. error AllowanceOverflow(); /// @dev The allowance has underflowed. error AllowanceUnderflow(); /// @dev Insufficient balance. error InsufficientBalance(); /// @dev Insufficient allowance. error InsufficientAllowance(); /// @dev The permit is invalid. error InvalidPermit(); /// @dev The permit has expired. error PermitExpired(); /*´:°•.°+.*•´.*:˚.°*.˚•´.°:°•.°•.*•´.*:˚.°*.˚•´.°:°•.°+.*•´.*:*/ /* EVENTS */ /*.•°:°.´+˚.*°.˚:*.´•*.+°.•°:´*.´•*.•°.•°:°.´:•˚°.*°.˚:*.´+°.•*/ /// @dev Emitted when `amount` tokens is transferred from `from` to `to`. event Transfer(address indexed from, address indexed to, uint256 amount); /// @dev Emitted when `amount` tokens is approved by `owner` to be used by `spender`. event Approval(address indexed owner, address indexed spender, uint256 amount); /// @dev `keccak256(bytes("Transfer(address,address,uint256)"))`. uint256 private constant _TRANSFER_EVENT_SIGNATURE = 0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef; /// @dev `keccak256(bytes("Approval(address,address,uint256)"))`. uint256 private constant _APPROVAL_EVENT_SIGNATURE = 0x8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925; /*´:°•.°+.*•´.*:˚.°*.˚•´.°:°•.°•.*•´.*:˚.°*.˚•´.°:°•.°+.*•´.*:*/ /* STORAGE */ /*.•°:°.´+˚.*°.˚:*.´•*.+°.•°:´*.´•*.•°.•°:°.´:•˚°.*°.˚:*.´+°.•*/ /// @dev The storage slot for the total supply. uint256 private constant _TOTAL_SUPPLY_SLOT = 0x05345cdf77eb68f44c; /// @dev The balance slot of `owner` is given by: /// ``` /// mstore(0x0c, _BALANCE_SLOT_SEED) /// mstore(0x00, owner) /// let balanceSlot := keccak256(0x0c, 0x20) /// ``` uint256 private constant _BALANCE_SLOT_SEED = 0x87a211a2; /// @dev The allowance slot of (`owner`, `spender`) is given by: /// ``` /// mstore(0x20, spender) /// mstore(0x0c, _ALLOWANCE_SLOT_SEED) /// mstore(0x00, owner) /// let allowanceSlot := keccak256(0x0c, 0x34) /// ``` uint256 private constant _ALLOWANCE_SLOT_SEED = 0x7f5e9f20; /// @dev The nonce slot of `owner` is given by: /// ``` /// mstore(0x0c, _NONCES_SLOT_SEED) /// mstore(0x00, owner) /// let nonceSlot := keccak256(0x0c, 0x20) /// ``` uint256 private constant _NONCES_SLOT_SEED = 0x38377508; /*´:°•.°+.*•´.*:˚.°*.˚•´.°:°•.°•.*•´.*:˚.°*.˚•´.°:°•.°+.*•´.*:*/ /* ERC20 METADATA */ /*.•°:°.´+˚.*°.˚:*.´•*.+°.•°:´*.´•*.•°.•°:°.´:•˚°.*°.˚:*.´+°.•*/ /// @dev Returns the name of the token. function name() public view virtual returns (string memory); /// @dev Returns the symbol of the token. function symbol() public view virtual returns (string memory); /// @dev Returns the decimals places of the token. function decimals() public view virtual returns (uint8) { return 18; } /*´:°•.°+.*•´.*:˚.°*.˚•´.°:°•.°•.*•´.*:˚.°*.˚•´.°:°•.°+.*•´.*:*/ /* ERC20 */ /*.•°:°.´+˚.*°.˚:*.´•*.+°.•°:´*.´•*.•°.•°:°.´:•˚°.*°.˚:*.´+°.•*/ /// @dev Returns the amount of tokens in existence. function totalSupply() public view virtual returns (uint256 result) { /// @solidity memory-safe-assembly assembly { result := sload(_TOTAL_SUPPLY_SLOT) } } /// @dev Returns the amount of tokens owned by `owner`. function balanceOf(address owner) public view virtual returns (uint256 result) { /// @solidity memory-safe-assembly assembly { mstore(0x0c, _BALANCE_SLOT_SEED) mstore(0x00, owner) result := sload(keccak256(0x0c, 0x20)) } } /// @dev Returns the amount of tokens that `spender` can spend on behalf of `owner`. function allowance(address owner, address spender) public view virtual returns (uint256 result) { /// @solidity memory-safe-assembly assembly { mstore(0x20, spender) mstore(0x0c, _ALLOWANCE_SLOT_SEED) mstore(0x00, owner) result := sload(keccak256(0x0c, 0x34)) } } /// @dev Sets `amount` as the allowance of `spender` over the caller's tokens. /// /// Emits a {Approval} event. function approve(address spender, uint256 amount) public virtual returns (bool) { /// @solidity memory-safe-assembly assembly { // Compute the allowance slot and store the amount. mstore(0x20, spender) mstore(0x0c, _ALLOWANCE_SLOT_SEED) mstore(0x00, caller()) sstore(keccak256(0x0c, 0x34), amount) // Emit the {Approval} event. mstore(0x00, amount) log3(0x00, 0x20, _APPROVAL_EVENT_SIGNATURE, caller(), shr(96, mload(0x2c))) } return true; } /// @dev Atomically increases the allowance granted to `spender` by the caller. /// /// Emits a {Approval} event. function increaseAllowance(address spender, uint256 difference) public virtual returns (bool) { /// @solidity memory-safe-assembly assembly { // Compute the allowance slot and load its value. mstore(0x20, spender) mstore(0x0c, _ALLOWANCE_SLOT_SEED) mstore(0x00, caller()) let allowanceSlot := keccak256(0x0c, 0x34) let allowanceBefore := sload(allowanceSlot) // Add to the allowance. let allowanceAfter := add(allowanceBefore, difference) // Revert upon overflow. if lt(allowanceAfter, allowanceBefore) { mstore(0x00, 0xf9067066) // `AllowanceOverflow()`. revert(0x1c, 0x04) } // Store the updated allowance. sstore(allowanceSlot, allowanceAfter) // Emit the {Approval} event. mstore(0x00, allowanceAfter) log3(0x00, 0x20, _APPROVAL_EVENT_SIGNATURE, caller(), shr(96, mload(0x2c))) } return true; } /// @dev Atomically decreases the allowance granted to `spender` by the caller. /// /// Emits a {Approval} event. function decreaseAllowance(address spender, uint256 difference) public virtual returns (bool) { /// @solidity memory-safe-assembly assembly { // Compute the allowance slot and load its value. mstore(0x20, spender) mstore(0x0c, _ALLOWANCE_SLOT_SEED) mstore(0x00, caller()) let allowanceSlot := keccak256(0x0c, 0x34) let allowanceBefore := sload(allowanceSlot) // Revert if will underflow. if lt(allowanceBefore, difference) { mstore(0x00, 0x8301ab38) // `AllowanceUnderflow()`. revert(0x1c, 0x04) } // Subtract and store the updated allowance. let allowanceAfter := sub(allowanceBefore, difference) sstore(allowanceSlot, allowanceAfter) // Emit the {Approval} event. mstore(0x00, allowanceAfter) log3(0x00, 0x20, _APPROVAL_EVENT_SIGNATURE, caller(), shr(96, mload(0x2c))) } return true; } /// @dev Transfer `amount` tokens from the caller to `to`. /// /// Requirements: /// - `from` must at least have `amount`. /// /// Emits a {Transfer} event. function transfer(address to, uint256 amount) public virtual returns (bool) { _beforeTokenTransfer(msg.sender, to, amount); /// @solidity memory-safe-assembly assembly { // Compute the balance slot and load its value. mstore(0x0c, _BALANCE_SLOT_SEED) mstore(0x00, caller()) let fromBalanceSlot := keccak256(0x0c, 0x20) let fromBalance := sload(fromBalanceSlot) // Revert if insufficient balance. if gt(amount, fromBalance) { mstore(0x00, 0xf4d678b8) // `InsufficientBalance()`. revert(0x1c, 0x04) } // Subtract and store the updated balance. sstore(fromBalanceSlot, sub(fromBalance, amount)) // Compute the balance slot of `to`. mstore(0x00, to) let toBalanceSlot := keccak256(0x0c, 0x20) // Add and store the updated balance of `to`. // Will not overflow because the sum of all user balances // cannot exceed the maximum uint256 value. sstore(toBalanceSlot, add(sload(toBalanceSlot), amount)) // Emit the {Transfer} event. mstore(0x20, amount) log3(0x20, 0x20, _TRANSFER_EVENT_SIGNATURE, caller(), shr(96, mload(0x0c))) } _afterTokenTransfer(msg.sender, to, amount); return true; } /// @dev Transfers `amount` tokens from `from` to `to`. /// /// Note: Does not update the allowance if it is the maximum uint256 value. /// /// Requirements: /// - `from` must at least have `amount`. /// - The caller must have at least `amount` of allowance to transfer the tokens of `from`. /// /// Emits a {Transfer} event. function transferFrom(address from, address to, uint256 amount) public virtual returns (bool) { _beforeTokenTransfer(from, to, amount); /// @solidity memory-safe-assembly assembly { let from_ := shl(96, from) // Compute the allowance slot and load its value. mstore(0x20, caller()) mstore(0x0c, or(from_, _ALLOWANCE_SLOT_SEED)) let allowanceSlot := keccak256(0x0c, 0x34) let allowance_ := sload(allowanceSlot) // If the allowance is not the maximum uint256 value. if iszero(eq(allowance_, not(0))) { // Revert if the amount to be transferred exceeds the allowance. if gt(amount, allowance_) { mstore(0x00, 0x13be252b) // `InsufficientAllowance()`. revert(0x1c, 0x04) } // Subtract and store the updated allowance. sstore(allowanceSlot, sub(allowance_, amount)) } // Compute the balance slot and load its value. mstore(0x0c, or(from_, _BALANCE_SLOT_SEED)) let fromBalanceSlot := keccak256(0x0c, 0x20) let fromBalance := sload(fromBalanceSlot) // Revert if insufficient balance. if gt(amount, fromBalance) { mstore(0x00, 0xf4d678b8) // `InsufficientBalance()`. revert(0x1c, 0x04) } // Subtract and store the updated balance. sstore(fromBalanceSlot, sub(fromBalance, amount)) // Compute the balance slot of `to`. mstore(0x00, to) let toBalanceSlot := keccak256(0x0c, 0x20) // Add and store the updated balance of `to`. // Will not overflow because the sum of all user balances // cannot exceed the maximum uint256 value. sstore(toBalanceSlot, add(sload(toBalanceSlot), amount)) // Emit the {Transfer} event. mstore(0x20, amount) log3(0x20, 0x20, _TRANSFER_EVENT_SIGNATURE, shr(96, from_), shr(96, mload(0x0c))) } _afterTokenTransfer(from, to, amount); return true; } /*´:°•.°+.*•´.*:˚.°*.˚•´.°:°•.°•.*•´.*:˚.°*.˚•´.°:°•.°+.*•´.*:*/ /* EIP-2612 */ /*.•°:°.´+˚.*°.˚:*.´•*.+°.•°:´*.´•*.•°.•°:°.´:•˚°.*°.˚:*.´+°.•*/ /// @dev Returns the current nonce for `owner`. /// This value is used to compute the signature for EIP-2612 permit. function nonces(address owner) public view virtual returns (uint256 result) { /// @solidity memory-safe-assembly assembly { // Compute the nonce slot and load its value. mstore(0x0c, _NONCES_SLOT_SEED) mstore(0x00, owner) result := sload(keccak256(0x0c, 0x20)) } } /// @dev Sets `value` as the allowance of `spender` over the tokens of `owner`, /// authorized by a signed approval by `owner`. /// /// Emits a {Approval} event. function permit( address owner, address spender, uint256 value, uint256 deadline, uint8 v, bytes32 r, bytes32 s ) public virtual { bytes32 domainSeparator = DOMAIN_SEPARATOR(); /// @solidity memory-safe-assembly assembly { // Grab the free memory pointer. let m := mload(0x40) // Revert if the block timestamp greater than `deadline`. if gt(timestamp(), deadline) { mstore(0x00, 0x1a15a3cc) // `PermitExpired()`. revert(0x1c, 0x04) } // Clean the upper 96 bits. owner := shr(96, shl(96, owner)) spender := shr(96, shl(96, spender)) // Compute the nonce slot and load its value. mstore(0x0c, _NONCES_SLOT_SEED) mstore(0x00, owner) let nonceSlot := keccak256(0x0c, 0x20) let nonceValue := sload(nonceSlot) // Increment and store the updated nonce. sstore(nonceSlot, add(nonceValue, 1)) // Prepare the inner hash. // `keccak256("Permit(address owner,address spender,uint256 value,uint256 nonce,uint256 deadline)")`. // forgefmt: disable-next-item mstore(m, 0x6e71edae12b1b97f4d1f60370fef10105fa2faae0126114a169c64845d6126c9) mstore(add(m, 0x20), owner) mstore(add(m, 0x40), spender) mstore(add(m, 0x60), value) mstore(add(m, 0x80), nonceValue) mstore(add(m, 0xa0), deadline) // Prepare the outer hash. mstore(0, 0x1901) mstore(0x20, domainSeparator) mstore(0x40, keccak256(m, 0xc0)) // Prepare the ecrecover calldata. mstore(0, keccak256(0x1e, 0x42)) mstore(0x20, and(0xff, v)) mstore(0x40, r) mstore(0x60, s) pop(staticcall(gas(), 1, 0, 0x80, 0x20, 0x20)) // If the ecrecover fails, the returndatasize will be 0x00, // `owner` will be be checked if it equals the hash at 0x00, // which evaluates to false (i.e. 0), and we will revert. // If the ecrecover succeeds, the returndatasize will be 0x20, // `owner` will be compared against the returned address at 0x20. if iszero(eq(mload(returndatasize()), owner)) { mstore(0x00, 0xddafbaef) // `InvalidPermit()`. revert(0x1c, 0x04) } // Compute the allowance slot and store the value. // The `owner` is already at slot 0x20. mstore(0x40, or(shl(160, _ALLOWANCE_SLOT_SEED), spender)) sstore(keccak256(0x2c, 0x34), value) // Emit the {Approval} event. log3(add(m, 0x60), 0x20, _APPROVAL_EVENT_SIGNATURE, owner, spender) mstore(0x40, m) // Restore the free memory pointer. mstore(0x60, 0) // Restore the zero pointer. } } /// @dev Returns the EIP-2612 domains separator. function DOMAIN_SEPARATOR() public view virtual returns (bytes32 result) { /// @solidity memory-safe-assembly assembly { result := mload(0x40) // Grab the free memory pointer. } // We simply calculate it on-the-fly to allow for cases where the `name` may change. bytes32 nameHash = keccak256(bytes(name())); /// @solidity memory-safe-assembly assembly { let m := result // `keccak256("EIP712Domain(string name,string version,uint256 chainId,address verifyingContract)")`. // forgefmt: disable-next-item mstore(m, 0x8b73c3c69bb8fe3d512ecc4cf759cc79239f7b179b0ffacaa9a75d522b39400f) mstore(add(m, 0x20), nameHash) // `keccak256("1")`. // forgefmt: disable-next-item mstore(add(m, 0x40), 0xc89efdaa54c0f20c7adf612882df0950f5a951637e0307cdcb4c672f298b8bc6) mstore(add(m, 0x60), chainid()) mstore(add(m, 0x80), address()) result := keccak256(m, 0xa0) } } /*´:°•.°+.*•´.*:˚.°*.˚•´.°:°•.°•.*•´.*:˚.°*.˚•´.°:°•.°+.*•´.*:*/ /* INTERNAL MINT FUNCTIONS */ /*.•°:°.´+˚.*°.˚:*.´•*.+°.•°:´*.´•*.•°.•°:°.´:•˚°.*°.˚:*.´+°.•*/ /// @dev Mints `amount` tokens to `to`, increasing the total supply. /// /// Emits a {Transfer} event. function _mint(address to, uint256 amount) internal virtual { _beforeTokenTransfer(address(0), to, amount); /// @solidity memory-safe-assembly assembly { let totalSupplyBefore := sload(_TOTAL_SUPPLY_SLOT) let totalSupplyAfter := add(totalSupplyBefore, amount) // Revert if the total supply overflows. if lt(totalSupplyAfter, totalSupplyBefore) { mstore(0x00, 0xe5cfe957) // `TotalSupplyOverflow()`. revert(0x1c, 0x04) } // Store the updated total supply. sstore(_TOTAL_SUPPLY_SLOT, totalSupplyAfter) // Compute the balance slot and load its value. mstore(0x0c, _BALANCE_SLOT_SEED) mstore(0x00, to) let toBalanceSlot := keccak256(0x0c, 0x20) // Add and store the updated balance. sstore(toBalanceSlot, add(sload(toBalanceSlot), amount)) // Emit the {Transfer} event. mstore(0x20, amount) log3(0x20, 0x20, _TRANSFER_EVENT_SIGNATURE, 0, shr(96, mload(0x0c))) } _afterTokenTransfer(address(0), to, amount); } /*´:°•.°+.*•´.*:˚.°*.˚•´.°:°•.°•.*•´.*:˚.°*.˚•´.°:°•.°+.*•´.*:*/ /* INTERNAL BURN FUNCTIONS */ /*.•°:°.´+˚.*°.˚:*.´•*.+°.•°:´*.´•*.•°.•°:°.´:•˚°.*°.˚:*.´+°.•*/ /// @dev Burns `amount` tokens from `from`, reducing the total supply. /// /// Emits a {Transfer} event. function _burn(address from, uint256 amount) internal virtual { _beforeTokenTransfer(from, address(0), amount); /// @solidity memory-safe-assembly assembly { // Compute the balance slot and load its value. mstore(0x0c, _BALANCE_SLOT_SEED) mstore(0x00, from) let fromBalanceSlot := keccak256(0x0c, 0x20) let fromBalance := sload(fromBalanceSlot) // Revert if insufficient balance. if gt(amount, fromBalance) { mstore(0x00, 0xf4d678b8) // `InsufficientBalance()`. revert(0x1c, 0x04) } // Subtract and store the updated balance. sstore(fromBalanceSlot, sub(fromBalance, amount)) // Subtract and store the updated total supply. sstore(_TOTAL_SUPPLY_SLOT, sub(sload(_TOTAL_SUPPLY_SLOT), amount)) // Emit the {Transfer} event. mstore(0x00, amount) log3(0x00, 0x20, _TRANSFER_EVENT_SIGNATURE, shr(96, shl(96, from)), 0) } _afterTokenTransfer(from, address(0), amount); } /*´:°•.°+.*•´.*:˚.°*.˚•´.°:°•.°•.*•´.*:˚.°*.˚•´.°:°•.°+.*•´.*:*/ /* INTERNAL TRANSFER FUNCTIONS */ /*.•°:°.´+˚.*°.˚:*.´•*.+°.•°:´*.´•*.•°.•°:°.´:•˚°.*°.˚:*.´+°.•*/ /// @dev Moves `amount` of tokens from `from` to `to`. function _transfer(address from, address to, uint256 amount) internal virtual { _beforeTokenTransfer(from, to, amount); /// @solidity memory-safe-assembly assembly { let from_ := shl(96, from) // Compute the balance slot and load its value. mstore(0x0c, or(from_, _BALANCE_SLOT_SEED)) let fromBalanceSlot := keccak256(0x0c, 0x20) let fromBalance := sload(fromBalanceSlot) // Revert if insufficient balance. if gt(amount, fromBalance) { mstore(0x00, 0xf4d678b8) // `InsufficientBalance()`. revert(0x1c, 0x04) } // Subtract and store the updated balance. sstore(fromBalanceSlot, sub(fromBalance, amount)) // Compute the balance slot of `to`. mstore(0x00, to) let toBalanceSlot := keccak256(0x0c, 0x20) // Add and store the updated balance of `to`. // Will not overflow because the sum of all user balances // cannot exceed the maximum uint256 value. sstore(toBalanceSlot, add(sload(toBalanceSlot), amount)) // Emit the {Transfer} event. mstore(0x20, amount) log3(0x20, 0x20, _TRANSFER_EVENT_SIGNATURE, shr(96, from_), shr(96, mload(0x0c))) } _afterTokenTransfer(from, to, amount); } /*´:°•.°+.*•´.*:˚.°*.˚•´.°:°•.°•.*•´.*:˚.°*.˚•´.°:°•.°+.*•´.*:*/ /* INTERNAL ALLOWANCE FUNCTIONS */ /*.•°:°.´+˚.*°.˚:*.´•*.+°.•°:´*.´•*.•°.•°:°.´:•˚°.*°.˚:*.´+°.•*/ /// @dev Updates the allowance of `owner` for `spender` based on spent `amount`. function _spendAllowance(address owner, address spender, uint256 amount) internal virtual { /// @solidity memory-safe-assembly assembly { // Compute the allowance slot and load its value. mstore(0x20, spender) mstore(0x0c, _ALLOWANCE_SLOT_SEED) mstore(0x00, owner) let allowanceSlot := keccak256(0x0c, 0x34) let allowance_ := sload(allowanceSlot) // If the allowance is not the maximum uint256 value. if iszero(eq(allowance_, not(0))) { // Revert if the amount to be transferred exceeds the allowance. if gt(amount, allowance_) { mstore(0x00, 0x13be252b) // `InsufficientAllowance()`. revert(0x1c, 0x04) } // Subtract and store the updated allowance. sstore(allowanceSlot, sub(allowance_, amount)) } } } /// @dev Sets `amount` as the allowance of `spender` over the tokens of `owner`. /// /// Emits a {Approval} event. function _approve(address owner, address spender, uint256 amount) internal virtual { /// @solidity memory-safe-assembly assembly { let owner_ := shl(96, owner) // Compute the allowance slot and store the amount. mstore(0x20, spender) mstore(0x0c, or(owner_, _ALLOWANCE_SLOT_SEED)) sstore(keccak256(0x0c, 0x34), amount) // Emit the {Approval} event. mstore(0x00, amount) log3(0x00, 0x20, _APPROVAL_EVENT_SIGNATURE, shr(96, owner_), shr(96, mload(0x2c))) } } /*´:°•.°+.*•´.*:˚.°*.˚•´.°:°•.°•.*•´.*:˚.°*.˚•´.°:°•.°+.*•´.*:*/ /* HOOKS TO OVERRIDE */ /*.•°:°.´+˚.*°.˚:*.´•*.+°.•°:´*.´•*.•°.•°:°.´:•˚°.*°.˚:*.´+°.•*/ /// @dev Hook that is called before any transfer of tokens. /// This includes minting and burning. function _beforeTokenTransfer(address from, address to, uint256 amount) internal virtual {} /// @dev Hook that is called after any transfer of tokens. /// This includes minting and burning. function _afterTokenTransfer(address from, address to, uint256 amount) internal virtual {} }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/Context.sol) pragma solidity ^0.8.0; /** * @dev Provides information about the current execution context, including the * sender of the transaction and its data. While these are generally available * via msg.sender and msg.data, they should not be accessed in such a direct * manner, since when dealing with meta-transactions the account sending and * paying for execution may not be the actual sender (as far as an application * is concerned). * * This contract is only required for intermediate, library-like contracts. */ abstract contract Context { function _msgSender() internal view virtual returns (address) { return msg.sender; } function _msgData() internal view virtual returns (bytes calldata) { return msg.data; } }
pragma solidity >=0.6.2; interface IUniswapV2Router01 { function factory() external pure returns (address); function WETH() external pure returns (address); function addLiquidity( address tokenA, address tokenB, uint amountADesired, uint amountBDesired, uint amountAMin, uint amountBMin, address to, uint deadline ) external returns (uint amountA, uint amountB, uint liquidity); function addLiquidityETH( address token, uint amountTokenDesired, uint amountTokenMin, uint amountETHMin, address to, uint deadline ) external payable returns (uint amountToken, uint amountETH, uint liquidity); function removeLiquidity( address tokenA, address tokenB, uint liquidity, uint amountAMin, uint amountBMin, address to, uint deadline ) external returns (uint amountA, uint amountB); function removeLiquidityETH( address token, uint liquidity, uint amountTokenMin, uint amountETHMin, address to, uint deadline ) external returns (uint amountToken, uint amountETH); function removeLiquidityWithPermit( address tokenA, address tokenB, uint liquidity, uint amountAMin, uint amountBMin, address to, uint deadline, bool approveMax, uint8 v, bytes32 r, bytes32 s ) external returns (uint amountA, uint amountB); function removeLiquidityETHWithPermit( address token, uint liquidity, uint amountTokenMin, uint amountETHMin, address to, uint deadline, bool approveMax, uint8 v, bytes32 r, bytes32 s ) external returns (uint amountToken, uint amountETH); function swapExactTokensForTokens( uint amountIn, uint amountOutMin, address[] calldata path, address to, uint deadline ) external returns (uint[] memory amounts); function swapTokensForExactTokens( uint amountOut, uint amountInMax, address[] calldata path, address to, uint deadline ) external returns (uint[] memory amounts); function swapExactETHForTokens(uint amountOutMin, address[] calldata path, address to, uint deadline) external payable returns (uint[] memory amounts); function swapTokensForExactETH(uint amountOut, uint amountInMax, address[] calldata path, address to, uint deadline) external returns (uint[] memory amounts); function swapExactTokensForETH(uint amountIn, uint amountOutMin, address[] calldata path, address to, uint deadline) external returns (uint[] memory amounts); function swapETHForExactTokens(uint amountOut, address[] calldata path, address to, uint deadline) external payable returns (uint[] memory amounts); function quote(uint amountA, uint reserveA, uint reserveB) external pure returns (uint amountB); function getAmountOut(uint amountIn, uint reserveIn, uint reserveOut) external pure returns (uint amountOut); function getAmountIn(uint amountOut, uint reserveIn, uint reserveOut) external pure returns (uint amountIn); function getAmountsOut(uint amountIn, address[] calldata path) external view returns (uint[] memory amounts); function getAmountsIn(uint amountOut, address[] calldata path) external view returns (uint[] memory amounts); }
{ "optimizer": { "enabled": true, "runs": 200 }, "outputSelection": { "*": { "*": [ "evm.bytecode", "evm.deployedBytecode", "devdoc", "userdoc", "metadata", "abi" ] } } }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"inputs":[{"internalType":"address","name":"ownerWallet","type":"address"},{"internalType":"address","name":"teamWallet_","type":"address"},{"internalType":"address","name":"cookerWallet_","type":"address"},{"internalType":"address","name":"routerAddress","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[],"name":"AllowanceOverflow","type":"error"},{"inputs":[],"name":"AllowanceUnderflow","type":"error"},{"inputs":[],"name":"InsufficientAllowance","type":"error"},{"inputs":[],"name":"InsufficientBalance","type":"error"},{"inputs":[],"name":"InvalidPermit","type":"error"},{"inputs":[],"name":"PermitExpired","type":"error"},{"inputs":[],"name":"TotalSupplyOverflow","type":"error"},{"inputs":[],"name":"cooker__BlacklistModificationDisabled","type":"error"},{"inputs":[],"name":"cooker__BuyAmountGreaterThanMax","type":"error"},{"inputs":[],"name":"cooker__CannotBlacklistLPPair","type":"error"},{"inputs":[],"name":"cooker__CannotBlacklistRouter","type":"error"},{"inputs":[],"name":"cooker__CannotRemovePairFromAMMs","type":"error"},{"inputs":[],"name":"cooker__CannotSetWalletToAddressZero","type":"error"},{"inputs":[],"name":"cooker__CannotTransferFromAddressZero","type":"error"},{"inputs":[],"name":"cooker__CannotTransferToAddressZero","type":"error"},{"inputs":[],"name":"cooker__ErrorWithdrawingEth","type":"error"},{"inputs":[],"name":"cooker__FeeChangeRenounced","type":"error"},{"inputs":[],"name":"cooker__MaxFeeFivePercent","type":"error"},{"inputs":[],"name":"cooker__MaxTransactionTooLow","type":"error"},{"inputs":[],"name":"cooker__MaxWalletAmountExceeded","type":"error"},{"inputs":[],"name":"cooker__MaxWalletAmountTooLow","type":"error"},{"inputs":[],"name":"cooker__OnlyOwner","type":"error"},{"inputs":[],"name":"cooker__ReceiverBlacklisted","type":"error"},{"inputs":[],"name":"cooker__ReceiverCannotBeAddressZero","type":"error"},{"inputs":[],"name":"cooker__SellAmountGreaterThanMax","type":"error"},{"inputs":[],"name":"cooker__SenderBlacklisted","type":"error"},{"inputs":[],"name":"cooker__StuckEthWithdrawError","type":"error"},{"inputs":[],"name":"cooker__SwapAmountGreaterThanMaximum","type":"error"},{"inputs":[],"name":"cooker__SwapAmountLowerThanMinimum","type":"error"},{"inputs":[],"name":"cooker__TokenAddressCannotBeAddressZero","type":"error"},{"inputs":[],"name":"cooker__TradingNotActive","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":"amount","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"account","type":"address"},{"indexed":false,"internalType":"bool","name":"isExcluded","type":"bool"}],"name":"ExcludeFromFees","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"account","type":"address"},{"indexed":false,"internalType":"bool","name":"isExcluded","type":"bool"}],"name":"ExcludeFromMaxTransaction","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"destination","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"FailedSwapBackTransfer","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint8","name":"buyFee","type":"uint8"},{"indexed":false,"internalType":"uint8","name":"sellFee","type":"uint8"},{"indexed":false,"internalType":"uint8","name":"cookerPercent","type":"uint8"},{"indexed":false,"internalType":"uint8","name":"liquidityPercent","type":"uint8"},{"indexed":false,"internalType":"uint8","name":"teamPercent","type":"uint8"}],"name":"FeesUpdated","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"newAmount","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"oldAmount","type":"uint256"}],"name":"MaxTransactionAmountUpdated","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"newAmount","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"oldAmount","type":"uint256"}],"name":"MaxWalletAmountUpdated","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"pair","type":"address"},{"indexed":false,"internalType":"bool","name":"value","type":"bool"}],"name":"SetAutomatedMarketMakerPair","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"tokensSwapped","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"ethReceived","type":"uint256"}],"name":"SwapAndLiquify","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"newAmount","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"oldAmount","type":"uint256"}],"name":"SwapTokensAtAmountUpdated","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"newWallet","type":"address"},{"indexed":true,"internalType":"address","name":"oldWallet","type":"address"}],"name":"TeamWalletUpdated","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":"amount","type":"uint256"}],"name":"Transfer","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"newAddress","type":"address"},{"indexed":true,"internalType":"address","name":"oldAddress","type":"address"}],"name":"UpdateUniswapV2Router","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"newWallet","type":"address"},{"indexed":true,"internalType":"address","name":"oldWallet","type":"address"}],"name":"cookerWalletUpdated","type":"event"},{"inputs":[],"name":"DOMAIN_SEPARATOR","outputs":[{"internalType":"bytes32","name":"result","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"MAX_SUPPLY","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"MAX_SWAP_AMOUNT","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"MIN_SWAP_AMOUNT","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":"result","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"approve","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"result","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"blacklist","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"cookerWallet","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"decimals","outputs":[{"internalType":"uint8","name":"","type":"uint8"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"difference","type":"uint256"}],"name":"decreaseAllowance","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"enableTrading","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"},{"internalType":"bool","name":"excluded","type":"bool"}],"name":"excludeFromFees","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"},{"internalType":"bool","name":"isExcluded","type":"bool"}],"name":"excludeFromMaxTransaction","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"feeAmounts","outputs":[{"internalType":"uint8","name":"buy","type":"uint8"},{"internalType":"uint8","name":"sell","type":"uint8"},{"internalType":"uint8","name":"liquidity","type":"uint8"},{"internalType":"uint8","name":"cooker","type":"uint8"},{"internalType":"uint8","name":"team","type":"uint8"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"difference","type":"uint256"}],"name":"increaseAllowance","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"pair","type":"address"}],"name":"isAutomatedMarketMakerPair","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"isBlacklistRenounced","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"isBlacklisted","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"isExcludedFromFees","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"isExcludedFromMaxTransactionAmount","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"isFeeChangeRenounced","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"isLimitInEffect","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"isSwapEnabled","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"isTradingActive","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"maxTransactionAmount","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"maxWallet","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"pure","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"nonces","outputs":[{"internalType":"uint256","name":"result","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"value","type":"uint256"},{"internalType":"uint256","name":"deadline","type":"uint256"},{"internalType":"uint8","name":"v","type":"uint8"},{"internalType":"bytes32","name":"r","type":"bytes32"},{"internalType":"bytes32","name":"s","type":"bytes32"}],"name":"permit","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"removeLimits","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"renounceBlacklist","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"renounceFeeChange","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"pair","type":"address"},{"internalType":"bool","name":"value","type":"bool"}],"name":"setAutomatedMarketMakerPair","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"swapTokensAtAmount","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"pure","type":"function"},{"inputs":[],"name":"teamWallet","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"tokensForBotProtection","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"result","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"amount","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":"amount","type":"uint256"}],"name":"transferFrom","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"unblacklist","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"uniswapV2Pair","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"uniswapV2Router","outputs":[{"internalType":"contract IUniswapV2Router02","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint8","name":"cookerFee","type":"uint8"},{"internalType":"uint8","name":"liquidityFee","type":"uint8"},{"internalType":"uint8","name":"teamFee","type":"uint8"}],"name":"updateBuyFees","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newWallet","type":"address"}],"name":"updateCookersWallet","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"newAmount","type":"uint256"}],"name":"updateMaxTransactionAmount","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"newNum","type":"uint256"}],"name":"updateMaxWalletAmount","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint8","name":"cookerFee","type":"uint8"},{"internalType":"uint8","name":"liquidityFee","type":"uint8"},{"internalType":"uint8","name":"teamFee","type":"uint8"}],"name":"updateSellFees","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"enabled","type":"bool"}],"name":"updateSwapEnabled","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"newAmount","type":"uint256"}],"name":"updateSwapTokensAtAmount","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newWallet","type":"address"}],"name":"updateTeamWallet","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"withdrawStuckCookerEth","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"withdrawStuckEth","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_token","type":"address"}],"name":"withdrawStuckToken","outputs":[],"stateMutability":"nonpayable","type":"function"},{"stateMutability":"payable","type":"receive"}]
Contract Creation Code
610180604052600160c081905260e0526000610100819052610120819052610140819052610160526101016008553480156200003a57600080fd5b5060405162003708380380620037088339810160408190526200005d91620009a0565b6200006833620008b3565b6001600160a01b03811660808190526040805163c45a015560e01b8152905183929163c45a01559160048083019260209291908290030181865afa158015620000b5573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190620000db9190620009fd565b6001600160a01b031663c9c6539630836001600160a01b031663ad5c46486040518163ffffffff1660e01b8152600401602060405180830381865afa15801562000129573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906200014f9190620009fd565b6040516001600160e01b031960e085901b1681526001600160a01b039283166004820152911660248201526044016020604051808303816000875af11580156200019d573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190620001c39190620009fd565b6001600160a01b031660a0526103e8620001eb6b033b2e3c9fd0803ce8000000600562000a22565b620001f7919062000a4e565b6001556103e8620002166b033b2e3c9fd0803ce8000000600562000a22565b62000222919062000a4e565b600355612710620002416b033b2e3c9fd0803ce8000000600562000a22565b6200024d919062000a4e565b6002819055506040518060a00160405280601960ff168152602001604b60ff168152602001600060ff168152602001600060ff168152602001606460ff16815250600760008201518160000160006101000a81548160ff021916908360ff16021790555060208201518160000160016101000a81548160ff021916908360ff16021790555060408201518160000160026101000a81548160ff021916908360ff16021790555060608201518160000160036101000a81548160ff021916908360ff16021790555060808201518160000160046101000a81548160ff021916908360ff16021790555090505082600460006101000a8154816001600160a01b0302191690836001600160a01b0316021790555083600560006101000a8154816001600160a01b0302191690836001600160a01b0316021790555060405180608001604052806000151581526020016000151581526020016001151581526020016001151581525060096000866001600160a01b03166001600160a01b0316815260200190815260200160002060008201518160000160006101000a81548160ff02191690831515021790555060208201518160000160016101000a81548160ff02191690831515021790555060408201518160000160026101000a81548160ff02191690831515021790555060608201518160000160036101000a81548160ff02191690831515021790555090505060405180608001604052806000151581526020016000151581526020016001151581526020016001151581525060096000306001600160a01b03166001600160a01b0316815260200190815260200160002060008201518160000160006101000a81548160ff02191690831515021790555060208201518160000160016101000a81548160ff02191690831515021790555060408201518160000160026101000a81548160ff02191690831515021790555060608201518160000160036101000a81548160ff0219169083151502179055509050506040518060800160405280600015158152602001600015158152602001600115158152602001600115158152506009600061dead6001600160a01b03166001600160a01b0316815260200190815260200160002060008201518160000160006101000a81548160ff02191690831515021790555060208201518160000160016101000a81548160ff02191690831515021790555060408201518160000160026101000a81548160ff02191690831515021790555060608201518160000160036101000a81548160ff02191690831515021790555090505060405180608001604052806000151581526020016000151581526020016001151581526020016001151581525060096000876001600160a01b03166001600160a01b0316815260200190815260200160002060008201518160000160006101000a81548160ff02191690831515021790555060208201518160000160016101000a81548160ff02191690831515021790555060408201518160000160026101000a81548160ff02191690831515021790555060608201518160000160036101000a81548160ff021916908315150217905550905050604051806080016040528060001515815260200160001515815260200160001515815260200160011515815250600960006080516001600160a01b03166001600160a01b0316815260200190815260200160002060008201518160000160006101000a81548160ff02191690831515021790555060208201518160000160016101000a81548160ff02191690831515021790555060408201518160000160026101000a81548160ff02191690831515021790555060608201518160000160036101000a81548160ff0219169083151502179055509050506040518060800160405280600015158152602001600115158152602001600015158152602001600115158152506009600060a0516001600160a01b03166001600160a01b0316815260200190815260200160002060008201518160000160006101000a81548160ff02191690831515021790555060208201518160000160016101000a81548160ff02191690831515021790555060408201518160000160026101000a81548160ff02191690831515021790555060608201518160000160036101000a81548160ff021916908315150217905550905050620008a8856b033b2e3c9fd0803ce80000006200090360201b60201c565b505050505062000a71565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b6805345cdf77eb68f44c5481810181811015620009285763e5cfe9576000526004601cfd5b806805345cdf77eb68f44c5550506387a211a2600c52816000526020600c208181540181555080602052600c5160601c60007fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef602080a35050565b80516001600160a01b03811681146200099b57600080fd5b919050565b60008060008060808587031215620009b757600080fd5b620009c28562000983565b9350620009d26020860162000983565b9250620009e26040860162000983565b9150620009f26060860162000983565b905092959194509250565b60006020828403121562000a1057600080fd5b62000a1b8262000983565b9392505050565b808202811582820484141762000a4857634e487b7160e01b600052601160045260246000fd5b92915050565b60008262000a6c57634e487b7160e01b600052601260045260246000fd5b500490565b60805160a051612c3962000acf6000396000818161061e0152818161141b0152611960015260008181610433015281816119b2015281816124b10152818161256a015281816125a60152818161262001526126470152612c396000f3fe6080604052600436106103855760003560e01c80638a8c523c116101d1578063c18bc19511610102578063e2f45605116100a0578063f8b45b051161006f578063f8b45b0514610aff578063f9f92be414610b15578063fe575a8714610b35578063febce6d714610b6e57600080fd5b8063e2f4560514610a74578063e9481eee14610a8a578063e94c58b614610aca578063f2fde38b14610adf57600080fd5b8063cc10a179116100dc578063cc10a179146109df578063d257b34f146109fe578063d505accf14610a1e578063dd62ed3e14610a3e57600080fd5b8063c18bc1951461098a578063c53d4d53146109aa578063c8c8ebe4146109c957600080fd5b8063a457c2d71161016f578063b94b70dd11610149578063b94b70dd14610914578063ba1618d514610934578063be1ded871461094c578063c02466681461096a57600080fd5b8063a457c2d7146108b4578063a9059cbb146108d4578063aa498023146108f457600080fd5b806395d89b41116101ab57806395d89b41146103b35780639759f76e1461086a57806399f34c121461087f5780639a7a23d61461089457600080fd5b80638a8c523c146108175780638da5cb5b1461082c578063924de9b71461084a57600080fd5b80634487c29f116102b6578063751039fc116102545780637cb332bb116102235780637cb332bb1461078f5780637ecebe00146107af5780637fa787ba146107e257806386c4f1a0146107f757600080fd5b8063751039fc146106fc5780637571336a1461071157806375e3661e146107315780637949a4031461075157600080fd5b80635992704411610290578063599270441461067f5780635f1893611461069f57806370a08231146106b4578063715018a6146106e757600080fd5b80634487c29f146105ec57806349bd5a5e1461060c5780634fbee1931461064057600080fd5b806323b872dd11610323578063351a964d116102fd578063351a964d146105255780633644e5151461054257806339509351146105575780633f17b1611461057757600080fd5b806323b872dd146104ca578063313ce567146104ea57806332cb6b0c1461050657600080fd5b80631694505e1161035f5780631694505e1461042157806318160ddd1461046d5780631b624ecb146104945780631d003eb6146104aa57600080fd5b8063068acf6c1461039157806306fdde03146103b3578063095ea7b3146103f157600080fd5b3661038c57005b600080fd5b34801561039d57600080fd5b506103b16103ac366004612776565b610b8e565b005b3480156103bf57600080fd5b50604080518082018252600681526521a7a7a5a2a960d11b602082015290516103e8919061279a565b60405180910390f35b3480156103fd57600080fd5b5061041161040c3660046127e8565b610ca1565b60405190151581526020016103e8565b34801561042d57600080fd5b506104557f000000000000000000000000000000000000000000000000000000000000000081565b6040516001600160a01b0390911681526020016103e8565b34801561047957600080fd5b506805345cdf77eb68f44c545b6040519081526020016103e8565b3480156104a057600080fd5b5061048660065481565b3480156104b657600080fd5b506103b16104c536600461282a565b610ce3565b3480156104d657600080fd5b506104116104e536600461286d565b610e82565b3480156104f657600080fd5b50604051601281526020016103e8565b34801561051257600080fd5b50610486676765c793fa10079d601b1b81565b34801561053157600080fd5b50600854610100900460ff16610411565b34801561054e57600080fd5b50610486610eda565b34801561056357600080fd5b506104116105723660046127e8565b610f65565b34801561058357600080fd5b506007546105b89060ff80821691610100810482169162010000820481169163010000008104821691600160201b9091041685565b6040805160ff968716815294861660208601529285169284019290925283166060830152909116608082015260a0016103e8565b3480156105f857600080fd5b506103b161060736600461282a565b610fc5565b34801561061857600080fd5b506104557f000000000000000000000000000000000000000000000000000000000000000081565b34801561064c57600080fd5b5061041161065b366004612776565b6001600160a01b031660009081526009602052604090205462010000900460ff1690565b34801561068b57600080fd5b50600554610455906001600160a01b031681565b3480156106ab57600080fd5b506103b1611151565b3480156106c057600080fd5b506104866106cf366004612776565b6387a211a2600c908152600091909152602090205490565b3480156106f357600080fd5b506103b161116c565b34801561070857600080fd5b506103b1611180565b34801561071d57600080fd5b506103b161072c3660046128bc565b611194565b34801561073d57600080fd5b506103b161074c366004612776565b61120b565b34801561075d57600080fd5b5061041161076c366004612776565b6001600160a01b0316600090815260096020526040902054610100900460ff1690565b34801561079b57600080fd5b506103b16107aa366004612776565b611234565b3480156107bb57600080fd5b506104866107ca366004612776565b6338377508600c908152600091909152602090205490565b3480156107ee57600080fd5b506103b16112b4565b34801561080357600080fd5b506103b16108123660046128f5565b611328565b34801561082357600080fd5b506103b1611365565b34801561083857600080fd5b506000546001600160a01b0316610455565b34801561085657600080fd5b506103b161086536600461290e565b6113b1565b34801561087657600080fd5b506104866113d3565b34801561088b57600080fd5b506104866113f9565b3480156108a057600080fd5b506103b16108af3660046128bc565b611411565b3480156108c057600080fd5b506104116108cf3660046127e8565b6114ca565b3480156108e057600080fd5b506104116108ef3660046127e8565b61152b565b34801561090057600080fd5b506103b161090f3660046128f5565b611541565b34801561092057600080fd5b50600454610455906001600160a01b031681565b34801561094057600080fd5b5060085460ff16610411565b34801561095857600080fd5b5060085462010000900460ff16610411565b34801561097657600080fd5b506103b16109853660046128bc565b6115d2565b34801561099657600080fd5b506103b16109a53660046128f5565b61163b565b3480156109b657600080fd5b50600854600160201b900460ff16610411565b3480156109d557600080fd5b5061048660015481565b3480156109eb57600080fd5b506008546301000000900460ff16610411565b348015610a0a57600080fd5b506103b1610a193660046128f5565b6116b7565b348015610a2a57600080fd5b506103b1610a3936600461292b565b611778565b348015610a4a57600080fd5b50610486610a59366004612999565b602052637f5e9f20600c908152600091909152603490205490565b348015610a8057600080fd5b5061048660025481565b348015610a9657600080fd5b50610411610aa5366004612776565b6001600160a01b03166000908152600960205260409020546301000000900460ff1690565b348015610ad657600080fd5b506103b1611894565b348015610aeb57600080fd5b506103b1610afa366004612776565b6118b1565b348015610b0b57600080fd5b5061048660035481565b348015610b2157600080fd5b506103b1610b30366004612776565b61192c565b348015610b4157600080fd5b50610411610b50366004612776565b6001600160a01b031660009081526009602052604090205460ff1690565b348015610b7a57600080fd5b506103b1610b89366004612776565b611a26565b610b96611aa6565b6001600160a01b038116610bbd57604051634328359b60e11b815260040160405180910390fd5b6040516370a0823160e01b81523060048201526000906001600160a01b038316906370a0823190602401602060405180830381865afa158015610c04573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610c2891906129c7565b60405163a9059cbb60e01b8152336004820152602481018290529091506001600160a01b0383169063a9059cbb906044016020604051808303816000875af1158015610c78573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610c9c91906129e0565b505050565b600082602052637f5e9f20600c5233600052816034600c205581600052602c5160601c33600080516020612be483398151915260206000a35060015b92915050565b610ceb611aa6565b6008546301000000900460ff1615610d165760405163de0fd55f60e01b815260040160405180910390fd5b600081610d238486612a13565b610d2d9190612a13565b905060638160ff161115610d5457604051630e3d5bd360e21b815260040160405180910390fd5b600754610100900460ff16600082610d6d876064612a2c565b610d779190612a65565b9050600083610d87876064612a2c565b610d919190612a65565b9050600081610da1846064612a87565b610dab9190612a87565b6040805160a0808201835260ff89811680845289821660208086018290528984168688018190528b85166060808901829052958a1660809889018190526007805461ffff1916871761010087021763ffff0000191662010000850263ff000000191617630100000084021764ff000000001916600160201b83021790558951958652928501939093529683019190915291810194909452918301919091529192507f915ac3e5f77909369f87ce47547f18125470366dc615fc4cce4b5fc0bb7ca23891015b60405180910390a15050505050505050565b60008360601b33602052637f5e9f208117600c52506034600c2080546000198114610ec35780841115610ebd576313be252b6000526004601cfd5b83810382555b5050610ed0848484611ad1565b5060019392505050565b60408051808201918290527f8b73c3c69bb8fe3d512ecc4cf759cc79239f7b179b0ffacaa9a75d522b39400f81527f2e464ee6c5a6a282fb70d0b19a88593107208fce61e8c86ea859de84d85f771060208201527fc89efdaa54c0f20c7adf612882df0950f5a951637e0307cdcb4c672f298b8bc690915246606082015230608082015260a0902090565b600082602052637f5e9f20600c52336000526034600c20805483810181811015610f975763f90670666000526004601cfd5b80835580600052505050602c5160601c33600080516020612be483398151915260206000a350600192915050565b610fcd611aa6565b6008546301000000900460ff1615610ff85760405163de0fd55f60e01b815260040160405180910390fd5b6000816110058486612a13565b61100f9190612a13565b905060638160ff16111561103657604051630e3d5bd360e21b815260040160405180910390fd5b60075460ff1660008261104a876064612a2c565b6110549190612a65565b9050600083611064876064612a2c565b61106e9190612a65565b905060008161107e846064612a87565b6110889190612a87565b6040805160a0808201835260ff8881168084528a821660208086018290528984168688018190528b85166060808901829052958a1660809889018190526007805461ffff1916871761010087021763ffff0000191662010000850263ff000000191617630100000084021764ff000000001916600160201b83021790558951958652928501939093529683019190915291810194909452918301919091529192507f915ac3e5f77909369f87ce47547f18125470366dc615fc4cce4b5fc0bb7ca2389101610e70565b611159611aa6565b6008805462ff0000191662010000179055565b611174612031565b61117e600061208b565b565b611188611aa6565b6008805460ff19169055565b61119c611aa6565b6001600160a01b03821660008181526009602052604090819020805484151563010000000263ff00000019909116179055517fe0a7c1f8826ab3d62a6e242681ccca3828462e5c87816004b9f8d655b22d5f08906111ff90841515815260200190565b60405180910390a25050565b611213611aa6565b6001600160a01b03166000908152600960205260409020805460ff19169055565b61123c611aa6565b6001600160a01b038116611263576040516309a587eb60e31b815260040160405180910390fd5b600580546001600160a01b038381166001600160a01b03198316811790935560405191169182917fd9a2a08302ed3220f4e646ff99d6780d87e27baddf1af05679dc930ce811309590600090a35050565b6112bc611aa6565b604051600090339047908381818185875af1925050503d80600081146112fe576040519150601f19603f3d011682016040523d82523d6000602084013e611303565b606091505b50509050806113255760405163e6ab35d160e01b815260040160405180910390fd5b50565b611330611aa6565b60008160000361135357506387a211a2600c908152306000526020902054611356565b50805b6113613033836120db565b5050565b61136d611aa6565b61137843600a612aa0565b6008805464ff00000000196001600160d81b039390931665010000000000029290921663ffffffff90921691909117600160201b179055565b6113b9611aa6565b600880549115156101000261ff0019909216919091179055565b6103e86113ec676765c793fa10079d601b1b6005612ac0565b6113f69190612ad7565b81565b6113f6620186a0676765c793fa10079d601b1b612ad7565b611419611aa6565b7f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316826001600160a01b03160361146b57604051638cdec5ff60e01b815260040160405180910390fd5b6001600160a01b0382166000818152600960205260409081902080548415156101000261ff0019909116179055517fffa9187bf1f18bf477bd0ea1bcbb64e93b6a98132473929edfce215cd9b16fab906111ff90841515815260200190565b600082602052637f5e9f20600c52336000526034600c208054838110156114f957638301ab386000526004601cfd5b8381039050808255806000525050602c5160601c33600080516020612be483398151915260206000a350600192915050565b6000611538338484611ad1565b50600192915050565b611549611aa6565b6103e8611562676765c793fa10079d601b1b6005612ac0565b61156c9190612ad7565b81101561158c576040516322f6f4a760e01b815260040160405180910390fd5b600180549082905560408051838152602081018390527fd40d861b6c61fb22040b4eb8de22cc4c267673593fef5c5880e2f55e75ef454891015b60405180910390a15050565b6115da611aa6565b6001600160a01b038216600081815260096020526040908190208054841515620100000262ff000019909116179055517f9d8f7706ea1113d1a167b526eca956215946dd36cc7df39eb16180222d8b5df7906111ff90841515815260200190565b611643611aa6565b6116596064676765c793fa10079d601b1b612ad7565b81101561167957604051631bac31eb60e11b815260040160405180910390fd5b600380549082905560408051838152602081018390527f0a7c714b6801281a6e2610a6371ac6a5da9a5947616d74f4aa3ad1d289278e7391016115c6565b6116bf611aa6565b6116d7620186a0676765c793fa10079d601b1b612ad7565b8110156116f7576040516393c90ee960e01b815260040160405180910390fd5b6103e8611710676765c793fa10079d601b1b6005612ac0565b61171a9190612ad7565b81111561173a576040516331c953a560e01b815260040160405180910390fd5b600280549082905560408051838152602081018390527febb96427ceba6a46f9f71146db5c30bc7e2fe31285e9bf34b38bbdede7cd5ea191016115c6565b6000611782610eda565b90506040518542111561179d57631a15a3cc6000526004601cfd5b8860601b60601c98508760601b60601c97506338377508600c52886000526020600c2080546001810182557f6e71edae12b1b97f4d1f60370fef10105fa2faae0126114a169c64845d6126c983528a602084015289604084015288606084015280608084015250508560a08201526119016000528160205260c081206040526042601e206000528460ff1660205283604052826060526020806080600060015afa50883d51146118555763ddafbaef6000526004601cfd5b6303faf4f960a51b88176040526034602c208790558789600080516020612be4833981519152602060608501a360405250506000606052505050505050565b61189c611aa6565b6008805463ff00000019166301000000179055565b6118b9612031565b6001600160a01b0381166119235760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b60648201526084015b60405180910390fd5b6113258161208b565b611934611aa6565b60085462010000900460ff161561195e57604051632e64208960e21b815260040160405180910390fd5b7f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316816001600160a01b0316036119b05760405163426b9a4f60e11b815260040160405180910390fd5b7f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316816001600160a01b031603611a0257604051635576109d60e01b815260040160405180910390fd5b6001600160a01b03166000908152600960205260409020805460ff19166001179055565b611a2e611aa6565b6001600160a01b038116611a55576040516309a587eb60e31b815260040160405180910390fd5b600480546001600160a01b038381166001600160a01b03198316811790935560405191169182917f896489cc5e01acbcabf98ff6ebb027a088fd70fb4e21dc0ddda4abf68dfe050890600090a35050565b6000546001600160a01b0316331461117e576040516353ae8a1360e01b815260040160405180910390fd5b6001600160a01b038316611af857604051637eb6ecc360e01b815260040160405180910390fd5b6001600160a01b038216611b1f5760405163096cf13360e01b815260040160405180910390fd5b6001600160a01b038381166000908152600960208181526040808420815160808082018452915460ff808216151583526101008083048216151584880152620100008084048316151585880152630100000093849004831615156060808701919091529a8d168a5297875297859020855180860187529054808316151582528981048316151582890152888104831615158288015283900482161515818b0152855160c08101875260085480841615158252998a048316151597810197909752968804811615159486019490945286048316151596840196909652600160201b85049091161515908201819052650100000000009093046001600160d81b031660a08201529091611c55578260400151611c55578160400151611c5557604051639b75406960e01b815260040160405180910390fd5b825115611c7557604051634b3ef16360e01b815260040160405180910390fd5b815115611c955760405163c74001ad60e01b815260040160405180910390fd5b83600003611ca557505050505050565b6000836040015180611cb8575082604001515b602085015190915060039015611cd057506001611cde565b836020015115611cde575060025b600554600160a01b900460ff16611e5757825115611dfe578060ff166001148015611d0b57508360600151155b15611d7857600154861115611d335760405163d6cdde7b60e01b815260040160405180910390fd5b6003546387a211a2600c90815260008990526020902054611d549088612aeb565b1115611d73576040516336d2b6e560e11b815260040160405180910390fd5b611dfe565b8060ff166002148015611d8d57508460600151155b15611db557600154861115611d7357604051631f1b8bd360e01b815260040160405180910390fd5b8360600151611dfe576003546387a211a2600c90815260008990526020902054611ddf9088612aeb565b1115611dfe576040516336d2b6e560e11b815260040160405180910390fd5b826020015115611e57578060ff16600203611e57576002546387a211a2600c90815230600052602090205410611e57576005805460ff60a01b1916600160a01b179055611e49612156565b6005805460ff60a01b191690555b60038160ff16101561201c57600554600160a01b900460ff16158215611e7b575060005b60008115612019576040805160a08101825260075460ff80821683526101008204811660208401526201000082048116938301939093526301000000810483166060830152600160201b900482166080820152908416600203611f0c57602081015160ff1615611f07576064816020015160ff168a611efa9190612ac0565b611f049190612ad7565b91505b611f40565b8360ff16600103611f4057805160ff1615611f40578051606490611f339060ff168b612ac0565b611f3d9190612ad7565b91505b8560a001516001600160d81b0316431015611ffa576000438760a001516001600160d81b0316611f709190612afe565b9050605a6012821015611fa057611f88826012612afe565b611f93906005612ac0565b611f9d9082612afe565b90505b60006064611fae838e612ac0565b611fb89190612ad7565b600554909150611fd3908f906001600160a01b0316836120db565b611fdd818d612afe565b9b508060066000828254611ff19190612aeb565b90915550505050505b612004828a612afe565b98508115612017576120178b30846120db565b505b50505b6120278888886120db565b5050505050505050565b6000546001600160a01b0316331461117e5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015260640161191a565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b8260601b6387a211a28117600c526020600c208054808411156121065763f4d678b86000526004601cfd5b83810382555050826000526020600c208281540181555081602052600c5160601c8160601c7fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef602080a350505050565b6387a211a2600c9081523060009081526020909120546040805160a08101825260075460ff80821683526101008204811660208401526201000082048116938301939093526301000000810483166060830152600160201b9004909116608082015290915060008281036121c957505050565b600060025460146121da9190612ac0565b9050808411156121e8578093505b60006064846040015160ff16866121ff9190612ac0565b6122099190612ad7565b90506000612218600283612ad7565b6122229083612afe565b905060006122308288612afe565b90504761223c8261245a565b60006122488247612afe565b905060006064896060015160ff16836122619190612ac0565b61226b9190612ad7565b9050600060648a6080015160ff16846122849190612ac0565b61228e9190612ad7565b905060008161229d8486612afe565b6122a79190612afe565b90506000871180156122b95750600081115b15612302576122c8878261261a565b60408051878152602081018390527f28fc98272ce761178794ad6768050fea1648e07f1e2ffe15afd3a290f8381486910160405180910390a15b6005546040516001600160a01b039091169081908490600081818185875af1925050503d8060008114612351576040519150601f19603f3d011682016040523d82523d6000602084013e612356565b606091505b5050809b50508a6123a557806001600160a01b03167f9bfe91b808be96695c12877c36c671453aea08db33f57006854314e50bfddf5d8460405161239c91815260200190565b60405180910390a25b831561244b576004546040516001600160a01b03909116908590600081818185875af1925050503d80600081146123f8576040519150601f19603f3d011682016040523d82523d6000602084013e6123fd565b606091505b5050809b50508a61244b576004546040518581526001600160a01b03909116907f9bfe91b808be96695c12877c36c671453aea08db33f57006854314e50bfddf5d9060200160405180910390a25b50505050505050505050505050565b604080516002808252606082018352600092602083019080368337019050509050308160008151811061248f5761248f612b11565b60200260200101906001600160a01b031690816001600160a01b0316815250507f00000000000000000000000000000000000000000000000000000000000000006001600160a01b031663ad5c46486040518163ffffffff1660e01b8152600401602060405180830381865afa15801561250d573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906125319190612b27565b8160018151811061254457612544612b11565b60200260200101906001600160a01b031690816001600160a01b03168152505061258f307f000000000000000000000000000000000000000000000000000000000000000084612720565b60405163791ac94760e01b81526001600160a01b037f0000000000000000000000000000000000000000000000000000000000000000169063791ac947906125e4908590600090869030904290600401612b44565b600060405180830381600087803b1580156125fe57600080fd5b505af1158015612612573d6000803e3d6000fd5b505050505050565b612645307f000000000000000000000000000000000000000000000000000000000000000084612720565b7f00000000000000000000000000000000000000000000000000000000000000006001600160a01b031663f305d71982308560008061268c6000546001600160a01b031690565b60405160e088901b6001600160e01b03191681526001600160a01b03958616600482015260248101949094526044840192909252606483015290911660848201524260a482015260c40160606040518083038185885af11580156126f4573d6000803e3d6000fd5b50505050506040513d601f19601f820116820180604052508101906127199190612bb5565b5050505050565b8260601b82602052637f5e9f208117600c52816034600c205581600052602c5160601c8160601c600080516020612be483398151915260206000a350505050565b6001600160a01b038116811461132557600080fd5b60006020828403121561278857600080fd5b813561279381612761565b9392505050565b600060208083528351808285015260005b818110156127c7578581018301518582016040015282016127ab565b506000604082860101526040601f19601f8301168501019250505092915050565b600080604083850312156127fb57600080fd5b823561280681612761565b946020939093013593505050565b803560ff8116811461282557600080fd5b919050565b60008060006060848603121561283f57600080fd5b61284884612814565b925061285660208501612814565b915061286460408501612814565b90509250925092565b60008060006060848603121561288257600080fd5b833561288d81612761565b9250602084013561289d81612761565b929592945050506040919091013590565b801515811461132557600080fd5b600080604083850312156128cf57600080fd5b82356128da81612761565b915060208301356128ea816128ae565b809150509250929050565b60006020828403121561290757600080fd5b5035919050565b60006020828403121561292057600080fd5b8135612793816128ae565b600080600080600080600060e0888a03121561294657600080fd5b873561295181612761565b9650602088013561296181612761565b9550604088013594506060880135935061297d60808901612814565b925060a0880135915060c0880135905092959891949750929550565b600080604083850312156129ac57600080fd5b82356129b781612761565b915060208301356128ea81612761565b6000602082840312156129d957600080fd5b5051919050565b6000602082840312156129f257600080fd5b8151612793816128ae565b634e487b7160e01b600052601160045260246000fd5b60ff8181168382160190811115610cdd57610cdd6129fd565b60ff8181168382160290811690818114612a4857612a486129fd565b5092915050565b634e487b7160e01b600052601260045260246000fd5b600060ff831680612a7857612a78612a4f565b8060ff84160491505092915050565b60ff8281168282160390811115610cdd57610cdd6129fd565b6001600160d81b03818116838216019080821115612a4857612a486129fd565b8082028115828204841417610cdd57610cdd6129fd565b600082612ae657612ae6612a4f565b500490565b80820180821115610cdd57610cdd6129fd565b81810381811115610cdd57610cdd6129fd565b634e487b7160e01b600052603260045260246000fd5b600060208284031215612b3957600080fd5b815161279381612761565b600060a082018783526020878185015260a0604085015281875180845260c086019150828901935060005b81811015612b945784516001600160a01b031683529383019391830191600101612b6f565b50506001600160a01b03969096166060850152505050608001529392505050565b600080600060608486031215612bca57600080fd5b835192506020840151915060408401519050925092509256fe8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925a264697066735822122063ff4b90cf31655fc33645cb0b2f6dc9ecee0708d7ffc713718da5b8ce3707ef64736f6c634300081300330000000000000000000000001e11d3c098fc976e3f570bf2ff5181626b1916780000000000000000000000001e11d3c098fc976e3f570bf2ff5181626b1916780000000000000000000000001e11d3c098fc976e3f570bf2ff5181626b1916780000000000000000000000007a250d5630b4cf539739df2c5dacb4c659f2488d
Deployed Bytecode
0x6080604052600436106103855760003560e01c80638a8c523c116101d1578063c18bc19511610102578063e2f45605116100a0578063f8b45b051161006f578063f8b45b0514610aff578063f9f92be414610b15578063fe575a8714610b35578063febce6d714610b6e57600080fd5b8063e2f4560514610a74578063e9481eee14610a8a578063e94c58b614610aca578063f2fde38b14610adf57600080fd5b8063cc10a179116100dc578063cc10a179146109df578063d257b34f146109fe578063d505accf14610a1e578063dd62ed3e14610a3e57600080fd5b8063c18bc1951461098a578063c53d4d53146109aa578063c8c8ebe4146109c957600080fd5b8063a457c2d71161016f578063b94b70dd11610149578063b94b70dd14610914578063ba1618d514610934578063be1ded871461094c578063c02466681461096a57600080fd5b8063a457c2d7146108b4578063a9059cbb146108d4578063aa498023146108f457600080fd5b806395d89b41116101ab57806395d89b41146103b35780639759f76e1461086a57806399f34c121461087f5780639a7a23d61461089457600080fd5b80638a8c523c146108175780638da5cb5b1461082c578063924de9b71461084a57600080fd5b80634487c29f116102b6578063751039fc116102545780637cb332bb116102235780637cb332bb1461078f5780637ecebe00146107af5780637fa787ba146107e257806386c4f1a0146107f757600080fd5b8063751039fc146106fc5780637571336a1461071157806375e3661e146107315780637949a4031461075157600080fd5b80635992704411610290578063599270441461067f5780635f1893611461069f57806370a08231146106b4578063715018a6146106e757600080fd5b80634487c29f146105ec57806349bd5a5e1461060c5780634fbee1931461064057600080fd5b806323b872dd11610323578063351a964d116102fd578063351a964d146105255780633644e5151461054257806339509351146105575780633f17b1611461057757600080fd5b806323b872dd146104ca578063313ce567146104ea57806332cb6b0c1461050657600080fd5b80631694505e1161035f5780631694505e1461042157806318160ddd1461046d5780631b624ecb146104945780631d003eb6146104aa57600080fd5b8063068acf6c1461039157806306fdde03146103b3578063095ea7b3146103f157600080fd5b3661038c57005b600080fd5b34801561039d57600080fd5b506103b16103ac366004612776565b610b8e565b005b3480156103bf57600080fd5b50604080518082018252600681526521a7a7a5a2a960d11b602082015290516103e8919061279a565b60405180910390f35b3480156103fd57600080fd5b5061041161040c3660046127e8565b610ca1565b60405190151581526020016103e8565b34801561042d57600080fd5b506104557f0000000000000000000000007a250d5630b4cf539739df2c5dacb4c659f2488d81565b6040516001600160a01b0390911681526020016103e8565b34801561047957600080fd5b506805345cdf77eb68f44c545b6040519081526020016103e8565b3480156104a057600080fd5b5061048660065481565b3480156104b657600080fd5b506103b16104c536600461282a565b610ce3565b3480156104d657600080fd5b506104116104e536600461286d565b610e82565b3480156104f657600080fd5b50604051601281526020016103e8565b34801561051257600080fd5b50610486676765c793fa10079d601b1b81565b34801561053157600080fd5b50600854610100900460ff16610411565b34801561054e57600080fd5b50610486610eda565b34801561056357600080fd5b506104116105723660046127e8565b610f65565b34801561058357600080fd5b506007546105b89060ff80821691610100810482169162010000820481169163010000008104821691600160201b9091041685565b6040805160ff968716815294861660208601529285169284019290925283166060830152909116608082015260a0016103e8565b3480156105f857600080fd5b506103b161060736600461282a565b610fc5565b34801561061857600080fd5b506104557f000000000000000000000000a9988bf583306091fd5d47828574ab4e3e4855ae81565b34801561064c57600080fd5b5061041161065b366004612776565b6001600160a01b031660009081526009602052604090205462010000900460ff1690565b34801561068b57600080fd5b50600554610455906001600160a01b031681565b3480156106ab57600080fd5b506103b1611151565b3480156106c057600080fd5b506104866106cf366004612776565b6387a211a2600c908152600091909152602090205490565b3480156106f357600080fd5b506103b161116c565b34801561070857600080fd5b506103b1611180565b34801561071d57600080fd5b506103b161072c3660046128bc565b611194565b34801561073d57600080fd5b506103b161074c366004612776565b61120b565b34801561075d57600080fd5b5061041161076c366004612776565b6001600160a01b0316600090815260096020526040902054610100900460ff1690565b34801561079b57600080fd5b506103b16107aa366004612776565b611234565b3480156107bb57600080fd5b506104866107ca366004612776565b6338377508600c908152600091909152602090205490565b3480156107ee57600080fd5b506103b16112b4565b34801561080357600080fd5b506103b16108123660046128f5565b611328565b34801561082357600080fd5b506103b1611365565b34801561083857600080fd5b506000546001600160a01b0316610455565b34801561085657600080fd5b506103b161086536600461290e565b6113b1565b34801561087657600080fd5b506104866113d3565b34801561088b57600080fd5b506104866113f9565b3480156108a057600080fd5b506103b16108af3660046128bc565b611411565b3480156108c057600080fd5b506104116108cf3660046127e8565b6114ca565b3480156108e057600080fd5b506104116108ef3660046127e8565b61152b565b34801561090057600080fd5b506103b161090f3660046128f5565b611541565b34801561092057600080fd5b50600454610455906001600160a01b031681565b34801561094057600080fd5b5060085460ff16610411565b34801561095857600080fd5b5060085462010000900460ff16610411565b34801561097657600080fd5b506103b16109853660046128bc565b6115d2565b34801561099657600080fd5b506103b16109a53660046128f5565b61163b565b3480156109b657600080fd5b50600854600160201b900460ff16610411565b3480156109d557600080fd5b5061048660015481565b3480156109eb57600080fd5b506008546301000000900460ff16610411565b348015610a0a57600080fd5b506103b1610a193660046128f5565b6116b7565b348015610a2a57600080fd5b506103b1610a3936600461292b565b611778565b348015610a4a57600080fd5b50610486610a59366004612999565b602052637f5e9f20600c908152600091909152603490205490565b348015610a8057600080fd5b5061048660025481565b348015610a9657600080fd5b50610411610aa5366004612776565b6001600160a01b03166000908152600960205260409020546301000000900460ff1690565b348015610ad657600080fd5b506103b1611894565b348015610aeb57600080fd5b506103b1610afa366004612776565b6118b1565b348015610b0b57600080fd5b5061048660035481565b348015610b2157600080fd5b506103b1610b30366004612776565b61192c565b348015610b4157600080fd5b50610411610b50366004612776565b6001600160a01b031660009081526009602052604090205460ff1690565b348015610b7a57600080fd5b506103b1610b89366004612776565b611a26565b610b96611aa6565b6001600160a01b038116610bbd57604051634328359b60e11b815260040160405180910390fd5b6040516370a0823160e01b81523060048201526000906001600160a01b038316906370a0823190602401602060405180830381865afa158015610c04573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610c2891906129c7565b60405163a9059cbb60e01b8152336004820152602481018290529091506001600160a01b0383169063a9059cbb906044016020604051808303816000875af1158015610c78573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610c9c91906129e0565b505050565b600082602052637f5e9f20600c5233600052816034600c205581600052602c5160601c33600080516020612be483398151915260206000a35060015b92915050565b610ceb611aa6565b6008546301000000900460ff1615610d165760405163de0fd55f60e01b815260040160405180910390fd5b600081610d238486612a13565b610d2d9190612a13565b905060638160ff161115610d5457604051630e3d5bd360e21b815260040160405180910390fd5b600754610100900460ff16600082610d6d876064612a2c565b610d779190612a65565b9050600083610d87876064612a2c565b610d919190612a65565b9050600081610da1846064612a87565b610dab9190612a87565b6040805160a0808201835260ff89811680845289821660208086018290528984168688018190528b85166060808901829052958a1660809889018190526007805461ffff1916871761010087021763ffff0000191662010000850263ff000000191617630100000084021764ff000000001916600160201b83021790558951958652928501939093529683019190915291810194909452918301919091529192507f915ac3e5f77909369f87ce47547f18125470366dc615fc4cce4b5fc0bb7ca23891015b60405180910390a15050505050505050565b60008360601b33602052637f5e9f208117600c52506034600c2080546000198114610ec35780841115610ebd576313be252b6000526004601cfd5b83810382555b5050610ed0848484611ad1565b5060019392505050565b60408051808201918290527f8b73c3c69bb8fe3d512ecc4cf759cc79239f7b179b0ffacaa9a75d522b39400f81527f2e464ee6c5a6a282fb70d0b19a88593107208fce61e8c86ea859de84d85f771060208201527fc89efdaa54c0f20c7adf612882df0950f5a951637e0307cdcb4c672f298b8bc690915246606082015230608082015260a0902090565b600082602052637f5e9f20600c52336000526034600c20805483810181811015610f975763f90670666000526004601cfd5b80835580600052505050602c5160601c33600080516020612be483398151915260206000a350600192915050565b610fcd611aa6565b6008546301000000900460ff1615610ff85760405163de0fd55f60e01b815260040160405180910390fd5b6000816110058486612a13565b61100f9190612a13565b905060638160ff16111561103657604051630e3d5bd360e21b815260040160405180910390fd5b60075460ff1660008261104a876064612a2c565b6110549190612a65565b9050600083611064876064612a2c565b61106e9190612a65565b905060008161107e846064612a87565b6110889190612a87565b6040805160a0808201835260ff8881168084528a821660208086018290528984168688018190528b85166060808901829052958a1660809889018190526007805461ffff1916871761010087021763ffff0000191662010000850263ff000000191617630100000084021764ff000000001916600160201b83021790558951958652928501939093529683019190915291810194909452918301919091529192507f915ac3e5f77909369f87ce47547f18125470366dc615fc4cce4b5fc0bb7ca2389101610e70565b611159611aa6565b6008805462ff0000191662010000179055565b611174612031565b61117e600061208b565b565b611188611aa6565b6008805460ff19169055565b61119c611aa6565b6001600160a01b03821660008181526009602052604090819020805484151563010000000263ff00000019909116179055517fe0a7c1f8826ab3d62a6e242681ccca3828462e5c87816004b9f8d655b22d5f08906111ff90841515815260200190565b60405180910390a25050565b611213611aa6565b6001600160a01b03166000908152600960205260409020805460ff19169055565b61123c611aa6565b6001600160a01b038116611263576040516309a587eb60e31b815260040160405180910390fd5b600580546001600160a01b038381166001600160a01b03198316811790935560405191169182917fd9a2a08302ed3220f4e646ff99d6780d87e27baddf1af05679dc930ce811309590600090a35050565b6112bc611aa6565b604051600090339047908381818185875af1925050503d80600081146112fe576040519150601f19603f3d011682016040523d82523d6000602084013e611303565b606091505b50509050806113255760405163e6ab35d160e01b815260040160405180910390fd5b50565b611330611aa6565b60008160000361135357506387a211a2600c908152306000526020902054611356565b50805b6113613033836120db565b5050565b61136d611aa6565b61137843600a612aa0565b6008805464ff00000000196001600160d81b039390931665010000000000029290921663ffffffff90921691909117600160201b179055565b6113b9611aa6565b600880549115156101000261ff0019909216919091179055565b6103e86113ec676765c793fa10079d601b1b6005612ac0565b6113f69190612ad7565b81565b6113f6620186a0676765c793fa10079d601b1b612ad7565b611419611aa6565b7f000000000000000000000000a9988bf583306091fd5d47828574ab4e3e4855ae6001600160a01b0316826001600160a01b03160361146b57604051638cdec5ff60e01b815260040160405180910390fd5b6001600160a01b0382166000818152600960205260409081902080548415156101000261ff0019909116179055517fffa9187bf1f18bf477bd0ea1bcbb64e93b6a98132473929edfce215cd9b16fab906111ff90841515815260200190565b600082602052637f5e9f20600c52336000526034600c208054838110156114f957638301ab386000526004601cfd5b8381039050808255806000525050602c5160601c33600080516020612be483398151915260206000a350600192915050565b6000611538338484611ad1565b50600192915050565b611549611aa6565b6103e8611562676765c793fa10079d601b1b6005612ac0565b61156c9190612ad7565b81101561158c576040516322f6f4a760e01b815260040160405180910390fd5b600180549082905560408051838152602081018390527fd40d861b6c61fb22040b4eb8de22cc4c267673593fef5c5880e2f55e75ef454891015b60405180910390a15050565b6115da611aa6565b6001600160a01b038216600081815260096020526040908190208054841515620100000262ff000019909116179055517f9d8f7706ea1113d1a167b526eca956215946dd36cc7df39eb16180222d8b5df7906111ff90841515815260200190565b611643611aa6565b6116596064676765c793fa10079d601b1b612ad7565b81101561167957604051631bac31eb60e11b815260040160405180910390fd5b600380549082905560408051838152602081018390527f0a7c714b6801281a6e2610a6371ac6a5da9a5947616d74f4aa3ad1d289278e7391016115c6565b6116bf611aa6565b6116d7620186a0676765c793fa10079d601b1b612ad7565b8110156116f7576040516393c90ee960e01b815260040160405180910390fd5b6103e8611710676765c793fa10079d601b1b6005612ac0565b61171a9190612ad7565b81111561173a576040516331c953a560e01b815260040160405180910390fd5b600280549082905560408051838152602081018390527febb96427ceba6a46f9f71146db5c30bc7e2fe31285e9bf34b38bbdede7cd5ea191016115c6565b6000611782610eda565b90506040518542111561179d57631a15a3cc6000526004601cfd5b8860601b60601c98508760601b60601c97506338377508600c52886000526020600c2080546001810182557f6e71edae12b1b97f4d1f60370fef10105fa2faae0126114a169c64845d6126c983528a602084015289604084015288606084015280608084015250508560a08201526119016000528160205260c081206040526042601e206000528460ff1660205283604052826060526020806080600060015afa50883d51146118555763ddafbaef6000526004601cfd5b6303faf4f960a51b88176040526034602c208790558789600080516020612be4833981519152602060608501a360405250506000606052505050505050565b61189c611aa6565b6008805463ff00000019166301000000179055565b6118b9612031565b6001600160a01b0381166119235760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b60648201526084015b60405180910390fd5b6113258161208b565b611934611aa6565b60085462010000900460ff161561195e57604051632e64208960e21b815260040160405180910390fd5b7f000000000000000000000000a9988bf583306091fd5d47828574ab4e3e4855ae6001600160a01b0316816001600160a01b0316036119b05760405163426b9a4f60e11b815260040160405180910390fd5b7f0000000000000000000000007a250d5630b4cf539739df2c5dacb4c659f2488d6001600160a01b0316816001600160a01b031603611a0257604051635576109d60e01b815260040160405180910390fd5b6001600160a01b03166000908152600960205260409020805460ff19166001179055565b611a2e611aa6565b6001600160a01b038116611a55576040516309a587eb60e31b815260040160405180910390fd5b600480546001600160a01b038381166001600160a01b03198316811790935560405191169182917f896489cc5e01acbcabf98ff6ebb027a088fd70fb4e21dc0ddda4abf68dfe050890600090a35050565b6000546001600160a01b0316331461117e576040516353ae8a1360e01b815260040160405180910390fd5b6001600160a01b038316611af857604051637eb6ecc360e01b815260040160405180910390fd5b6001600160a01b038216611b1f5760405163096cf13360e01b815260040160405180910390fd5b6001600160a01b038381166000908152600960208181526040808420815160808082018452915460ff808216151583526101008083048216151584880152620100008084048316151585880152630100000093849004831615156060808701919091529a8d168a5297875297859020855180860187529054808316151582528981048316151582890152888104831615158288015283900482161515818b0152855160c08101875260085480841615158252998a048316151597810197909752968804811615159486019490945286048316151596840196909652600160201b85049091161515908201819052650100000000009093046001600160d81b031660a08201529091611c55578260400151611c55578160400151611c5557604051639b75406960e01b815260040160405180910390fd5b825115611c7557604051634b3ef16360e01b815260040160405180910390fd5b815115611c955760405163c74001ad60e01b815260040160405180910390fd5b83600003611ca557505050505050565b6000836040015180611cb8575082604001515b602085015190915060039015611cd057506001611cde565b836020015115611cde575060025b600554600160a01b900460ff16611e5757825115611dfe578060ff166001148015611d0b57508360600151155b15611d7857600154861115611d335760405163d6cdde7b60e01b815260040160405180910390fd5b6003546387a211a2600c90815260008990526020902054611d549088612aeb565b1115611d73576040516336d2b6e560e11b815260040160405180910390fd5b611dfe565b8060ff166002148015611d8d57508460600151155b15611db557600154861115611d7357604051631f1b8bd360e01b815260040160405180910390fd5b8360600151611dfe576003546387a211a2600c90815260008990526020902054611ddf9088612aeb565b1115611dfe576040516336d2b6e560e11b815260040160405180910390fd5b826020015115611e57578060ff16600203611e57576002546387a211a2600c90815230600052602090205410611e57576005805460ff60a01b1916600160a01b179055611e49612156565b6005805460ff60a01b191690555b60038160ff16101561201c57600554600160a01b900460ff16158215611e7b575060005b60008115612019576040805160a08101825260075460ff80821683526101008204811660208401526201000082048116938301939093526301000000810483166060830152600160201b900482166080820152908416600203611f0c57602081015160ff1615611f07576064816020015160ff168a611efa9190612ac0565b611f049190612ad7565b91505b611f40565b8360ff16600103611f4057805160ff1615611f40578051606490611f339060ff168b612ac0565b611f3d9190612ad7565b91505b8560a001516001600160d81b0316431015611ffa576000438760a001516001600160d81b0316611f709190612afe565b9050605a6012821015611fa057611f88826012612afe565b611f93906005612ac0565b611f9d9082612afe565b90505b60006064611fae838e612ac0565b611fb89190612ad7565b600554909150611fd3908f906001600160a01b0316836120db565b611fdd818d612afe565b9b508060066000828254611ff19190612aeb565b90915550505050505b612004828a612afe565b98508115612017576120178b30846120db565b505b50505b6120278888886120db565b5050505050505050565b6000546001600160a01b0316331461117e5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015260640161191a565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b8260601b6387a211a28117600c526020600c208054808411156121065763f4d678b86000526004601cfd5b83810382555050826000526020600c208281540181555081602052600c5160601c8160601c7fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef602080a350505050565b6387a211a2600c9081523060009081526020909120546040805160a08101825260075460ff80821683526101008204811660208401526201000082048116938301939093526301000000810483166060830152600160201b9004909116608082015290915060008281036121c957505050565b600060025460146121da9190612ac0565b9050808411156121e8578093505b60006064846040015160ff16866121ff9190612ac0565b6122099190612ad7565b90506000612218600283612ad7565b6122229083612afe565b905060006122308288612afe565b90504761223c8261245a565b60006122488247612afe565b905060006064896060015160ff16836122619190612ac0565b61226b9190612ad7565b9050600060648a6080015160ff16846122849190612ac0565b61228e9190612ad7565b905060008161229d8486612afe565b6122a79190612afe565b90506000871180156122b95750600081115b15612302576122c8878261261a565b60408051878152602081018390527f28fc98272ce761178794ad6768050fea1648e07f1e2ffe15afd3a290f8381486910160405180910390a15b6005546040516001600160a01b039091169081908490600081818185875af1925050503d8060008114612351576040519150601f19603f3d011682016040523d82523d6000602084013e612356565b606091505b5050809b50508a6123a557806001600160a01b03167f9bfe91b808be96695c12877c36c671453aea08db33f57006854314e50bfddf5d8460405161239c91815260200190565b60405180910390a25b831561244b576004546040516001600160a01b03909116908590600081818185875af1925050503d80600081146123f8576040519150601f19603f3d011682016040523d82523d6000602084013e6123fd565b606091505b5050809b50508a61244b576004546040518581526001600160a01b03909116907f9bfe91b808be96695c12877c36c671453aea08db33f57006854314e50bfddf5d9060200160405180910390a25b50505050505050505050505050565b604080516002808252606082018352600092602083019080368337019050509050308160008151811061248f5761248f612b11565b60200260200101906001600160a01b031690816001600160a01b0316815250507f0000000000000000000000007a250d5630b4cf539739df2c5dacb4c659f2488d6001600160a01b031663ad5c46486040518163ffffffff1660e01b8152600401602060405180830381865afa15801561250d573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906125319190612b27565b8160018151811061254457612544612b11565b60200260200101906001600160a01b031690816001600160a01b03168152505061258f307f0000000000000000000000007a250d5630b4cf539739df2c5dacb4c659f2488d84612720565b60405163791ac94760e01b81526001600160a01b037f0000000000000000000000007a250d5630b4cf539739df2c5dacb4c659f2488d169063791ac947906125e4908590600090869030904290600401612b44565b600060405180830381600087803b1580156125fe57600080fd5b505af1158015612612573d6000803e3d6000fd5b505050505050565b612645307f0000000000000000000000007a250d5630b4cf539739df2c5dacb4c659f2488d84612720565b7f0000000000000000000000007a250d5630b4cf539739df2c5dacb4c659f2488d6001600160a01b031663f305d71982308560008061268c6000546001600160a01b031690565b60405160e088901b6001600160e01b03191681526001600160a01b03958616600482015260248101949094526044840192909252606483015290911660848201524260a482015260c40160606040518083038185885af11580156126f4573d6000803e3d6000fd5b50505050506040513d601f19601f820116820180604052508101906127199190612bb5565b5050505050565b8260601b82602052637f5e9f208117600c52816034600c205581600052602c5160601c8160601c600080516020612be483398151915260206000a350505050565b6001600160a01b038116811461132557600080fd5b60006020828403121561278857600080fd5b813561279381612761565b9392505050565b600060208083528351808285015260005b818110156127c7578581018301518582016040015282016127ab565b506000604082860101526040601f19601f8301168501019250505092915050565b600080604083850312156127fb57600080fd5b823561280681612761565b946020939093013593505050565b803560ff8116811461282557600080fd5b919050565b60008060006060848603121561283f57600080fd5b61284884612814565b925061285660208501612814565b915061286460408501612814565b90509250925092565b60008060006060848603121561288257600080fd5b833561288d81612761565b9250602084013561289d81612761565b929592945050506040919091013590565b801515811461132557600080fd5b600080604083850312156128cf57600080fd5b82356128da81612761565b915060208301356128ea816128ae565b809150509250929050565b60006020828403121561290757600080fd5b5035919050565b60006020828403121561292057600080fd5b8135612793816128ae565b600080600080600080600060e0888a03121561294657600080fd5b873561295181612761565b9650602088013561296181612761565b9550604088013594506060880135935061297d60808901612814565b925060a0880135915060c0880135905092959891949750929550565b600080604083850312156129ac57600080fd5b82356129b781612761565b915060208301356128ea81612761565b6000602082840312156129d957600080fd5b5051919050565b6000602082840312156129f257600080fd5b8151612793816128ae565b634e487b7160e01b600052601160045260246000fd5b60ff8181168382160190811115610cdd57610cdd6129fd565b60ff8181168382160290811690818114612a4857612a486129fd565b5092915050565b634e487b7160e01b600052601260045260246000fd5b600060ff831680612a7857612a78612a4f565b8060ff84160491505092915050565b60ff8281168282160390811115610cdd57610cdd6129fd565b6001600160d81b03818116838216019080821115612a4857612a486129fd565b8082028115828204841417610cdd57610cdd6129fd565b600082612ae657612ae6612a4f565b500490565b80820180821115610cdd57610cdd6129fd565b81810381811115610cdd57610cdd6129fd565b634e487b7160e01b600052603260045260246000fd5b600060208284031215612b3957600080fd5b815161279381612761565b600060a082018783526020878185015260a0604085015281875180845260c086019150828901935060005b81811015612b945784516001600160a01b031683529383019391830191600101612b6f565b50506001600160a01b03969096166060850152505050608001529392505050565b600080600060608486031215612bca57600080fd5b835192506020840151915060408401519050925092509256fe8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925a264697066735822122063ff4b90cf31655fc33645cb0b2f6dc9ecee0708d7ffc713718da5b8ce3707ef64736f6c63430008130033
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
0000000000000000000000001e11d3c098fc976e3f570bf2ff5181626b1916780000000000000000000000001e11d3c098fc976e3f570bf2ff5181626b1916780000000000000000000000001e11d3c098fc976e3f570bf2ff5181626b1916780000000000000000000000007a250d5630b4cf539739df2c5dacb4c659f2488d
-----Decoded View---------------
Arg [0] : ownerWallet (address): 0x1e11d3c098FC976E3f570Bf2Ff5181626b191678
Arg [1] : teamWallet_ (address): 0x1e11d3c098FC976E3f570Bf2Ff5181626b191678
Arg [2] : cookerWallet_ (address): 0x1e11d3c098FC976E3f570Bf2Ff5181626b191678
Arg [3] : routerAddress (address): 0x7a250d5630B4cF539739dF2C5dAcb4c659F2488D
-----Encoded View---------------
4 Constructor Arguments found :
Arg [0] : 0000000000000000000000001e11d3c098fc976e3f570bf2ff5181626b191678
Arg [1] : 0000000000000000000000001e11d3c098fc976e3f570bf2ff5181626b191678
Arg [2] : 0000000000000000000000001e11d3c098fc976e3f570bf2ff5181626b191678
Arg [3] : 0000000000000000000000007a250d5630b4cf539739df2c5dacb4c659f2488d
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.