More Info
Private Name Tags
ContractCreator
TokenTracker
Latest 25 from a total of 941 transactions
Transaction Hash |
Method
|
Block
|
From
|
To
|
|||||
---|---|---|---|---|---|---|---|---|---|
Approve | 20451663 | 167 days ago | IN | 0 ETH | 0.00002746 | ||||
Approve | 19554290 | 292 days ago | IN | 0 ETH | 0.0005425 | ||||
Approve | 19554290 | 292 days ago | IN | 0 ETH | 0.0005425 | ||||
Approve | 18758796 | 404 days ago | IN | 0 ETH | 0.00120192 | ||||
Approve | 18633264 | 421 days ago | IN | 0 ETH | 0.00060965 | ||||
Approve | 18486157 | 442 days ago | IN | 0 ETH | 0.00078859 | ||||
Approve | 18088412 | 498 days ago | IN | 0 ETH | 0.00047539 | ||||
Approve | 18070560 | 500 days ago | IN | 0 ETH | 0.0006469 | ||||
Approve | 17957246 | 516 days ago | IN | 0 ETH | 0.00099139 | ||||
Approve | 17639782 | 560 days ago | IN | 0 ETH | 0.00062119 | ||||
Approve | 17639725 | 560 days ago | IN | 0 ETH | 0.00065501 | ||||
Approve | 17391599 | 595 days ago | IN | 0 ETH | 0.00124845 | ||||
Transfer | 17312378 | 606 days ago | IN | 0 ETH | 0.00139539 | ||||
Approve | 17252651 | 615 days ago | IN | 0 ETH | 0.00193969 | ||||
Approve | 17008263 | 649 days ago | IN | 0 ETH | 0.00047267 | ||||
Approve | 16951055 | 658 days ago | IN | 0 ETH | 0.00049099 | ||||
Approve | 16542152 | 715 days ago | IN | 0 ETH | 0.00195082 | ||||
Approve | 16517027 | 718 days ago | IN | 0 ETH | 0.00069426 | ||||
Approve | 16438087 | 729 days ago | IN | 0 ETH | 0.00095121 | ||||
Approve | 16401349 | 735 days ago | IN | 0 ETH | 0.00061521 | ||||
Approve | 16372441 | 739 days ago | IN | 0 ETH | 0.001236 | ||||
Approve | 16297431 | 749 days ago | IN | 0 ETH | 0.00068232 | ||||
Transfer | 16277927 | 752 days ago | IN | 0 ETH | 0.00108382 | ||||
Approve | 16216422 | 760 days ago | IN | 0 ETH | 0.0006139 | ||||
Approve | 16216367 | 760 days ago | IN | 0 ETH | 0.00071891 |
Latest 25 internal transactions (View All)
Advanced mode:
Parent Transaction Hash | Block |
From
|
To
|
|||
---|---|---|---|---|---|---|
16542155 | 715 days ago | 0.02028016 ETH | ||||
16542155 | 715 days ago | 0.02028016 ETH | ||||
16542155 | 715 days ago | 0.04073802 ETH | ||||
16542155 | 715 days ago | 0.10184505 ETH | ||||
16542155 | 715 days ago | 0.14258307 ETH | ||||
15471179 | 866 days ago | 0.02148403 ETH | ||||
15471179 | 866 days ago | 0.02148403 ETH | ||||
15471179 | 866 days ago | 0.04315698 ETH | ||||
15471179 | 866 days ago | 0.10789246 ETH | ||||
15471179 | 866 days ago | 0.15104944 ETH | ||||
14640180 | 1000 days ago | 0.02921719 ETH | ||||
14640180 | 1000 days ago | 0.02921719 ETH | ||||
14640180 | 1000 days ago | 0.05876579 ETH | ||||
14640180 | 1000 days ago | 0.14691449 ETH | ||||
14640180 | 1000 days ago | 0.20568029 ETH | ||||
14580467 | 1010 days ago | 0.02766134 ETH | ||||
14580467 | 1010 days ago | 0.02766134 ETH | ||||
14580467 | 1010 days ago | 0.05560009 ETH | ||||
14580467 | 1010 days ago | 0.13900023 ETH | ||||
14580467 | 1010 days ago | 0.19460032 ETH | ||||
14546308 | 1015 days ago | 0.03107309 ETH | ||||
14546308 | 1015 days ago | 0.03107309 ETH | ||||
14546308 | 1015 days ago | 0.06249472 ETH | ||||
14546308 | 1015 days ago | 0.15623682 ETH | ||||
14546308 | 1015 days ago | 0.21873155 ETH |
Loading...
Loading
Contract Name:
FlashInu
Compiler Version
v0.8.11+commit.d7f03943
Optimization Enabled:
Yes with 1000 runs
Other Settings:
default evmVersion
Contract Source Code (Solidity Standard Json-Input format)
// SPDX-License-Identifier: MIT pragma solidity 0.8.11; import "@openzeppelin/contracts/token/ERC20/IERC20.sol"; import "@openzeppelin/contracts/access/Ownable.sol"; import "@openzeppelin/contracts/utils/math/SafeMath.sol"; import "@openzeppelin/contracts/utils/Address.sol"; import "@openzeppelin/contracts/utils/Context.sol"; import "@uniswap/v2-core/contracts/interfaces/IUniswapV2Pair.sol"; import "@uniswap/v2-core/contracts/interfaces/IUniswapV2Factory.sol"; import "@openzeppelin/contracts/token/ERC20/ERC20.sol"; import "./SafeMathUint.sol"; import "./SafeMathInt.sol"; import "./IUniswapV2Router.sol"; contract FlashInu is ERC20, Ownable { using SafeMath for uint256; IUniswapV2Router02 public immutable uniswapV2Router; address public immutable uniswapV2Pair; address public constant deadAddress = address(0xdead); mapping (address => bool) internal authorizations; bool private swapping; address public marketingWallet; address public devWallet; uint256 public maxTransactionAmount; uint256 public swapTokensAtAmount; uint256 public maxWallet; uint256 public percentForLPBurn = 25; // 25 = .25% bool public lpBurnEnabled = true; uint256 public lpBurnFrequency = 3600 seconds; uint256 public lastLpBurnTime; uint256 public manualBurnFrequency = 30 minutes; uint256 public lastManualLpBurnTime; bool public limitsInEffect = true; bool public tradingActive = false; bool public swapEnabled = false; bool public tokenBurnEnabled = true; // Anti-bot and anti-whale mappings and variables mapping(address => uint256) private _holderLastTransferTimestamp; // to hold last Transfers temporarily during launch bool public transferDelayEnabled = true; uint256 public buyTotalFees; uint256 public marketingFee = 2; // this is in % uint256 public liquidityFee = 2; uint256 public devFee = 5; uint256 public tokenBurnFee = 1; uint256 public sellTotalFees; uint256 public extraSellTax = 0; // this is number mapping(address => bool) public _isBot; /******************/ // exlcude from fees and max transaction amount mapping (address => bool) private _isExcludedFromFees; mapping (address => bool) public _isExcludedMaxTransactionAmount; // store addresses that a automatic market maker pairs. Any transfer *to* these addresses // could be subject to a maximum transfer amount mapping (address => bool) public automatedMarketMakerPairs; event ExcludeFromFees(address indexed account, bool isExcluded); event SetAutomatedMarketMakerPair(address indexed pair, bool indexed value); event marketingWalletUpdated(address indexed newWallet, address indexed oldWallet); event devWalletUpdated(address indexed newWallet, address indexed oldWallet); event SwapAndLiquify( uint256 tokensSwapped, uint256 ethReceived, uint256 tokensIntoLiquidity ); event AutoNukeLP(); event ManualNukeLP(); constructor() ERC20("FlashInu", "FLASH") { authorizations[_msgSender()] = true; IUniswapV2Router02 _uniswapV2Router = IUniswapV2Router02(0x7a250d5630B4cF539739dF2C5dAcb4c659F2488D); excludeFromMaxTransaction(address(_uniswapV2Router), true); uniswapV2Router = _uniswapV2Router; uniswapV2Pair = IUniswapV2Factory(_uniswapV2Router.factory()).createPair(address(this), _uniswapV2Router.WETH()); excludeFromMaxTransaction(address(uniswapV2Pair), true); _setAutomatedMarketMakerPair(address(uniswapV2Pair), true); uint256 totalSupply = 1 * 1e9 * 1e18; maxTransactionAmount = totalSupply * 5 / 1000; // 0.5% maxTransactionAmountTxn maxWallet = totalSupply * 6 / 1000; // .6% maxWallet swapTokensAtAmount = totalSupply * 5 / 1000; // 0.5% swap wallet buyTotalFees = marketingFee + liquidityFee + devFee + tokenBurnFee; sellTotalFees = buyTotalFees; marketingWallet = 0x87b3D84923B7AE809eE91D6064e9BAD69143bD45; // set as marketing wallet devWallet = 0x8C354aB778A26797FfA7c975A3E5575D13126E90; // set as dev wallet // exclude from paying fees or having max transaction amount excludeFromFees(owner(), true); excludeFromFees(address(this), true); excludeFromFees(deadAddress, true); excludeFromFees(marketingWallet, true); excludeFromFees(devWallet, true); excludeFromMaxTransaction(owner(), true); excludeFromMaxTransaction(address(this), true); excludeFromMaxTransaction(deadAddress, true); excludeFromMaxTransaction(marketingWallet, true); excludeFromMaxTransaction(devWallet, true); /* _mint is an internal function in ERC20.sol that is only called here, and CANNOT be called ever again */ _mint(msg.sender, totalSupply); } receive() external payable { } /** * Function modifier to require caller to be authorized */ modifier authorized() { require(isAuthorized(msg.sender), "!AUTHORIZED"); _; } /** * Authorize address. Owner only */ function authorize(address adr) external onlyOwner { authorizations[adr] = true; } /** * Remove address' authorization. Owner only */ function unauthorize(address adr) external onlyOwner { authorizations[adr] = false; } /** * Return address' authorization status */ function isAuthorized(address adr) public view returns (bool) { return authorizations[adr]; } // once enabled, can never be turned off function enableTrading() external onlyOwner { tradingActive = true; swapEnabled = true; lastLpBurnTime = block.timestamp; } // remove limits after token is stable function removeLimits() external onlyOwner returns (bool){ limitsInEffect = false; return true; } // disable Transfer delay - cannot be reenabled function disableTransferDelay() external onlyOwner returns (bool){ transferDelayEnabled = false; return true; } // change the minimum amount of tokens to sell from fees function updateSwapTokensAtAmount(uint256 newAmount) external authorized returns (bool){ require(newAmount >= totalSupply() * 1 / 100000, "Swap amount cannot be lower than 0.001% total supply."); require(newAmount <= totalSupply() * 5 / 1000, "Swap amount cannot be higher than 0.5% total supply."); swapTokensAtAmount = newAmount; return true; } function updateMaxTxnAmount(uint256 newNum) external authorized { require(newNum >= (totalSupply() * 1 / 1000)/1e18, "Cannot set maxTransactionAmount lower than 0.1%"); maxTransactionAmount = newNum * (10**18); } function updateMaxWalletAmount(uint256 newNum) external authorized { require(newNum >= (totalSupply() * 5 / 1000)/1e18, "Cannot set maxWallet lower than 0.5%"); maxWallet = newNum * (10**18); } function excludeFromMaxTransaction(address updAds, bool isEx) public authorized { _isExcludedMaxTransactionAmount[updAds] = isEx; } function updateBotStatus(address account, bool value) external authorized{ _isBot[account] = value; } // only use to disable contract sales if absolutely necessary (emergency use only) function updateSwapEnabled(bool enabled) external authorized(){ swapEnabled = enabled; } function updateTokenBurnEnabled(bool enabled) external authorized(){ require(tokenBurnEnabled !=enabled, "Values are same."); tokenBurnEnabled = enabled; if(enabled){ buyTotalFees = marketingFee + liquidityFee + devFee + tokenBurnFee; }else{ buyTotalFees = marketingFee + liquidityFee + devFee; } if(extraSellTax>0){ sellTotalFees = buyTotalFees+ extraSellTax; }else{ sellTotalFees = buyTotalFees; } require(buyTotalFees <= 20, "Must keep fees at 20% or less"); require(sellTotalFees <= 25, "Must keep fees at 25% or less"); } function updateFees(uint256 _marketingFee, uint256 _liquidityFee, uint256 _devFee, uint256 _tokenBurnFee, uint256 _extraSellTax) external authorized { marketingFee = _marketingFee; liquidityFee = _liquidityFee; devFee = _devFee; tokenBurnFee = _tokenBurnFee; extraSellTax = _extraSellTax; if(tokenBurnEnabled){ buyTotalFees = marketingFee + liquidityFee + devFee + tokenBurnFee; }else{ buyTotalFees = marketingFee + liquidityFee + devFee; } if(extraSellTax>0){ sellTotalFees = buyTotalFees + extraSellTax; }else{ sellTotalFees = buyTotalFees; } require(buyTotalFees <= 20, "Must keep fees at 20% or less"); require(sellTotalFees <= 25, "Must keep fees at 25% or less"); } function excludeFromFees(address account, bool excluded) public authorized { _isExcludedFromFees[account] = excluded; emit ExcludeFromFees(account, excluded); } function setAutomatedMarketMakerPair(address pair, bool value) public authorized { require(pair != uniswapV2Pair, "The pair cannot be removed from automatedMarketMakerPairs"); _setAutomatedMarketMakerPair(pair, value); } function _setAutomatedMarketMakerPair(address pair, bool value) private { automatedMarketMakerPairs[pair] = value; emit SetAutomatedMarketMakerPair(pair, value); } function updateMarketingWallet(address newMarketingWallet) external onlyOwner { require(newMarketingWallet != address(0), "ERC20: Marketing address can not be zero address"); emit marketingWalletUpdated(newMarketingWallet, marketingWallet); marketingWallet = newMarketingWallet; excludeFromFees(marketingWallet, true); excludeFromMaxTransaction(marketingWallet, true); } function updateDevWallet(address newWallet) external onlyOwner { require(newWallet != address(0), "ERC20: Dev address can not be zero address"); emit devWalletUpdated(newWallet, devWallet); devWallet = newWallet; excludeFromFees(devWallet, true); excludeFromMaxTransaction(devWallet, true); } function isExcludedFromFees(address account) public view returns(bool) { return _isExcludedFromFees[account]; } function checkTxLimit(address sender) internal view { if(automatedMarketMakerPairs[sender]){ return; } require(!_isBot[sender], 'Robot detected'); } function _transfer( address from, address to, uint256 amount ) internal override { require(from != address(0), "ERC20: transfer from the zero address"); require(to != address(0), "ERC20: transfer to the zero address"); require(amount > 0,'Transfer amount must be greater than zero'); if(limitsInEffect){ if ( from != owner() && to != owner() && to != deadAddress && !swapping ){ if(!tradingActive){ require(_isExcludedFromFees[from] || _isExcludedFromFees[to], "Trading is not active."); } // at launch if the transfer delay is enabled, ensure the block timestamps for purchasers is set -- during launch. if (transferDelayEnabled){ if (automatedMarketMakerPairs[from]){ _holderLastTransferTimestamp[tx.origin] = block.number+20; }else{ require(_holderLastTransferTimestamp[tx.origin] < block.number, "_transfer:: Transfer Delay enabled. Only one transaction per 20 block allowed."); _holderLastTransferTimestamp[tx.origin] = block.number+20; } } //when buy if (automatedMarketMakerPairs[from] && !_isExcludedMaxTransactionAmount[to]) { require(amount <= maxTransactionAmount, "Buy transfer amount exceeds the maxTransactionAmount."); require(amount + balanceOf(to) <= maxWallet, "Max wallet exceeded"); } //when sell else if (automatedMarketMakerPairs[to] && !_isExcludedMaxTransactionAmount[from]) { require(amount <= maxTransactionAmount, "Sell transfer amount exceeds the maxTransactionAmount."); } else if(!_isExcludedMaxTransactionAmount[to]){ require(amount + balanceOf(to) <= maxWallet, "Max wallet exceeded"); } } } checkTxLimit(from); uint256 contractTokenBalance = balanceOf(address(this)); bool canSwap = contractTokenBalance >= swapTokensAtAmount; if (contractTokenBalance >= maxTransactionAmount) { contractTokenBalance = maxTransactionAmount; } if( canSwap && swapEnabled && !swapping && !automatedMarketMakerPairs[from] && !_isExcludedFromFees[from] && !_isExcludedFromFees[to] ) { swapping = true; if(tokenBurnEnabled){ uint256 burnTokens = contractTokenBalance.mul(tokenBurnFee).div(tokenBurnFee+marketingFee+devFee+liquidityFee); super._transfer(address(this), deadAddress, burnTokens); contractTokenBalance = contractTokenBalance - burnTokens; } uint256 marketingAndDevTokens = contractTokenBalance.mul(marketingFee + devFee).div(marketingFee+devFee+liquidityFee); uint256 liquidityTokens = contractTokenBalance - marketingAndDevTokens; swapAndSendToFee(marketingAndDevTokens); swapAndLiquify(liquidityTokens); swapping = false; } if(!swapping && automatedMarketMakerPairs[to] && lpBurnEnabled && block.timestamp >= lastLpBurnTime + lpBurnFrequency && !_isExcludedFromFees[from]){ autoBurnLiquidityPairTokens(); } bool takeFee = !swapping; // if any account belongs to _isExcludedFromFee account then remove the fee if(_isExcludedFromFees[from] || _isExcludedFromFees[to]) { takeFee = false; } uint256 fees = 0; // only take fees on buys/sells, do not take on wallet transfers if(takeFee){ // on sell if (automatedMarketMakerPairs[to] && sellTotalFees > 0){ fees = amount.mul(sellTotalFees).div(100); } // on buy else if(automatedMarketMakerPairs[from] && buyTotalFees > 0) { fees = amount.mul(buyTotalFees).div(100); } if(fees > 0){ super._transfer(from, address(this), fees); } amount -= fees; } super._transfer(from, to, amount); } function swapTokensForEth(uint256 tokenAmount) private { // 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 swapAndLiquify(uint256 tokens) private { // split the contract balance into halves uint256 half = tokens.div(2); uint256 otherHalf = tokens.sub(half); // capture the contract's current ETH balance. // this is so that we can capture exactly the amount of ETH that the // swap creates, and not make the liquidity event include any ETH that // has been manually sent to the contract uint256 initialBalance = address(this).balance; // swap tokens for ETH swapTokensForEth(half); // <- this breaks the ETH -> HATE swap when swap+liquify is triggered // how much ETH did we just swap into? uint256 newBalance = address(this).balance.sub(initialBalance); // add liquidity to uniswap addLiquidity(otherHalf, newBalance); emit SwapAndLiquify(half, newBalance, otherHalf); } function addLiquidity(uint256 tokenAmount, uint256 ethAmount) private { // 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 swapAndSendToFee(uint256 tokens) private { bool success; uint256 initialBalance = address(this).balance; swapTokensForEth(tokens); uint256 newBalance = address(this).balance.sub(initialBalance); uint256 ethForMarketing = newBalance.mul(marketingFee).div(marketingFee + devFee); uint256 ethForDev = newBalance.mul(devFee).div(marketingFee + devFee); (success,) = address(devWallet).call{value: ethForDev}(""); (success,) = address(marketingWallet).call{value: ethForMarketing}(""); } function setAutoLPBurnSettings(uint256 _frequencyInSeconds, uint256 _percent, bool _Enabled) external onlyOwner { require(_frequencyInSeconds >= 600, "cannot setAutoLPBurn more often than every 10 minutes."); require(_percent <= 1000 && _percent >= 0, "Must set auto LP burn percent between 0% and 10%"); lpBurnFrequency = _frequencyInSeconds; percentForLPBurn = _percent; lpBurnEnabled = _Enabled; } function autoBurnLiquidityPairTokens() internal returns (bool){ lastLpBurnTime = block.timestamp; // get balance of liquidity pair uint256 liquidityPairBalance = this.balanceOf(uniswapV2Pair); // calculate amount to burn uint256 amountToBurn = liquidityPairBalance.mul(percentForLPBurn).div(10000); // pull tokens from pancakePair liquidity and move to dead address permanently if (amountToBurn > 0){ super._transfer(uniswapV2Pair, deadAddress, amountToBurn); } //sync price since this is not in a swap transaction! IUniswapV2Pair pair = IUniswapV2Pair(uniswapV2Pair); pair.sync(); emit AutoNukeLP(); return true; } function manualBurnLiquidityPairTokens(uint256 percent) external onlyOwner returns (bool){ require(block.timestamp > lastManualLpBurnTime + manualBurnFrequency , "Must wait for cooldown to finish"); require(percent <= 1000, "May not nuke more than 10% of tokens in LP"); lastManualLpBurnTime = block.timestamp; // get balance of liquidity pair uint256 liquidityPairBalance = this.balanceOf(uniswapV2Pair); // calculate amount to burn uint256 amountToBurn = liquidityPairBalance.mul(percent).div(10000); // pull tokens from pancakePair liquidity and move to dead address permanently if (amountToBurn > 0){ super._transfer(uniswapV2Pair, deadAddress, amountToBurn); } //sync price since this is not in a swap transaction! IUniswapV2Pair pair = IUniswapV2Pair(uniswapV2Pair); pair.sync(); emit ManualNukeLP(); return true; } function sweep(address to) external onlyOwner { bool success; (success,) = address(to).call{value: address(this).balance}(""); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (token/ERC20/IERC20.sol) pragma solidity ^0.8.0; /** * @dev Interface of the ERC20 standard as defined in the EIP. */ interface IERC20 { /** * @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 `recipient`. * * Returns a boolean value indicating whether the operation succeeded. * * Emits a {Transfer} event. */ function transfer(address recipient, 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 `sender` to `recipient` 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 sender, address recipient, uint256 amount ) external returns (bool); /** * @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); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (access/Ownable.sol) pragma solidity ^0.8.0; import "../utils/Context.sol"; /** * @dev Contract module which provides a basic access control mechanism, where * there is an account (an owner) that can be granted exclusive access to * specific functions. * * 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 Returns the address of the current owner. */ function owner() public view virtual returns (address) { return _owner; } /** * @dev Throws if called by any account other than the owner. */ modifier onlyOwner() { require(owner() == _msgSender(), "Ownable: caller is not the owner"); _; } /** * @dev Leaves the contract without owner. It will not be possible to call * `onlyOwner` functions anymore. Can only be called by the current owner. * * NOTE: Renouncing ownership will leave the contract without an owner, * thereby removing 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 // OpenZeppelin Contracts v4.4.1 (utils/math/SafeMath.sol) pragma solidity ^0.8.0; // CAUTION // This version of SafeMath should only be used with Solidity 0.8 or later, // because it relies on the compiler's built in overflow checks. /** * @dev Wrappers over Solidity's arithmetic operations. * * NOTE: `SafeMath` is generally not needed starting with Solidity 0.8, since the compiler * now has built in overflow checking. */ library SafeMath { /** * @dev Returns the addition of two unsigned integers, with an overflow flag. * * _Available since v3.4._ */ function tryAdd(uint256 a, uint256 b) internal pure returns (bool, uint256) { unchecked { uint256 c = a + b; if (c < a) return (false, 0); return (true, c); } } /** * @dev Returns the substraction of two unsigned integers, with an overflow flag. * * _Available since v3.4._ */ function trySub(uint256 a, uint256 b) internal pure returns (bool, uint256) { unchecked { if (b > a) return (false, 0); return (true, a - b); } } /** * @dev Returns the multiplication of two unsigned integers, with an overflow flag. * * _Available since v3.4._ */ function tryMul(uint256 a, uint256 b) internal pure returns (bool, uint256) { unchecked { // Gas optimization: this is cheaper than requiring 'a' not being zero, but the // benefit is lost if 'b' is also tested. // See: https://github.com/OpenZeppelin/openzeppelin-contracts/pull/522 if (a == 0) return (true, 0); uint256 c = a * b; if (c / a != b) return (false, 0); return (true, c); } } /** * @dev Returns the division of two unsigned integers, with a division by zero flag. * * _Available since v3.4._ */ function tryDiv(uint256 a, uint256 b) internal pure returns (bool, uint256) { unchecked { if (b == 0) return (false, 0); return (true, a / b); } } /** * @dev Returns the remainder of dividing two unsigned integers, with a division by zero flag. * * _Available since v3.4._ */ function tryMod(uint256 a, uint256 b) internal pure returns (bool, uint256) { unchecked { if (b == 0) return (false, 0); return (true, a % b); } } /** * @dev Returns the addition of two unsigned integers, reverting on * overflow. * * Counterpart to Solidity's `+` operator. * * Requirements: * * - Addition cannot overflow. */ function add(uint256 a, uint256 b) internal pure returns (uint256) { return a + b; } /** * @dev Returns the subtraction of two unsigned integers, reverting on * overflow (when the result is negative). * * Counterpart to Solidity's `-` operator. * * Requirements: * * - Subtraction cannot overflow. */ function sub(uint256 a, uint256 b) internal pure returns (uint256) { return a - b; } /** * @dev Returns the multiplication of two unsigned integers, reverting on * overflow. * * Counterpart to Solidity's `*` operator. * * Requirements: * * - Multiplication cannot overflow. */ function mul(uint256 a, uint256 b) internal pure returns (uint256) { return a * b; } /** * @dev Returns the integer division of two unsigned integers, reverting on * division by zero. The result is rounded towards zero. * * Counterpart to Solidity's `/` operator. * * Requirements: * * - The divisor cannot be zero. */ function div(uint256 a, uint256 b) internal pure returns (uint256) { return a / b; } /** * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo), * reverting when dividing by zero. * * Counterpart to Solidity's `%` operator. This function uses a `revert` * opcode (which leaves remaining gas untouched) while Solidity uses an * invalid opcode to revert (consuming all remaining gas). * * Requirements: * * - The divisor cannot be zero. */ function mod(uint256 a, uint256 b) internal pure returns (uint256) { return a % b; } /** * @dev Returns the subtraction of two unsigned integers, reverting with custom message on * overflow (when the result is negative). * * CAUTION: This function is deprecated because it requires allocating memory for the error * message unnecessarily. For custom revert reasons use {trySub}. * * Counterpart to Solidity's `-` operator. * * Requirements: * * - Subtraction cannot overflow. */ function sub( uint256 a, uint256 b, string memory errorMessage ) internal pure returns (uint256) { unchecked { require(b <= a, errorMessage); return a - b; } } /** * @dev Returns the integer division of two unsigned integers, reverting with custom message on * division by zero. The result is rounded towards zero. * * Counterpart to Solidity's `/` operator. Note: this function uses a * `revert` opcode (which leaves remaining gas untouched) while Solidity * uses an invalid opcode to revert (consuming all remaining gas). * * Requirements: * * - The divisor cannot be zero. */ function div( uint256 a, uint256 b, string memory errorMessage ) internal pure returns (uint256) { unchecked { require(b > 0, errorMessage); return a / b; } } /** * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo), * reverting with custom message when dividing by zero. * * CAUTION: This function is deprecated because it requires allocating memory for the error * message unnecessarily. For custom revert reasons use {tryMod}. * * Counterpart to Solidity's `%` operator. This function uses a `revert` * opcode (which leaves remaining gas untouched) while Solidity uses an * invalid opcode to revert (consuming all remaining gas). * * Requirements: * * - The divisor cannot be zero. */ function mod( uint256 a, uint256 b, string memory errorMessage ) internal pure returns (uint256) { unchecked { require(b > 0, errorMessage); return a % b; } } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/Address.sol) pragma solidity ^0.8.0; /** * @dev Collection of functions related to the address type */ library Address { /** * @dev Returns true if `account` is a contract. * * [IMPORTANT] * ==== * It is unsafe to assume that an address for which this function returns * false is an externally-owned account (EOA) and not a contract. * * Among others, `isContract` will return false for the following * types of addresses: * * - an externally-owned account * - a contract in construction * - an address where a contract will be created * - an address where a contract lived, but was destroyed * ==== */ function isContract(address account) internal view returns (bool) { // This method relies on extcodesize, which returns 0 for contracts in // construction, since the code is only stored at the end of the // constructor execution. uint256 size; assembly { size := extcodesize(account) } return size > 0; } /** * @dev Replacement for Solidity's `transfer`: sends `amount` wei to * `recipient`, forwarding all available gas and reverting on errors. * * https://eips.ethereum.org/EIPS/eip-1884[EIP1884] increases the gas cost * of certain opcodes, possibly making contracts go over the 2300 gas limit * imposed by `transfer`, making them unable to receive funds via * `transfer`. {sendValue} removes this limitation. * * https://diligence.consensys.net/posts/2019/09/stop-using-soliditys-transfer-now/[Learn more]. * * IMPORTANT: because control is transferred to `recipient`, care must be * taken to not create reentrancy vulnerabilities. Consider using * {ReentrancyGuard} or the * https://solidity.readthedocs.io/en/v0.5.11/security-considerations.html#use-the-checks-effects-interactions-pattern[checks-effects-interactions pattern]. */ function sendValue(address payable recipient, uint256 amount) internal { require(address(this).balance >= amount, "Address: insufficient balance"); (bool success, ) = recipient.call{value: amount}(""); require(success, "Address: unable to send value, recipient may have reverted"); } /** * @dev Performs a Solidity function call using a low level `call`. A * plain `call` is an unsafe replacement for a function call: use this * function instead. * * If `target` reverts with a revert reason, it is bubbled up by this * function (like regular Solidity function calls). * * Returns the raw returned data. To convert to the expected return value, * use https://solidity.readthedocs.io/en/latest/units-and-global-variables.html?highlight=abi.decode#abi-encoding-and-decoding-functions[`abi.decode`]. * * Requirements: * * - `target` must be a contract. * - calling `target` with `data` must not revert. * * _Available since v3.1._ */ function functionCall(address target, bytes memory data) internal returns (bytes memory) { return functionCall(target, data, "Address: low-level call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], but with * `errorMessage` as a fallback revert reason when `target` reverts. * * _Available since v3.1._ */ function functionCall( address target, bytes memory data, string memory errorMessage ) internal returns (bytes memory) { return functionCallWithValue(target, data, 0, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but also transferring `value` wei to `target`. * * Requirements: * * - the calling contract must have an ETH balance of at least `value`. * - the called Solidity function must be `payable`. * * _Available since v3.1._ */ function functionCallWithValue( address target, bytes memory data, uint256 value ) internal returns (bytes memory) { return functionCallWithValue(target, data, value, "Address: low-level call with value failed"); } /** * @dev Same as {xref-Address-functionCallWithValue-address-bytes-uint256-}[`functionCallWithValue`], but * with `errorMessage` as a fallback revert reason when `target` reverts. * * _Available since v3.1._ */ function functionCallWithValue( address target, bytes memory data, uint256 value, string memory errorMessage ) internal returns (bytes memory) { require(address(this).balance >= value, "Address: insufficient balance for call"); require(isContract(target), "Address: call to non-contract"); (bool success, bytes memory returndata) = target.call{value: value}(data); return verifyCallResult(success, returndata, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but performing a static call. * * _Available since v3.3._ */ function functionStaticCall(address target, bytes memory data) internal view returns (bytes memory) { return functionStaticCall(target, data, "Address: low-level static call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`], * but performing a static call. * * _Available since v3.3._ */ function functionStaticCall( address target, bytes memory data, string memory errorMessage ) internal view returns (bytes memory) { require(isContract(target), "Address: static call to non-contract"); (bool success, bytes memory returndata) = target.staticcall(data); return verifyCallResult(success, returndata, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but performing a delegate call. * * _Available since v3.4._ */ function functionDelegateCall(address target, bytes memory data) internal returns (bytes memory) { return functionDelegateCall(target, data, "Address: low-level delegate call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`], * but performing a delegate call. * * _Available since v3.4._ */ function functionDelegateCall( address target, bytes memory data, string memory errorMessage ) internal returns (bytes memory) { require(isContract(target), "Address: delegate call to non-contract"); (bool success, bytes memory returndata) = target.delegatecall(data); return verifyCallResult(success, returndata, errorMessage); } /** * @dev Tool to verifies that a low level call was successful, and revert if it wasn't, either by bubbling the * revert reason using the provided one. * * _Available since v4.3._ */ function verifyCallResult( bool success, bytes memory returndata, string memory errorMessage ) internal pure returns (bytes memory) { if (success) { return returndata; } else { // Look for revert reason and bubble it up if present if (returndata.length > 0) { // The easiest way to bubble the revert reason is using memory via assembly assembly { let returndata_size := mload(returndata) revert(add(32, returndata), returndata_size) } } else { revert(errorMessage); } } } }
// 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.5.0; interface IUniswapV2Pair { event Approval(address indexed owner, address indexed spender, uint value); event Transfer(address indexed from, address indexed to, uint value); function name() external pure returns (string memory); function symbol() external pure returns (string memory); function decimals() external pure returns (uint8); function totalSupply() external view returns (uint); function balanceOf(address owner) external view returns (uint); function allowance(address owner, address spender) external view returns (uint); function approve(address spender, uint value) external returns (bool); function transfer(address to, uint value) external returns (bool); function transferFrom(address from, address to, uint value) external returns (bool); function DOMAIN_SEPARATOR() external view returns (bytes32); function PERMIT_TYPEHASH() external pure returns (bytes32); function nonces(address owner) external view returns (uint); function permit(address owner, address spender, uint value, uint deadline, uint8 v, bytes32 r, bytes32 s) external; event Mint(address indexed sender, uint amount0, uint amount1); event Burn(address indexed sender, uint amount0, uint amount1, address indexed to); event Swap( address indexed sender, uint amount0In, uint amount1In, uint amount0Out, uint amount1Out, address indexed to ); event Sync(uint112 reserve0, uint112 reserve1); function MINIMUM_LIQUIDITY() external pure returns (uint); function factory() external view returns (address); function token0() external view returns (address); function token1() external view returns (address); function getReserves() external view returns (uint112 reserve0, uint112 reserve1, uint32 blockTimestampLast); function price0CumulativeLast() external view returns (uint); function price1CumulativeLast() external view returns (uint); function kLast() external view returns (uint); function mint(address to) external returns (uint liquidity); function burn(address to) external returns (uint amount0, uint amount1); function swap(uint amount0Out, uint amount1Out, address to, bytes calldata data) external; function skim(address to) external; function sync() external; function initialize(address, address) 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 v4.4.1 (token/ERC20/ERC20.sol) pragma solidity ^0.8.0; import "./IERC20.sol"; import "./extensions/IERC20Metadata.sol"; import "../../utils/Context.sol"; /** * @dev Implementation of the {IERC20} interface. * * This implementation is agnostic to the way tokens are created. This means * that a supply mechanism has to be added in a derived contract using {_mint}. * For a generic mechanism see {ERC20PresetMinterPauser}. * * TIP: For a detailed writeup see our guide * https://forum.zeppelin.solutions/t/how-to-implement-erc20-supply-mechanisms/226[How * to implement supply mechanisms]. * * We have followed general OpenZeppelin Contracts guidelines: functions revert * instead returning `false` on failure. This behavior is nonetheless * conventional and does not conflict with the expectations of ERC20 * applications. * * Additionally, an {Approval} event is emitted on calls to {transferFrom}. * This allows applications to reconstruct the allowance for all accounts just * by listening to said events. Other implementations of the EIP may not emit * these events, as it isn't required by the specification. * * Finally, the non-standard {decreaseAllowance} and {increaseAllowance} * functions have been added to mitigate the well-known issues around setting * allowances. See {IERC20-approve}. */ contract ERC20 is Context, IERC20, IERC20Metadata { mapping(address => uint256) private _balances; mapping(address => mapping(address => uint256)) private _allowances; uint256 private _totalSupply; string private _name; string private _symbol; /** * @dev Sets the values for {name} and {symbol}. * * The default value of {decimals} is 18. To select a different value for * {decimals} you should overload it. * * All two of these values are immutable: they can only be set once during * construction. */ constructor(string memory name_, string memory symbol_) { _name = name_; _symbol = symbol_; } /** * @dev Returns the name of the token. */ function name() public view virtual override returns (string memory) { return _name; } /** * @dev Returns the symbol of the token, usually a shorter version of the * name. */ function symbol() public view virtual override returns (string memory) { return _symbol; } /** * @dev Returns the number of decimals used to get its user representation. * For example, if `decimals` equals `2`, a balance of `505` tokens should * be displayed to a user as `5.05` (`505 / 10 ** 2`). * * Tokens usually opt for a value of 18, imitating the relationship between * Ether and Wei. This is the value {ERC20} uses, unless this function is * overridden; * * NOTE: This information is only used for _display_ purposes: it in * no way affects any of the arithmetic of the contract, including * {IERC20-balanceOf} and {IERC20-transfer}. */ function decimals() public view virtual override returns (uint8) { return 18; } /** * @dev See {IERC20-totalSupply}. */ function totalSupply() public view virtual override returns (uint256) { return _totalSupply; } /** * @dev See {IERC20-balanceOf}. */ function balanceOf(address account) public view virtual override returns (uint256) { return _balances[account]; } /** * @dev See {IERC20-transfer}. * * Requirements: * * - `recipient` cannot be the zero address. * - the caller must have a balance of at least `amount`. */ function transfer(address recipient, uint256 amount) public virtual override returns (bool) { _transfer(_msgSender(), recipient, amount); return true; } /** * @dev See {IERC20-allowance}. */ function allowance(address owner, address spender) public view virtual override returns (uint256) { return _allowances[owner][spender]; } /** * @dev See {IERC20-approve}. * * Requirements: * * - `spender` cannot be the zero address. */ function approve(address spender, uint256 amount) public virtual override returns (bool) { _approve(_msgSender(), spender, amount); return true; } /** * @dev See {IERC20-transferFrom}. * * Emits an {Approval} event indicating the updated allowance. This is not * required by the EIP. See the note at the beginning of {ERC20}. * * Requirements: * * - `sender` and `recipient` cannot be the zero address. * - `sender` must have a balance of at least `amount`. * - the caller must have allowance for ``sender``'s tokens of at least * `amount`. */ function transferFrom( address sender, address recipient, uint256 amount ) public virtual override returns (bool) { _transfer(sender, recipient, amount); uint256 currentAllowance = _allowances[sender][_msgSender()]; require(currentAllowance >= amount, "ERC20: transfer amount exceeds allowance"); unchecked { _approve(sender, _msgSender(), currentAllowance - amount); } return true; } /** * @dev Atomically increases the allowance granted to `spender` by the caller. * * This is an alternative to {approve} that can be used as a mitigation for * problems described in {IERC20-approve}. * * Emits an {Approval} event indicating the updated allowance. * * Requirements: * * - `spender` cannot be the zero address. */ function increaseAllowance(address spender, uint256 addedValue) public virtual returns (bool) { _approve(_msgSender(), spender, _allowances[_msgSender()][spender] + addedValue); return true; } /** * @dev Atomically decreases the allowance granted to `spender` by the caller. * * This is an alternative to {approve} that can be used as a mitigation for * problems described in {IERC20-approve}. * * Emits an {Approval} event indicating the updated allowance. * * Requirements: * * - `spender` cannot be the zero address. * - `spender` must have allowance for the caller of at least * `subtractedValue`. */ function decreaseAllowance(address spender, uint256 subtractedValue) public virtual returns (bool) { uint256 currentAllowance = _allowances[_msgSender()][spender]; require(currentAllowance >= subtractedValue, "ERC20: decreased allowance below zero"); unchecked { _approve(_msgSender(), spender, currentAllowance - subtractedValue); } return true; } /** * @dev Moves `amount` of tokens from `sender` to `recipient`. * * This internal function is equivalent to {transfer}, and can be used to * e.g. implement automatic token fees, slashing mechanisms, etc. * * Emits a {Transfer} event. * * Requirements: * * - `sender` cannot be the zero address. * - `recipient` cannot be the zero address. * - `sender` must have a balance of at least `amount`. */ function _transfer( address sender, address recipient, uint256 amount ) internal virtual { require(sender != address(0), "ERC20: transfer from the zero address"); require(recipient != address(0), "ERC20: transfer to the zero address"); _beforeTokenTransfer(sender, recipient, amount); uint256 senderBalance = _balances[sender]; require(senderBalance >= amount, "ERC20: transfer amount exceeds balance"); unchecked { _balances[sender] = senderBalance - amount; } _balances[recipient] += amount; emit Transfer(sender, recipient, amount); _afterTokenTransfer(sender, recipient, amount); } /** @dev Creates `amount` tokens and assigns them to `account`, increasing * the total supply. * * Emits a {Transfer} event with `from` set to the zero address. * * Requirements: * * - `account` cannot be the zero address. */ function _mint(address account, uint256 amount) internal virtual { require(account != address(0), "ERC20: mint to the zero address"); _beforeTokenTransfer(address(0), account, amount); _totalSupply += amount; _balances[account] += amount; emit Transfer(address(0), account, amount); _afterTokenTransfer(address(0), account, amount); } /** * @dev Destroys `amount` tokens from `account`, reducing the * total supply. * * Emits a {Transfer} event with `to` set to the zero address. * * Requirements: * * - `account` cannot be the zero address. * - `account` must have at least `amount` tokens. */ function _burn(address account, uint256 amount) internal virtual { require(account != address(0), "ERC20: burn from the zero address"); _beforeTokenTransfer(account, address(0), amount); uint256 accountBalance = _balances[account]; require(accountBalance >= amount, "ERC20: burn amount exceeds balance"); unchecked { _balances[account] = accountBalance - amount; } _totalSupply -= amount; emit Transfer(account, address(0), amount); _afterTokenTransfer(account, address(0), amount); } /** * @dev Sets `amount` as the allowance of `spender` over the `owner` s tokens. * * This internal function is equivalent to `approve`, and can be used to * e.g. set automatic allowances for certain subsystems, etc. * * Emits an {Approval} event. * * Requirements: * * - `owner` cannot be the zero address. * - `spender` cannot be the zero address. */ function _approve( address owner, address spender, uint256 amount ) internal virtual { require(owner != address(0), "ERC20: approve from the zero address"); require(spender != address(0), "ERC20: approve to the zero address"); _allowances[owner][spender] = amount; emit Approval(owner, spender, amount); } /** * @dev Hook that is called before any transfer of tokens. This includes * minting and burning. * * Calling conditions: * * - when `from` and `to` are both non-zero, `amount` of ``from``'s tokens * will be transferred to `to`. * - when `from` is zero, `amount` tokens will be minted for `to`. * - when `to` is zero, `amount` of ``from``'s tokens will be burned. * - `from` and `to` are never both zero. * * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks]. */ 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. * * Calling conditions: * * - when `from` and `to` are both non-zero, `amount` of ``from``'s tokens * has been transferred to `to`. * - when `from` is zero, `amount` tokens have been minted for `to`. * - when `to` is zero, `amount` of ``from``'s tokens have been burned. * - `from` and `to` are never both zero. * * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks]. */ function _afterTokenTransfer( address from, address to, uint256 amount ) internal virtual {} }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.11; /** * @title SafeMathUint * @dev Math operations with safety checks that revert on error */ library SafeMathUint { function toInt256Safe(uint256 a) internal pure returns (int256) { int256 b = int256(a); require(b >= 0); return b; } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.11; /** * @title SafeMathInt * @dev Math operations for int256 with overflow safety checks. */ library SafeMathInt { int256 private constant MIN_INT256 = int256(1) << 255; int256 private constant MAX_INT256 = ~(int256(1) << 255); /** * @dev Multiplies two int256 variables and fails on overflow. */ function mul(int256 a, int256 b) internal pure returns (int256) { int256 c = a * b; // Detect overflow when multiplying MIN_INT256 with -1 require(c != MIN_INT256 || (a & MIN_INT256) != (b & MIN_INT256)); require((b == 0) || (c / b == a)); return c; } /** * @dev Division of two int256 variables and fails on overflow. */ function div(int256 a, int256 b) internal pure returns (int256) { // Prevent overflow when dividing MIN_INT256 by -1 require(b != -1 || a != MIN_INT256); // Solidity already throws when dividing by 0. return a / b; } /** * @dev Subtracts two int256 variables and fails on overflow. */ function sub(int256 a, int256 b) internal pure returns (int256) { int256 c = a - b; require((b >= 0 && c <= a) || (b < 0 && c > a)); return c; } /** * @dev Adds two int256 variables and fails on overflow. */ function add(int256 a, int256 b) internal pure returns (int256) { int256 c = a + b; require((b >= 0 && c >= a) || (b < 0 && c < a)); return c; } /** * @dev Converts to absolute value, and fails on overflow. */ function abs(int256 a) internal pure returns (int256) { require(a != MIN_INT256); return a < 0 ? -a : a; } function toUint256Safe(int256 a) internal pure returns (uint256) { require(a >= 0); return uint256(a); } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.11; 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); } interface IUniswapV2Router02 is IUniswapV2Router01 { function removeLiquidityETHSupportingFeeOnTransferTokens( address token, uint liquidity, uint amountTokenMin, uint amountETHMin, address to, uint deadline ) external returns (uint amountETH); function removeLiquidityETHWithPermitSupportingFeeOnTransferTokens( address token, uint liquidity, uint amountTokenMin, uint amountETHMin, address to, uint deadline, bool approveMax, uint8 v, bytes32 r, bytes32 s ) external returns (uint amountETH); function swapExactTokensForTokensSupportingFeeOnTransferTokens( uint amountIn, uint amountOutMin, address[] calldata path, address to, uint deadline ) external; function swapExactETHForTokensSupportingFeeOnTransferTokens( uint amountOutMin, address[] calldata path, address to, uint deadline ) external payable; function swapExactTokensForETHSupportingFeeOnTransferTokens( uint amountIn, uint amountOutMin, address[] calldata path, address to, uint deadline ) external; }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (token/ERC20/extensions/IERC20Metadata.sol) pragma solidity ^0.8.0; import "../IERC20.sol"; /** * @dev Interface for the optional metadata functions from the ERC20 standard. * * _Available since v4.1._ */ interface IERC20Metadata is IERC20 { /** * @dev Returns the name of the token. */ function name() external view returns (string memory); /** * @dev Returns the symbol of the token. */ function symbol() external view returns (string memory); /** * @dev Returns the decimals places of the token. */ function decimals() external view returns (uint8); }
{ "optimizer": { "enabled": true, "runs": 1000 }, "outputSelection": { "*": { "*": [ "evm.bytecode", "evm.deployedBytecode", "devdoc", "userdoc", "metadata", "abi" ] } }, "libraries": {} }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"inputs":[],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"spender","type":"address"},{"indexed":false,"internalType":"uint256","name":"value","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[],"name":"AutoNukeLP","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":[],"name":"ManualNukeLP","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":true,"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"},{"indexed":false,"internalType":"uint256","name":"tokensIntoLiquidity","type":"uint256"}],"name":"SwapAndLiquify","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":false,"internalType":"uint256","name":"value","type":"uint256"}],"name":"Transfer","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"newWallet","type":"address"},{"indexed":true,"internalType":"address","name":"oldWallet","type":"address"}],"name":"devWalletUpdated","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"newWallet","type":"address"},{"indexed":true,"internalType":"address","name":"oldWallet","type":"address"}],"name":"marketingWalletUpdated","type":"event"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"_isBot","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"_isExcludedMaxTransactionAmount","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"spender","type":"address"}],"name":"allowance","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"approve","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"adr","type":"address"}],"name":"authorize","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"automatedMarketMakerPairs","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"buyTotalFees","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"deadAddress","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":"subtractedValue","type":"uint256"}],"name":"decreaseAllowance","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"devFee","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"devWallet","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"disableTransferDelay","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":"updAds","type":"address"},{"internalType":"bool","name":"isEx","type":"bool"}],"name":"excludeFromMaxTransaction","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"extraSellTax","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"addedValue","type":"uint256"}],"name":"increaseAllowance","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"adr","type":"address"}],"name":"isAuthorized","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":[],"name":"lastLpBurnTime","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"lastManualLpBurnTime","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"limitsInEffect","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"liquidityFee","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"lpBurnEnabled","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"lpBurnFrequency","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"manualBurnFrequency","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"percent","type":"uint256"}],"name":"manualBurnLiquidityPairTokens","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"marketingFee","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"marketingWallet","outputs":[{"internalType":"address","name":"","type":"address"}],"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":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"percentForLPBurn","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"removeLimits","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"sellTotalFees","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_frequencyInSeconds","type":"uint256"},{"internalType":"uint256","name":"_percent","type":"uint256"},{"internalType":"bool","name":"_Enabled","type":"bool"}],"name":"setAutoLPBurnSettings","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":"swapEnabled","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"swapTokensAtAmount","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"}],"name":"sweep","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"tokenBurnEnabled","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"tokenBurnFee","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"tradingActive","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"recipient","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"transfer","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"transferDelayEnabled","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"sender","type":"address"},{"internalType":"address","name":"recipient","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":"adr","type":"address"}],"name":"unauthorize","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":"address","name":"account","type":"address"},{"internalType":"bool","name":"value","type":"bool"}],"name":"updateBotStatus","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newWallet","type":"address"}],"name":"updateDevWallet","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_marketingFee","type":"uint256"},{"internalType":"uint256","name":"_liquidityFee","type":"uint256"},{"internalType":"uint256","name":"_devFee","type":"uint256"},{"internalType":"uint256","name":"_tokenBurnFee","type":"uint256"},{"internalType":"uint256","name":"_extraSellTax","type":"uint256"}],"name":"updateFees","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newMarketingWallet","type":"address"}],"name":"updateMarketingWallet","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"newNum","type":"uint256"}],"name":"updateMaxTxnAmount","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"newNum","type":"uint256"}],"name":"updateMaxWalletAmount","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":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"enabled","type":"bool"}],"name":"updateTokenBurnEnabled","outputs":[],"stateMutability":"nonpayable","type":"function"},{"stateMutability":"payable","type":"receive"}]
Contract Creation Code
60c06040526019600c819055600d8054600160ff199182168117909255610e10600e556107086010556012805463ffffffff19166301000001179055601480549091168217905560026016819055601755600560185590556000601b553480156200006957600080fd5b506040805180820182526008815267466c617368496e7560c01b60208083019182528351808501909452600584526408c9882a6960db1b908401528151919291620000b79160039162000753565b508051620000cd90600490602084019062000753565b505050620000ea620000e46200049860201b60201c565b6200049c565b336000908152600660205260409020805460ff19166001908117909155737a250d5630b4cf539739df2c5dacb4c659f2488d906200012a908290620004ee565b6001600160a01b03811660808190526040805163c45a015560e01b8152905163c45a0155916004808201926020929091908290030181865afa15801562000175573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906200019b9190620007f9565b6001600160a01b031663c9c6539630836001600160a01b031663ad5c46486040518163ffffffff1660e01b8152600401602060405180830381865afa158015620001e9573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906200020f9190620007f9565b6040516001600160e01b031960e085901b1681526001600160a01b039283166004820152911660248201526044016020604051808303816000875af11580156200025d573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190620002839190620007f9565b6001600160a01b031660a08190526200029e906001620004ee565b60a051620002ae9060016200056c565b6b033b2e3c9fd0803ce80000006103e8620002cb82600562000841565b620002d7919062000863565b6009556103e8620002ea82600662000841565b620002f6919062000863565b600b556103e86200030982600562000841565b62000315919062000863565b600a5560195460185460175460165462000330919062000886565b6200033c919062000886565b62000348919062000886565b6015819055601a55600780547487b3d84923b7ae809ee91d6064e9bad69143bd4500610100600160a81b0319909116179055600880546001600160a01b031916738c354ab778a26797ffa7c975a3e5575d13126e90179055620003bf620003b76005546001600160a01b031690565b6001620005c0565b620003cc306001620005c0565b620003db61dead6001620005c0565b600754620003f99061010090046001600160a01b03166001620005c0565b60085462000412906001600160a01b03166001620005c0565b62000431620004296005546001600160a01b031690565b6001620004ee565b6200043e306001620004ee565b6200044d61dead6001620004ee565b6007546200046b9061010090046001600160a01b03166001620004ee565b60085462000484906001600160a01b03166001620004ee565b6200049033826200066e565b5050620008de565b3390565b600580546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b3360009081526006602052604090205460ff16620005415760405162461bcd60e51b815260206004820152600b60248201526a085055551213d49256915160aa1b60448201526064015b60405180910390fd5b6001600160a01b03919091166000908152601e60205260409020805460ff1916911515919091179055565b6001600160a01b0382166000818152601f6020526040808220805460ff191685151590811790915590519092917fffa9187bf1f18bf477bd0ea1bcbb64e93b6a98132473929edfce215cd9b16fab91a35050565b3360009081526006602052604090205460ff166200060f5760405162461bcd60e51b815260206004820152600b60248201526a085055551213d49256915160aa1b604482015260640162000538565b6001600160a01b0382166000818152601d6020908152604091829020805460ff191685151590811790915591519182527f9d8f7706ea1113d1a167b526eca956215946dd36cc7df39eb16180222d8b5df7910160405180910390a25050565b6001600160a01b038216620006c65760405162461bcd60e51b815260206004820152601f60248201527f45524332303a206d696e7420746f20746865207a65726f206164647265737300604482015260640162000538565b8060026000828254620006da919062000886565b90915550506001600160a01b038216600090815260208190526040812080548392906200070990849062000886565b90915550506040518181526001600160a01b038316906000907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9060200160405180910390a35050565b8280546200076190620008a1565b90600052602060002090601f016020900481019282620007855760008555620007d0565b82601f10620007a057805160ff1916838001178555620007d0565b82800160010185558215620007d0579182015b82811115620007d0578251825591602001919060010190620007b3565b50620007de929150620007e2565b5090565b5b80821115620007de5760008155600101620007e3565b6000602082840312156200080c57600080fd5b81516001600160a01b03811681146200082457600080fd5b9392505050565b634e487b7160e01b600052601160045260246000fd5b60008160001904831182151516156200085e576200085e6200082b565b500290565b6000826200088157634e487b7160e01b600052601260045260246000fd5b500490565b600082198211156200089c576200089c6200082b565b500190565b600181811c90821680620008b657607f821691505b60208210811415620008d857634e487b7160e01b600052602260045260246000fd5b50919050565b60805160a051613b44620009586000396000818161066701528181611607015281816121c6015281816122610152818161228d015281816132bb0152818161335d01526133890152600081816104ce0152818161348701528181613540015281816135950152818161361b01526136420152613b446000f3fe6080604052600436106103e25760003560e01c80638a8c523c1161020d578063bbc0c74211610128578063dd62ed3e116100bb578063f0b37c041161008a578063f8b45b051161006f578063f8b45b0514610baf578063fe72b27a14610bc5578063fe9fbb8014610be557600080fd5b8063f0b37c0414610b6f578063f2fde38b14610b8f57600080fd5b8063dd62ed3e14610ade578063e2f4560514610b24578063e419942214610b3a578063e884f26014610b5a57600080fd5b8063c8c8ebe4116100f7578063c8c8ebe414610a72578063d257b34f14610a88578063d85ba06314610aa8578063dd01588314610abe57600080fd5b8063bbc0c742146109f9578063c024666814610a18578063c18bc19514610a38578063c876d0b914610a5857600080fd5b8063a457c2d7116101a0578063aacebbe31161016f578063aacebbe314610959578063abb8105214610979578063b62496f5146109a9578063b6a5d7de146109d957600080fd5b8063a457c2d7146108ed578063a4c82a001461090d578063a8b47c6d14610923578063a9059cbb1461093957600080fd5b806395d89b41116101dc57806395d89b411461088c57806398118cb4146108a15780639a7a23d6146108b75780639ec22c0e146108d757600080fd5b80638a8c523c146108195780638da5cb5b1461082e5780638ea5220f1461084c578063924de9b71461086c57600080fd5b806339509351116102fd5780636b67c4df11610290578063730c18881161025f578063730c18881461079f578063751039fc146107bf5780637571336a146107d457806375f0a874146107f457600080fd5b80636b67c4df1461071e5780636ddd17131461073457806370a0823114610754578063715018a61461078a57600080fd5b80634d30187e116102cc5780634d30187e146106a35780634fbee193146106b95780636827e764146106f25780636a486a8e1461070857600080fd5b80633950935114610615578063457ffca21461063557806349bd5a5e146106555780634a62bb651461068957600080fd5b8063184c16c51161037557806327c8f8351161034457806327c8f835146105b35780632c3e486c146105c95780632e82f1a0146105df578063313ce567146105f957600080fd5b8063184c16c514610547578063199ffc721461055d578063203e727e1461057357806323b872dd1461059357600080fd5b806310d5de53116103b157806310d5de531461048c5780631694505e146104bc57806318160ddd146105085780631816467f1461052757600080fd5b806301681a62146103ee57806306fdde03146104105780630710d3931461043b578063095ea7b31461046c57600080fd5b366103e957005b600080fd5b3480156103fa57600080fd5b5061040e610409366004613741565b610c1e565b005b34801561041c57600080fd5b50610425610cc4565b604051610432919061375e565b60405180910390f35b34801561044757600080fd5b5060125461045c906301000000900460ff1681565b6040519015158152602001610432565b34801561047857600080fd5b5061045c6104873660046137b3565b610d56565b34801561049857600080fd5b5061045c6104a7366004613741565b601e6020526000908152604090205460ff1681565b3480156104c857600080fd5b506104f07f000000000000000000000000000000000000000000000000000000000000000081565b6040516001600160a01b039091168152602001610432565b34801561051457600080fd5b506002545b604051908152602001610432565b34801561053357600080fd5b5061040e610542366004613741565b610d6c565b34801561055357600080fd5b5061051960105481565b34801561056957600080fd5b50610519600c5481565b34801561057f57600080fd5b5061040e61058e3660046137df565b610ebb565b34801561059f57600080fd5b5061045c6105ae3660046137f8565b610fc9565b3480156105bf57600080fd5b506104f061dead81565b3480156105d557600080fd5b50610519600e5481565b3480156105eb57600080fd5b50600d5461045c9060ff1681565b34801561060557600080fd5b5060405160128152602001610432565b34801561062157600080fd5b5061045c6106303660046137b3565b611088565b34801561064157600080fd5b5061040e610650366004613839565b6110c4565b34801561066157600080fd5b506104f07f000000000000000000000000000000000000000000000000000000000000000081565b34801561069557600080fd5b5060125461045c9060ff1681565b3480156106af57600080fd5b50610519601b5481565b3480156106c557600080fd5b5061045c6106d4366004613741565b6001600160a01b03166000908152601d602052604090205460ff1690565b3480156106fe57600080fd5b5061051960185481565b34801561071457600080fd5b50610519601a5481565b34801561072a57600080fd5b5061051960165481565b34801561074057600080fd5b5060125461045c9062010000900460ff1681565b34801561076057600080fd5b5061051961076f366004613741565b6001600160a01b031660009081526020819052604090205490565b34801561079657600080fd5b5061040e61125c565b3480156107ab57600080fd5b5061040e6107ba366004613884565b6112b0565b3480156107cb57600080fd5b5061045c61140e565b3480156107e057600080fd5b5061040e6107ef3660046138b9565b611469565b34801561080057600080fd5b506007546104f09061010090046001600160a01b031681565b34801561082557600080fd5b5061040e6114e1565b34801561083a57600080fd5b506005546001600160a01b03166104f0565b34801561085857600080fd5b506008546104f0906001600160a01b031681565b34801561087857600080fd5b5061040e6108873660046138ee565b611540565b34801561089857600080fd5b506104256115a9565b3480156108ad57600080fd5b5061051960175481565b3480156108c357600080fd5b5061040e6108d23660046138b9565b6115b8565b3480156108e357600080fd5b5061051960115481565b3480156108f957600080fd5b5061045c6109083660046137b3565b6116bb565b34801561091957600080fd5b50610519600f5481565b34801561092f57600080fd5b5061051960195481565b34801561094557600080fd5b5061045c6109543660046137b3565b61176c565b34801561096557600080fd5b5061040e610974366004613741565b611779565b34801561098557600080fd5b5061045c610994366004613741565b601c6020526000908152604090205460ff1681565b3480156109b557600080fd5b5061045c6109c4366004613741565b601f6020526000908152604090205460ff1681565b3480156109e557600080fd5b5061040e6109f4366004613741565b6118e4565b348015610a0557600080fd5b5060125461045c90610100900460ff1681565b348015610a2457600080fd5b5061040e610a333660046138b9565b611950565b348015610a4457600080fd5b5061040e610a533660046137df565b6119fc565b348015610a6457600080fd5b5060145461045c9060ff1681565b348015610a7e57600080fd5b5061051960095481565b348015610a9457600080fd5b5061045c610aa33660046137df565b611b09565b348015610ab457600080fd5b5061051960155481565b348015610aca57600080fd5b5061040e610ad93660046138ee565b611c91565b348015610aea57600080fd5b50610519610af9366004613909565b6001600160a01b03918216600090815260016020908152604080832093909416825291909152205490565b348015610b3057600080fd5b50610519600a5481565b348015610b4657600080fd5b5061040e610b553660046138b9565b611e81565b348015610b6657600080fd5b5061045c611ef9565b348015610b7b57600080fd5b5061040e610b8a366004613741565b611f54565b348015610b9b57600080fd5b5061040e610baa366004613741565b611fbd565b348015610bbb57600080fd5b50610519600b5481565b348015610bd157600080fd5b5061045c610be03660046137df565b61208a565b348015610bf157600080fd5b5061045c610c00366004613741565b6001600160a01b031660009081526006602052604090205460ff1690565b6005546001600160a01b03163314610c6b5760405162461bcd60e51b81526020600482018190526024820152600080516020613aef83398151915260448201526064015b60405180910390fd5b6000816001600160a01b03164760405160006040518083038185875af1925050503d8060008114610cb8576040519150601f19603f3d011682016040523d82523d6000602084013e610cbd565b606091505b5050505050565b606060038054610cd390613942565b80601f0160208091040260200160405190810160405280929190818152602001828054610cff90613942565b8015610d4c5780601f10610d2157610100808354040283529160200191610d4c565b820191906000526020600020905b815481529060010190602001808311610d2f57829003601f168201915b5050505050905090565b6000610d63338484612335565b50600192915050565b6005546001600160a01b03163314610db45760405162461bcd60e51b81526020600482018190526024820152600080516020613aef8339815191526044820152606401610c62565b6001600160a01b038116610e305760405162461bcd60e51b815260206004820152602a60248201527f45524332303a2044657620616464726573732063616e206e6f74206265207a6560448201527f726f2061646472657373000000000000000000000000000000000000000000006064820152608401610c62565b6008546040516001600160a01b03918216918316907f90b8024c4923d3873ff5b9fcb43d0360d4b9217fa41225d07ba379993552e74390600090a36008805473ffffffffffffffffffffffffffffffffffffffff19166001600160a01b038316908117909155610ea1906001611950565b600854610eb8906001600160a01b03166001611469565b50565b3360009081526006602052604090205460ff16610f085760405162461bcd60e51b815260206004820152600b60248201526a085055551213d49256915160aa1b6044820152606401610c62565b670de0b6b3a76400006103e8610f1d60025490565b610f28906001613993565b610f3291906139b2565b610f3c91906139b2565b811015610fb15760405162461bcd60e51b815260206004820152602f60248201527f43616e6e6f7420736574206d61785472616e73616374696f6e416d6f756e742060448201527f6c6f776572207468616e20302e312500000000000000000000000000000000006064820152608401610c62565b610fc381670de0b6b3a7640000613993565b60095550565b6000610fd684848461248d565b6001600160a01b0384166000908152600160209081526040808320338452909152902054828110156110705760405162461bcd60e51b815260206004820152602860248201527f45524332303a207472616e7366657220616d6f756e742065786365656473206160448201527f6c6c6f77616e63650000000000000000000000000000000000000000000000006064820152608401610c62565b61107d8533858403612335565b506001949350505050565b3360008181526001602090815260408083206001600160a01b03871684529091528120549091610d639185906110bf9086906139d4565b612335565b3360009081526006602052604090205460ff166111115760405162461bcd60e51b815260206004820152600b60248201526a085055551213d49256915160aa1b6044820152606401610c62565b6016859055601784905560188390556019829055601b8190556012546301000000900460ff161561116e5760195460185460175460165461115291906139d4565b61115c91906139d4565b61116691906139d4565b60155561118f565b60185460175460165461118191906139d4565b61118b91906139d4565b6015555b601b54156111af57601b546015546111a791906139d4565b601a556111b6565b601554601a555b601460155411156112095760405162461bcd60e51b815260206004820152601d60248201527f4d757374206b656570206665657320617420323025206f72206c6573730000006044820152606401610c62565b6019601a541115610cbd5760405162461bcd60e51b815260206004820152601d60248201527f4d757374206b656570206665657320617420323525206f72206c6573730000006044820152606401610c62565b6005546001600160a01b031633146112a45760405162461bcd60e51b81526020600482018190526024820152600080516020613aef8339815191526044820152606401610c62565b6112ae6000612dba565b565b6005546001600160a01b031633146112f85760405162461bcd60e51b81526020600482018190526024820152600080516020613aef8339815191526044820152606401610c62565b6102588310156113705760405162461bcd60e51b815260206004820152603660248201527f63616e6e6f74207365744175746f4c504275726e206d6f7265206f6674656e2060448201527f7468616e206576657279203130206d696e757465732e000000000000000000006064820152608401610c62565b6103e88211158015611380575060015b6113f25760405162461bcd60e51b815260206004820152603060248201527f4d75737420736574206175746f204c50206275726e2070657263656e7420626560448201527f747765656e20302520616e6420313025000000000000000000000000000000006064820152608401610c62565b600e92909255600c55600d805460ff1916911515919091179055565b6005546000906001600160a01b031633146114595760405162461bcd60e51b81526020600482018190526024820152600080516020613aef8339815191526044820152606401610c62565b506012805460ff19169055600190565b3360009081526006602052604090205460ff166114b65760405162461bcd60e51b815260206004820152600b60248201526a085055551213d49256915160aa1b6044820152606401610c62565b6001600160a01b03919091166000908152601e60205260409020805460ff1916911515919091179055565b6005546001600160a01b031633146115295760405162461bcd60e51b81526020600482018190526024820152600080516020613aef8339815191526044820152606401610c62565b6012805462ffff0019166201010017905542600f55565b3360009081526006602052604090205460ff1661158d5760405162461bcd60e51b815260206004820152600b60248201526a085055551213d49256915160aa1b6044820152606401610c62565b60128054911515620100000262ff000019909216919091179055565b606060048054610cd390613942565b3360009081526006602052604090205460ff166116055760405162461bcd60e51b815260206004820152600b60248201526a085055551213d49256915160aa1b6044820152606401610c62565b7f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316826001600160a01b031614156116ad5760405162461bcd60e51b815260206004820152603960248201527f54686520706169722063616e6e6f742062652072656d6f7665642066726f6d2060448201527f6175746f6d617465644d61726b65744d616b65725061697273000000000000006064820152608401610c62565b6116b78282612e19565b5050565b3360009081526001602090815260408083206001600160a01b0386168452909152812054828110156117555760405162461bcd60e51b815260206004820152602560248201527f45524332303a2064656372656173656420616c6c6f77616e63652062656c6f7760448201527f207a65726f0000000000000000000000000000000000000000000000000000006064820152608401610c62565b6117623385858403612335565b5060019392505050565b6000610d6333848461248d565b6005546001600160a01b031633146117c15760405162461bcd60e51b81526020600482018190526024820152600080516020613aef8339815191526044820152606401610c62565b6001600160a01b03811661183d5760405162461bcd60e51b815260206004820152603060248201527f45524332303a204d61726b6574696e6720616464726573732063616e206e6f7460448201527f206265207a65726f2061646472657373000000000000000000000000000000006064820152608401610c62565b6007546040516001600160a01b036101009092048216918316907fa751787977eeb3902e30e1d19ca00c6ad274a1f622c31a206e32366700b0567490600090a3600780547fffffffffffffffffffffff0000000000000000000000000000000000000000ff166101006001600160a01b03848116820292909217928390556118c89204166001611950565b600754610eb89061010090046001600160a01b03166001611469565b6005546001600160a01b0316331461192c5760405162461bcd60e51b81526020600482018190526024820152600080516020613aef8339815191526044820152606401610c62565b6001600160a01b03166000908152600660205260409020805460ff19166001179055565b3360009081526006602052604090205460ff1661199d5760405162461bcd60e51b815260206004820152600b60248201526a085055551213d49256915160aa1b6044820152606401610c62565b6001600160a01b0382166000818152601d6020908152604091829020805460ff191685151590811790915591519182527f9d8f7706ea1113d1a167b526eca956215946dd36cc7df39eb16180222d8b5df7910160405180910390a25050565b3360009081526006602052604090205460ff16611a495760405162461bcd60e51b815260206004820152600b60248201526a085055551213d49256915160aa1b6044820152606401610c62565b670de0b6b3a76400006103e8611a5e60025490565b611a69906005613993565b611a7391906139b2565b611a7d91906139b2565b811015611af15760405162461bcd60e51b8152602060048201526024808201527f43616e6e6f7420736574206d617857616c6c6574206c6f776572207468616e2060448201527f302e3525000000000000000000000000000000000000000000000000000000006064820152608401610c62565b611b0381670de0b6b3a7640000613993565b600b5550565b3360009081526006602052604081205460ff16611b565760405162461bcd60e51b815260206004820152600b60248201526a085055551213d49256915160aa1b6044820152606401610c62565b620186a0611b6360025490565b611b6e906001613993565b611b7891906139b2565b821015611bed5760405162461bcd60e51b815260206004820152603560248201527f5377617020616d6f756e742063616e6e6f74206265206c6f776572207468616e60448201527f20302e3030312520746f74616c20737570706c792e00000000000000000000006064820152608401610c62565b6103e8611bf960025490565b611c04906005613993565b611c0e91906139b2565b821115611c835760405162461bcd60e51b815260206004820152603460248201527f5377617020616d6f756e742063616e6e6f74206265206869676865722074686160448201527f6e20302e352520746f74616c20737570706c792e0000000000000000000000006064820152608401610c62565b50600a81905560015b919050565b3360009081526006602052604090205460ff16611cde5760405162461bcd60e51b815260206004820152600b60248201526a085055551213d49256915160aa1b6044820152606401610c62565b60125460ff63010000009091041615158115151415611d3f5760405162461bcd60e51b815260206004820152601060248201527f56616c756573206172652073616d652e000000000000000000000000000000006044820152606401610c62565b601280548215801563010000000263ff0000001990921691909117909155611d9357601954601854601754601654611d7791906139d4565b611d8191906139d4565b611d8b91906139d4565b601555611db4565b601854601754601654611da691906139d4565b611db091906139d4565b6015555b601b5415611dd457601b54601554611dcc91906139d4565b601a55611ddb565b601554601a555b60146015541115611e2e5760405162461bcd60e51b815260206004820152601d60248201527f4d757374206b656570206665657320617420323025206f72206c6573730000006044820152606401610c62565b6019601a541115610eb85760405162461bcd60e51b815260206004820152601d60248201527f4d757374206b656570206665657320617420323525206f72206c6573730000006044820152606401610c62565b3360009081526006602052604090205460ff16611ece5760405162461bcd60e51b815260206004820152600b60248201526a085055551213d49256915160aa1b6044820152606401610c62565b6001600160a01b03919091166000908152601c60205260409020805460ff1916911515919091179055565b6005546000906001600160a01b03163314611f445760405162461bcd60e51b81526020600482018190526024820152600080516020613aef8339815191526044820152606401610c62565b506014805460ff19169055600190565b6005546001600160a01b03163314611f9c5760405162461bcd60e51b81526020600482018190526024820152600080516020613aef8339815191526044820152606401610c62565b6001600160a01b03166000908152600660205260409020805460ff19169055565b6005546001600160a01b031633146120055760405162461bcd60e51b81526020600482018190526024820152600080516020613aef8339815191526044820152606401610c62565b6001600160a01b0381166120815760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201527f64647265737300000000000000000000000000000000000000000000000000006064820152608401610c62565b610eb881612dba565b6005546000906001600160a01b031633146120d55760405162461bcd60e51b81526020600482018190526024820152600080516020613aef8339815191526044820152606401610c62565b6010546011546120e591906139d4565b42116121335760405162461bcd60e51b815260206004820181905260248201527f4d757374207761697420666f7220636f6f6c646f776e20746f2066696e6973686044820152606401610c62565b6103e88211156121ab5760405162461bcd60e51b815260206004820152602a60248201527f4d6179206e6f74206e756b65206d6f7265207468616e20313025206f6620746f60448201527f6b656e7320696e204c50000000000000000000000000000000000000000000006064820152608401610c62565b426011556040516370a0823160e01b81526001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016600482015260009030906370a0823190602401602060405180830381865afa158015612216573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061223a91906139ec565b9050600061225461271061224e8487612e6d565b90612e80565b90508015612289576122897f000000000000000000000000000000000000000000000000000000000000000061dead83612e8c565b60007f00000000000000000000000000000000000000000000000000000000000000009050806001600160a01b031663fff6cae96040518163ffffffff1660e01b8152600401600060405180830381600087803b1580156122e957600080fd5b505af11580156122fd573d6000803e3d6000fd5b50506040517f8462566617872a3fbab94534675218431ff9e204063ee3f4f43d965626a39abb925060009150a1506001949350505050565b6001600160a01b0383166123b05760405162461bcd60e51b8152602060048201526024808201527f45524332303a20617070726f76652066726f6d20746865207a65726f2061646460448201527f72657373000000000000000000000000000000000000000000000000000000006064820152608401610c62565b6001600160a01b03821661242c5760405162461bcd60e51b815260206004820152602260248201527f45524332303a20617070726f766520746f20746865207a65726f20616464726560448201527f73730000000000000000000000000000000000000000000000000000000000006064820152608401610c62565b6001600160a01b0383811660008181526001602090815260408083209487168084529482529182902085905590518481527f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925910160405180910390a3505050565b6001600160a01b0383166124f15760405162461bcd60e51b815260206004820152602560248201527f45524332303a207472616e736665722066726f6d20746865207a65726f206164604482015264647265737360d81b6064820152608401610c62565b6001600160a01b0382166125535760405162461bcd60e51b815260206004820152602360248201527f45524332303a207472616e7366657220746f20746865207a65726f206164647260448201526265737360e81b6064820152608401610c62565b600081116125c95760405162461bcd60e51b815260206004820152602960248201527f5472616e7366657220616d6f756e74206d75737420626520677265617465722060448201527f7468616e207a65726f00000000000000000000000000000000000000000000006064820152608401610c62565b60125460ff1615612a60576005546001600160a01b0384811691161480159061260057506005546001600160a01b03838116911614155b801561261757506001600160a01b03821661dead14155b8015612626575060075460ff16155b15612a6057601254610100900460ff166126c5576001600160a01b0383166000908152601d602052604090205460ff168061267957506001600160a01b0382166000908152601d602052604090205460ff165b6126c55760405162461bcd60e51b815260206004820152601660248201527f54726164696e67206973206e6f74206163746976652e000000000000000000006044820152606401610c62565b60145460ff16156127d7576001600160a01b0383166000908152601f602052604090205460ff1615612711576126fc4360146139d4565b326000908152601360205260409020556127d7565b3260009081526013602052604090205443116127bb5760405162461bcd60e51b815260206004820152604f60248201527f5f7472616e736665723a3a205472616e736665722044656c617920656e61626c60448201527f65642e20204f6e6c79206f6e65207472616e73616374696f6e2070657220323060648201527f20626c6f636b20616c6c6f7765642e0000000000000000000000000000000000608482015260a401610c62565b6127c64360146139d4565b326000908152601360205260409020555b6001600160a01b0383166000908152601f602052604090205460ff16801561281857506001600160a01b0382166000908152601e602052604090205460ff16155b1561290e576009548111156128955760405162461bcd60e51b815260206004820152603560248201527f427579207472616e7366657220616d6f756e742065786365656473207468652060448201527f6d61785472616e73616374696f6e416d6f756e742e00000000000000000000006064820152608401610c62565b600b546001600160a01b0383166000908152602081905260409020546128bb90836139d4565b11156129095760405162461bcd60e51b815260206004820152601360248201527f4d61782077616c6c6574206578636565646564000000000000000000000000006044820152606401610c62565b612a60565b6001600160a01b0382166000908152601f602052604090205460ff16801561294f57506001600160a01b0383166000908152601e602052604090205460ff16155b156129cc576009548111156129095760405162461bcd60e51b815260206004820152603660248201527f53656c6c207472616e7366657220616d6f756e7420657863656564732074686560448201527f206d61785472616e73616374696f6e416d6f756e742e000000000000000000006064820152608401610c62565b6001600160a01b0382166000908152601e602052604090205460ff16612a6057600b546001600160a01b038316600090815260208190526040902054612a1290836139d4565b1115612a605760405162461bcd60e51b815260206004820152601360248201527f4d61782077616c6c6574206578636565646564000000000000000000000000006044820152606401610c62565b612a6983613072565b30600090815260208190526040902054600a5460095490821015908210612a905760095491505b808015612aa5575060125462010000900460ff165b8015612ab4575060075460ff16155b8015612ad957506001600160a01b0385166000908152601f602052604090205460ff16155b8015612afe57506001600160a01b0385166000908152601d602052604090205460ff16155b8015612b2357506001600160a01b0384166000908152601d602052604090205460ff16155b15612c0c576007805460ff191660011790556012546301000000900460ff1615612ba1576000612b84601754601854601654601954612b6291906139d4565b612b6c91906139d4565b612b7691906139d4565b60195461224e908690612e6d565b9050612b933061dead83612e8c565b612b9d8184613a05565b9250505b6000612bdd601754601854601654612bb991906139d4565b612bc391906139d4565b61224e601854601654612bd691906139d4565b8690612e6d565b90506000612beb8285613a05565b9050612bf6826130ff565b612bff81613219565b50506007805460ff191690555b60075460ff16158015612c3757506001600160a01b0384166000908152601f602052604090205460ff165b8015612c455750600d5460ff165b8015612c605750600e54600f54612c5c91906139d4565b4210155b8015612c8557506001600160a01b0385166000908152601d602052604090205460ff16155b15612c9457612c926132a0565b505b6007546001600160a01b0386166000908152601d602052604090205460ff91821615911680612cdb57506001600160a01b0385166000908152601d602052604090205460ff165b15612ce4575060005b60008115612da6576001600160a01b0386166000908152601f602052604090205460ff168015612d1657506000601a54115b15612d3c57612d35606461224e601a5488612e6d90919063ffffffff16565b9050612d88565b6001600160a01b0387166000908152601f602052604090205460ff168015612d6657506000601554115b15612d8857612d85606461224e60155488612e6d90919063ffffffff16565b90505b8015612d9957612d99873083612e8c565b612da38186613a05565b94505b612db1878787612e8c565b50505050505050565b600580546001600160a01b0383811673ffffffffffffffffffffffffffffffffffffffff19831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b6001600160a01b0382166000818152601f6020526040808220805460ff191685151590811790915590519092917fffa9187bf1f18bf477bd0ea1bcbb64e93b6a98132473929edfce215cd9b16fab91a35050565b6000612e798284613993565b9392505050565b6000612e7982846139b2565b6001600160a01b038316612ef05760405162461bcd60e51b815260206004820152602560248201527f45524332303a207472616e736665722066726f6d20746865207a65726f206164604482015264647265737360d81b6064820152608401610c62565b6001600160a01b038216612f525760405162461bcd60e51b815260206004820152602360248201527f45524332303a207472616e7366657220746f20746865207a65726f206164647260448201526265737360e81b6064820152608401610c62565b6001600160a01b03831660009081526020819052604090205481811015612fe15760405162461bcd60e51b815260206004820152602660248201527f45524332303a207472616e7366657220616d6f756e742065786365656473206260448201527f616c616e636500000000000000000000000000000000000000000000000000006064820152608401610c62565b6001600160a01b038085166000908152602081905260408082208585039055918516815290812080548492906130189084906139d4565b92505081905550826001600160a01b0316846001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef8460405161306491815260200190565b60405180910390a350505050565b6001600160a01b0381166000908152601f602052604090205460ff16156130965750565b6001600160a01b0381166000908152601c602052604090205460ff1615610eb85760405162461bcd60e51b815260206004820152600e60248201527f526f626f742064657465637465640000000000000000000000000000000000006044820152606401610c62565b60004761310b83613430565b60006131174783613609565b9050600061313c60185460165461312e91906139d4565b60165461224e908590612e6d565b9050600061316160185460165461315391906139d4565b60185461224e908690612e6d565b6008546040519192506001600160a01b0316908290600081818185875af1925050503d80600081146131af576040519150601f19603f3d011682016040523d82523d6000602084013e6131b4565b606091505b505060075460405191965061010090046001600160a01b0316908390600081818185875af1925050503d8060008114613209576040519150601f19603f3d011682016040523d82523d6000602084013e61320e565b606091505b505050505050505050565b6000613226826002612e80565b905060006132348383613609565b90504761324083613430565b600061324c4783613609565b90506132588382613615565b60408051858152602081018390529081018490527f17bbfb9a6069321b6ded73bd96327c9e6b7212a5cd51ff219cd61370acafb5619060600160405180910390a15050505050565b42600f556040516370a0823160e01b81526001600160a01b037f0000000000000000000000000000000000000000000000000000000000000000166004820152600090819030906370a0823190602401602060405180830381865afa15801561330d573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061333191906139ec565b9050600061335061271061224e600c5485612e6d90919063ffffffff16565b90508015613385576133857f000000000000000000000000000000000000000000000000000000000000000061dead83612e8c565b60007f00000000000000000000000000000000000000000000000000000000000000009050806001600160a01b031663fff6cae96040518163ffffffff1660e01b8152600401600060405180830381600087803b1580156133e557600080fd5b505af11580156133f9573d6000803e3d6000fd5b50506040517f454c91ae84fcc766ddda0dcb289f26b3d0176efeacf4061fc219fa6ca8c3048d925060009150a16001935050505090565b604080516002808252606082018352600092602083019080368337019050509050308160008151811061346557613465613a1c565b60200260200101906001600160a01b031690816001600160a01b0316815250507f00000000000000000000000000000000000000000000000000000000000000006001600160a01b031663ad5c46486040518163ffffffff1660e01b8152600401602060405180830381865afa1580156134e3573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906135079190613a32565b8160018151811061351a5761351a613a1c565b60200260200101906001600160a01b031690816001600160a01b031681525050613565307f000000000000000000000000000000000000000000000000000000000000000084612335565b6040517f791ac9470000000000000000000000000000000000000000000000000000000081526001600160a01b037f0000000000000000000000000000000000000000000000000000000000000000169063791ac947906135d3908590600090869030904290600401613a4f565b600060405180830381600087803b1580156135ed57600080fd5b505af1158015613601573d6000803e3d6000fd5b505050505050565b6000612e798284613a05565b613640307f000000000000000000000000000000000000000000000000000000000000000084612335565b7f00000000000000000000000000000000000000000000000000000000000000006001600160a01b031663f305d7198230856000806136876005546001600160a01b031690565b60405160e088901b7fffffffff000000000000000000000000000000000000000000000000000000001681526001600160a01b03958616600482015260248101949094526044840192909252606483015290911660848201524260a482015260c40160606040518083038185885af1158015613707573d6000803e3d6000fd5b50505050506040513d601f19601f82011682018060405250810190610cbd9190613ac0565b6001600160a01b0381168114610eb857600080fd5b60006020828403121561375357600080fd5b8135612e798161372c565b600060208083528351808285015260005b8181101561378b5785810183015185820160400152820161376f565b8181111561379d576000604083870101525b50601f01601f1916929092016040019392505050565b600080604083850312156137c657600080fd5b82356137d18161372c565b946020939093013593505050565b6000602082840312156137f157600080fd5b5035919050565b60008060006060848603121561380d57600080fd5b83356138188161372c565b925060208401356138288161372c565b929592945050506040919091013590565b600080600080600060a0868803121561385157600080fd5b505083359560208501359550604085013594606081013594506080013592509050565b80358015158114611c8c57600080fd5b60008060006060848603121561389957600080fd5b83359250602084013591506138b060408501613874565b90509250925092565b600080604083850312156138cc57600080fd5b82356138d78161372c565b91506138e560208401613874565b90509250929050565b60006020828403121561390057600080fd5b612e7982613874565b6000806040838503121561391c57600080fd5b82356139278161372c565b915060208301356139378161372c565b809150509250929050565b600181811c9082168061395657607f821691505b6020821081141561397757634e487b7160e01b600052602260045260246000fd5b50919050565b634e487b7160e01b600052601160045260246000fd5b60008160001904831182151516156139ad576139ad61397d565b500290565b6000826139cf57634e487b7160e01b600052601260045260246000fd5b500490565b600082198211156139e7576139e761397d565b500190565b6000602082840312156139fe57600080fd5b5051919050565b600082821015613a1757613a1761397d565b500390565b634e487b7160e01b600052603260045260246000fd5b600060208284031215613a4457600080fd5b8151612e798161372c565b600060a082018783526020878185015260a0604085015281875180845260c086019150828901935060005b81811015613a9f5784516001600160a01b031683529383019391830191600101613a7a565b50506001600160a01b03969096166060850152505050608001529392505050565b600080600060608486031215613ad557600080fd5b835192506020840151915060408401519050925092509256fe4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572a2646970667358221220cf58bddc056170ca2a8f6443597e75d08e386c1c789cb82ccf93b4f08f87363164736f6c634300080b0033
Deployed Bytecode
0x6080604052600436106103e25760003560e01c80638a8c523c1161020d578063bbc0c74211610128578063dd62ed3e116100bb578063f0b37c041161008a578063f8b45b051161006f578063f8b45b0514610baf578063fe72b27a14610bc5578063fe9fbb8014610be557600080fd5b8063f0b37c0414610b6f578063f2fde38b14610b8f57600080fd5b8063dd62ed3e14610ade578063e2f4560514610b24578063e419942214610b3a578063e884f26014610b5a57600080fd5b8063c8c8ebe4116100f7578063c8c8ebe414610a72578063d257b34f14610a88578063d85ba06314610aa8578063dd01588314610abe57600080fd5b8063bbc0c742146109f9578063c024666814610a18578063c18bc19514610a38578063c876d0b914610a5857600080fd5b8063a457c2d7116101a0578063aacebbe31161016f578063aacebbe314610959578063abb8105214610979578063b62496f5146109a9578063b6a5d7de146109d957600080fd5b8063a457c2d7146108ed578063a4c82a001461090d578063a8b47c6d14610923578063a9059cbb1461093957600080fd5b806395d89b41116101dc57806395d89b411461088c57806398118cb4146108a15780639a7a23d6146108b75780639ec22c0e146108d757600080fd5b80638a8c523c146108195780638da5cb5b1461082e5780638ea5220f1461084c578063924de9b71461086c57600080fd5b806339509351116102fd5780636b67c4df11610290578063730c18881161025f578063730c18881461079f578063751039fc146107bf5780637571336a146107d457806375f0a874146107f457600080fd5b80636b67c4df1461071e5780636ddd17131461073457806370a0823114610754578063715018a61461078a57600080fd5b80634d30187e116102cc5780634d30187e146106a35780634fbee193146106b95780636827e764146106f25780636a486a8e1461070857600080fd5b80633950935114610615578063457ffca21461063557806349bd5a5e146106555780634a62bb651461068957600080fd5b8063184c16c51161037557806327c8f8351161034457806327c8f835146105b35780632c3e486c146105c95780632e82f1a0146105df578063313ce567146105f957600080fd5b8063184c16c514610547578063199ffc721461055d578063203e727e1461057357806323b872dd1461059357600080fd5b806310d5de53116103b157806310d5de531461048c5780631694505e146104bc57806318160ddd146105085780631816467f1461052757600080fd5b806301681a62146103ee57806306fdde03146104105780630710d3931461043b578063095ea7b31461046c57600080fd5b366103e957005b600080fd5b3480156103fa57600080fd5b5061040e610409366004613741565b610c1e565b005b34801561041c57600080fd5b50610425610cc4565b604051610432919061375e565b60405180910390f35b34801561044757600080fd5b5060125461045c906301000000900460ff1681565b6040519015158152602001610432565b34801561047857600080fd5b5061045c6104873660046137b3565b610d56565b34801561049857600080fd5b5061045c6104a7366004613741565b601e6020526000908152604090205460ff1681565b3480156104c857600080fd5b506104f07f0000000000000000000000007a250d5630b4cf539739df2c5dacb4c659f2488d81565b6040516001600160a01b039091168152602001610432565b34801561051457600080fd5b506002545b604051908152602001610432565b34801561053357600080fd5b5061040e610542366004613741565b610d6c565b34801561055357600080fd5b5061051960105481565b34801561056957600080fd5b50610519600c5481565b34801561057f57600080fd5b5061040e61058e3660046137df565b610ebb565b34801561059f57600080fd5b5061045c6105ae3660046137f8565b610fc9565b3480156105bf57600080fd5b506104f061dead81565b3480156105d557600080fd5b50610519600e5481565b3480156105eb57600080fd5b50600d5461045c9060ff1681565b34801561060557600080fd5b5060405160128152602001610432565b34801561062157600080fd5b5061045c6106303660046137b3565b611088565b34801561064157600080fd5b5061040e610650366004613839565b6110c4565b34801561066157600080fd5b506104f07f00000000000000000000000049b5374f0ff4cb8649a198aca1f4a5e46dc50ebb81565b34801561069557600080fd5b5060125461045c9060ff1681565b3480156106af57600080fd5b50610519601b5481565b3480156106c557600080fd5b5061045c6106d4366004613741565b6001600160a01b03166000908152601d602052604090205460ff1690565b3480156106fe57600080fd5b5061051960185481565b34801561071457600080fd5b50610519601a5481565b34801561072a57600080fd5b5061051960165481565b34801561074057600080fd5b5060125461045c9062010000900460ff1681565b34801561076057600080fd5b5061051961076f366004613741565b6001600160a01b031660009081526020819052604090205490565b34801561079657600080fd5b5061040e61125c565b3480156107ab57600080fd5b5061040e6107ba366004613884565b6112b0565b3480156107cb57600080fd5b5061045c61140e565b3480156107e057600080fd5b5061040e6107ef3660046138b9565b611469565b34801561080057600080fd5b506007546104f09061010090046001600160a01b031681565b34801561082557600080fd5b5061040e6114e1565b34801561083a57600080fd5b506005546001600160a01b03166104f0565b34801561085857600080fd5b506008546104f0906001600160a01b031681565b34801561087857600080fd5b5061040e6108873660046138ee565b611540565b34801561089857600080fd5b506104256115a9565b3480156108ad57600080fd5b5061051960175481565b3480156108c357600080fd5b5061040e6108d23660046138b9565b6115b8565b3480156108e357600080fd5b5061051960115481565b3480156108f957600080fd5b5061045c6109083660046137b3565b6116bb565b34801561091957600080fd5b50610519600f5481565b34801561092f57600080fd5b5061051960195481565b34801561094557600080fd5b5061045c6109543660046137b3565b61176c565b34801561096557600080fd5b5061040e610974366004613741565b611779565b34801561098557600080fd5b5061045c610994366004613741565b601c6020526000908152604090205460ff1681565b3480156109b557600080fd5b5061045c6109c4366004613741565b601f6020526000908152604090205460ff1681565b3480156109e557600080fd5b5061040e6109f4366004613741565b6118e4565b348015610a0557600080fd5b5060125461045c90610100900460ff1681565b348015610a2457600080fd5b5061040e610a333660046138b9565b611950565b348015610a4457600080fd5b5061040e610a533660046137df565b6119fc565b348015610a6457600080fd5b5060145461045c9060ff1681565b348015610a7e57600080fd5b5061051960095481565b348015610a9457600080fd5b5061045c610aa33660046137df565b611b09565b348015610ab457600080fd5b5061051960155481565b348015610aca57600080fd5b5061040e610ad93660046138ee565b611c91565b348015610aea57600080fd5b50610519610af9366004613909565b6001600160a01b03918216600090815260016020908152604080832093909416825291909152205490565b348015610b3057600080fd5b50610519600a5481565b348015610b4657600080fd5b5061040e610b553660046138b9565b611e81565b348015610b6657600080fd5b5061045c611ef9565b348015610b7b57600080fd5b5061040e610b8a366004613741565b611f54565b348015610b9b57600080fd5b5061040e610baa366004613741565b611fbd565b348015610bbb57600080fd5b50610519600b5481565b348015610bd157600080fd5b5061045c610be03660046137df565b61208a565b348015610bf157600080fd5b5061045c610c00366004613741565b6001600160a01b031660009081526006602052604090205460ff1690565b6005546001600160a01b03163314610c6b5760405162461bcd60e51b81526020600482018190526024820152600080516020613aef83398151915260448201526064015b60405180910390fd5b6000816001600160a01b03164760405160006040518083038185875af1925050503d8060008114610cb8576040519150601f19603f3d011682016040523d82523d6000602084013e610cbd565b606091505b5050505050565b606060038054610cd390613942565b80601f0160208091040260200160405190810160405280929190818152602001828054610cff90613942565b8015610d4c5780601f10610d2157610100808354040283529160200191610d4c565b820191906000526020600020905b815481529060010190602001808311610d2f57829003601f168201915b5050505050905090565b6000610d63338484612335565b50600192915050565b6005546001600160a01b03163314610db45760405162461bcd60e51b81526020600482018190526024820152600080516020613aef8339815191526044820152606401610c62565b6001600160a01b038116610e305760405162461bcd60e51b815260206004820152602a60248201527f45524332303a2044657620616464726573732063616e206e6f74206265207a6560448201527f726f2061646472657373000000000000000000000000000000000000000000006064820152608401610c62565b6008546040516001600160a01b03918216918316907f90b8024c4923d3873ff5b9fcb43d0360d4b9217fa41225d07ba379993552e74390600090a36008805473ffffffffffffffffffffffffffffffffffffffff19166001600160a01b038316908117909155610ea1906001611950565b600854610eb8906001600160a01b03166001611469565b50565b3360009081526006602052604090205460ff16610f085760405162461bcd60e51b815260206004820152600b60248201526a085055551213d49256915160aa1b6044820152606401610c62565b670de0b6b3a76400006103e8610f1d60025490565b610f28906001613993565b610f3291906139b2565b610f3c91906139b2565b811015610fb15760405162461bcd60e51b815260206004820152602f60248201527f43616e6e6f7420736574206d61785472616e73616374696f6e416d6f756e742060448201527f6c6f776572207468616e20302e312500000000000000000000000000000000006064820152608401610c62565b610fc381670de0b6b3a7640000613993565b60095550565b6000610fd684848461248d565b6001600160a01b0384166000908152600160209081526040808320338452909152902054828110156110705760405162461bcd60e51b815260206004820152602860248201527f45524332303a207472616e7366657220616d6f756e742065786365656473206160448201527f6c6c6f77616e63650000000000000000000000000000000000000000000000006064820152608401610c62565b61107d8533858403612335565b506001949350505050565b3360008181526001602090815260408083206001600160a01b03871684529091528120549091610d639185906110bf9086906139d4565b612335565b3360009081526006602052604090205460ff166111115760405162461bcd60e51b815260206004820152600b60248201526a085055551213d49256915160aa1b6044820152606401610c62565b6016859055601784905560188390556019829055601b8190556012546301000000900460ff161561116e5760195460185460175460165461115291906139d4565b61115c91906139d4565b61116691906139d4565b60155561118f565b60185460175460165461118191906139d4565b61118b91906139d4565b6015555b601b54156111af57601b546015546111a791906139d4565b601a556111b6565b601554601a555b601460155411156112095760405162461bcd60e51b815260206004820152601d60248201527f4d757374206b656570206665657320617420323025206f72206c6573730000006044820152606401610c62565b6019601a541115610cbd5760405162461bcd60e51b815260206004820152601d60248201527f4d757374206b656570206665657320617420323525206f72206c6573730000006044820152606401610c62565b6005546001600160a01b031633146112a45760405162461bcd60e51b81526020600482018190526024820152600080516020613aef8339815191526044820152606401610c62565b6112ae6000612dba565b565b6005546001600160a01b031633146112f85760405162461bcd60e51b81526020600482018190526024820152600080516020613aef8339815191526044820152606401610c62565b6102588310156113705760405162461bcd60e51b815260206004820152603660248201527f63616e6e6f74207365744175746f4c504275726e206d6f7265206f6674656e2060448201527f7468616e206576657279203130206d696e757465732e000000000000000000006064820152608401610c62565b6103e88211158015611380575060015b6113f25760405162461bcd60e51b815260206004820152603060248201527f4d75737420736574206175746f204c50206275726e2070657263656e7420626560448201527f747765656e20302520616e6420313025000000000000000000000000000000006064820152608401610c62565b600e92909255600c55600d805460ff1916911515919091179055565b6005546000906001600160a01b031633146114595760405162461bcd60e51b81526020600482018190526024820152600080516020613aef8339815191526044820152606401610c62565b506012805460ff19169055600190565b3360009081526006602052604090205460ff166114b65760405162461bcd60e51b815260206004820152600b60248201526a085055551213d49256915160aa1b6044820152606401610c62565b6001600160a01b03919091166000908152601e60205260409020805460ff1916911515919091179055565b6005546001600160a01b031633146115295760405162461bcd60e51b81526020600482018190526024820152600080516020613aef8339815191526044820152606401610c62565b6012805462ffff0019166201010017905542600f55565b3360009081526006602052604090205460ff1661158d5760405162461bcd60e51b815260206004820152600b60248201526a085055551213d49256915160aa1b6044820152606401610c62565b60128054911515620100000262ff000019909216919091179055565b606060048054610cd390613942565b3360009081526006602052604090205460ff166116055760405162461bcd60e51b815260206004820152600b60248201526a085055551213d49256915160aa1b6044820152606401610c62565b7f00000000000000000000000049b5374f0ff4cb8649a198aca1f4a5e46dc50ebb6001600160a01b0316826001600160a01b031614156116ad5760405162461bcd60e51b815260206004820152603960248201527f54686520706169722063616e6e6f742062652072656d6f7665642066726f6d2060448201527f6175746f6d617465644d61726b65744d616b65725061697273000000000000006064820152608401610c62565b6116b78282612e19565b5050565b3360009081526001602090815260408083206001600160a01b0386168452909152812054828110156117555760405162461bcd60e51b815260206004820152602560248201527f45524332303a2064656372656173656420616c6c6f77616e63652062656c6f7760448201527f207a65726f0000000000000000000000000000000000000000000000000000006064820152608401610c62565b6117623385858403612335565b5060019392505050565b6000610d6333848461248d565b6005546001600160a01b031633146117c15760405162461bcd60e51b81526020600482018190526024820152600080516020613aef8339815191526044820152606401610c62565b6001600160a01b03811661183d5760405162461bcd60e51b815260206004820152603060248201527f45524332303a204d61726b6574696e6720616464726573732063616e206e6f7460448201527f206265207a65726f2061646472657373000000000000000000000000000000006064820152608401610c62565b6007546040516001600160a01b036101009092048216918316907fa751787977eeb3902e30e1d19ca00c6ad274a1f622c31a206e32366700b0567490600090a3600780547fffffffffffffffffffffff0000000000000000000000000000000000000000ff166101006001600160a01b03848116820292909217928390556118c89204166001611950565b600754610eb89061010090046001600160a01b03166001611469565b6005546001600160a01b0316331461192c5760405162461bcd60e51b81526020600482018190526024820152600080516020613aef8339815191526044820152606401610c62565b6001600160a01b03166000908152600660205260409020805460ff19166001179055565b3360009081526006602052604090205460ff1661199d5760405162461bcd60e51b815260206004820152600b60248201526a085055551213d49256915160aa1b6044820152606401610c62565b6001600160a01b0382166000818152601d6020908152604091829020805460ff191685151590811790915591519182527f9d8f7706ea1113d1a167b526eca956215946dd36cc7df39eb16180222d8b5df7910160405180910390a25050565b3360009081526006602052604090205460ff16611a495760405162461bcd60e51b815260206004820152600b60248201526a085055551213d49256915160aa1b6044820152606401610c62565b670de0b6b3a76400006103e8611a5e60025490565b611a69906005613993565b611a7391906139b2565b611a7d91906139b2565b811015611af15760405162461bcd60e51b8152602060048201526024808201527f43616e6e6f7420736574206d617857616c6c6574206c6f776572207468616e2060448201527f302e3525000000000000000000000000000000000000000000000000000000006064820152608401610c62565b611b0381670de0b6b3a7640000613993565b600b5550565b3360009081526006602052604081205460ff16611b565760405162461bcd60e51b815260206004820152600b60248201526a085055551213d49256915160aa1b6044820152606401610c62565b620186a0611b6360025490565b611b6e906001613993565b611b7891906139b2565b821015611bed5760405162461bcd60e51b815260206004820152603560248201527f5377617020616d6f756e742063616e6e6f74206265206c6f776572207468616e60448201527f20302e3030312520746f74616c20737570706c792e00000000000000000000006064820152608401610c62565b6103e8611bf960025490565b611c04906005613993565b611c0e91906139b2565b821115611c835760405162461bcd60e51b815260206004820152603460248201527f5377617020616d6f756e742063616e6e6f74206265206869676865722074686160448201527f6e20302e352520746f74616c20737570706c792e0000000000000000000000006064820152608401610c62565b50600a81905560015b919050565b3360009081526006602052604090205460ff16611cde5760405162461bcd60e51b815260206004820152600b60248201526a085055551213d49256915160aa1b6044820152606401610c62565b60125460ff63010000009091041615158115151415611d3f5760405162461bcd60e51b815260206004820152601060248201527f56616c756573206172652073616d652e000000000000000000000000000000006044820152606401610c62565b601280548215801563010000000263ff0000001990921691909117909155611d9357601954601854601754601654611d7791906139d4565b611d8191906139d4565b611d8b91906139d4565b601555611db4565b601854601754601654611da691906139d4565b611db091906139d4565b6015555b601b5415611dd457601b54601554611dcc91906139d4565b601a55611ddb565b601554601a555b60146015541115611e2e5760405162461bcd60e51b815260206004820152601d60248201527f4d757374206b656570206665657320617420323025206f72206c6573730000006044820152606401610c62565b6019601a541115610eb85760405162461bcd60e51b815260206004820152601d60248201527f4d757374206b656570206665657320617420323525206f72206c6573730000006044820152606401610c62565b3360009081526006602052604090205460ff16611ece5760405162461bcd60e51b815260206004820152600b60248201526a085055551213d49256915160aa1b6044820152606401610c62565b6001600160a01b03919091166000908152601c60205260409020805460ff1916911515919091179055565b6005546000906001600160a01b03163314611f445760405162461bcd60e51b81526020600482018190526024820152600080516020613aef8339815191526044820152606401610c62565b506014805460ff19169055600190565b6005546001600160a01b03163314611f9c5760405162461bcd60e51b81526020600482018190526024820152600080516020613aef8339815191526044820152606401610c62565b6001600160a01b03166000908152600660205260409020805460ff19169055565b6005546001600160a01b031633146120055760405162461bcd60e51b81526020600482018190526024820152600080516020613aef8339815191526044820152606401610c62565b6001600160a01b0381166120815760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201527f64647265737300000000000000000000000000000000000000000000000000006064820152608401610c62565b610eb881612dba565b6005546000906001600160a01b031633146120d55760405162461bcd60e51b81526020600482018190526024820152600080516020613aef8339815191526044820152606401610c62565b6010546011546120e591906139d4565b42116121335760405162461bcd60e51b815260206004820181905260248201527f4d757374207761697420666f7220636f6f6c646f776e20746f2066696e6973686044820152606401610c62565b6103e88211156121ab5760405162461bcd60e51b815260206004820152602a60248201527f4d6179206e6f74206e756b65206d6f7265207468616e20313025206f6620746f60448201527f6b656e7320696e204c50000000000000000000000000000000000000000000006064820152608401610c62565b426011556040516370a0823160e01b81526001600160a01b037f00000000000000000000000049b5374f0ff4cb8649a198aca1f4a5e46dc50ebb16600482015260009030906370a0823190602401602060405180830381865afa158015612216573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061223a91906139ec565b9050600061225461271061224e8487612e6d565b90612e80565b90508015612289576122897f00000000000000000000000049b5374f0ff4cb8649a198aca1f4a5e46dc50ebb61dead83612e8c565b60007f00000000000000000000000049b5374f0ff4cb8649a198aca1f4a5e46dc50ebb9050806001600160a01b031663fff6cae96040518163ffffffff1660e01b8152600401600060405180830381600087803b1580156122e957600080fd5b505af11580156122fd573d6000803e3d6000fd5b50506040517f8462566617872a3fbab94534675218431ff9e204063ee3f4f43d965626a39abb925060009150a1506001949350505050565b6001600160a01b0383166123b05760405162461bcd60e51b8152602060048201526024808201527f45524332303a20617070726f76652066726f6d20746865207a65726f2061646460448201527f72657373000000000000000000000000000000000000000000000000000000006064820152608401610c62565b6001600160a01b03821661242c5760405162461bcd60e51b815260206004820152602260248201527f45524332303a20617070726f766520746f20746865207a65726f20616464726560448201527f73730000000000000000000000000000000000000000000000000000000000006064820152608401610c62565b6001600160a01b0383811660008181526001602090815260408083209487168084529482529182902085905590518481527f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925910160405180910390a3505050565b6001600160a01b0383166124f15760405162461bcd60e51b815260206004820152602560248201527f45524332303a207472616e736665722066726f6d20746865207a65726f206164604482015264647265737360d81b6064820152608401610c62565b6001600160a01b0382166125535760405162461bcd60e51b815260206004820152602360248201527f45524332303a207472616e7366657220746f20746865207a65726f206164647260448201526265737360e81b6064820152608401610c62565b600081116125c95760405162461bcd60e51b815260206004820152602960248201527f5472616e7366657220616d6f756e74206d75737420626520677265617465722060448201527f7468616e207a65726f00000000000000000000000000000000000000000000006064820152608401610c62565b60125460ff1615612a60576005546001600160a01b0384811691161480159061260057506005546001600160a01b03838116911614155b801561261757506001600160a01b03821661dead14155b8015612626575060075460ff16155b15612a6057601254610100900460ff166126c5576001600160a01b0383166000908152601d602052604090205460ff168061267957506001600160a01b0382166000908152601d602052604090205460ff165b6126c55760405162461bcd60e51b815260206004820152601660248201527f54726164696e67206973206e6f74206163746976652e000000000000000000006044820152606401610c62565b60145460ff16156127d7576001600160a01b0383166000908152601f602052604090205460ff1615612711576126fc4360146139d4565b326000908152601360205260409020556127d7565b3260009081526013602052604090205443116127bb5760405162461bcd60e51b815260206004820152604f60248201527f5f7472616e736665723a3a205472616e736665722044656c617920656e61626c60448201527f65642e20204f6e6c79206f6e65207472616e73616374696f6e2070657220323060648201527f20626c6f636b20616c6c6f7765642e0000000000000000000000000000000000608482015260a401610c62565b6127c64360146139d4565b326000908152601360205260409020555b6001600160a01b0383166000908152601f602052604090205460ff16801561281857506001600160a01b0382166000908152601e602052604090205460ff16155b1561290e576009548111156128955760405162461bcd60e51b815260206004820152603560248201527f427579207472616e7366657220616d6f756e742065786365656473207468652060448201527f6d61785472616e73616374696f6e416d6f756e742e00000000000000000000006064820152608401610c62565b600b546001600160a01b0383166000908152602081905260409020546128bb90836139d4565b11156129095760405162461bcd60e51b815260206004820152601360248201527f4d61782077616c6c6574206578636565646564000000000000000000000000006044820152606401610c62565b612a60565b6001600160a01b0382166000908152601f602052604090205460ff16801561294f57506001600160a01b0383166000908152601e602052604090205460ff16155b156129cc576009548111156129095760405162461bcd60e51b815260206004820152603660248201527f53656c6c207472616e7366657220616d6f756e7420657863656564732074686560448201527f206d61785472616e73616374696f6e416d6f756e742e000000000000000000006064820152608401610c62565b6001600160a01b0382166000908152601e602052604090205460ff16612a6057600b546001600160a01b038316600090815260208190526040902054612a1290836139d4565b1115612a605760405162461bcd60e51b815260206004820152601360248201527f4d61782077616c6c6574206578636565646564000000000000000000000000006044820152606401610c62565b612a6983613072565b30600090815260208190526040902054600a5460095490821015908210612a905760095491505b808015612aa5575060125462010000900460ff165b8015612ab4575060075460ff16155b8015612ad957506001600160a01b0385166000908152601f602052604090205460ff16155b8015612afe57506001600160a01b0385166000908152601d602052604090205460ff16155b8015612b2357506001600160a01b0384166000908152601d602052604090205460ff16155b15612c0c576007805460ff191660011790556012546301000000900460ff1615612ba1576000612b84601754601854601654601954612b6291906139d4565b612b6c91906139d4565b612b7691906139d4565b60195461224e908690612e6d565b9050612b933061dead83612e8c565b612b9d8184613a05565b9250505b6000612bdd601754601854601654612bb991906139d4565b612bc391906139d4565b61224e601854601654612bd691906139d4565b8690612e6d565b90506000612beb8285613a05565b9050612bf6826130ff565b612bff81613219565b50506007805460ff191690555b60075460ff16158015612c3757506001600160a01b0384166000908152601f602052604090205460ff165b8015612c455750600d5460ff165b8015612c605750600e54600f54612c5c91906139d4565b4210155b8015612c8557506001600160a01b0385166000908152601d602052604090205460ff16155b15612c9457612c926132a0565b505b6007546001600160a01b0386166000908152601d602052604090205460ff91821615911680612cdb57506001600160a01b0385166000908152601d602052604090205460ff165b15612ce4575060005b60008115612da6576001600160a01b0386166000908152601f602052604090205460ff168015612d1657506000601a54115b15612d3c57612d35606461224e601a5488612e6d90919063ffffffff16565b9050612d88565b6001600160a01b0387166000908152601f602052604090205460ff168015612d6657506000601554115b15612d8857612d85606461224e60155488612e6d90919063ffffffff16565b90505b8015612d9957612d99873083612e8c565b612da38186613a05565b94505b612db1878787612e8c565b50505050505050565b600580546001600160a01b0383811673ffffffffffffffffffffffffffffffffffffffff19831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b6001600160a01b0382166000818152601f6020526040808220805460ff191685151590811790915590519092917fffa9187bf1f18bf477bd0ea1bcbb64e93b6a98132473929edfce215cd9b16fab91a35050565b6000612e798284613993565b9392505050565b6000612e7982846139b2565b6001600160a01b038316612ef05760405162461bcd60e51b815260206004820152602560248201527f45524332303a207472616e736665722066726f6d20746865207a65726f206164604482015264647265737360d81b6064820152608401610c62565b6001600160a01b038216612f525760405162461bcd60e51b815260206004820152602360248201527f45524332303a207472616e7366657220746f20746865207a65726f206164647260448201526265737360e81b6064820152608401610c62565b6001600160a01b03831660009081526020819052604090205481811015612fe15760405162461bcd60e51b815260206004820152602660248201527f45524332303a207472616e7366657220616d6f756e742065786365656473206260448201527f616c616e636500000000000000000000000000000000000000000000000000006064820152608401610c62565b6001600160a01b038085166000908152602081905260408082208585039055918516815290812080548492906130189084906139d4565b92505081905550826001600160a01b0316846001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef8460405161306491815260200190565b60405180910390a350505050565b6001600160a01b0381166000908152601f602052604090205460ff16156130965750565b6001600160a01b0381166000908152601c602052604090205460ff1615610eb85760405162461bcd60e51b815260206004820152600e60248201527f526f626f742064657465637465640000000000000000000000000000000000006044820152606401610c62565b60004761310b83613430565b60006131174783613609565b9050600061313c60185460165461312e91906139d4565b60165461224e908590612e6d565b9050600061316160185460165461315391906139d4565b60185461224e908690612e6d565b6008546040519192506001600160a01b0316908290600081818185875af1925050503d80600081146131af576040519150601f19603f3d011682016040523d82523d6000602084013e6131b4565b606091505b505060075460405191965061010090046001600160a01b0316908390600081818185875af1925050503d8060008114613209576040519150601f19603f3d011682016040523d82523d6000602084013e61320e565b606091505b505050505050505050565b6000613226826002612e80565b905060006132348383613609565b90504761324083613430565b600061324c4783613609565b90506132588382613615565b60408051858152602081018390529081018490527f17bbfb9a6069321b6ded73bd96327c9e6b7212a5cd51ff219cd61370acafb5619060600160405180910390a15050505050565b42600f556040516370a0823160e01b81526001600160a01b037f00000000000000000000000049b5374f0ff4cb8649a198aca1f4a5e46dc50ebb166004820152600090819030906370a0823190602401602060405180830381865afa15801561330d573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061333191906139ec565b9050600061335061271061224e600c5485612e6d90919063ffffffff16565b90508015613385576133857f00000000000000000000000049b5374f0ff4cb8649a198aca1f4a5e46dc50ebb61dead83612e8c565b60007f00000000000000000000000049b5374f0ff4cb8649a198aca1f4a5e46dc50ebb9050806001600160a01b031663fff6cae96040518163ffffffff1660e01b8152600401600060405180830381600087803b1580156133e557600080fd5b505af11580156133f9573d6000803e3d6000fd5b50506040517f454c91ae84fcc766ddda0dcb289f26b3d0176efeacf4061fc219fa6ca8c3048d925060009150a16001935050505090565b604080516002808252606082018352600092602083019080368337019050509050308160008151811061346557613465613a1c565b60200260200101906001600160a01b031690816001600160a01b0316815250507f0000000000000000000000007a250d5630b4cf539739df2c5dacb4c659f2488d6001600160a01b031663ad5c46486040518163ffffffff1660e01b8152600401602060405180830381865afa1580156134e3573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906135079190613a32565b8160018151811061351a5761351a613a1c565b60200260200101906001600160a01b031690816001600160a01b031681525050613565307f0000000000000000000000007a250d5630b4cf539739df2c5dacb4c659f2488d84612335565b6040517f791ac9470000000000000000000000000000000000000000000000000000000081526001600160a01b037f0000000000000000000000007a250d5630b4cf539739df2c5dacb4c659f2488d169063791ac947906135d3908590600090869030904290600401613a4f565b600060405180830381600087803b1580156135ed57600080fd5b505af1158015613601573d6000803e3d6000fd5b505050505050565b6000612e798284613a05565b613640307f0000000000000000000000007a250d5630b4cf539739df2c5dacb4c659f2488d84612335565b7f0000000000000000000000007a250d5630b4cf539739df2c5dacb4c659f2488d6001600160a01b031663f305d7198230856000806136876005546001600160a01b031690565b60405160e088901b7fffffffff000000000000000000000000000000000000000000000000000000001681526001600160a01b03958616600482015260248101949094526044840192909252606483015290911660848201524260a482015260c40160606040518083038185885af1158015613707573d6000803e3d6000fd5b50505050506040513d601f19601f82011682018060405250810190610cbd9190613ac0565b6001600160a01b0381168114610eb857600080fd5b60006020828403121561375357600080fd5b8135612e798161372c565b600060208083528351808285015260005b8181101561378b5785810183015185820160400152820161376f565b8181111561379d576000604083870101525b50601f01601f1916929092016040019392505050565b600080604083850312156137c657600080fd5b82356137d18161372c565b946020939093013593505050565b6000602082840312156137f157600080fd5b5035919050565b60008060006060848603121561380d57600080fd5b83356138188161372c565b925060208401356138288161372c565b929592945050506040919091013590565b600080600080600060a0868803121561385157600080fd5b505083359560208501359550604085013594606081013594506080013592509050565b80358015158114611c8c57600080fd5b60008060006060848603121561389957600080fd5b83359250602084013591506138b060408501613874565b90509250925092565b600080604083850312156138cc57600080fd5b82356138d78161372c565b91506138e560208401613874565b90509250929050565b60006020828403121561390057600080fd5b612e7982613874565b6000806040838503121561391c57600080fd5b82356139278161372c565b915060208301356139378161372c565b809150509250929050565b600181811c9082168061395657607f821691505b6020821081141561397757634e487b7160e01b600052602260045260246000fd5b50919050565b634e487b7160e01b600052601160045260246000fd5b60008160001904831182151516156139ad576139ad61397d565b500290565b6000826139cf57634e487b7160e01b600052601260045260246000fd5b500490565b600082198211156139e7576139e761397d565b500190565b6000602082840312156139fe57600080fd5b5051919050565b600082821015613a1757613a1761397d565b500390565b634e487b7160e01b600052603260045260246000fd5b600060208284031215613a4457600080fd5b8151612e798161372c565b600060a082018783526020878185015260a0604085015281875180845260c086019150828901935060005b81811015613a9f5784516001600160a01b031683529383019391830191600101613a7a565b50506001600160a01b03969096166060850152505050608001529392505050565b600080600060608486031215613ad557600080fd5b835192506020840151915060408401519050925092509256fe4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572a2646970667358221220cf58bddc056170ca2a8f6443597e75d08e386c1c789cb82ccf93b4f08f87363164736f6c634300080b0033
Loading...
Loading
Loading...
Loading
Multichain Portfolio | 30 Chains
Chain | Token | Portfolio % | Price | Amount | Value |
---|---|---|---|---|---|
ETH | Ether (ETH) | 100.00% | $3,462.38 | 0.3207 | $1,110.37 |
Loading...
Loading
[ Download: CSV Export ]
[ Download: CSV Export ]
A contract address hosts a smart contract, which is a set of code stored on the blockchain that runs when predetermined conditions are met. Learn more about addresses in our Knowledge Base.