ERC-20
MEME
Overview
Max Total Supply
100,000,000,000 $DETI
Holders
3,428 (0.00%)
Market
Onchain Market Cap
$0.00
Circulating Supply Market Cap
-
Other Info
Token Contract (WITH 18 Decimals)
Balance
366,586.519459226915567629 $DETIValue
$0.00Loading...
Loading
Loading...
Loading
Loading...
Loading
# | Exchange | Pair | Price | 24H Volume | % Volume |
---|
Contract Name:
Dogetti
Compiler Version
v0.8.17+commit.8df45f5f
Optimization Enabled:
Yes with 200 runs
Other Settings:
default evmVersion
Contract Source Code (Solidity Standard Json-Input format)
// SPDX-License-Identifier: MIT pragma solidity 0.8.17; import "@openzeppelin/contracts/token/ERC20/IERC20.sol"; import "@openzeppelin/contracts/access/Ownable.sol"; import "@openzeppelin/contracts/token/ERC20/utils/SafeERC20.sol"; interface IPancakeRouter01 { function factory() external pure returns (address); function WETH() external pure returns (address); function addLiquidity( address tokenA, address tokenB, uint256 amountADesired, uint256 amountBDesired, uint256 amountAMin, uint256 amountBMin, address to, uint256 deadline ) external returns (uint256 amountA, uint256 amountB, uint256 liquidity); function addLiquidityETH( address token, uint256 amountTokenDesired, uint256 amountTokenMin, uint256 amountETHMin, address to, uint256 deadline ) external payable returns (uint256 amountToken, uint256 amountETH, uint256 liquidity); function removeLiquidity( address tokenA, address tokenB, uint256 liquidity, uint256 amountAMin, uint256 amountBMin, address to, uint256 deadline ) external returns (uint256 amountA, uint256 amountB); function removeLiquidityETH( address token, uint256 liquidity, uint256 amountTokenMin, uint256 amountETHMin, address to, uint256 deadline ) external returns (uint256 amountToken, uint256 amountETH); function removeLiquidityWithPermit( address tokenA, address tokenB, uint256 liquidity, uint256 amountAMin, uint256 amountBMin, address to, uint256 deadline, bool approveMax, uint8 v, bytes32 r, bytes32 s ) external returns (uint256 amountA, uint256 amountB); function removeLiquidityETHWithPermit( address token, uint256 liquidity, uint256 amountTokenMin, uint256 amountETHMin, address to, uint256 deadline, bool approveMax, uint8 v, bytes32 r, bytes32 s ) external returns (uint256 amountToken, uint256 amountETH); function swapExactTokensForTokens( uint256 amountIn, uint256 amountOutMin, address[] calldata path, address to, uint256 deadline ) external returns (uint256[] memory amounts); function swapTokensForExactTokens( uint256 amountOut, uint256 amountInMax, address[] calldata path, address to, uint256 deadline ) external returns (uint256[] memory amounts); function swapExactETHForTokens( uint256 amountOutMin, address[] calldata path, address to, uint256 deadline ) external payable returns (uint256[] memory amounts); function swapTokensForExactETH( uint256 amountOut, uint256 amountInMax, address[] calldata path, address to, uint256 deadline ) external returns (uint256[] memory amounts); function swapExactTokensForETH( uint256 amountIn, uint256 amountOutMin, address[] calldata path, address to, uint256 deadline ) external returns (uint256[] memory amounts); function swapETHForExactTokens( uint256 amountOut, address[] calldata path, address to, uint256 deadline ) external payable returns (uint256[] memory amounts); function quote( uint256 amountA, uint256 reserveA, uint256 reserveB ) external pure returns (uint256 amountB); function getAmountOut( uint256 amountIn, uint256 reserveIn, uint256 reserveOut ) external pure returns (uint256 amountOut); function getAmountIn( uint256 amountOut, uint256 reserveIn, uint256 reserveOut ) external pure returns (uint256 amountIn); function getAmountsOut( uint256 amountIn, address[] calldata path ) external view returns (uint256[] memory amounts); function getAmountsIn( uint256 amountOut, address[] calldata path ) external view returns (uint256[] memory amounts); } interface IPancakeRouter02 is IPancakeRouter01 { function removeLiquidityETHSupportingFeeOnTransferTokens( address token, uint256 liquidity, uint256 amountTokenMin, uint256 amountETHMin, address to, uint256 deadline ) external returns (uint256 amountETH); function removeLiquidityETHWithPermitSupportingFeeOnTransferTokens( address token, uint256 liquidity, uint256 amountTokenMin, uint256 amountETHMin, address to, uint256 deadline, bool approveMax, uint8 v, bytes32 r, bytes32 s ) external returns (uint256 amountETH); function swapExactTokensForTokensSupportingFeeOnTransferTokens( uint256 amountIn, uint256 amountOutMin, address[] calldata path, address to, uint256 deadline ) external; function swapExactETHForTokensSupportingFeeOnTransferTokens( uint256 amountOutMin, address[] calldata path, address to, uint256 deadline ) external payable; function swapExactTokensForETHSupportingFeeOnTransferTokens( uint256 amountIn, uint256 amountOutMin, address[] calldata path, address to, uint256 deadline ) external; } interface IPancakeFactory { event PairCreated( address indexed token0, address indexed token1, address pair, uint256 ); 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(uint256) external view returns (address pair); function allPairsLength() external view returns (uint256); function createPair( address tokenA, address tokenB ) external returns (address pair); function setFeeTo(address) external; function setFeeToSetter(address) external; function INIT_CODE_PAIR_HASH() external view returns (bytes32); } interface IPancakeCaller { function swapExactTokensForTokensSupportingFeeOnTransferTokens( address router, uint256 amountIn, uint256 amountOutMin, address[] calldata path, uint256 deadline ) external; } contract Dogetti is IERC20, Ownable { using SafeERC20 for IERC20; IPancakeCaller public immutable pancakeCaller; address public baseTokenForPair; uint8 private immutable _decimals; mapping(address => uint256) private _rOwned; mapping(address => uint256) private _tOwned; mapping(address => mapping(address => uint256)) private _allowances; mapping(address => bool) private _isExcluded; address[] private _excluded; uint256 private constant MAX = ~uint256(0); uint256 private immutable _tTotal; uint256 private _rTotal; uint256 private _tFeeTotal; string private _name; string private _symbol; uint256 private _rewardFee; uint256 private _previousRewardFee; uint256 private _liquidityFee; uint256 private _previousLiquidityFee; uint256 private _charityFee; uint256 private _previousCharityFee; uint256 private _burnFee; uint256 private _previousBurnFee; bool private inSwapAndLiquify; uint16 public sellRewardFee; uint16 public buyRewardFee; uint16 public sellLiquidityFee; uint16 public buyLiquidityFee; uint16 public sellCharityFee; uint16 public buyCharityFee; uint16 public sellBurnFee; uint16 public buyBurnFee; address public charityWallet; bool public isCharityFeeBaseToken; uint256 public minAmountToTakeFee; IPancakeRouter02 public mainRouter; address public mainPair; mapping(address => bool) public isExcludedFromFee; mapping(address => bool) public automatedMarketMakerPairs; uint256 private _liquidityFeeTokens; uint256 private _charityFeeTokens; event UpdateLiquidityFee( uint16 newSellLiquidityFee, uint16 newBuyLiquidityFee, uint16 oldSellLiquidityFee, uint16 oldBuyLiquidityFee ); event UpdateCharityFee( uint16 newSellCharityFee, uint16 newBuyCharityFee, uint16 oldSellCharityFee, uint16 oldBuyCharityFee ); event UpdateBurnFee( uint16 newSellBurnFee, uint16 newBuyBurnFee, uint16 oldSellBurnFee, uint16 oldBuyBurnFee ); event UpdateRewardFee( uint16 newSellRewardFee, uint16 newBuyRewardFee, uint16 oldSellRewardFee, uint16 oldBuyRewardFee ); event UpdateCharityWallet( address indexed newCharityWallet, bool newIsCharityFeeBaseToken, address indexed oldCharityWallet, bool oldIsCharityFeeBaseToken ); event UpdateMinAmountToTakeFee( uint256 newMinAmountToTakeFee, uint256 oldMinAmountToTakeFee ); event SetAutomatedMarketMakerPair(address indexed pair, bool value); event ExcludedFromFee(address indexed account, bool isEx); event SwapAndLiquify( uint256 tokensForLiquidity, uint256 baseTokenForLiquidity ); event CharityFeeTaken( uint256 charityFeeTokens, uint256 charityFeeBaseTokenSwapped ); event UpdatePancakeRouter( address indexed newAddress, address indexed oldRouter ); constructor( string memory __name, string memory __symbol, uint8 __decimals, uint256 _totalSupply, address[4] memory _accounts, bool _isCharityFeeBaseToken, uint16[8] memory _fees ) { pancakeCaller=IPancakeCaller(_accounts[3]); baseTokenForPair = _accounts[2]; _decimals = __decimals; _name = __name; _symbol = __symbol; _tTotal = _totalSupply; _rTotal = (MAX - (MAX % _tTotal)); _rOwned[_msgSender()] = _rTotal; require(_accounts[0] != address(0), "charity wallet can not be 0"); require(_accounts[1] != address(0), "Router address can not be 0"); require( _fees[0] + _fees[2] + _fees[4] + _fees[6] <= 200, "sell fee <= 20%" ); require( _fees[1] + _fees[3] + _fees[5] + _fees[7] <= 200, "buy fee <= 20%" ); charityWallet = _accounts[0]; isCharityFeeBaseToken = _isCharityFeeBaseToken; emit UpdateCharityWallet( charityWallet, isCharityFeeBaseToken, address(0), false ); mainRouter = IPancakeRouter02(_accounts[1]); emit UpdatePancakeRouter(address(mainRouter), address(0)); mainPair = IPancakeFactory(mainRouter.factory()).createPair( address(this), baseTokenForPair ); sellLiquidityFee = _fees[0]; buyLiquidityFee = _fees[1]; emit UpdateLiquidityFee(sellLiquidityFee, buyLiquidityFee, 0, 0); sellCharityFee = _fees[2]; buyCharityFee = _fees[3]; emit UpdateCharityFee(sellCharityFee, buyCharityFee, 0, 0); sellRewardFee = _fees[4]; buyRewardFee = _fees[5]; emit UpdateRewardFee(sellRewardFee, buyRewardFee, 0, 0); sellBurnFee = _fees[6]; buyBurnFee = _fees[7]; emit UpdateBurnFee(sellBurnFee, buyBurnFee, 0, 0); minAmountToTakeFee = _totalSupply / (10000); emit UpdateMinAmountToTakeFee(minAmountToTakeFee, 0); _isExcluded[address(0xdead)] = true; _excluded.push(address(0xdead)); isExcludedFromFee[address(this)] = true; isExcludedFromFee[charityWallet] = true; isExcludedFromFee[_msgSender()] = true; isExcludedFromFee[address(0xdead)] = true; _setAutomatedMarketMakerPair(mainPair, true); emit Transfer(address(0), _msgSender(), _totalSupply); } function updatePancakePair(address _baseTokenForPair) external onlyOwner { require( _baseTokenForPair != baseTokenForPair, "The baseTokenForPair already has that address" ); baseTokenForPair = _baseTokenForPair; mainPair = IPancakeFactory(mainRouter.factory()).createPair( address(this), baseTokenForPair ); _setAutomatedMarketMakerPair(mainPair, true); } function updatePancakeRouter(address newAddress) public onlyOwner { require( newAddress != address(mainRouter), "The router already has that address" ); emit UpdatePancakeRouter(newAddress, address(mainRouter)); mainRouter = IPancakeRouter02(newAddress); address _mainPair = IPancakeFactory(mainRouter.factory()).createPair( address(this), baseTokenForPair ); mainPair = _mainPair; _setAutomatedMarketMakerPair(mainPair, true); } function _tokenTransfer( address sender, address recipient, uint256 amount ) private { if (_isExcluded[sender] && !_isExcluded[recipient]) { _transferFromExcluded(sender, recipient, amount); } else if (!_isExcluded[sender] && _isExcluded[recipient]) { _transferToExcluded(sender, recipient, amount); } else if (_isExcluded[sender] && _isExcluded[recipient]) { _transferBothExcluded(sender, recipient, amount); } else { _transferStandard(sender, recipient, amount); } } function _transferStandard( address sender, address recipient, uint256 tAmount ) private { uint256 currentRate = _getRate(); ( uint256 rAmount, uint256 rTransferAmount, uint256 rFee, uint256 tTransferAmount, uint256 tFee, uint256 tLiquidity, uint256 tCharity, uint256 tBurn ) = _getValues(tAmount, currentRate); _rOwned[sender] = _rOwned[sender] - (rAmount); _rOwned[recipient] = _rOwned[recipient] + (rTransferAmount); _takeLiquidity(tLiquidity, tCharity, tBurn, currentRate); _reflectFee(rFee, tFee); emit Transfer(sender, recipient, tTransferAmount); emit Transfer(sender, address(this), tCharity + tLiquidity); emit Transfer(sender, address(0xdead), tBurn); } function _transferToExcluded( address sender, address recipient, uint256 tAmount ) private { uint256 currentRate = _getRate(); ( uint256 rAmount, uint256 rTransferAmount, uint256 rFee, uint256 tTransferAmount, uint256 tFee, uint256 tLiquidity, uint256 tCharity, uint256 tBurn ) = _getValues(tAmount, currentRate); _rOwned[sender] = _rOwned[sender] - (rAmount); _tOwned[recipient] = _tOwned[recipient] + (tTransferAmount); _rOwned[recipient] = _rOwned[recipient] + (rTransferAmount); _takeLiquidity(tLiquidity, tCharity, tBurn, currentRate); _reflectFee(rFee, tFee); emit Transfer(sender, recipient, tTransferAmount); emit Transfer(sender, address(this), tCharity + tLiquidity); emit Transfer(sender, address(0xdead), tBurn); } function _transferFromExcluded( address sender, address recipient, uint256 tAmount ) private { uint256 currentRate = _getRate(); ( uint256 rAmount, uint256 rTransferAmount, uint256 rFee, uint256 tTransferAmount, uint256 tFee, uint256 tLiquidity, uint256 tCharity, uint256 tBurn ) = _getValues(tAmount, currentRate); _tOwned[sender] = _tOwned[sender] - (tAmount); _rOwned[sender] = _rOwned[sender] - (rAmount); _rOwned[recipient] = _rOwned[recipient] + (rTransferAmount); _takeLiquidity(tLiquidity, tCharity, tBurn, currentRate); _reflectFee(rFee, tFee); emit Transfer(sender, recipient, tTransferAmount); emit Transfer(sender, address(this), tCharity + tLiquidity); emit Transfer(sender, address(0xdead), tBurn); } function _transferBothExcluded( address sender, address recipient, uint256 tAmount ) private { uint256 currentRate = _getRate(); ( uint256 rAmount, uint256 rTransferAmount, uint256 rFee, uint256 tTransferAmount, uint256 tFee, uint256 tLiquidity, uint256 tCharity, uint256 tBurn ) = _getValues(tAmount, currentRate); _tOwned[sender] = _tOwned[sender] - (tAmount); _rOwned[sender] = _rOwned[sender] - (rAmount); _tOwned[recipient] = _tOwned[recipient] + (tTransferAmount); _rOwned[recipient] = _rOwned[recipient] + (rTransferAmount); _takeLiquidity(tLiquidity, tCharity, tBurn, currentRate); _reflectFee(rFee, tFee); emit Transfer(sender, recipient, tTransferAmount); emit Transfer(sender, address(this), tCharity + tLiquidity); emit Transfer(sender, address(0xdead), tBurn); } function _reflectFee(uint256 rFee, uint256 tFee) private { _rTotal = _rTotal - (rFee); _tFeeTotal = _tFeeTotal + (tFee); } function _getValues( uint256 tAmount, uint256 currentRate ) private view returns ( uint256 rAmount, uint256 rTransferAmount, uint256 rFee, uint256 tTransferAmount, uint256 tFee, uint256 tLiquidity, uint256 tCharity, uint256 tBurn ) { ( tTransferAmount, tFee, tLiquidity, tCharity, tBurn ) = _getTValues(tAmount); rAmount = tAmount * currentRate; rFee = tFee * currentRate; rTransferAmount = tTransferAmount * currentRate; } function _getTValues(uint256 tAmount) private view returns ( uint256, uint256, uint256, uint256, uint256 ) { uint256 tFee = (tAmount * _rewardFee) / (10 ** 3); uint256 tLiquidity = (tAmount * _rewardFee) / (10 ** 3); uint256 tCharity = (tAmount * _charityFee) / (10 ** 3); uint256 tBurn = (tAmount * _burnFee) / (10 ** 3); uint256 tTransferAmount = tAmount - tFee - tLiquidity - tCharity - tBurn; return (tTransferAmount, tFee, tLiquidity, tCharity, tBurn); } function _getRate() private view returns (uint256) { (uint256 rSupply, uint256 tSupply) = _getCurrentSupply(); return rSupply / (tSupply); } function _getCurrentSupply() private view returns (uint256, uint256) { uint256 rSupply = _rTotal; uint256 tSupply = _tTotal; for (uint256 i = 0; i < _excluded.length; i++) { if ( _rOwned[_excluded[i]] > rSupply || _tOwned[_excluded[i]] > tSupply ) return (_rTotal, _tTotal); rSupply = rSupply - (_rOwned[_excluded[i]]); tSupply = tSupply - (_tOwned[_excluded[i]]); } if (rSupply < _rTotal / (_tTotal)) return (_rTotal, _tTotal); return (rSupply, tSupply); } function removeAllFee() private { if ( _rewardFee == 0 && _liquidityFee == 0 && _charityFee == 0 && _burnFee == 0 ) return; _previousRewardFee = _rewardFee; _previousLiquidityFee = _liquidityFee; _previousCharityFee = _charityFee; _previousBurnFee = _burnFee; _charityFee = 0; _rewardFee = 0; _liquidityFee = 0; _burnFee = 0; } function restoreAllFee() private { _rewardFee = _previousRewardFee; _liquidityFee = _previousLiquidityFee; _charityFee = _previousCharityFee; _burnFee = _previousBurnFee; } function _takeLiquidity( uint256 tLiquidity, uint256 tCharity, uint256 tBurn, uint256 currentRate ) private { _liquidityFeeTokens = _liquidityFeeTokens + tLiquidity; _charityFeeTokens = _charityFeeTokens + tCharity; uint256 rLiquidity = tLiquidity * currentRate; uint256 rCharity = tCharity * currentRate; uint256 rBurn = tBurn * currentRate; _rOwned[address(this)] = _rOwned[address(this)] + rLiquidity + rCharity; if (_isExcluded[address(this)]) _tOwned[address(this)] = _tOwned[address(this)] + tLiquidity + tCharity; _rOwned[address(0xdead)] = _rOwned[address(0xdead)] + rBurn; _tOwned[address(0xdead)] = _tOwned[address(0xdead)] + tBurn; } ///////////////////////////////////////////////////////////////////////////////// function name() external view returns (string memory) { return _name; } function symbol() external view returns (string memory) { return _symbol; } function decimals() external view returns (uint8) { return _decimals; } function totalSupply() external view override returns (uint256) { return _tTotal; } function balanceOf(address account) public view override returns (uint256) { if (_isExcluded[account]) return _tOwned[account]; return tokenFromReflection(_rOwned[account]); } function transfer( address recipient, uint256 amount ) external override returns (bool) { _transfer(_msgSender(), recipient, amount); return true; } function allowance( address owner_, address spender ) external view override returns (uint256) { return _allowances[owner_][spender]; } function approve( address spender, uint256 amount ) public override returns (bool) { _approve(_msgSender(), spender, amount); return true; } function transferFrom( address sender, address recipient, uint256 amount ) external override returns (bool) { _transfer(sender, recipient, amount); _approve( sender, _msgSender(), _allowances[sender][_msgSender()] - amount ); return true; } function increaseAllowance( address spender, uint256 addedValue ) external virtual returns (bool) { _approve( _msgSender(), spender, _allowances[_msgSender()][spender] + (addedValue) ); return true; } function decreaseAllowance( address spender, uint256 subtractedValue ) external virtual returns (bool) { _approve( _msgSender(), spender, _allowances[_msgSender()][spender] - (subtractedValue) ); return true; } function isExcludedFromReward( address account ) external view returns (bool) { return _isExcluded[account]; } function totalFees() external view returns (uint256) { return _tFeeTotal; } function reflectionFromToken( uint256 tAmount, bool deductTransferFee ) external view returns (uint256) { require(tAmount <= _tTotal, "Amount must be less than supply"); if (!deductTransferFee) { (uint256 rAmount, , , , , , , ) = _getValues(tAmount, _getRate()); return rAmount; } else { (, uint256 rTransferAmount, , , , , , ) = _getValues( tAmount, _getRate() ); return rTransferAmount; } } function tokenFromReflection( uint256 rAmount ) public view returns (uint256) { require( rAmount <= _rTotal, "Amount must be less than total reflections" ); uint256 currentRate = _getRate(); return rAmount / (currentRate); } function excludeFromReward(address account) public onlyOwner { require(!_isExcluded[account], "Account is already excluded"); require( _excluded.length + 1 <= 50, "Cannot exclude more than 50 accounts. Include a previously excluded address." ); if (_rOwned[account] > 0) { _tOwned[account] = tokenFromReflection(_rOwned[account]); } _isExcluded[account] = true; _excluded.push(account); } function includeInReward(address account) public onlyOwner { require(_isExcluded[account], "Account is not excluded"); for (uint256 i = 0; i < _excluded.length; i++) { if (_excluded[i] == account) { uint256 prev_rOwned = _rOwned[account]; _rOwned[account] = _tOwned[account] * _getRate(); _rTotal = _rTotal + _rOwned[account] - prev_rOwned; _isExcluded[account] = false; _excluded[i] = _excluded[_excluded.length - 1]; _excluded.pop(); break; } } } function _approve(address owner_, address spender, uint256 amount) private { 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); } modifier lockTheSwap() { inSwapAndLiquify = true; _; inSwapAndLiquify = false; } function updateLiquidityFee( uint16 _sellLiquidityFee, uint16 _buyLiquidityFee ) external onlyOwner { require( _sellLiquidityFee + (sellCharityFee) + (sellRewardFee) <= 200, "sell fee <= 20%" ); require( _buyLiquidityFee + (buyCharityFee) + (buyRewardFee) <= 200, "buy fee <= 20%" ); emit UpdateLiquidityFee( _sellLiquidityFee, _buyLiquidityFee, sellLiquidityFee, buyLiquidityFee ); sellLiquidityFee = _sellLiquidityFee; buyLiquidityFee = _buyLiquidityFee; } function updateCharityFee( uint16 _sellCharityFee, uint16 _buyCharityFee ) external onlyOwner { require( _sellCharityFee + (sellLiquidityFee) + (sellRewardFee) <= 200, "sell fee <= 20%" ); require( _buyCharityFee + (buyLiquidityFee) + (buyRewardFee) <= 200, "buy fee <= 20%" ); emit UpdateCharityFee( _sellCharityFee, _buyCharityFee, sellCharityFee, buyCharityFee ); sellCharityFee = _sellCharityFee; buyCharityFee = _buyCharityFee; } function updateRewardFee( uint16 _sellRewardFee, uint16 _buyRewardFee ) external onlyOwner { require( _sellRewardFee + (sellLiquidityFee) + (sellCharityFee) <= 200, "sell fee <= 20%" ); require( _buyRewardFee + (buyLiquidityFee) + (buyCharityFee) <= 200, "buy fee <= 20%" ); emit UpdateRewardFee( _sellRewardFee, _buyRewardFee, sellRewardFee, buyRewardFee ); sellRewardFee = _sellRewardFee; buyRewardFee = _buyRewardFee; } function updateCharityWallet( address _charityWallet, bool _isCharityFeeBaseToken ) external onlyOwner { require(_charityWallet != address(0), "charity wallet can't be 0"); emit UpdateCharityWallet( _charityWallet, _isCharityFeeBaseToken, charityWallet, isCharityFeeBaseToken ); charityWallet = _charityWallet; isCharityFeeBaseToken = _isCharityFeeBaseToken; isExcludedFromFee[_charityWallet] = true; } function updateMinAmountToTakeFee( uint256 _minAmountToTakeFee ) external onlyOwner { require(_minAmountToTakeFee > 0, "minAmountToTakeFee > 0"); emit UpdateMinAmountToTakeFee(_minAmountToTakeFee, minAmountToTakeFee); minAmountToTakeFee = _minAmountToTakeFee; } function setAutomatedMarketMakerPair( address pair, bool value ) public onlyOwner { _setAutomatedMarketMakerPair(pair, value); } function _setAutomatedMarketMakerPair(address pair, bool value) private { require( automatedMarketMakerPairs[pair] != value, "Automated market maker pair is already set to that value" ); automatedMarketMakerPairs[pair] = value; if (value) excludeFromReward(pair); else includeInReward(pair); emit SetAutomatedMarketMakerPair(pair, value); } function excludeFromFee(address account, bool isEx) external onlyOwner { require(isExcludedFromFee[account] != isEx, "already"); isExcludedFromFee[account] = isEx; emit ExcludedFromFee(account, isEx); } function _transfer(address from, address to, uint256 amount) private { require(from != address(0), "ERC20: transfer from the zero address"); require(to != address(0), "ERC20: transfer to the zero address"); uint256 contractTokenBalance = balanceOf(address(this)); bool overMinimumTokenBalance = contractTokenBalance >= minAmountToTakeFee; // Take Fee if ( !inSwapAndLiquify && overMinimumTokenBalance && balanceOf(mainPair) > 0 && automatedMarketMakerPairs[to] ) { takeFee(); } removeAllFee(); // If any account belongs to isExcludedFromFee account then remove the fee if ( !inSwapAndLiquify && !isExcludedFromFee[from] && !isExcludedFromFee[to] ) { // Buy if (automatedMarketMakerPairs[from]) { _rewardFee = buyRewardFee; _liquidityFee = buyLiquidityFee; _charityFee = buyCharityFee; _burnFee = buyBurnFee; } // Sell else if (automatedMarketMakerPairs[to]) { _rewardFee = sellRewardFee; _liquidityFee = sellLiquidityFee; _charityFee = sellCharityFee; _burnFee = sellBurnFee; } } _tokenTransfer(from, to, amount); restoreAllFee(); } function takeFee() private lockTheSwap { uint256 contractBalance = balanceOf(address(this)); uint256 totalTokensTaken = _liquidityFeeTokens + (_charityFeeTokens); if (totalTokensTaken == 0 || contractBalance < totalTokensTaken) { return; } // Halve the amount of liquidity tokens uint256 tokensForLiquidity = _liquidityFeeTokens / 2; uint256 initialBaseTokenBalance = baseTokenForPair == mainRouter.WETH() ? address(this).balance : IERC20(baseTokenForPair).balanceOf(address(this)); uint256 baseTokenForLiquidity; if (isCharityFeeBaseToken) { uint256 tokensForSwap = tokensForLiquidity + _charityFeeTokens; if (tokensForSwap > 0) swapTokensForBaseToken(tokensForSwap); uint256 baseTokenBalance = baseTokenForPair == mainRouter.WETH() ? address(this).balance - initialBaseTokenBalance : IERC20(baseTokenForPair).balanceOf(address(this)) - initialBaseTokenBalance; uint256 baseTokenForCharity = (baseTokenBalance * (_charityFeeTokens)) / tokensForSwap; baseTokenForLiquidity = baseTokenBalance - baseTokenForCharity; if (baseTokenForCharity > 0) { if (baseTokenForPair == mainRouter.WETH()) { (bool success, ) = address(charityWallet).call{ value: baseTokenForCharity }(""); if (success) { _charityFeeTokens = 0; emit CharityFeeTaken(0, baseTokenForCharity); } } else { IERC20(baseTokenForPair).safeTransfer( charityWallet, baseTokenForCharity ); _charityFeeTokens = 0; emit CharityFeeTaken(0, baseTokenForCharity); } } } else { if (tokensForLiquidity > 0) swapTokensForBaseToken(tokensForLiquidity); baseTokenForLiquidity = baseTokenForPair == mainRouter.WETH() ? address(this).balance - initialBaseTokenBalance : IERC20(baseTokenForPair).balanceOf(address(this)) - initialBaseTokenBalance; if (_charityFeeTokens > 0) { _transfer(address(this), charityWallet, _charityFeeTokens); emit CharityFeeTaken(_charityFeeTokens, 0); _charityFeeTokens = 0; } } if (tokensForLiquidity > 0 && baseTokenForLiquidity > 0) { addLiquidity(tokensForLiquidity, baseTokenForLiquidity); emit SwapAndLiquify(tokensForLiquidity, baseTokenForLiquidity); } _liquidityFeeTokens = 0; } function swapTokensForBaseToken(uint256 tokenAmount) private { address[] memory path = new address[](2); path[0] = address(this); path[1] = baseTokenForPair; if (path[1] == mainRouter.WETH()) { _approve(address(this), address(mainRouter), tokenAmount); mainRouter.swapExactTokensForETHSupportingFeeOnTransferTokens( tokenAmount, 0, // accept any amount of BaseToken path, address(this), block.timestamp ); } else { _approve(address(this), address(pancakeCaller), tokenAmount); pancakeCaller.swapExactTokensForTokensSupportingFeeOnTransferTokens( address(mainRouter), tokenAmount, 0, // accept any amount of BaseToken path, block.timestamp ); } } function addLiquidity( uint256 tokenAmount, uint256 baseTokenAmount ) private { _approve(address(this), address(mainRouter), tokenAmount); IERC20(baseTokenForPair).approve(address(mainRouter), baseTokenAmount); if (baseTokenForPair == mainRouter.WETH()) mainRouter.addLiquidityETH{value: baseTokenAmount}( address(this), tokenAmount, 0, // slippage is unavoidable 0, // slippage is unavoidable address(0xdead), block.timestamp ); else mainRouter.addLiquidity( address(this), baseTokenForPair, tokenAmount, baseTokenAmount, 0, 0, address(0xdead), block.timestamp ); } receive() external payable {} }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.7.0) (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 Throws if called by any account other than the owner. */ modifier onlyOwner() { _checkOwner(); _; } /** * @dev Returns the address of the current owner. */ function owner() public view virtual returns (address) { return _owner; } /** * @dev Throws if the sender is not the owner. */ function _checkOwner() internal view virtual { require(owner() == _msgSender(), "Ownable: caller is not the owner"); } /** * @dev Leaves the contract without owner. It will not be possible to call * `onlyOwner` functions 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 (token/ERC20/extensions/draft-IERC20Permit.sol) pragma solidity ^0.8.0; /** * @dev Interface of the ERC20 Permit extension allowing approvals to be made via signatures, as defined in * https://eips.ethereum.org/EIPS/eip-2612[EIP-2612]. * * Adds the {permit} method, which can be used to change an account's ERC20 allowance (see {IERC20-allowance}) by * presenting a message signed by the account. By not relying on {IERC20-approve}, the token holder account doesn't * need to send a transaction, and thus is not required to hold Ether at all. */ interface IERC20Permit { /** * @dev Sets `value` as the allowance of `spender` over ``owner``'s tokens, * given ``owner``'s signed approval. * * IMPORTANT: The same issues {IERC20-approve} has related to transaction * ordering also apply here. * * Emits an {Approval} event. * * Requirements: * * - `spender` cannot be the zero address. * - `deadline` must be a timestamp in the future. * - `v`, `r` and `s` must be a valid `secp256k1` signature from `owner` * over the EIP712-formatted function arguments. * - the signature must use ``owner``'s current nonce (see {nonces}). * * For more information on the signature format, see the * https://eips.ethereum.org/EIPS/eip-2612#specification[relevant EIP * section]. */ function permit( address owner, address spender, uint256 value, uint256 deadline, uint8 v, bytes32 r, bytes32 s ) external; /** * @dev Returns the current nonce for `owner`. This value must be * included whenever a signature is generated for {permit}. * * Every successful call to {permit} increases ``owner``'s nonce by one. This * prevents a signature from being used multiple times. */ function nonces(address owner) external view returns (uint256); /** * @dev Returns the domain separator used in the encoding of the signature for {permit}, as defined by {EIP712}. */ // solhint-disable-next-line func-name-mixedcase function DOMAIN_SEPARATOR() external view returns (bytes32); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.6.0) (token/ERC20/IERC20.sol) pragma solidity ^0.8.0; /** * @dev Interface of the ERC20 standard as defined in the EIP. */ interface IERC20 { /** * @dev Emitted when `value` tokens are moved from one account (`from`) to * another (`to`). * * Note that `value` may be zero. */ event Transfer(address indexed from, address indexed to, uint256 value); /** * @dev Emitted when the allowance of a `spender` for an `owner` is set by * a call to {approve}. `value` is the new allowance. */ event Approval(address indexed owner, address indexed spender, uint256 value); /** * @dev Returns the amount of tokens in existence. */ function totalSupply() external view returns (uint256); /** * @dev Returns the amount of tokens owned by `account`. */ function balanceOf(address account) external view returns (uint256); /** * @dev Moves `amount` tokens from the caller's account to `to`. * * Returns a boolean value indicating whether the operation succeeded. * * Emits a {Transfer} event. */ function transfer(address to, uint256 amount) external returns (bool); /** * @dev Returns the remaining number of tokens that `spender` will be * allowed to spend on behalf of `owner` through {transferFrom}. This is * zero by default. * * This value changes when {approve} or {transferFrom} are called. */ function allowance(address owner, address spender) external view returns (uint256); /** * @dev Sets `amount` as the allowance of `spender` over the caller's tokens. * * Returns a boolean value indicating whether the operation succeeded. * * IMPORTANT: Beware that changing an allowance with this method brings the risk * that someone may use both the old and the new allowance by unfortunate * transaction ordering. One possible solution to mitigate this race * condition is to first reduce the spender's allowance to 0 and set the * desired value afterwards: * https://github.com/ethereum/EIPs/issues/20#issuecomment-263524729 * * Emits an {Approval} event. */ function approve(address spender, uint256 amount) external returns (bool); /** * @dev Moves `amount` tokens from `from` to `to` using the * allowance mechanism. `amount` is then deducted from the caller's * allowance. * * Returns a boolean value indicating whether the operation succeeded. * * Emits a {Transfer} event. */ function transferFrom( address from, address to, uint256 amount ) external returns (bool); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.8.0) (token/ERC20/utils/SafeERC20.sol) pragma solidity ^0.8.0; import "../IERC20.sol"; import "../extensions/draft-IERC20Permit.sol"; import "../../../utils/Address.sol"; /** * @title SafeERC20 * @dev Wrappers around ERC20 operations that throw on failure (when the token * contract returns false). Tokens that return no value (and instead revert or * throw on failure) are also supported, non-reverting calls are assumed to be * successful. * To use this library you can add a `using SafeERC20 for IERC20;` statement to your contract, * which allows you to call the safe operations as `token.safeTransfer(...)`, etc. */ library SafeERC20 { using Address for address; function safeTransfer( IERC20 token, address to, uint256 value ) internal { _callOptionalReturn(token, abi.encodeWithSelector(token.transfer.selector, to, value)); } function safeTransferFrom( IERC20 token, address from, address to, uint256 value ) internal { _callOptionalReturn(token, abi.encodeWithSelector(token.transferFrom.selector, from, to, value)); } /** * @dev Deprecated. This function has issues similar to the ones found in * {IERC20-approve}, and its usage is discouraged. * * Whenever possible, use {safeIncreaseAllowance} and * {safeDecreaseAllowance} instead. */ function safeApprove( IERC20 token, address spender, uint256 value ) internal { // safeApprove should only be called when setting an initial allowance, // or when resetting it to zero. To increase and decrease it, use // 'safeIncreaseAllowance' and 'safeDecreaseAllowance' require( (value == 0) || (token.allowance(address(this), spender) == 0), "SafeERC20: approve from non-zero to non-zero allowance" ); _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, value)); } function safeIncreaseAllowance( IERC20 token, address spender, uint256 value ) internal { uint256 newAllowance = token.allowance(address(this), spender) + value; _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, newAllowance)); } function safeDecreaseAllowance( IERC20 token, address spender, uint256 value ) internal { unchecked { uint256 oldAllowance = token.allowance(address(this), spender); require(oldAllowance >= value, "SafeERC20: decreased allowance below zero"); uint256 newAllowance = oldAllowance - value; _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, newAllowance)); } } function safePermit( IERC20Permit token, address owner, address spender, uint256 value, uint256 deadline, uint8 v, bytes32 r, bytes32 s ) internal { uint256 nonceBefore = token.nonces(owner); token.permit(owner, spender, value, deadline, v, r, s); uint256 nonceAfter = token.nonces(owner); require(nonceAfter == nonceBefore + 1, "SafeERC20: permit did not succeed"); } /** * @dev Imitates a Solidity high-level call (i.e. a regular function call to a contract), relaxing the requirement * on the return value: the return value is optional (but if data is returned, it must not be false). * @param token The token targeted by the call. * @param data The call data (encoded using abi.encode or one of its variants). */ function _callOptionalReturn(IERC20 token, bytes memory data) private { // We need to perform a low level call here, to bypass Solidity's return data size checking mechanism, since // we're implementing it ourselves. We use {Address-functionCall} to perform this call, which verifies that // the target address contains contract code and also asserts for success in the low-level call. bytes memory returndata = address(token).functionCall(data, "SafeERC20: low-level call failed"); if (returndata.length > 0) { // Return data is optional require(abi.decode(returndata, (bool)), "SafeERC20: ERC20 operation did not succeed"); } } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.8.0) (utils/Address.sol) pragma solidity ^0.8.1; /** * @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 * ==== * * [IMPORTANT] * ==== * You shouldn't rely on `isContract` to protect against flash loan attacks! * * Preventing calls from contracts is highly discouraged. It breaks composability, breaks support for smart wallets * like Gnosis Safe, and does not provide security since it can be circumvented by calling from a contract * constructor. * ==== */ function isContract(address account) internal view returns (bool) { // This method relies on extcodesize/address.code.length, which returns 0 // for contracts in construction, since the code is only stored at the end // of the constructor execution. return account.code.length > 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 functionCallWithValue(target, data, 0, "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"); (bool success, bytes memory returndata) = target.call{value: value}(data); return verifyCallResultFromTarget(target, 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) { (bool success, bytes memory returndata) = target.staticcall(data); return verifyCallResultFromTarget(target, 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) { (bool success, bytes memory returndata) = target.delegatecall(data); return verifyCallResultFromTarget(target, success, returndata, errorMessage); } /** * @dev Tool to verify that a low level call to smart-contract was successful, and revert (either by bubbling * the revert reason or using the provided one) in case of unsuccessful call or if target was not a contract. * * _Available since v4.8._ */ function verifyCallResultFromTarget( address target, bool success, bytes memory returndata, string memory errorMessage ) internal view returns (bytes memory) { if (success) { if (returndata.length == 0) { // only check isContract if the call was successful and the return data is empty // otherwise we already know that it was a contract require(isContract(target), "Address: call to non-contract"); } return returndata; } else { _revert(returndata, errorMessage); } } /** * @dev Tool to verify that a low level call was successful, and revert if it wasn't, either by bubbling the * revert reason or 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 { _revert(returndata, errorMessage); } } function _revert(bytes memory returndata, string memory errorMessage) private pure { // Look for revert reason and bubble it up if present if (returndata.length > 0) { // The easiest way to bubble the revert reason is using memory via assembly /// @solidity memory-safe-assembly assembly { let returndata_size := mload(returndata) revert(add(32, returndata), returndata_size) } } else { revert(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; } }
{ "optimizer": { "enabled": true, "runs": 200 }, "outputSelection": { "*": { "*": [ "evm.bytecode", "evm.deployedBytecode", "devdoc", "userdoc", "metadata", "abi" ] } }, "libraries": {} }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"inputs":[{"internalType":"string","name":"__name","type":"string"},{"internalType":"string","name":"__symbol","type":"string"},{"internalType":"uint8","name":"__decimals","type":"uint8"},{"internalType":"uint256","name":"_totalSupply","type":"uint256"},{"internalType":"address[4]","name":"_accounts","type":"address[4]"},{"internalType":"bool","name":"_isCharityFeeBaseToken","type":"bool"},{"internalType":"uint16[8]","name":"_fees","type":"uint16[8]"}],"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":[{"indexed":false,"internalType":"uint256","name":"charityFeeTokens","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"charityFeeBaseTokenSwapped","type":"uint256"}],"name":"CharityFeeTaken","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"account","type":"address"},{"indexed":false,"internalType":"bool","name":"isEx","type":"bool"}],"name":"ExcludedFromFee","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"pair","type":"address"},{"indexed":false,"internalType":"bool","name":"value","type":"bool"}],"name":"SetAutomatedMarketMakerPair","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"tokensForLiquidity","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"baseTokenForLiquidity","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":false,"internalType":"uint16","name":"newSellBurnFee","type":"uint16"},{"indexed":false,"internalType":"uint16","name":"newBuyBurnFee","type":"uint16"},{"indexed":false,"internalType":"uint16","name":"oldSellBurnFee","type":"uint16"},{"indexed":false,"internalType":"uint16","name":"oldBuyBurnFee","type":"uint16"}],"name":"UpdateBurnFee","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint16","name":"newSellCharityFee","type":"uint16"},{"indexed":false,"internalType":"uint16","name":"newBuyCharityFee","type":"uint16"},{"indexed":false,"internalType":"uint16","name":"oldSellCharityFee","type":"uint16"},{"indexed":false,"internalType":"uint16","name":"oldBuyCharityFee","type":"uint16"}],"name":"UpdateCharityFee","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"newCharityWallet","type":"address"},{"indexed":false,"internalType":"bool","name":"newIsCharityFeeBaseToken","type":"bool"},{"indexed":true,"internalType":"address","name":"oldCharityWallet","type":"address"},{"indexed":false,"internalType":"bool","name":"oldIsCharityFeeBaseToken","type":"bool"}],"name":"UpdateCharityWallet","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint16","name":"newSellLiquidityFee","type":"uint16"},{"indexed":false,"internalType":"uint16","name":"newBuyLiquidityFee","type":"uint16"},{"indexed":false,"internalType":"uint16","name":"oldSellLiquidityFee","type":"uint16"},{"indexed":false,"internalType":"uint16","name":"oldBuyLiquidityFee","type":"uint16"}],"name":"UpdateLiquidityFee","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"newMinAmountToTakeFee","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"oldMinAmountToTakeFee","type":"uint256"}],"name":"UpdateMinAmountToTakeFee","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"newAddress","type":"address"},{"indexed":true,"internalType":"address","name":"oldRouter","type":"address"}],"name":"UpdatePancakeRouter","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint16","name":"newSellRewardFee","type":"uint16"},{"indexed":false,"internalType":"uint16","name":"newBuyRewardFee","type":"uint16"},{"indexed":false,"internalType":"uint16","name":"oldSellRewardFee","type":"uint16"},{"indexed":false,"internalType":"uint16","name":"oldBuyRewardFee","type":"uint16"}],"name":"UpdateRewardFee","type":"event"},{"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":"","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":"baseTokenForPair","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"buyBurnFee","outputs":[{"internalType":"uint16","name":"","type":"uint16"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"buyCharityFee","outputs":[{"internalType":"uint16","name":"","type":"uint16"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"buyLiquidityFee","outputs":[{"internalType":"uint16","name":"","type":"uint16"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"buyRewardFee","outputs":[{"internalType":"uint16","name":"","type":"uint16"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"charityWallet","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":[{"internalType":"address","name":"account","type":"address"},{"internalType":"bool","name":"isEx","type":"bool"}],"name":"excludeFromFee","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"excludeFromReward","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"includeInReward","outputs":[],"stateMutability":"nonpayable","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":[],"name":"isCharityFeeBaseToken","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"isExcludedFromFee","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"isExcludedFromReward","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"mainPair","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"mainRouter","outputs":[{"internalType":"contract IPancakeRouter02","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"minAmountToTakeFee","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":"pancakeCaller","outputs":[{"internalType":"contract IPancakeCaller","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tAmount","type":"uint256"},{"internalType":"bool","name":"deductTransferFee","type":"bool"}],"name":"reflectionFromToken","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"sellBurnFee","outputs":[{"internalType":"uint16","name":"","type":"uint16"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"sellCharityFee","outputs":[{"internalType":"uint16","name":"","type":"uint16"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"sellLiquidityFee","outputs":[{"internalType":"uint16","name":"","type":"uint16"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"sellRewardFee","outputs":[{"internalType":"uint16","name":"","type":"uint16"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"pair","type":"address"},{"internalType":"bool","name":"value","type":"bool"}],"name":"setAutomatedMarketMakerPair","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"rAmount","type":"uint256"}],"name":"tokenFromReflection","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalFees","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"recipient","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"transfer","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","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":"uint16","name":"_sellCharityFee","type":"uint16"},{"internalType":"uint16","name":"_buyCharityFee","type":"uint16"}],"name":"updateCharityFee","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_charityWallet","type":"address"},{"internalType":"bool","name":"_isCharityFeeBaseToken","type":"bool"}],"name":"updateCharityWallet","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint16","name":"_sellLiquidityFee","type":"uint16"},{"internalType":"uint16","name":"_buyLiquidityFee","type":"uint16"}],"name":"updateLiquidityFee","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_minAmountToTakeFee","type":"uint256"}],"name":"updateMinAmountToTakeFee","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_baseTokenForPair","type":"address"}],"name":"updatePancakePair","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newAddress","type":"address"}],"name":"updatePancakeRouter","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint16","name":"_sellRewardFee","type":"uint16"},{"internalType":"uint16","name":"_buyRewardFee","type":"uint16"}],"name":"updateRewardFee","outputs":[],"stateMutability":"nonpayable","type":"function"},{"stateMutability":"payable","type":"receive"}]
Contract Creation Code
60e06040523480156200001157600080fd5b50604051620052693803806200526983398101604081905262000034916200123a565b6200003f3362000864565b60608301516001600160a01b039081166080526040840151600180546001600160a01b0319169190921617905560ff851660a0526009620000818882620013f4565b50600a620000908782620013f4565b5060c0849052620000a484600019620014d6565b620000b29060001962001503565b60078190553360009081526002602052604090205582516001600160a01b0316620001245760405162461bcd60e51b815260206004820152601b60248201527f636861726974792077616c6c65742063616e206e6f742062652030000000000060448201526064015b60405180910390fd5b60208301516001600160a01b0316620001805760405162461bcd60e51b815260206004820152601b60248201527f526f7574657220616464726573732063616e206e6f742062652030000000000060448201526064016200011b565b60c081015160808201516040830151835160c8939291620001a1916200151f565b620001ad91906200151f565b620001b991906200151f565b61ffff161115620001ff5760405162461bcd60e51b815260206004820152600f60248201526e73656c6c20666565203c3d2032302560881b60448201526064016200011b565b60e081015160a08201516060830151602084015160c893929162000223916200151f565b6200022f91906200151f565b6200023b91906200151f565b61ffff161115620002805760405162461bcd60e51b815260206004820152600e60248201526d62757920666565203c3d2032302560901b60448201526064016200011b565b825160148054841515600160a01b9081026001600160a81b03199092166001600160a01b039485161791909117918290556040805191830460ff16151582526000602083018190529392909216917f1d98f59b1deacd787c67785088447780339df32ca62e24c7b85607dbb1b3462b910160405180910390a36020830151601680546001600160a01b0319166001600160a01b039092169182179055604051600091907f51cb6825f043d6550a1cbb70cdd407e9ca7523e4a1ff93812b00168d1ca2565d908390a3601660009054906101000a90046001600160a01b03166001600160a01b031663c45a01556040518163ffffffff1660e01b8152600401602060405180830381865afa1580156200039c573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190620003c2919062001544565b6001546040516364e329cb60e11b81523060048201526001600160a01b03918216602482015291169063c9c65396906044016020604051808303816000875af115801562000414573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906200043a919062001544565b601780546001600160a01b0319166001600160a01b039290921691909117905580516013805460208085015163ffffffff60281b1990921661ffff9485166501000000000090810261ffff60381b19169190911767010000000000000093861684021793849055604080519185048616825292909304909316928201929092526000818301819052606082015290517f95c5c99557725e816faf752c6675d63483841c28a7a009ed792470a9cb4dea239181900360800190a16040818101516013805460608086015163ffffffff60481b1990921661ffff948516690100000000000000000090810261ffff60581b1916919091176b0100000000000000000000009386168402179384905585519084048516815291909204909216602083015260008284018190529082015290517f0c5e1c07a180f51f2f2621ef70950e3ca7abcdc709c1ee86d59bba8cd9273df99181900360800190a16080808201516013805460a085015161ffff908116630100000090810264ffff0000001961010096841687021664ffffffff00199094169390931792909217928390556040805194840482168552919092049091166020830152600090820181905260608201527f0a21d45dab14d5d2f53ae98d95d951cd627fcf1b5bc485174326568b5e0a4572910160405180910390a160c08101516013805460e084015163ffffffff60681b1990911661ffff9384166d010000000000000000000000000090810261ffff60781b191691909117600160781b9285168302179283905560408051918404851682529190920490921660208201526000818301819052606082015290517f01f5c7a45d273917dfc98816f1dd17a88893a7338e7beaa4d305fc8c84f8fe259181900360800190a1620006d06127108562001562565b601581905560408051918252600060208301527f772a06bc936eb749842080c472181e970cd4f23bd1ab7d0b84a80aec26910434910160405180910390a17f7d509c07f0d4edcc2dd1b53aae68677132eb562dcba78e36381b63ccaf66e6ba805460ff19908116600190811790925560068054808401909155600080516020620052498339815191520180546001600160a01b03191661dead17905530600090815260186020819052604080832080548516861790556014546001600160a01b03168352822080549093168417909255620007a83390565b6001600160a01b03908116825260208083019390935260409091016000908120805494151560ff1995861617905561dead905260189091527fe3ec2099396b7359df1c566dfdf9dfdb5e22fd64a6ede9d61aa32b2f63968fd6805490921660019081179092556017546200081f92911690620008b4565b60405184815233906000907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9060200160405180910390a350505050505050620015db565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b6001600160a01b03821660009081526019602052604090205481151560ff9091161515036200094c5760405162461bcd60e51b815260206004820152603860248201527f4175746f6d61746564206d61726b6574206d616b65722070616972206973206160448201527f6c72656164792073657420746f20746861742076616c7565000000000000000060648201526084016200011b565b6001600160a01b0382166000908152601960205260409020805460ff191682158015919091179091556200098b576200098582620009e0565b62000996565b620009968262000ba6565b816001600160a01b03167fffa9187bf1f18bf477bd0ea1bcbb64e93b6a98132473929edfce215cd9b16fab82604051620009d4911515815260200190565b60405180910390a25050565b620009ea62000ddb565b6001600160a01b03811660009081526005602052604090205460ff161562000a555760405162461bcd60e51b815260206004820152601b60248201527f4163636f756e7420697320616c7265616479206578636c75646564000000000060448201526064016200011b565b60065460329062000a6890600162001579565b111562000af45760405162461bcd60e51b815260206004820152604d60248201527f43616e6e6f74206578636c756465206d6f7265207468616e203530206163636f60448201527f756e74732e2020496e636c75646520612070726576696f75736c79206578636c60648201526c3ab232b21030b2323932b9b99760991b608482015260a4016200011b565b6001600160a01b0381166000908152600260205260409020541562000b51576001600160a01b03811660009081526002602052604090205462000b379062000e39565b6001600160a01b0382166000908152600360205260409020555b6001600160a01b03166000818152600560205260408120805460ff19166001908117909155600680549182018155909152600080516020620052498339815191520180546001600160a01b0319169091179055565b62000bb062000ddb565b6001600160a01b03811660009081526005602052604090205460ff1662000c1a5760405162461bcd60e51b815260206004820152601760248201527f4163636f756e74206973206e6f74206578636c7564656400000000000000000060448201526064016200011b565b60005b60065481101562000dd757816001600160a01b03166006828154811062000c485762000c486200134f565b6000918252602090912001546001600160a01b03160362000dc2576001600160a01b03821660009081526002602052604090205462000c8662000ec3565b6001600160a01b03841660009081526003602052604090205462000cab91906200158f565b6001600160a01b0384166000908152600260205260409020819055600754829162000cd69162001579565b62000ce2919062001503565b6007556001600160a01b0383166000908152600560205260409020805460ff191690556006805462000d179060019062001503565b8154811062000d2a5762000d2a6200134f565b600091825260209091200154600680546001600160a01b03909216918490811062000d595762000d596200134f565b9060005260206000200160006101000a8154816001600160a01b0302191690836001600160a01b03160217905550600680548062000d9b5762000d9b620015a9565b600082815260209020810160001990810180546001600160a01b0319169055019055505050565b8062000dce81620015bf565b91505062000c1d565b5050565b6000546001600160a01b0316331462000e375760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064016200011b565b565b600060075482111562000ea25760405162461bcd60e51b815260206004820152602a60248201527f416d6f756e74206d757374206265206c657373207468616e20746f74616c207260448201526965666c656374696f6e7360b01b60648201526084016200011b565b600062000eae62000ec3565b905062000ebc818462001562565b9392505050565b6000808062000ed162000ee9565b909250905062000ee2818362001562565b9250505090565b60075460c0516000918291825b600654811015620010515782600260006006848154811062000f1c5762000f1c6200134f565b60009182526020808320909101546001600160a01b03168352820192909252604001902054118062000f8b575081600360006006848154811062000f645762000f646200134f565b60009182526020808320909101546001600160a01b03168352820192909252604001902054115b1562000fa25760075460c051945094505050509091565b600260006006838154811062000fbc5762000fbc6200134f565b60009182526020808320909101546001600160a01b0316835282019290925260400190205462000fed908462001503565b925060036000600683815481106200100957620010096200134f565b60009182526020808320909101546001600160a01b031683528201929092526040019020546200103a908362001503565b9150806200104881620015bf565b91505062000ef6565b5060c05160075462001064919062001562565b8210156200107c5760075460c0519350935050509091565b90939092509050565b634e487b7160e01b600052604160045260246000fd5b604051608081016001600160401b0381118282101715620010c057620010c062001085565b60405290565b604051601f8201601f191681016001600160401b0381118282101715620010f157620010f162001085565b604052919050565b600082601f8301126200110b57600080fd5b81516001600160401b0381111562001127576200112762001085565b60206200113d601f8301601f19168201620010c6565b82815285828487010111156200115257600080fd5b60005b838110156200117257858101830151828201840152820162001155565b506000928101909101919091529392505050565b80516001600160a01b03811681146200119e57600080fd5b919050565b805180151581146200119e57600080fd5b600082601f830112620011c657600080fd5b6040516101008082016001600160401b0381118382101715620011ed57620011ed62001085565b604052830181858211156200120157600080fd5b845b828110156200122f57805161ffff81168114620012205760008081fd5b82526020918201910162001203565b509195945050505050565b6000806000806000806000610220888a0312156200125757600080fd5b87516001600160401b03808211156200126f57600080fd5b6200127d8b838c01620010f9565b985060209150818a0151818111156200129557600080fd5b620012a38c828d01620010f9565b98505050604089015160ff81168114620012bc57600080fd5b809650506060890151945089609f8a0112620012d757600080fd5b620012e16200109b565b806101008b018c811115620012f557600080fd5b60808c015b818110156200131c576200130e8162001186565b8452928401928401620012fa565b508196506200132b81620011a3565b95505050505062001341896101208a01620011b4565b905092959891949750929550565b634e487b7160e01b600052603260045260246000fd5b600181811c908216806200137a57607f821691505b6020821081036200139b57634e487b7160e01b600052602260045260246000fd5b50919050565b601f821115620013ef57600081815260208120601f850160051c81016020861015620013ca5750805b601f850160051c820191505b81811015620013eb57828155600101620013d6565b5050505b505050565b81516001600160401b0381111562001410576200141062001085565b620014288162001421845462001365565b84620013a1565b602080601f831160018114620014605760008415620014475750858301515b600019600386901b1c1916600185901b178555620013eb565b600085815260208120601f198616915b82811015620014915788860151825594840194600190910190840162001470565b5085821015620014b05787850151600019600388901b60f8161c191681555b5050505050600190811b01905550565b634e487b7160e01b600052601260045260246000fd5b600082620014e857620014e8620014c0565b500690565b634e487b7160e01b600052601160045260246000fd5b81810381811115620015195762001519620014ed565b92915050565b61ffff8181168382160190808211156200153d576200153d620014ed565b5092915050565b6000602082840312156200155757600080fd5b62000ebc8262001186565b600082620015745762001574620014c0565b500490565b80820180821115620015195762001519620014ed565b8082028115828204841417620015195762001519620014ed565b634e487b7160e01b600052603160045260246000fd5b600060018201620015d457620015d4620014ed565b5060010190565b60805160a05160c051613c0d6200163c6000396000818161036d01528181610df7015281816127f2015281816128ad0152818161297801526129b30152600061040701526000818161067801528181612c450152612c840152613c0d6000f3fe6080604052600436106102815760003560e01c806385af30c51161014f578063b62496f5116100c1578063df8408fe1161007a578063df8408fe14610869578063e71dc3f514610889578063f11a24d3146108ab578063f2fde38b146108cd578063f6374342146108ed578063fc59d23d1461090f57600080fd5b8063b62496f514610773578063cf188ad0146107a3578063d68f8cde146107c3578063d880cd85146107e3578063dd62ed3e14610803578063de0aad531461084957600080fd5b806395d89b411161011357806395d89b41146106ba5780639a7a23d6146106cf578063a1dc92bc146106ef578063a457c2d714610711578063a9059cbb14610731578063adb873bd1461075157600080fd5b806385af30c5146105ef57806388f820201461060f5780638da5cb5b1461064857806392586f5e14610666578063948384dc1461069a57600080fd5b806339509351116101f357806370a08231116101ac57806370a0823114610522578063715018a61461054257806373b9e82c146105575780637b208769146105775780637cf84bd7146105af5780638211b093146105cf57600080fd5b806339509351146104515780634549b0391461047157806352390c02146104915780635342acb4146104b15780635f2d95ad146104e157806361ea28ca1461050157600080fd5b806318160ddd1161024557806318160ddd1461035e5780631d9a43ea1461039157806323b872dd146103b35780632d838119146103d3578063313ce567146103f35780633685d4191461043157600080fd5b806306fdde031461028d578063095ea7b3146102b85780630cfe2f3f146102e85780630d7f14411461031d57806313114a9d1461033f57600080fd5b3661028857005b600080fd5b34801561029957600080fd5b506102a2610925565b6040516102af9190613745565b60405180910390f35b3480156102c457600080fd5b506102d86102d336600461378d565b6109b7565b60405190151581526020016102af565b3480156102f457600080fd5b5060135461030a906301000000900461ffff1681565b60405161ffff90911681526020016102af565b34801561032957600080fd5b5060135461030a90600160481b900461ffff1681565b34801561034b57600080fd5b506008545b6040519081526020016102af565b34801561036a57600080fd5b507f0000000000000000000000000000000000000000000000000000000000000000610350565b34801561039d57600080fd5b506103b16103ac3660046137c7565b6109ce565b005b3480156103bf57600080fd5b506102d86103ce366004613800565b610ad0565b3480156103df57600080fd5b506103506103ee366004613841565b610b22565b3480156103ff57600080fd5b5060405160ff7f00000000000000000000000000000000000000000000000000000000000000001681526020016102af565b34801561043d57600080fd5b506103b161044c36600461385a565b610ba6565b34801561045d57600080fd5b506102d861046c36600461378d565b610dbc565b34801561047d57600080fd5b5061035061048c366004613877565b610df3565b34801561049d57600080fd5b506103b16104ac36600461385a565b610ead565b3480156104bd57600080fd5b506102d86104cc36600461385a565b60186020526000908152604090205460ff1681565b3480156104ed57600080fd5b506103b16104fc36600461385a565b611079565b34801561050d57600080fd5b506014546102d890600160a01b900460ff1681565b34801561052e57600080fd5b5061035061053d36600461385a565b61121d565b34801561054e57600080fd5b506103b161127c565b34801561056357600080fd5b506103b1610572366004613841565b611290565b34801561058357600080fd5b50601454610597906001600160a01b031681565b6040516001600160a01b0390911681526020016102af565b3480156105bb57600080fd5b50600154610597906001600160a01b031681565b3480156105db57600080fd5b506103b16105ea3660046138b3565b611323565b3480156105fb57600080fd5b50601754610597906001600160a01b031681565b34801561061b57600080fd5b506102d861062a36600461385a565b6001600160a01b031660009081526005602052604090205460ff1690565b34801561065457600080fd5b506000546001600160a01b0316610597565b34801561067257600080fd5b506105977f000000000000000000000000000000000000000000000000000000000000000081565b3480156106a657600080fd5b506103b16106b53660046138b3565b61146a565b3480156106c657600080fd5b506102a26115a7565b3480156106db57600080fd5b506103b16106ea3660046137c7565b6115b6565b3480156106fb57600080fd5b5060135461030a90600160581b900461ffff1681565b34801561071d57600080fd5b506102d861072c36600461378d565b6115c8565b34801561073d57600080fd5b506102d861074c36600461378d565b6115ff565b34801561075d57600080fd5b5060135461030a90600160681b900461ffff1681565b34801561077f57600080fd5b506102d861078e36600461385a565b60196020526000908152604090205460ff1681565b3480156107af57600080fd5b50601654610597906001600160a01b031681565b3480156107cf57600080fd5b506103b16107de3660046138b3565b61160c565b3480156107ef57600080fd5b506103b16107fe36600461385a565b611753565b34801561080f57600080fd5b5061035061081e3660046138e6565b6001600160a01b03918216600090815260046020908152604080832093909416825291909152205490565b34801561085557600080fd5b5060135461030a90610100900461ffff1681565b34801561087557600080fd5b506103b16108843660046137c7565b611921565b34801561089557600080fd5b5060135461030a90600160781b900461ffff1681565b3480156108b757600080fd5b5060135461030a90600160381b900461ffff1681565b3480156108d957600080fd5b506103b16108e836600461385a565b6119e3565b3480156108f957600080fd5b5060135461030a90600160281b900461ffff1681565b34801561091b57600080fd5b5061035060155481565b60606009805461093490613914565b80601f016020809104026020016040519081016040528092919081815260200182805461096090613914565b80156109ad5780601f10610982576101008083540402835291602001916109ad565b820191906000526020600020905b81548152906001019060200180831161099057829003601f168201915b5050505050905090565b60006109c4338484611a59565b5060015b92915050565b6109d6611b7d565b6001600160a01b038216610a315760405162461bcd60e51b815260206004820152601960248201527f636861726974792077616c6c65742063616e277420626520300000000000000060448201526064015b60405180910390fd5b601454604080518315158152600160a01b830460ff16151560208201526001600160a01b03928316928516917f1d98f59b1deacd787c67785088447780339df32ca62e24c7b85607dbb1b3462b910160405180910390a360148054911515600160a01b026001600160a81b03199092166001600160a01b039093169283179190911790556000908152601860205260409020805460ff19166001179055565b6000610add848484611bd7565b6001600160a01b038416600090815260046020908152604080832033808552925290912054610b18918691610b13908690613964565b611a59565b5060019392505050565b6000600754821115610b895760405162461bcd60e51b815260206004820152602a60248201527f416d6f756e74206d757374206265206c657373207468616e20746f74616c207260448201526965666c656374696f6e7360b01b6064820152608401610a28565b6000610b93611e53565b9050610b9f8184613977565b9392505050565b610bae611b7d565b6001600160a01b03811660009081526005602052604090205460ff16610c165760405162461bcd60e51b815260206004820152601760248201527f4163636f756e74206973206e6f74206578636c756465640000000000000000006044820152606401610a28565b60005b600654811015610db857816001600160a01b031660068281548110610c4057610c40613999565b6000918252602090912001546001600160a01b031603610da6576001600160a01b038216600090815260026020526040902054610c7b611e53565b6001600160a01b038416600090815260036020526040902054610c9e91906139af565b6001600160a01b03841660009081526002602052604090208190556007548291610cc7916139c6565b610cd19190613964565b6007556001600160a01b0383166000908152600560205260409020805460ff1916905560068054610d0490600190613964565b81548110610d1457610d14613999565b600091825260209091200154600680546001600160a01b039092169184908110610d4057610d40613999565b9060005260206000200160006101000a8154816001600160a01b0302191690836001600160a01b031602179055506006805480610d7f57610d7f6139d9565b600082815260209020810160001990810180546001600160a01b0319169055019055505050565b80610db0816139ef565b915050610c19565b5050565b3360008181526004602090815260408083206001600160a01b038716845290915281205490916109c4918590610b139086906139c6565b60007f0000000000000000000000000000000000000000000000000000000000000000831115610e655760405162461bcd60e51b815260206004820152601f60248201527f416d6f756e74206d757374206265206c657373207468616e20737570706c79006044820152606401610a28565b81610e8e576000610e7d84610e78611e53565b611e76565b509597506109c89650505050505050565b6000610e9c84610e78611e53565b509497506109c89650505050505050565b610eb5611b7d565b6001600160a01b03811660009081526005602052604090205460ff1615610f1e5760405162461bcd60e51b815260206004820152601b60248201527f4163636f756e7420697320616c7265616479206578636c7564656400000000006044820152606401610a28565b600654603290610f2f9060016139c6565b1115610fb95760405162461bcd60e51b815260206004820152604d60248201527f43616e6e6f74206578636c756465206d6f7265207468616e203530206163636f60448201527f756e74732e2020496e636c75646520612070726576696f75736c79206578636c60648201526c3ab232b21030b2323932b9b99760991b608482015260a401610a28565b6001600160a01b03811660009081526002602052604090205415611013576001600160a01b038116600090815260026020526040902054610ff990610b22565b6001600160a01b0382166000908152600360205260409020555b6001600160a01b03166000818152600560205260408120805460ff191660019081179091556006805491820181559091527ff652222313e28459528d920b65115c16c04f3efc82aaedc97be59f3f377c0d3f0180546001600160a01b0319169091179055565b611081611b7d565b6001546001600160a01b03908116908216036110f55760405162461bcd60e51b815260206004820152602d60248201527f5468652062617365546f6b656e466f725061697220616c72656164792068617360448201526c2074686174206164647265737360981b6064820152608401610a28565b600180546001600160a01b0319166001600160a01b03838116919091179091556016546040805163c45a015560e01b81529051919092169163c45a01559160048083019260209291908290030181865afa158015611157573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061117b9190613a08565b6001546040516364e329cb60e11b81523060048201526001600160a01b03918216602482015291169063c9c65396906044016020604051808303816000875af11580156111cc573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906111f09190613a08565b601780546001600160a01b0319166001600160a01b0392909216918217905561121a906001611ec8565b50565b6001600160a01b03811660009081526005602052604081205460ff161561125a57506001600160a01b031660009081526003602052604090205490565b6001600160a01b0382166000908152600260205260409020546109c890610b22565b611284611b7d565b61128e6000611fdf565b565b611298611b7d565b600081116112e15760405162461bcd60e51b815260206004820152601660248201527506d696e416d6f756e74546f54616b65466565203e20360541b6044820152606401610a28565b6015546040805183815260208101929092527f772a06bc936eb749842080c472181e970cd4f23bd1ab7d0b84a80aec26910434910160405180910390a1601555565b61132b611b7d565b60135460c89061ffff610100820481169161134f91600160281b9091041685613a25565b6113599190613a25565b61ffff16111561137b5760405162461bcd60e51b8152600401610a2890613a47565b60135460c89061ffff630100000082048116916113a191600160381b9091041684613a25565b6113ab9190613a25565b61ffff1611156113cd5760405162461bcd60e51b8152600401610a2890613a70565b6013546040805161ffff85811682528481166020830152600160481b8404811682840152600160581b9093049092166060830152517f0c5e1c07a180f51f2f2621ef70950e3ca7abcdc709c1ee86d59bba8cd9273df99181900360800190a1601380546cffffffff0000000000000000001916600160481b61ffff9485160261ffff60581b191617600160581b9290931691909102919091179055565b611472611b7d565b60135460c89061ffff600160481b820481169161149891600160281b9091041685613a25565b6114a29190613a25565b61ffff1611156114c45760405162461bcd60e51b8152600401610a2890613a47565b60135460c89061ffff600160581b82048116916114ea91600160381b9091041684613a25565b6114f49190613a25565b61ffff1611156115165760405162461bcd60e51b8152600401610a2890613a70565b6013546040805161ffff85811682528481166020830152610100840481168284015263010000009093049092166060830152517f0a21d45dab14d5d2f53ae98d95d951cd627fcf1b5bc485174326568b5e0a45729181900360800190a16013805464ffffffff00191661010061ffff9485160264ffff00000019161763010000009290931691909102919091179055565b6060600a805461093490613914565b6115be611b7d565b610db88282611ec8565b3360008181526004602090815260408083206001600160a01b038716845290915281205490916109c4918590610b13908690613964565b60006109c4338484611bd7565b611614611b7d565b60135460c89061ffff610100820481169161163891600160481b9091041685613a25565b6116429190613a25565b61ffff1611156116645760405162461bcd60e51b8152600401610a2890613a47565b60135460c89061ffff6301000000820481169161168a91600160581b9091041684613a25565b6116949190613a25565b61ffff1611156116b65760405162461bcd60e51b8152600401610a2890613a70565b6013546040805161ffff85811682528481166020830152600160281b8404811682840152600160381b9093049092166060830152517f95c5c99557725e816faf752c6675d63483841c28a7a009ed792470a9cb4dea239181900360800190a16013805468ffffffff00000000001916600160281b61ffff9485160268ffff00000000000000191617600160381b9290931691909102919091179055565b61175b611b7d565b6016546001600160a01b03908116908216036117c55760405162461bcd60e51b815260206004820152602360248201527f54686520726f7574657220616c7265616479206861732074686174206164647260448201526265737360e81b6064820152608401610a28565b6016546040516001600160a01b03918216918316907f51cb6825f043d6550a1cbb70cdd407e9ca7523e4a1ff93812b00168d1ca2565d90600090a3601680546001600160a01b0319166001600160a01b0383169081179091556040805163c45a015560e01b815290516000929163c45a01559160048083019260209291908290030181865afa15801561185c573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906118809190613a08565b6001546040516364e329cb60e11b81523060048201526001600160a01b03918216602482015291169063c9c65396906044016020604051808303816000875af11580156118d1573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906118f59190613a08565b601780546001600160a01b0319166001600160a01b038316908117909155909150610db8906001611ec8565b611929611b7d565b6001600160a01b03821660009081526018602052604090205481151560ff9091161515036119835760405162461bcd60e51b8152602060048201526007602482015266616c726561647960c81b6044820152606401610a28565b6001600160a01b038216600081815260186020908152604091829020805460ff191685151590811790915591519182527f2d43abd87b27cee7b0aa8c6f7e0b4a3247b683262a83cbc2318b0df398a49aa991015b60405180910390a25050565b6119eb611b7d565b6001600160a01b038116611a505760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610a28565b61121a81611fdf565b6001600160a01b038316611abb5760405162461bcd60e51b8152602060048201526024808201527f45524332303a20617070726f76652066726f6d20746865207a65726f206164646044820152637265737360e01b6064820152608401610a28565b6001600160a01b038216611b1c5760405162461bcd60e51b815260206004820152602260248201527f45524332303a20617070726f766520746f20746865207a65726f206164647265604482015261737360f01b6064820152608401610a28565b6001600160a01b0383811660008181526004602090815260408083209487168084529482529182902085905590518481527f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925910160405180910390a3505050565b6000546001600160a01b0316331461128e5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610a28565b6001600160a01b038316611c3b5760405162461bcd60e51b815260206004820152602560248201527f45524332303a207472616e736665722066726f6d20746865207a65726f206164604482015264647265737360d81b6064820152608401610a28565b6001600160a01b038216611c9d5760405162461bcd60e51b815260206004820152602360248201527f45524332303a207472616e7366657220746f20746865207a65726f206164647260448201526265737360e81b6064820152608401610a28565b6000611ca83061121d565b6015546013549192508210159060ff16158015611cc25750805b8015611ce35750601754600090611ce1906001600160a01b031661121d565b115b8015611d0757506001600160a01b03841660009081526019602052604090205460ff165b15611d1457611d1461202f565b611d1c612689565b60135460ff16158015611d4857506001600160a01b03851660009081526018602052604090205460ff16155b8015611d6d57506001600160a01b03841660009081526018602052604090205460ff16155b15611e24576001600160a01b03851660009081526019602052604090205460ff1615611dce5760135461ffff630100000082048116600b55600160381b82048116600d55600160581b82048116600f55600160781b90910416601155611e24565b6001600160a01b03841660009081526019602052604090205460ff1615611e245760135461ffff61010082048116600b55600160281b82048116600d55600160481b82048116600f55600160681b909104166011555b611e2f8585856126e6565b611e4c600c54600b55600e54600d55601054600f55601254601155565b5050505050565b6000806000611e606127e8565b9092509050611e6f8183613977565b9250505090565b600080600080600080600080611e8b8a6129e1565b939850919650945092509050611ea1898b6139af565b9750611ead89856139af565b9550611eb989866139af565b96509295985092959890939650565b6001600160a01b03821660009081526019602052604090205481151560ff909116151503611f5e5760405162461bcd60e51b815260206004820152603860248201527f4175746f6d61746564206d61726b6574206d616b65722070616972206973206160448201527f6c72656164792073657420746f20746861742076616c756500000000000000006064820152608401610a28565b6001600160a01b0382166000908152601960205260409020805460ff19168215801591909117909155611f9957611f9482610ead565b611fa2565b611fa282610ba6565b816001600160a01b03167fffa9187bf1f18bf477bd0ea1bcbb64e93b6a98132473929edfce215cd9b16fab826040516119d7911515815260200190565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b6013805460ff1916600117905560006120473061121d565b90506000601b54601a5461205b91906139c6565b905080158061206957508082105b1561207557505061267d565b60006002601a546120869190613977565b90506000601660009054906101000a90046001600160a01b03166001600160a01b031663ad5c46486040518163ffffffff1660e01b8152600401602060405180830381865afa1580156120dd573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906121019190613a08565b6001546001600160a01b03908116911614612187576001546040516370a0823160e01b81523060048201526001600160a01b03909116906370a0823190602401602060405180830381865afa15801561215e573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906121829190613a98565b612189565b475b9050600060148054906101000a900460ff161561248f576000601b54846121b091906139c6565b905080156121c1576121c181612aa4565b601654604080516315ab88c960e31b815290516000926001600160a01b03169163ad5c46489160048083019260209291908290030181865afa15801561220b573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061222f9190613a08565b6001546001600160a01b039081169116146122bf576001546040516370a0823160e01b815230600482015285916001600160a01b0316906370a0823190602401602060405180830381865afa15801561228c573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906122b09190613a98565b6122ba9190613964565b6122c9565b6122c98447613964565b9050600082601b54836122dc91906139af565b6122e69190613977565b90506122f28183613964565b9350801561248757601660009054906101000a90046001600160a01b03166001600160a01b031663ad5c46486040518163ffffffff1660e01b8152600401602060405180830381865afa15801561234d573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906123719190613a08565b6001546001600160a01b03918216911603612429576014546040516000916001600160a01b03169083908381818185875af1925050503d80600081146123d3576040519150601f19603f3d011682016040523d82523d6000602084013e6123d8565b606091505b505090508015612423576000601b81905560408051918252602082018490527f31ebcb5ffca524d7d9dbf7883164aab2785a7221063fb8c7a8d6f4d725e68be6910160405180910390a15b50612487565b601454600154612446916001600160a01b03918216911683612cc6565b6000601b81905560408051918252602082018390527f31ebcb5ffca524d7d9dbf7883164aab2785a7221063fb8c7a8d6f4d725e68be6910160405180910390a15b505050612619565b821561249e5761249e83612aa4565b601660009054906101000a90046001600160a01b03166001600160a01b031663ad5c46486040518163ffffffff1660e01b8152600401602060405180830381865afa1580156124f1573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906125159190613a08565b6001546001600160a01b039081169116146125a5576001546040516370a0823160e01b815230600482015283916001600160a01b0316906370a0823190602401602060405180830381865afa158015612572573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906125969190613a98565b6125a09190613964565b6125af565b6125af8247613964565b601b549091501561261957601454601b546125d79130916001600160a01b0390911690611bd7565b601b5460408051918252600060208301527f31ebcb5ffca524d7d9dbf7883164aab2785a7221063fb8c7a8d6f4d725e68be6910160405180910390a16000601b555b6000831180156126295750600081115b15612672576126388382612d18565b60408051848152602081018390527f28fc98272ce761178794ad6768050fea1648e07f1e2ffe15afd3a290f8381486910160405180910390a15b50506000601a555050505b6013805460ff19169055565b600b541580156126995750600d54155b80156126a55750600f54155b80156126b15750601154155b156126b857565b600b8054600c55600d8054600e55600f80546010556011805460125560009182905592819055908190559055565b6001600160a01b03831660009081526005602052604090205460ff16801561272757506001600160a01b03821660009081526005602052604090205460ff16155b1561273c57612737838383612f6b565b505050565b6001600160a01b03831660009081526005602052604090205460ff1615801561277d57506001600160a01b03821660009081526005602052604090205460ff165b1561278d57612737838383613141565b6001600160a01b03831660009081526005602052604090205460ff1680156127cd57506001600160a01b03821660009081526005602052604090205460ff165b156127dd5761273783838361320b565b61273783838361329e565b60075460009081907f0000000000000000000000000000000000000000000000000000000000000000825b6006548110156129755782600260006006848154811061283557612835613999565b60009182526020808320909101546001600160a01b0316835282019290925260400190205411806128a0575081600360006006848154811061287957612879613999565b60009182526020808320909101546001600160a01b03168352820192909252604001902054115b156128d3575050600754937f00000000000000000000000000000000000000000000000000000000000000009350915050565b60026000600683815481106128ea576128ea613999565b60009182526020808320909101546001600160a01b031683528201929092526040019020546129199084613964565b9250600360006006838154811061293257612932613999565b60009182526020808320909101546001600160a01b031683528201929092526040019020546129619083613964565b91508061296d816139ef565b915050612813565b507f00000000000000000000000000000000000000000000000000000000000000006007546129a49190613977565b8210156129d8575050600754927f000000000000000000000000000000000000000000000000000000000000000092509050565b90939092509050565b6000806000806000806103e8600b54886129fb91906139af565b612a059190613977565b905060006103e8600b5489612a1a91906139af565b612a249190613977565b905060006103e8600f548a612a3991906139af565b612a439190613977565b905060006103e86011548b612a5891906139af565b612a629190613977565b90506000818385612a73888f613964565b612a7d9190613964565b612a879190613964565b612a919190613964565b9b949a5092985090965094509092505050565b6040805160028082526060820183526000926020830190803683370190505090503081600081518110612ad957612ad9613999565b6001600160a01b0392831660209182029290920101526001805483519216918391908110612b0957612b09613999565b6001600160a01b03928316602091820292909201810191909152601654604080516315ab88c960e31b81529051919093169263ad5c46489260048083019391928290030181865afa158015612b62573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612b869190613a08565b6001600160a01b031681600181518110612ba257612ba2613999565b60200260200101516001600160a01b031603612c3f57601654612bd09030906001600160a01b031684611a59565b60165460405163791ac94760e01b81526001600160a01b039091169063791ac94790612c09908590600090869030904290600401613af5565b600060405180830381600087803b158015612c2357600080fd5b505af1158015612c37573d6000803e3d6000fd5b505050505050565b612c6a307f000000000000000000000000000000000000000000000000000000000000000084611a59565b601654604051637274ca1b60e11b81526001600160a01b037f000000000000000000000000000000000000000000000000000000000000000081169263e4e9943692612c09929190911690869060009087904290600401613b31565b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663a9059cbb60e01b179052612737908490613301565b601654612d309030906001600160a01b031684611a59565b60015460165460405163095ea7b360e01b81526001600160a01b0391821660048201526024810184905291169063095ea7b3906044016020604051808303816000875af1158015612d85573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612da99190613b70565b50601660009054906101000a90046001600160a01b03166001600160a01b031663ad5c46486040518163ffffffff1660e01b8152600401602060405180830381865afa158015612dfd573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612e219190613a08565b6001546001600160a01b03918216911603612ec95760165460405163f305d71960e01b815230600482015260248101849052600060448201819052606482015261dead60848201524260a48201526001600160a01b039091169063f305d71990839060c40160606040518083038185885af1158015612ea4573d6000803e3d6000fd5b50505050506040513d601f19601f82011682018060405250810190611e4c9190613b8d565b60165460015460405162e8e33760e81b81523060048201526001600160a01b039182166024820152604481018590526064810184905260006084820181905260a482015261dead60c48201524260e482015291169063e8e3370090610104016060604051808303816000875af1158015612f47573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611e4c9190613b8d565b6000612f75611e53565b9050600080600080600080600080612f8d8a8a611e76565b9750975097509750975097509750975089600360008e6001600160a01b03166001600160a01b0316815260200190815260200160002054612fce9190613964565b6001600160a01b038d16600090815260036020908152604080832093909355600290522054612ffe908990613964565b6001600160a01b03808e1660009081526002602052604080822093909355908d168152205461302e9088906139c6565b6001600160a01b038c166000908152600260205260409020556130538383838c6133d3565b61305d868561356b565b8a6001600160a01b03168c6001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef876040516130a291815260200190565b60405180910390a3306001600160a01b038d167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef6130e086866139c6565b60405190815260200160405180910390a360405181815261dead906001600160a01b038e16907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9060200160405180910390a3505050505050505050505050565b600061314b611e53565b90506000806000806000806000806131638a8a611e76565b9750975097509750975097509750975087600260008e6001600160a01b03166001600160a01b03168152602001908152602001600020546131a49190613964565b6001600160a01b03808e16600090815260026020908152604080832094909455918e168152600390915220546131db9086906139c6565b6001600160a01b038c1660009081526003602090815260408083209390935560029052205461302e9088906139c6565b6000613215611e53565b905060008060008060008060008061322d8a8a611e76565b9750975097509750975097509750975089600360008e6001600160a01b03166001600160a01b031681526020019081526020016000205461326e9190613964565b6001600160a01b038d166000908152600360209081526040808320939093556002905220546131a4908990613964565b60006132a8611e53565b90506000806000806000806000806132c08a8a611e76565b9750975097509750975097509750975087600260008e6001600160a01b03166001600160a01b0316815260200190815260200160002054612ffe9190613964565b6000613356826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b03166135919092919063ffffffff16565b80519091501561273757808060200190518101906133749190613b70565b6127375760405162461bcd60e51b815260206004820152602a60248201527f5361666545524332303a204552433230206f7065726174696f6e20646964206e6044820152691bdd081cdd58d8d9595960b21b6064820152608401610a28565b83601a546133e191906139c6565b601a55601b546133f29084906139c6565b601b55600061340182866139af565b9050600061340f83866139af565b9050600061341d84866139af565b30600090815260026020526040902054909150829061343d9085906139c6565b61344791906139c6565b3060009081526002602090815260408083209390935560059052205460ff16156134a3573060009081526003602052604090205486906134889089906139c6565b61349291906139c6565b306000908152600360205260409020555b61dead60005260026020527f6a9609baa168169acaea398c4407efea4be641bb08e21e88806d9836fd9333cc546134db9082906139c6565b61dead6000527f6a9609baa168169acaea398c4407efea4be641bb08e21e88806d9836fd9333cc5560036020527f262bb27bbdd95c1cdc8e16957e36e38579ea44f7f6413dd7a9c75939def06b2c546135359086906139c6565b61dead60005260036020527f262bb27bbdd95c1cdc8e16957e36e38579ea44f7f6413dd7a9c75939def06b2c5550505050505050565b816007546135799190613964565b60075560085461358a9082906139c6565b6008555050565b60606135a084846000856135a8565b949350505050565b6060824710156136095760405162461bcd60e51b815260206004820152602660248201527f416464726573733a20696e73756666696369656e742062616c616e636520666f6044820152651c8818d85b1b60d21b6064820152608401610a28565b600080866001600160a01b031685876040516136259190613bbb565b60006040518083038185875af1925050503d8060008114613662576040519150601f19603f3d011682016040523d82523d6000602084013e613667565b606091505b509150915061367887838387613683565b979650505050505050565b606083156136f25782516000036136eb576001600160a01b0385163b6136eb5760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e74726163740000006044820152606401610a28565b50816135a0565b6135a083838151156137075781518083602001fd5b8060405162461bcd60e51b8152600401610a289190613745565b60005b8381101561373c578181015183820152602001613724565b50506000910152565b6020815260008251806020840152613764816040850160208701613721565b601f01601f19169190910160400192915050565b6001600160a01b038116811461121a57600080fd5b600080604083850312156137a057600080fd5b82356137ab81613778565b946020939093013593505050565b801515811461121a57600080fd5b600080604083850312156137da57600080fd5b82356137e581613778565b915060208301356137f5816137b9565b809150509250929050565b60008060006060848603121561381557600080fd5b833561382081613778565b9250602084013561383081613778565b929592945050506040919091013590565b60006020828403121561385357600080fd5b5035919050565b60006020828403121561386c57600080fd5b8135610b9f81613778565b6000806040838503121561388a57600080fd5b8235915060208301356137f5816137b9565b803561ffff811681146138ae57600080fd5b919050565b600080604083850312156138c657600080fd5b6138cf8361389c565b91506138dd6020840161389c565b90509250929050565b600080604083850312156138f957600080fd5b823561390481613778565b915060208301356137f581613778565b600181811c9082168061392857607f821691505b60208210810361394857634e487b7160e01b600052602260045260246000fd5b50919050565b634e487b7160e01b600052601160045260246000fd5b818103818111156109c8576109c861394e565b60008261399457634e487b7160e01b600052601260045260246000fd5b500490565b634e487b7160e01b600052603260045260246000fd5b80820281158282048414176109c8576109c861394e565b808201808211156109c8576109c861394e565b634e487b7160e01b600052603160045260246000fd5b600060018201613a0157613a0161394e565b5060010190565b600060208284031215613a1a57600080fd5b8151610b9f81613778565b61ffff818116838216019080821115613a4057613a4061394e565b5092915050565b6020808252600f908201526e73656c6c20666565203c3d2032302560881b604082015260600190565b6020808252600e908201526d62757920666565203c3d2032302560901b604082015260600190565b600060208284031215613aaa57600080fd5b5051919050565b600081518084526020808501945080840160005b83811015613aea5781516001600160a01b031687529582019590820190600101613ac5565b509495945050505050565b85815284602082015260a060408201526000613b1460a0830186613ab1565b6001600160a01b0394909416606083015250608001529392505050565b60018060a01b038616815284602082015283604082015260a060608201526000613b5e60a0830185613ab1565b90508260808301529695505050505050565b600060208284031215613b8257600080fd5b8151610b9f816137b9565b600080600060608486031215613ba257600080fd5b8351925060208401519150604084015190509250925092565b60008251613bcd818460208701613721565b919091019291505056fea26469706673582212203ee0c50732d844678e38509f68be26ce293a7dcbdc391033403c6e6d85cacd0f64736f6c63430008110033f652222313e28459528d920b65115c16c04f3efc82aaedc97be59f3f377c0d3f0000000000000000000000000000000000000000000000000000000000000220000000000000000000000000000000000000000000000000000000000000026000000000000000000000000000000000000000000000000000000000000000120000000000000000000000000000000000000001431e0fae6d7217caa00000000000000000000000000000003fd187c0b111e1d8cf665251fb45bf8d17fbe16a0000000000000000000000007a250d5630b4cf539739df2c5dacb4c659f2488d000000000000000000000000c02aaa39b223fe8d0a0e5c4f27ead9083c756cc200000000000000000000000005981cdde051fbb650b66d15ad9aecdf47e5fa620000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000a000000000000000000000000000000000000000000000000000000000000000a0000000000000000000000000000000000000000000000000000000000000014000000000000000000000000000000000000000000000000000000000000001400000000000000000000000000000000000000000000000000000000000000140000000000000000000000000000000000000000000000000000000000000014000000000000000000000000000000000000000000000000000000000000000a000000000000000000000000000000000000000000000000000000000000000a0000000000000000000000000000000000000000000000000000000000000007446f67657474690000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000052444455449000000000000000000000000000000000000000000000000000000
Deployed Bytecode
0x6080604052600436106102815760003560e01c806385af30c51161014f578063b62496f5116100c1578063df8408fe1161007a578063df8408fe14610869578063e71dc3f514610889578063f11a24d3146108ab578063f2fde38b146108cd578063f6374342146108ed578063fc59d23d1461090f57600080fd5b8063b62496f514610773578063cf188ad0146107a3578063d68f8cde146107c3578063d880cd85146107e3578063dd62ed3e14610803578063de0aad531461084957600080fd5b806395d89b411161011357806395d89b41146106ba5780639a7a23d6146106cf578063a1dc92bc146106ef578063a457c2d714610711578063a9059cbb14610731578063adb873bd1461075157600080fd5b806385af30c5146105ef57806388f820201461060f5780638da5cb5b1461064857806392586f5e14610666578063948384dc1461069a57600080fd5b806339509351116101f357806370a08231116101ac57806370a0823114610522578063715018a61461054257806373b9e82c146105575780637b208769146105775780637cf84bd7146105af5780638211b093146105cf57600080fd5b806339509351146104515780634549b0391461047157806352390c02146104915780635342acb4146104b15780635f2d95ad146104e157806361ea28ca1461050157600080fd5b806318160ddd1161024557806318160ddd1461035e5780631d9a43ea1461039157806323b872dd146103b35780632d838119146103d3578063313ce567146103f35780633685d4191461043157600080fd5b806306fdde031461028d578063095ea7b3146102b85780630cfe2f3f146102e85780630d7f14411461031d57806313114a9d1461033f57600080fd5b3661028857005b600080fd5b34801561029957600080fd5b506102a2610925565b6040516102af9190613745565b60405180910390f35b3480156102c457600080fd5b506102d86102d336600461378d565b6109b7565b60405190151581526020016102af565b3480156102f457600080fd5b5060135461030a906301000000900461ffff1681565b60405161ffff90911681526020016102af565b34801561032957600080fd5b5060135461030a90600160481b900461ffff1681565b34801561034b57600080fd5b506008545b6040519081526020016102af565b34801561036a57600080fd5b507f0000000000000000000000000000000000000001431e0fae6d7217caa0000000610350565b34801561039d57600080fd5b506103b16103ac3660046137c7565b6109ce565b005b3480156103bf57600080fd5b506102d86103ce366004613800565b610ad0565b3480156103df57600080fd5b506103506103ee366004613841565b610b22565b3480156103ff57600080fd5b5060405160ff7f00000000000000000000000000000000000000000000000000000000000000121681526020016102af565b34801561043d57600080fd5b506103b161044c36600461385a565b610ba6565b34801561045d57600080fd5b506102d861046c36600461378d565b610dbc565b34801561047d57600080fd5b5061035061048c366004613877565b610df3565b34801561049d57600080fd5b506103b16104ac36600461385a565b610ead565b3480156104bd57600080fd5b506102d86104cc36600461385a565b60186020526000908152604090205460ff1681565b3480156104ed57600080fd5b506103b16104fc36600461385a565b611079565b34801561050d57600080fd5b506014546102d890600160a01b900460ff1681565b34801561052e57600080fd5b5061035061053d36600461385a565b61121d565b34801561054e57600080fd5b506103b161127c565b34801561056357600080fd5b506103b1610572366004613841565b611290565b34801561058357600080fd5b50601454610597906001600160a01b031681565b6040516001600160a01b0390911681526020016102af565b3480156105bb57600080fd5b50600154610597906001600160a01b031681565b3480156105db57600080fd5b506103b16105ea3660046138b3565b611323565b3480156105fb57600080fd5b50601754610597906001600160a01b031681565b34801561061b57600080fd5b506102d861062a36600461385a565b6001600160a01b031660009081526005602052604090205460ff1690565b34801561065457600080fd5b506000546001600160a01b0316610597565b34801561067257600080fd5b506105977f00000000000000000000000005981cdde051fbb650b66d15ad9aecdf47e5fa6281565b3480156106a657600080fd5b506103b16106b53660046138b3565b61146a565b3480156106c657600080fd5b506102a26115a7565b3480156106db57600080fd5b506103b16106ea3660046137c7565b6115b6565b3480156106fb57600080fd5b5060135461030a90600160581b900461ffff1681565b34801561071d57600080fd5b506102d861072c36600461378d565b6115c8565b34801561073d57600080fd5b506102d861074c36600461378d565b6115ff565b34801561075d57600080fd5b5060135461030a90600160681b900461ffff1681565b34801561077f57600080fd5b506102d861078e36600461385a565b60196020526000908152604090205460ff1681565b3480156107af57600080fd5b50601654610597906001600160a01b031681565b3480156107cf57600080fd5b506103b16107de3660046138b3565b61160c565b3480156107ef57600080fd5b506103b16107fe36600461385a565b611753565b34801561080f57600080fd5b5061035061081e3660046138e6565b6001600160a01b03918216600090815260046020908152604080832093909416825291909152205490565b34801561085557600080fd5b5060135461030a90610100900461ffff1681565b34801561087557600080fd5b506103b16108843660046137c7565b611921565b34801561089557600080fd5b5060135461030a90600160781b900461ffff1681565b3480156108b757600080fd5b5060135461030a90600160381b900461ffff1681565b3480156108d957600080fd5b506103b16108e836600461385a565b6119e3565b3480156108f957600080fd5b5060135461030a90600160281b900461ffff1681565b34801561091b57600080fd5b5061035060155481565b60606009805461093490613914565b80601f016020809104026020016040519081016040528092919081815260200182805461096090613914565b80156109ad5780601f10610982576101008083540402835291602001916109ad565b820191906000526020600020905b81548152906001019060200180831161099057829003601f168201915b5050505050905090565b60006109c4338484611a59565b5060015b92915050565b6109d6611b7d565b6001600160a01b038216610a315760405162461bcd60e51b815260206004820152601960248201527f636861726974792077616c6c65742063616e277420626520300000000000000060448201526064015b60405180910390fd5b601454604080518315158152600160a01b830460ff16151560208201526001600160a01b03928316928516917f1d98f59b1deacd787c67785088447780339df32ca62e24c7b85607dbb1b3462b910160405180910390a360148054911515600160a01b026001600160a81b03199092166001600160a01b039093169283179190911790556000908152601860205260409020805460ff19166001179055565b6000610add848484611bd7565b6001600160a01b038416600090815260046020908152604080832033808552925290912054610b18918691610b13908690613964565b611a59565b5060019392505050565b6000600754821115610b895760405162461bcd60e51b815260206004820152602a60248201527f416d6f756e74206d757374206265206c657373207468616e20746f74616c207260448201526965666c656374696f6e7360b01b6064820152608401610a28565b6000610b93611e53565b9050610b9f8184613977565b9392505050565b610bae611b7d565b6001600160a01b03811660009081526005602052604090205460ff16610c165760405162461bcd60e51b815260206004820152601760248201527f4163636f756e74206973206e6f74206578636c756465640000000000000000006044820152606401610a28565b60005b600654811015610db857816001600160a01b031660068281548110610c4057610c40613999565b6000918252602090912001546001600160a01b031603610da6576001600160a01b038216600090815260026020526040902054610c7b611e53565b6001600160a01b038416600090815260036020526040902054610c9e91906139af565b6001600160a01b03841660009081526002602052604090208190556007548291610cc7916139c6565b610cd19190613964565b6007556001600160a01b0383166000908152600560205260409020805460ff1916905560068054610d0490600190613964565b81548110610d1457610d14613999565b600091825260209091200154600680546001600160a01b039092169184908110610d4057610d40613999565b9060005260206000200160006101000a8154816001600160a01b0302191690836001600160a01b031602179055506006805480610d7f57610d7f6139d9565b600082815260209020810160001990810180546001600160a01b0319169055019055505050565b80610db0816139ef565b915050610c19565b5050565b3360008181526004602090815260408083206001600160a01b038716845290915281205490916109c4918590610b139086906139c6565b60007f0000000000000000000000000000000000000001431e0fae6d7217caa0000000831115610e655760405162461bcd60e51b815260206004820152601f60248201527f416d6f756e74206d757374206265206c657373207468616e20737570706c79006044820152606401610a28565b81610e8e576000610e7d84610e78611e53565b611e76565b509597506109c89650505050505050565b6000610e9c84610e78611e53565b509497506109c89650505050505050565b610eb5611b7d565b6001600160a01b03811660009081526005602052604090205460ff1615610f1e5760405162461bcd60e51b815260206004820152601b60248201527f4163636f756e7420697320616c7265616479206578636c7564656400000000006044820152606401610a28565b600654603290610f2f9060016139c6565b1115610fb95760405162461bcd60e51b815260206004820152604d60248201527f43616e6e6f74206578636c756465206d6f7265207468616e203530206163636f60448201527f756e74732e2020496e636c75646520612070726576696f75736c79206578636c60648201526c3ab232b21030b2323932b9b99760991b608482015260a401610a28565b6001600160a01b03811660009081526002602052604090205415611013576001600160a01b038116600090815260026020526040902054610ff990610b22565b6001600160a01b0382166000908152600360205260409020555b6001600160a01b03166000818152600560205260408120805460ff191660019081179091556006805491820181559091527ff652222313e28459528d920b65115c16c04f3efc82aaedc97be59f3f377c0d3f0180546001600160a01b0319169091179055565b611081611b7d565b6001546001600160a01b03908116908216036110f55760405162461bcd60e51b815260206004820152602d60248201527f5468652062617365546f6b656e466f725061697220616c72656164792068617360448201526c2074686174206164647265737360981b6064820152608401610a28565b600180546001600160a01b0319166001600160a01b03838116919091179091556016546040805163c45a015560e01b81529051919092169163c45a01559160048083019260209291908290030181865afa158015611157573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061117b9190613a08565b6001546040516364e329cb60e11b81523060048201526001600160a01b03918216602482015291169063c9c65396906044016020604051808303816000875af11580156111cc573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906111f09190613a08565b601780546001600160a01b0319166001600160a01b0392909216918217905561121a906001611ec8565b50565b6001600160a01b03811660009081526005602052604081205460ff161561125a57506001600160a01b031660009081526003602052604090205490565b6001600160a01b0382166000908152600260205260409020546109c890610b22565b611284611b7d565b61128e6000611fdf565b565b611298611b7d565b600081116112e15760405162461bcd60e51b815260206004820152601660248201527506d696e416d6f756e74546f54616b65466565203e20360541b6044820152606401610a28565b6015546040805183815260208101929092527f772a06bc936eb749842080c472181e970cd4f23bd1ab7d0b84a80aec26910434910160405180910390a1601555565b61132b611b7d565b60135460c89061ffff610100820481169161134f91600160281b9091041685613a25565b6113599190613a25565b61ffff16111561137b5760405162461bcd60e51b8152600401610a2890613a47565b60135460c89061ffff630100000082048116916113a191600160381b9091041684613a25565b6113ab9190613a25565b61ffff1611156113cd5760405162461bcd60e51b8152600401610a2890613a70565b6013546040805161ffff85811682528481166020830152600160481b8404811682840152600160581b9093049092166060830152517f0c5e1c07a180f51f2f2621ef70950e3ca7abcdc709c1ee86d59bba8cd9273df99181900360800190a1601380546cffffffff0000000000000000001916600160481b61ffff9485160261ffff60581b191617600160581b9290931691909102919091179055565b611472611b7d565b60135460c89061ffff600160481b820481169161149891600160281b9091041685613a25565b6114a29190613a25565b61ffff1611156114c45760405162461bcd60e51b8152600401610a2890613a47565b60135460c89061ffff600160581b82048116916114ea91600160381b9091041684613a25565b6114f49190613a25565b61ffff1611156115165760405162461bcd60e51b8152600401610a2890613a70565b6013546040805161ffff85811682528481166020830152610100840481168284015263010000009093049092166060830152517f0a21d45dab14d5d2f53ae98d95d951cd627fcf1b5bc485174326568b5e0a45729181900360800190a16013805464ffffffff00191661010061ffff9485160264ffff00000019161763010000009290931691909102919091179055565b6060600a805461093490613914565b6115be611b7d565b610db88282611ec8565b3360008181526004602090815260408083206001600160a01b038716845290915281205490916109c4918590610b13908690613964565b60006109c4338484611bd7565b611614611b7d565b60135460c89061ffff610100820481169161163891600160481b9091041685613a25565b6116429190613a25565b61ffff1611156116645760405162461bcd60e51b8152600401610a2890613a47565b60135460c89061ffff6301000000820481169161168a91600160581b9091041684613a25565b6116949190613a25565b61ffff1611156116b65760405162461bcd60e51b8152600401610a2890613a70565b6013546040805161ffff85811682528481166020830152600160281b8404811682840152600160381b9093049092166060830152517f95c5c99557725e816faf752c6675d63483841c28a7a009ed792470a9cb4dea239181900360800190a16013805468ffffffff00000000001916600160281b61ffff9485160268ffff00000000000000191617600160381b9290931691909102919091179055565b61175b611b7d565b6016546001600160a01b03908116908216036117c55760405162461bcd60e51b815260206004820152602360248201527f54686520726f7574657220616c7265616479206861732074686174206164647260448201526265737360e81b6064820152608401610a28565b6016546040516001600160a01b03918216918316907f51cb6825f043d6550a1cbb70cdd407e9ca7523e4a1ff93812b00168d1ca2565d90600090a3601680546001600160a01b0319166001600160a01b0383169081179091556040805163c45a015560e01b815290516000929163c45a01559160048083019260209291908290030181865afa15801561185c573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906118809190613a08565b6001546040516364e329cb60e11b81523060048201526001600160a01b03918216602482015291169063c9c65396906044016020604051808303816000875af11580156118d1573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906118f59190613a08565b601780546001600160a01b0319166001600160a01b038316908117909155909150610db8906001611ec8565b611929611b7d565b6001600160a01b03821660009081526018602052604090205481151560ff9091161515036119835760405162461bcd60e51b8152602060048201526007602482015266616c726561647960c81b6044820152606401610a28565b6001600160a01b038216600081815260186020908152604091829020805460ff191685151590811790915591519182527f2d43abd87b27cee7b0aa8c6f7e0b4a3247b683262a83cbc2318b0df398a49aa991015b60405180910390a25050565b6119eb611b7d565b6001600160a01b038116611a505760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610a28565b61121a81611fdf565b6001600160a01b038316611abb5760405162461bcd60e51b8152602060048201526024808201527f45524332303a20617070726f76652066726f6d20746865207a65726f206164646044820152637265737360e01b6064820152608401610a28565b6001600160a01b038216611b1c5760405162461bcd60e51b815260206004820152602260248201527f45524332303a20617070726f766520746f20746865207a65726f206164647265604482015261737360f01b6064820152608401610a28565b6001600160a01b0383811660008181526004602090815260408083209487168084529482529182902085905590518481527f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925910160405180910390a3505050565b6000546001600160a01b0316331461128e5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610a28565b6001600160a01b038316611c3b5760405162461bcd60e51b815260206004820152602560248201527f45524332303a207472616e736665722066726f6d20746865207a65726f206164604482015264647265737360d81b6064820152608401610a28565b6001600160a01b038216611c9d5760405162461bcd60e51b815260206004820152602360248201527f45524332303a207472616e7366657220746f20746865207a65726f206164647260448201526265737360e81b6064820152608401610a28565b6000611ca83061121d565b6015546013549192508210159060ff16158015611cc25750805b8015611ce35750601754600090611ce1906001600160a01b031661121d565b115b8015611d0757506001600160a01b03841660009081526019602052604090205460ff165b15611d1457611d1461202f565b611d1c612689565b60135460ff16158015611d4857506001600160a01b03851660009081526018602052604090205460ff16155b8015611d6d57506001600160a01b03841660009081526018602052604090205460ff16155b15611e24576001600160a01b03851660009081526019602052604090205460ff1615611dce5760135461ffff630100000082048116600b55600160381b82048116600d55600160581b82048116600f55600160781b90910416601155611e24565b6001600160a01b03841660009081526019602052604090205460ff1615611e245760135461ffff61010082048116600b55600160281b82048116600d55600160481b82048116600f55600160681b909104166011555b611e2f8585856126e6565b611e4c600c54600b55600e54600d55601054600f55601254601155565b5050505050565b6000806000611e606127e8565b9092509050611e6f8183613977565b9250505090565b600080600080600080600080611e8b8a6129e1565b939850919650945092509050611ea1898b6139af565b9750611ead89856139af565b9550611eb989866139af565b96509295985092959890939650565b6001600160a01b03821660009081526019602052604090205481151560ff909116151503611f5e5760405162461bcd60e51b815260206004820152603860248201527f4175746f6d61746564206d61726b6574206d616b65722070616972206973206160448201527f6c72656164792073657420746f20746861742076616c756500000000000000006064820152608401610a28565b6001600160a01b0382166000908152601960205260409020805460ff19168215801591909117909155611f9957611f9482610ead565b611fa2565b611fa282610ba6565b816001600160a01b03167fffa9187bf1f18bf477bd0ea1bcbb64e93b6a98132473929edfce215cd9b16fab826040516119d7911515815260200190565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b6013805460ff1916600117905560006120473061121d565b90506000601b54601a5461205b91906139c6565b905080158061206957508082105b1561207557505061267d565b60006002601a546120869190613977565b90506000601660009054906101000a90046001600160a01b03166001600160a01b031663ad5c46486040518163ffffffff1660e01b8152600401602060405180830381865afa1580156120dd573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906121019190613a08565b6001546001600160a01b03908116911614612187576001546040516370a0823160e01b81523060048201526001600160a01b03909116906370a0823190602401602060405180830381865afa15801561215e573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906121829190613a98565b612189565b475b9050600060148054906101000a900460ff161561248f576000601b54846121b091906139c6565b905080156121c1576121c181612aa4565b601654604080516315ab88c960e31b815290516000926001600160a01b03169163ad5c46489160048083019260209291908290030181865afa15801561220b573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061222f9190613a08565b6001546001600160a01b039081169116146122bf576001546040516370a0823160e01b815230600482015285916001600160a01b0316906370a0823190602401602060405180830381865afa15801561228c573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906122b09190613a98565b6122ba9190613964565b6122c9565b6122c98447613964565b9050600082601b54836122dc91906139af565b6122e69190613977565b90506122f28183613964565b9350801561248757601660009054906101000a90046001600160a01b03166001600160a01b031663ad5c46486040518163ffffffff1660e01b8152600401602060405180830381865afa15801561234d573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906123719190613a08565b6001546001600160a01b03918216911603612429576014546040516000916001600160a01b03169083908381818185875af1925050503d80600081146123d3576040519150601f19603f3d011682016040523d82523d6000602084013e6123d8565b606091505b505090508015612423576000601b81905560408051918252602082018490527f31ebcb5ffca524d7d9dbf7883164aab2785a7221063fb8c7a8d6f4d725e68be6910160405180910390a15b50612487565b601454600154612446916001600160a01b03918216911683612cc6565b6000601b81905560408051918252602082018390527f31ebcb5ffca524d7d9dbf7883164aab2785a7221063fb8c7a8d6f4d725e68be6910160405180910390a15b505050612619565b821561249e5761249e83612aa4565b601660009054906101000a90046001600160a01b03166001600160a01b031663ad5c46486040518163ffffffff1660e01b8152600401602060405180830381865afa1580156124f1573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906125159190613a08565b6001546001600160a01b039081169116146125a5576001546040516370a0823160e01b815230600482015283916001600160a01b0316906370a0823190602401602060405180830381865afa158015612572573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906125969190613a98565b6125a09190613964565b6125af565b6125af8247613964565b601b549091501561261957601454601b546125d79130916001600160a01b0390911690611bd7565b601b5460408051918252600060208301527f31ebcb5ffca524d7d9dbf7883164aab2785a7221063fb8c7a8d6f4d725e68be6910160405180910390a16000601b555b6000831180156126295750600081115b15612672576126388382612d18565b60408051848152602081018390527f28fc98272ce761178794ad6768050fea1648e07f1e2ffe15afd3a290f8381486910160405180910390a15b50506000601a555050505b6013805460ff19169055565b600b541580156126995750600d54155b80156126a55750600f54155b80156126b15750601154155b156126b857565b600b8054600c55600d8054600e55600f80546010556011805460125560009182905592819055908190559055565b6001600160a01b03831660009081526005602052604090205460ff16801561272757506001600160a01b03821660009081526005602052604090205460ff16155b1561273c57612737838383612f6b565b505050565b6001600160a01b03831660009081526005602052604090205460ff1615801561277d57506001600160a01b03821660009081526005602052604090205460ff165b1561278d57612737838383613141565b6001600160a01b03831660009081526005602052604090205460ff1680156127cd57506001600160a01b03821660009081526005602052604090205460ff165b156127dd5761273783838361320b565b61273783838361329e565b60075460009081907f0000000000000000000000000000000000000001431e0fae6d7217caa0000000825b6006548110156129755782600260006006848154811061283557612835613999565b60009182526020808320909101546001600160a01b0316835282019290925260400190205411806128a0575081600360006006848154811061287957612879613999565b60009182526020808320909101546001600160a01b03168352820192909252604001902054115b156128d3575050600754937f0000000000000000000000000000000000000001431e0fae6d7217caa00000009350915050565b60026000600683815481106128ea576128ea613999565b60009182526020808320909101546001600160a01b031683528201929092526040019020546129199084613964565b9250600360006006838154811061293257612932613999565b60009182526020808320909101546001600160a01b031683528201929092526040019020546129619083613964565b91508061296d816139ef565b915050612813565b507f0000000000000000000000000000000000000001431e0fae6d7217caa00000006007546129a49190613977565b8210156129d8575050600754927f0000000000000000000000000000000000000001431e0fae6d7217caa000000092509050565b90939092509050565b6000806000806000806103e8600b54886129fb91906139af565b612a059190613977565b905060006103e8600b5489612a1a91906139af565b612a249190613977565b905060006103e8600f548a612a3991906139af565b612a439190613977565b905060006103e86011548b612a5891906139af565b612a629190613977565b90506000818385612a73888f613964565b612a7d9190613964565b612a879190613964565b612a919190613964565b9b949a5092985090965094509092505050565b6040805160028082526060820183526000926020830190803683370190505090503081600081518110612ad957612ad9613999565b6001600160a01b0392831660209182029290920101526001805483519216918391908110612b0957612b09613999565b6001600160a01b03928316602091820292909201810191909152601654604080516315ab88c960e31b81529051919093169263ad5c46489260048083019391928290030181865afa158015612b62573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612b869190613a08565b6001600160a01b031681600181518110612ba257612ba2613999565b60200260200101516001600160a01b031603612c3f57601654612bd09030906001600160a01b031684611a59565b60165460405163791ac94760e01b81526001600160a01b039091169063791ac94790612c09908590600090869030904290600401613af5565b600060405180830381600087803b158015612c2357600080fd5b505af1158015612c37573d6000803e3d6000fd5b505050505050565b612c6a307f00000000000000000000000005981cdde051fbb650b66d15ad9aecdf47e5fa6284611a59565b601654604051637274ca1b60e11b81526001600160a01b037f00000000000000000000000005981cdde051fbb650b66d15ad9aecdf47e5fa6281169263e4e9943692612c09929190911690869060009087904290600401613b31565b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663a9059cbb60e01b179052612737908490613301565b601654612d309030906001600160a01b031684611a59565b60015460165460405163095ea7b360e01b81526001600160a01b0391821660048201526024810184905291169063095ea7b3906044016020604051808303816000875af1158015612d85573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612da99190613b70565b50601660009054906101000a90046001600160a01b03166001600160a01b031663ad5c46486040518163ffffffff1660e01b8152600401602060405180830381865afa158015612dfd573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612e219190613a08565b6001546001600160a01b03918216911603612ec95760165460405163f305d71960e01b815230600482015260248101849052600060448201819052606482015261dead60848201524260a48201526001600160a01b039091169063f305d71990839060c40160606040518083038185885af1158015612ea4573d6000803e3d6000fd5b50505050506040513d601f19601f82011682018060405250810190611e4c9190613b8d565b60165460015460405162e8e33760e81b81523060048201526001600160a01b039182166024820152604481018590526064810184905260006084820181905260a482015261dead60c48201524260e482015291169063e8e3370090610104016060604051808303816000875af1158015612f47573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611e4c9190613b8d565b6000612f75611e53565b9050600080600080600080600080612f8d8a8a611e76565b9750975097509750975097509750975089600360008e6001600160a01b03166001600160a01b0316815260200190815260200160002054612fce9190613964565b6001600160a01b038d16600090815260036020908152604080832093909355600290522054612ffe908990613964565b6001600160a01b03808e1660009081526002602052604080822093909355908d168152205461302e9088906139c6565b6001600160a01b038c166000908152600260205260409020556130538383838c6133d3565b61305d868561356b565b8a6001600160a01b03168c6001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef876040516130a291815260200190565b60405180910390a3306001600160a01b038d167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef6130e086866139c6565b60405190815260200160405180910390a360405181815261dead906001600160a01b038e16907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9060200160405180910390a3505050505050505050505050565b600061314b611e53565b90506000806000806000806000806131638a8a611e76565b9750975097509750975097509750975087600260008e6001600160a01b03166001600160a01b03168152602001908152602001600020546131a49190613964565b6001600160a01b03808e16600090815260026020908152604080832094909455918e168152600390915220546131db9086906139c6565b6001600160a01b038c1660009081526003602090815260408083209390935560029052205461302e9088906139c6565b6000613215611e53565b905060008060008060008060008061322d8a8a611e76565b9750975097509750975097509750975089600360008e6001600160a01b03166001600160a01b031681526020019081526020016000205461326e9190613964565b6001600160a01b038d166000908152600360209081526040808320939093556002905220546131a4908990613964565b60006132a8611e53565b90506000806000806000806000806132c08a8a611e76565b9750975097509750975097509750975087600260008e6001600160a01b03166001600160a01b0316815260200190815260200160002054612ffe9190613964565b6000613356826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b03166135919092919063ffffffff16565b80519091501561273757808060200190518101906133749190613b70565b6127375760405162461bcd60e51b815260206004820152602a60248201527f5361666545524332303a204552433230206f7065726174696f6e20646964206e6044820152691bdd081cdd58d8d9595960b21b6064820152608401610a28565b83601a546133e191906139c6565b601a55601b546133f29084906139c6565b601b55600061340182866139af565b9050600061340f83866139af565b9050600061341d84866139af565b30600090815260026020526040902054909150829061343d9085906139c6565b61344791906139c6565b3060009081526002602090815260408083209390935560059052205460ff16156134a3573060009081526003602052604090205486906134889089906139c6565b61349291906139c6565b306000908152600360205260409020555b61dead60005260026020527f6a9609baa168169acaea398c4407efea4be641bb08e21e88806d9836fd9333cc546134db9082906139c6565b61dead6000527f6a9609baa168169acaea398c4407efea4be641bb08e21e88806d9836fd9333cc5560036020527f262bb27bbdd95c1cdc8e16957e36e38579ea44f7f6413dd7a9c75939def06b2c546135359086906139c6565b61dead60005260036020527f262bb27bbdd95c1cdc8e16957e36e38579ea44f7f6413dd7a9c75939def06b2c5550505050505050565b816007546135799190613964565b60075560085461358a9082906139c6565b6008555050565b60606135a084846000856135a8565b949350505050565b6060824710156136095760405162461bcd60e51b815260206004820152602660248201527f416464726573733a20696e73756666696369656e742062616c616e636520666f6044820152651c8818d85b1b60d21b6064820152608401610a28565b600080866001600160a01b031685876040516136259190613bbb565b60006040518083038185875af1925050503d8060008114613662576040519150601f19603f3d011682016040523d82523d6000602084013e613667565b606091505b509150915061367887838387613683565b979650505050505050565b606083156136f25782516000036136eb576001600160a01b0385163b6136eb5760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e74726163740000006044820152606401610a28565b50816135a0565b6135a083838151156137075781518083602001fd5b8060405162461bcd60e51b8152600401610a289190613745565b60005b8381101561373c578181015183820152602001613724565b50506000910152565b6020815260008251806020840152613764816040850160208701613721565b601f01601f19169190910160400192915050565b6001600160a01b038116811461121a57600080fd5b600080604083850312156137a057600080fd5b82356137ab81613778565b946020939093013593505050565b801515811461121a57600080fd5b600080604083850312156137da57600080fd5b82356137e581613778565b915060208301356137f5816137b9565b809150509250929050565b60008060006060848603121561381557600080fd5b833561382081613778565b9250602084013561383081613778565b929592945050506040919091013590565b60006020828403121561385357600080fd5b5035919050565b60006020828403121561386c57600080fd5b8135610b9f81613778565b6000806040838503121561388a57600080fd5b8235915060208301356137f5816137b9565b803561ffff811681146138ae57600080fd5b919050565b600080604083850312156138c657600080fd5b6138cf8361389c565b91506138dd6020840161389c565b90509250929050565b600080604083850312156138f957600080fd5b823561390481613778565b915060208301356137f581613778565b600181811c9082168061392857607f821691505b60208210810361394857634e487b7160e01b600052602260045260246000fd5b50919050565b634e487b7160e01b600052601160045260246000fd5b818103818111156109c8576109c861394e565b60008261399457634e487b7160e01b600052601260045260246000fd5b500490565b634e487b7160e01b600052603260045260246000fd5b80820281158282048414176109c8576109c861394e565b808201808211156109c8576109c861394e565b634e487b7160e01b600052603160045260246000fd5b600060018201613a0157613a0161394e565b5060010190565b600060208284031215613a1a57600080fd5b8151610b9f81613778565b61ffff818116838216019080821115613a4057613a4061394e565b5092915050565b6020808252600f908201526e73656c6c20666565203c3d2032302560881b604082015260600190565b6020808252600e908201526d62757920666565203c3d2032302560901b604082015260600190565b600060208284031215613aaa57600080fd5b5051919050565b600081518084526020808501945080840160005b83811015613aea5781516001600160a01b031687529582019590820190600101613ac5565b509495945050505050565b85815284602082015260a060408201526000613b1460a0830186613ab1565b6001600160a01b0394909416606083015250608001529392505050565b60018060a01b038616815284602082015283604082015260a060608201526000613b5e60a0830185613ab1565b90508260808301529695505050505050565b600060208284031215613b8257600080fd5b8151610b9f816137b9565b600080600060608486031215613ba257600080fd5b8351925060208401519150604084015190509250925092565b60008251613bcd818460208701613721565b919091019291505056fea26469706673582212203ee0c50732d844678e38509f68be26ce293a7dcbdc391033403c6e6d85cacd0f64736f6c63430008110033
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
0000000000000000000000000000000000000000000000000000000000000220000000000000000000000000000000000000000000000000000000000000026000000000000000000000000000000000000000000000000000000000000000120000000000000000000000000000000000000001431e0fae6d7217caa00000000000000000000000000000003fd187c0b111e1d8cf665251fb45bf8d17fbe16a0000000000000000000000007a250d5630b4cf539739df2c5dacb4c659f2488d000000000000000000000000c02aaa39b223fe8d0a0e5c4f27ead9083c756cc200000000000000000000000005981cdde051fbb650b66d15ad9aecdf47e5fa620000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000a000000000000000000000000000000000000000000000000000000000000000a0000000000000000000000000000000000000000000000000000000000000014000000000000000000000000000000000000000000000000000000000000001400000000000000000000000000000000000000000000000000000000000000140000000000000000000000000000000000000000000000000000000000000014000000000000000000000000000000000000000000000000000000000000000a000000000000000000000000000000000000000000000000000000000000000a0000000000000000000000000000000000000000000000000000000000000007446f67657474690000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000052444455449000000000000000000000000000000000000000000000000000000
-----Decoded View---------------
Arg [0] : __name (string): Dogetti
Arg [1] : __symbol (string): $DETI
Arg [2] : __decimals (uint8): 18
Arg [3] : _totalSupply (uint256): 100000000000000000000000000000
Arg [4] : _accounts (address[4]): 0x3fD187c0B111e1d8Cf665251fB45bF8d17fBE16a,0x7a250d5630B4cF539739dF2C5dAcb4c659F2488D,0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2,0x05981CdDe051FbB650b66d15aD9aEcDf47e5FA62
Arg [5] : _isCharityFeeBaseToken (bool): False
Arg [6] : _fees (uint16[8]): 10,10,20,20,20,20,10,10
-----Encoded View---------------
21 Constructor Arguments found :
Arg [0] : 0000000000000000000000000000000000000000000000000000000000000220
Arg [1] : 0000000000000000000000000000000000000000000000000000000000000260
Arg [2] : 0000000000000000000000000000000000000000000000000000000000000012
Arg [3] : 0000000000000000000000000000000000000001431e0fae6d7217caa0000000
Arg [4] : 0000000000000000000000003fd187c0b111e1d8cf665251fb45bf8d17fbe16a
Arg [5] : 0000000000000000000000007a250d5630b4cf539739df2c5dacb4c659f2488d
Arg [6] : 000000000000000000000000c02aaa39b223fe8d0a0e5c4f27ead9083c756cc2
Arg [7] : 00000000000000000000000005981cdde051fbb650b66d15ad9aecdf47e5fa62
Arg [8] : 0000000000000000000000000000000000000000000000000000000000000000
Arg [9] : 000000000000000000000000000000000000000000000000000000000000000a
Arg [10] : 000000000000000000000000000000000000000000000000000000000000000a
Arg [11] : 0000000000000000000000000000000000000000000000000000000000000014
Arg [12] : 0000000000000000000000000000000000000000000000000000000000000014
Arg [13] : 0000000000000000000000000000000000000000000000000000000000000014
Arg [14] : 0000000000000000000000000000000000000000000000000000000000000014
Arg [15] : 000000000000000000000000000000000000000000000000000000000000000a
Arg [16] : 000000000000000000000000000000000000000000000000000000000000000a
Arg [17] : 0000000000000000000000000000000000000000000000000000000000000007
Arg [18] : 446f676574746900000000000000000000000000000000000000000000000000
Arg [19] : 0000000000000000000000000000000000000000000000000000000000000005
Arg [20] : 2444455449000000000000000000000000000000000000000000000000000000
Loading...
Loading
Loading...
Loading
[ Download: CSV Export ]
[ Download: CSV Export ]
A token is a representation of an on-chain or off-chain asset. The token page shows information such as price, total supply, holders, transfers and social links. Learn more about this page in our Knowledge Base.