Feature Tip: Add private address tag to any address under My Name Tag !
ERC-20
Governance
Overview
Max Total Supply
500,000,000 xKAWA
Holders
286 (0.00%)
Market
Onchain Market Cap
$0.00
Circulating Supply Market Cap
-
Other Info
Token Contract (WITH 18 Decimals)
Balance
714.996884068085619888 xKAWAValue
$0.00Loading...
Loading
Loading...
Loading
Loading...
Loading
# | Exchange | Pair | Price | 24H Volume | % Volume |
---|
Contract Name:
XKawa
Compiler Version
v0.7.6+commit.7338295f
Optimization Enabled:
Yes with 200 runs
Other Settings:
default evmVersion
Contract Source Code (Solidity Standard Json-Input format)
pragma solidity 0.7.6; // SPDX-License-Identifier: Unlicensed import '@openzeppelin/contracts/token/ERC20/IERC20.sol'; import '@openzeppelin/contracts/math/SafeMath.sol'; import '@openzeppelin/contracts/utils/Context.sol'; import '@openzeppelin/contracts/utils/Address.sol'; import '@openzeppelin/contracts/access/Ownable.sol'; import './interface/IUniswapV2Pair.sol'; import './interface/IUniswapV2Factory.sol'; import './interface/IUniswapV2Router.sol'; contract XKawa is Context, IERC20, Ownable { using SafeMath for uint256; using Address for address; mapping(address => uint256) private _rOwned; mapping(address => uint256) private _tOwned; mapping(address => mapping(address => uint256)) private _allowances; mapping(address => bool) private _isExcludedFromFee; mapping(address => bool) private _isExcluded; address[] private _excluded; uint256 private constant MAX = ~uint256(0); uint256 private _tTotal = 500000000 * 10**18; uint256 private _rTotal = (MAX - (MAX % _tTotal)); uint256 private _tFeeTotal; string private _name = 'xKAWA'; string private _symbol = 'xKAWA'; uint8 private _decimals = 18; address public devAddress = address(0x93837577c98E01CFde883c23F64a0f608A70B90F); uint256 public devFee = 4; uint256 public _taxFee = 4; uint256 private _previousTaxFee = _taxFee; uint256 public _liquidityFee = 0; uint256 private _previousLiquidityFee = _liquidityFee; IUniswapV2Router02 public uniswapV2Router; address public uniswapV2Pair; bool inSwapAndLiquify; bool public swapAndLiquifyEnabled = true; bool public limitTransferAmount = true; uint256 public maxTxAmount = 500000 * 10**18; uint256 public maxWalletAmount = 2500000 * 10**18; event MinTokensBeforeSwapUpdated(uint256 minTokensBeforeSwap); event SwapAndLiquifyEnabledUpdated(bool enabled); event SwapAndLiquify( uint256 tokensSwapped, uint256 ethReceived, uint256 tokensIntoLiqudity ); modifier lockTheSwap() { inSwapAndLiquify = true; _; inSwapAndLiquify = false; } constructor() public { _rOwned[_msgSender()] = _rTotal; IUniswapV2Router02 _uniswapV2Router = IUniswapV2Router02( 0x7a250d5630B4cF539739dF2C5dAcb4c659F2488D ); // Create a uniswap pair for this new token uniswapV2Pair = IUniswapV2Factory(_uniswapV2Router.factory()).createPair( address(this), _uniswapV2Router.WETH() ); // set the rest of the contract variables uniswapV2Router = _uniswapV2Router; //exclude owner and this contract from fee _isExcludedFromFee[owner()] = true; _isExcludedFromFee[address(this)] = true; _isExcludedFromFee[devAddress] = true; excludeFromReward(address(this)); excludeFromReward(devAddress); excludeFromReward(uniswapV2Pair); emit Transfer(address(0), _msgSender(), _tTotal); } function name() public view returns (string memory) { return _name; } function symbol() public view returns (string memory) { return _symbol; } function decimals() public view returns (uint8) { return _decimals; } function totalSupply() public 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) public override returns (bool) { _transfer(_msgSender(), recipient, amount); return true; } function allowance(address _owner, address spender) public 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 ) public override returns (bool) { _transfer(sender, recipient, amount); _approve( sender, _msgSender(), _allowances[sender][_msgSender()].sub( amount, 'ERC20: transfer amount exceeds allowance' ) ); return true; } function increaseAllowance(address spender, uint256 addedValue) public virtual returns (bool) { _approve( _msgSender(), spender, _allowances[_msgSender()][spender].add(addedValue) ); return true; } function decreaseAllowance(address spender, uint256 subtractedValue) public virtual returns (bool) { _approve( _msgSender(), spender, _allowances[_msgSender()][spender].sub( subtractedValue, 'ERC20: decreased allowance below zero' ) ); return true; } function isExcludedFromReward(address account) public view returns (bool) { return _isExcluded[account]; } function totalFees() public view returns (uint256) { return _tFeeTotal; } function deliver(uint256 tAmount) public { address sender = _msgSender(); require( !_isExcluded[sender], 'Excluded addresses cannot call this function' ); (uint256 rAmount, , , , , ) = _getValues(tAmount); _rOwned[sender] = _rOwned[sender].sub(rAmount); _rTotal = _rTotal.sub(rAmount); _tFeeTotal = _tFeeTotal.add(tAmount); } function reflectionFromToken(uint256 tAmount, bool deductTransferFee) public view returns (uint256) { require(tAmount <= _tTotal, 'Amount must be less than supply'); if (!deductTransferFee) { (uint256 rAmount, , , , , ) = _getValues(tAmount); return rAmount; } else { (, uint256 rTransferAmount, , , , ) = _getValues(tAmount); 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.div(currentRate); } function excludeFromReward(address account) public onlyOwner { // require(account != 0x7a250d5630B4cF539739dF2C5dAcb4c659F2488D, 'We can not exclude Uniswap router.'); require(!_isExcluded[account], 'Account is already excluded'); if (_rOwned[account] > 0) { _tOwned[account] = tokenFromReflection(_rOwned[account]); } _isExcluded[account] = true; _excluded.push(account); } function includeInReward(address account) external onlyOwner { require(_isExcluded[account], 'Account is already excluded'); for (uint256 i = 0; i < _excluded.length; i++) { if (_excluded[i] == account) { _excluded[i] = _excluded[_excluded.length - 1]; _tOwned[account] = 0; _isExcluded[account] = false; _excluded.pop(); break; } } } function updateLimitTransferAmount(bool _limit) external onlyOwner { limitTransferAmount = _limit; } function _transferBothExcluded( address sender, address recipient, uint256 tAmount ) private { ( uint256 rAmount, uint256 rTransferAmount, uint256 rFee, uint256 tTransferAmount, uint256 tFee, uint256 tLiquidity ) = _getValues(tAmount); _tOwned[sender] = _tOwned[sender].sub(tAmount); _rOwned[sender] = _rOwned[sender].sub(rAmount); _tOwned[recipient] = _tOwned[recipient].add(tTransferAmount); _rOwned[recipient] = _rOwned[recipient].add(rTransferAmount); _takeLiquidity(tLiquidity); _reflectFee(rFee, tFee); emit Transfer(sender, recipient, tTransferAmount); } function excludeFromFee(address account) public onlyOwner { _isExcludedFromFee[account] = true; } function includeInFee(address account) public onlyOwner { _isExcludedFromFee[account] = false; } function setDevFeePercent(uint256 fee) external onlyOwner { devFee = fee; } function setDevAddress(address account) external onlyOwner { devAddress = account; } function setTaxFeePercent(uint256 taxFee) external onlyOwner { _taxFee = taxFee; } function setLiquidityFeePercent(uint256 liquidityFee) external onlyOwner { _liquidityFee = liquidityFee; } function setSwapAndLiquifyEnabled(bool _enabled) public onlyOwner { swapAndLiquifyEnabled = _enabled; emit SwapAndLiquifyEnabledUpdated(_enabled); } //to recieve ETH from uniswapV2Router when swaping receive() external payable {} function _reflectFee(uint256 rFee, uint256 tFee) private { _rTotal = _rTotal.sub(rFee); _tFeeTotal = _tFeeTotal.add(tFee); } function _getValues(uint256 tAmount) private view returns ( uint256, uint256, uint256, uint256, uint256, uint256 ) { (uint256 tTransferAmount, uint256 tFee, uint256 tLiquidity) = _getTValues( tAmount ); (uint256 rAmount, uint256 rTransferAmount, uint256 rFee) = _getRValues( tAmount, tFee, tLiquidity, _getRate() ); return (rAmount, rTransferAmount, rFee, tTransferAmount, tFee, tLiquidity); } function _getTValues(uint256 tAmount) private view returns ( uint256, uint256, uint256 ) { uint256 tFee = calculateTaxFee(tAmount); uint256 tLiquidity = calculateLiquidityFee(tAmount); uint256 tTransferAmount = tAmount.sub(tFee).sub(tLiquidity); return (tTransferAmount, tFee, tLiquidity); } function _getRValues( uint256 tAmount, uint256 tFee, uint256 tLiquidity, uint256 currentRate ) private pure returns ( uint256, uint256, uint256 ) { uint256 rAmount = tAmount.mul(currentRate); uint256 rFee = tFee.mul(currentRate); uint256 rLiquidity = tLiquidity.mul(currentRate); uint256 rTransferAmount = rAmount.sub(rFee).sub(rLiquidity); return (rAmount, rTransferAmount, rFee); } function _getRate() private view returns (uint256) { (uint256 rSupply, uint256 tSupply) = _getCurrentSupply(); return rSupply.div(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.sub(_rOwned[_excluded[i]]); tSupply = tSupply.sub(_tOwned[_excluded[i]]); } if (rSupply < _rTotal.div(_tTotal)) return (_rTotal, _tTotal); return (rSupply, tSupply); } function _takeLiquidity(uint256 tLiquidity) private { uint256 currentRate = _getRate(); uint256 rLiquidity = tLiquidity.mul(currentRate); _rOwned[address(this)] = _rOwned[address(this)].add(rLiquidity); if (_isExcluded[address(this)]) _tOwned[address(this)] = _tOwned[address(this)].add(tLiquidity); } function calculateTaxFee(uint256 _amount) private view returns (uint256) { return _amount.mul(_taxFee).div(10**2); } function calculateLiquidityFee(uint256 _amount) private view returns (uint256) { return _amount.mul(_liquidityFee).div(10**2); } function removeAllFee() private { if (_taxFee == 0 && _liquidityFee == 0) return; _previousTaxFee = _taxFee; _previousLiquidityFee = _liquidityFee; _taxFee = 0; _liquidityFee = 0; } function restoreAllFee() private { _taxFee = _previousTaxFee; _liquidityFee = _previousLiquidityFee; } function isExcludedFromFee(address account) public view returns (bool) { return _isExcludedFromFee[account]; } 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); } 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'); require(amount > 0, 'Transfer amount must be greater than zero'); if ( limitTransferAmount && !isExcludedFromFee(to) && !isExcludedFromFee(from) ) { uint256 tokenBalance = balanceOf(to); require(amount <= maxTxAmount, 'Transfer amount exceeds the max amount'); require( amount.add(tokenBalance) <= maxWalletAmount, 'Wallet amount exceeds the max amount' ); } uint256 contractTokenBalance = balanceOf(address(this)); if ( contractTokenBalance > 0 && !inSwapAndLiquify && from != address(uniswapV2Router) && to == uniswapV2Pair && !isExcludedFromFee(from) ) { swapAndSendToDev(contractTokenBalance); } if ( !inSwapAndLiquify && (from == uniswapV2Pair || to == uniswapV2Pair) && !isExcludedFromFee(from) && !isExcludedFromFee(to) ) { uint256 devAmount = amount.mul(devFee).div(100); uint256 remainingAmount = amount.sub(devAmount); _tokenTransfer(from, address(this), devAmount, false); _tokenTransfer(from, to, remainingAmount, true); } else { _tokenTransfer(from, to, amount, false); } } function swapAndSendToDev(uint256 tokenAmount) private lockTheSwap { swapTokensForEth(tokenAmount); uint256 devAmountETH = address(this).balance; payable(devAddress).call{value: devAmountETH}(''); } function swapAndLiquify(uint256 contractTokenBalance) private lockTheSwap { // split the contract balance into halves uint256 half = contractTokenBalance.div(2); uint256 otherHalf = contractTokenBalance.sub(half); // capture the contract's current ETH balance. // this is so that we can capture exactly the amount of ETH that the // swap creates, and not make the liquidity event include any ETH that // has been manually sent to the contract uint256 initialBalance = address(this).balance; // swap tokens for ETH swapTokensForEth(half); // <- this breaks the ETH -> HATE swap when swap+liquify is triggered // how much ETH did we just swap into? uint256 newBalance = address(this).balance.sub(initialBalance); // add liquidity to uniswap addLiquidity(otherHalf, newBalance); emit SwapAndLiquify(half, newBalance, otherHalf); } function swapTokensForEth(uint256 tokenAmount) private { // generate the uniswap pair path of token -> weth address[] memory path = new address[](2); path[0] = address(this); path[1] = uniswapV2Router.WETH(); _approve(address(this), address(uniswapV2Router), tokenAmount); // make the swap uniswapV2Router.swapExactTokensForETHSupportingFeeOnTransferTokens( tokenAmount, 0, // accept any amount of ETH path, address(this), block.timestamp ); } function addLiquidity(uint256 tokenAmount, uint256 ethAmount) private { // approve token transfer to cover all possible scenarios _approve(address(this), address(uniswapV2Router), tokenAmount); // add the liquidity uniswapV2Router.addLiquidityETH{value: ethAmount}( address(this), tokenAmount, 0, // slippage is unavoidable 0, // slippage is unavoidable owner(), block.timestamp ); } //this method is responsible for taking all fee, if takeFee is true function _tokenTransfer( address sender, address recipient, uint256 amount, bool takeFee ) private { if (!takeFee) removeAllFee(); 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]) { _transferStandard(sender, recipient, amount); } else if (_isExcluded[sender] && _isExcluded[recipient]) { _transferBothExcluded(sender, recipient, amount); } else { _transferStandard(sender, recipient, amount); } if (!takeFee) restoreAllFee(); } function _transferStandard( address sender, address recipient, uint256 tAmount ) private { ( uint256 rAmount, uint256 rTransferAmount, uint256 rFee, uint256 tTransferAmount, uint256 tFee, uint256 tLiquidity ) = _getValues(tAmount); _rOwned[sender] = _rOwned[sender].sub(rAmount); _rOwned[recipient] = _rOwned[recipient].add(rTransferAmount); _takeLiquidity(tLiquidity); _reflectFee(rFee, tFee); emit Transfer(sender, recipient, tTransferAmount); } function _transferToExcluded( address sender, address recipient, uint256 tAmount ) private { ( uint256 rAmount, uint256 rTransferAmount, uint256 rFee, uint256 tTransferAmount, uint256 tFee, uint256 tLiquidity ) = _getValues(tAmount); _rOwned[sender] = _rOwned[sender].sub(rAmount); _tOwned[recipient] = _tOwned[recipient].add(tTransferAmount); _rOwned[recipient] = _rOwned[recipient].add(rTransferAmount); _takeLiquidity(tLiquidity); _reflectFee(rFee, tFee); emit Transfer(sender, recipient, tTransferAmount); } function _transferFromExcluded( address sender, address recipient, uint256 tAmount ) private { ( uint256 rAmount, uint256 rTransferAmount, uint256 rFee, uint256 tTransferAmount, uint256 tFee, uint256 tLiquidity ) = _getValues(tAmount); _tOwned[sender] = _tOwned[sender].sub(tAmount); _rOwned[sender] = _rOwned[sender].sub(rAmount); _rOwned[recipient] = _rOwned[recipient].add(rTransferAmount); _takeLiquidity(tLiquidity); _reflectFee(rFee, tFee); emit Transfer(sender, recipient, tTransferAmount); } }
// SPDX-License-Identifier: MIT pragma solidity ^0.7.0; /** * @dev Interface of the ERC20 standard as defined in the EIP. */ interface IERC20 { /** * @dev Returns the amount of tokens in existence. */ function totalSupply() external view returns (uint256); /** * @dev Returns the amount of tokens owned by `account`. */ function balanceOf(address account) external view returns (uint256); /** * @dev Moves `amount` tokens from the caller's account to `recipient`. * * Returns a boolean value indicating whether the operation succeeded. * * Emits a {Transfer} event. */ function transfer(address recipient, uint256 amount) external returns (bool); /** * @dev Returns the remaining number of tokens that `spender` will be * allowed to spend on behalf of `owner` through {transferFrom}. This is * zero by default. * * This value changes when {approve} or {transferFrom} are called. */ function allowance(address owner, address spender) external view returns (uint256); /** * @dev Sets `amount` as the allowance of `spender` over the caller's tokens. * * Returns a boolean value indicating whether the operation succeeded. * * IMPORTANT: Beware that changing an allowance with this method brings the risk * that someone may use both the old and the new allowance by unfortunate * transaction ordering. One possible solution to mitigate this race * condition is to first reduce the spender's allowance to 0 and set the * desired value afterwards: * https://github.com/ethereum/EIPs/issues/20#issuecomment-263524729 * * Emits an {Approval} event. */ function approve(address spender, uint256 amount) external returns (bool); /** * @dev Moves `amount` tokens from `sender` to `recipient` using the * allowance mechanism. `amount` is then deducted from the caller's * allowance. * * Returns a boolean value indicating whether the operation succeeded. * * Emits a {Transfer} event. */ function transferFrom(address sender, address recipient, uint256 amount) external returns (bool); /** * @dev Emitted when `value` tokens are moved from one account (`from`) to * another (`to`). * * Note that `value` may be zero. */ event Transfer(address indexed from, address indexed to, uint256 value); /** * @dev Emitted when the allowance of a `spender` for an `owner` is set by * a call to {approve}. `value` is the new allowance. */ event Approval(address indexed owner, address indexed spender, uint256 value); }
// SPDX-License-Identifier: MIT pragma solidity ^0.7.0; /** * @dev Wrappers over Solidity's arithmetic operations with added overflow * checks. * * Arithmetic operations in Solidity wrap on overflow. This can easily result * in bugs, because programmers usually assume that an overflow raises an * error, which is the standard behavior in high level programming languages. * `SafeMath` restores this intuition by reverting the transaction when an * operation overflows. * * Using this library instead of the unchecked operations eliminates an entire * class of bugs, so it's recommended to use it always. */ library SafeMath { /** * @dev Returns the addition of two unsigned integers, with an overflow flag. * * _Available since v3.4._ */ function tryAdd(uint256 a, uint256 b) internal pure returns (bool, uint256) { uint256 c = a + b; if (c < a) return (false, 0); return (true, c); } /** * @dev Returns the substraction of two unsigned integers, with an overflow flag. * * _Available since v3.4._ */ function trySub(uint256 a, uint256 b) internal pure returns (bool, uint256) { if (b > a) return (false, 0); return (true, a - b); } /** * @dev Returns the multiplication of two unsigned integers, with an overflow flag. * * _Available since v3.4._ */ function tryMul(uint256 a, uint256 b) internal pure returns (bool, uint256) { // Gas optimization: this is cheaper than requiring 'a' not being zero, but the // benefit is lost if 'b' is also tested. // See: https://github.com/OpenZeppelin/openzeppelin-contracts/pull/522 if (a == 0) return (true, 0); uint256 c = a * b; if (c / a != b) return (false, 0); return (true, c); } /** * @dev Returns the division of two unsigned integers, with a division by zero flag. * * _Available since v3.4._ */ function tryDiv(uint256 a, uint256 b) internal pure returns (bool, uint256) { if (b == 0) return (false, 0); return (true, a / b); } /** * @dev Returns the remainder of dividing two unsigned integers, with a division by zero flag. * * _Available since v3.4._ */ function tryMod(uint256 a, uint256 b) internal pure returns (bool, uint256) { if (b == 0) return (false, 0); return (true, a % b); } /** * @dev Returns the addition of two unsigned integers, reverting on * overflow. * * Counterpart to Solidity's `+` operator. * * Requirements: * * - Addition cannot overflow. */ function add(uint256 a, uint256 b) internal pure returns (uint256) { uint256 c = a + b; require(c >= a, "SafeMath: addition overflow"); return c; } /** * @dev Returns the subtraction of two unsigned integers, reverting on * overflow (when the result is negative). * * Counterpart to Solidity's `-` operator. * * Requirements: * * - Subtraction cannot overflow. */ function sub(uint256 a, uint256 b) internal pure returns (uint256) { require(b <= a, "SafeMath: subtraction overflow"); return a - b; } /** * @dev Returns the multiplication of two unsigned integers, reverting on * overflow. * * Counterpart to Solidity's `*` operator. * * Requirements: * * - Multiplication cannot overflow. */ function mul(uint256 a, uint256 b) internal pure returns (uint256) { if (a == 0) return 0; uint256 c = a * b; require(c / a == b, "SafeMath: multiplication overflow"); return c; } /** * @dev Returns the integer division of two unsigned integers, reverting on * division by zero. The result is rounded towards zero. * * Counterpart to Solidity's `/` operator. Note: this function uses a * `revert` opcode (which leaves remaining gas untouched) while Solidity * uses an invalid opcode to revert (consuming all remaining gas). * * Requirements: * * - The divisor cannot be zero. */ function div(uint256 a, uint256 b) internal pure returns (uint256) { require(b > 0, "SafeMath: division by zero"); return a / b; } /** * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo), * reverting when dividing by zero. * * Counterpart to Solidity's `%` operator. This function uses a `revert` * opcode (which leaves remaining gas untouched) while Solidity uses an * invalid opcode to revert (consuming all remaining gas). * * Requirements: * * - The divisor cannot be zero. */ function mod(uint256 a, uint256 b) internal pure returns (uint256) { require(b > 0, "SafeMath: modulo by zero"); return a % b; } /** * @dev Returns the subtraction of two unsigned integers, reverting with custom message on * overflow (when the result is negative). * * CAUTION: This function is deprecated because it requires allocating memory for the error * message unnecessarily. For custom revert reasons use {trySub}. * * Counterpart to Solidity's `-` operator. * * Requirements: * * - Subtraction cannot overflow. */ function sub(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) { require(b <= a, errorMessage); return a - b; } /** * @dev Returns the integer division of two unsigned integers, reverting with custom message on * division by zero. The result is rounded towards zero. * * CAUTION: This function is deprecated because it requires allocating memory for the error * message unnecessarily. For custom revert reasons use {tryDiv}. * * Counterpart to Solidity's `/` operator. Note: this function uses a * `revert` opcode (which leaves remaining gas untouched) while Solidity * uses an invalid opcode to revert (consuming all remaining gas). * * Requirements: * * - The divisor cannot be zero. */ function div(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) { require(b > 0, errorMessage); return a / b; } /** * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo), * reverting with custom message when dividing by zero. * * CAUTION: This function is deprecated because it requires allocating memory for the error * message unnecessarily. For custom revert reasons use {tryMod}. * * Counterpart to Solidity's `%` operator. This function uses a `revert` * opcode (which leaves remaining gas untouched) while Solidity uses an * invalid opcode to revert (consuming all remaining gas). * * Requirements: * * - The divisor cannot be zero. */ function mod(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) { require(b > 0, errorMessage); return a % b; } }
// SPDX-License-Identifier: MIT pragma solidity >=0.6.0 <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 GSN 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 payable) { return msg.sender; } function _msgData() internal view virtual returns (bytes memory) { this; // silence state mutability warning without generating bytecode - see https://github.com/ethereum/solidity/issues/2691 return msg.data; } }
// SPDX-License-Identifier: MIT pragma solidity ^0.7.0; /** * @dev Collection of functions related to the address type */ library Address { /** * @dev Returns true if `account` is a contract. * * [IMPORTANT] * ==== * It is unsafe to assume that an address for which this function returns * false is an externally-owned account (EOA) and not a contract. * * Among others, `isContract` will return false for the following * types of addresses: * * - an externally-owned account * - a contract in construction * - an address where a contract will be created * - an address where a contract lived, but was destroyed * ==== */ function isContract(address account) internal view returns (bool) { // This method relies on extcodesize, which returns 0 for contracts in // construction, since the code is only stored at the end of the // constructor execution. uint256 size; // solhint-disable-next-line no-inline-assembly assembly { size := extcodesize(account) } return size > 0; } /** * @dev Replacement for Solidity's `transfer`: sends `amount` wei to * `recipient`, forwarding all available gas and reverting on errors. * * https://eips.ethereum.org/EIPS/eip-1884[EIP1884] increases the gas cost * of certain opcodes, possibly making contracts go over the 2300 gas limit * imposed by `transfer`, making them unable to receive funds via * `transfer`. {sendValue} removes this limitation. * * https://diligence.consensys.net/posts/2019/09/stop-using-soliditys-transfer-now/[Learn more]. * * IMPORTANT: because control is transferred to `recipient`, care must be * taken to not create reentrancy vulnerabilities. Consider using * {ReentrancyGuard} or the * https://solidity.readthedocs.io/en/v0.5.11/security-considerations.html#use-the-checks-effects-interactions-pattern[checks-effects-interactions pattern]. */ function sendValue(address payable recipient, uint256 amount) internal { require(address(this).balance >= amount, "Address: insufficient balance"); // solhint-disable-next-line avoid-low-level-calls, avoid-call-value (bool success, ) = recipient.call{ value: amount }(""); require(success, "Address: unable to send value, recipient may have reverted"); } /** * @dev Performs a Solidity function call using a low level `call`. A * plain`call` is an unsafe replacement for a function call: use this * function instead. * * If `target` reverts with a revert reason, it is bubbled up by this * function (like regular Solidity function calls). * * Returns the raw returned data. To convert to the expected return value, * use https://solidity.readthedocs.io/en/latest/units-and-global-variables.html?highlight=abi.decode#abi-encoding-and-decoding-functions[`abi.decode`]. * * Requirements: * * - `target` must be a contract. * - calling `target` with `data` must not revert. * * _Available since v3.1._ */ function functionCall(address target, bytes memory data) internal returns (bytes memory) { return functionCall(target, data, "Address: low-level call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], but with * `errorMessage` as a fallback revert reason when `target` reverts. * * _Available since v3.1._ */ function functionCall(address target, bytes memory data, string memory errorMessage) internal returns (bytes memory) { return functionCallWithValue(target, data, 0, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but also transferring `value` wei to `target`. * * Requirements: * * - the calling contract must have an ETH balance of at least `value`. * - the called Solidity function must be `payable`. * * _Available since v3.1._ */ function functionCallWithValue(address target, bytes memory data, uint256 value) internal returns (bytes memory) { return functionCallWithValue(target, data, value, "Address: low-level call with value failed"); } /** * @dev Same as {xref-Address-functionCallWithValue-address-bytes-uint256-}[`functionCallWithValue`], but * with `errorMessage` as a fallback revert reason when `target` reverts. * * _Available since v3.1._ */ function functionCallWithValue(address target, bytes memory data, uint256 value, string memory errorMessage) internal returns (bytes memory) { require(address(this).balance >= value, "Address: insufficient balance for call"); require(isContract(target), "Address: call to non-contract"); // solhint-disable-next-line avoid-low-level-calls (bool success, bytes memory returndata) = target.call{ value: value }(data); return _verifyCallResult(success, returndata, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but performing a static call. * * _Available since v3.3._ */ function functionStaticCall(address target, bytes memory data) internal view returns (bytes memory) { return functionStaticCall(target, data, "Address: low-level static call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`], * but performing a static call. * * _Available since v3.3._ */ function functionStaticCall(address target, bytes memory data, string memory errorMessage) internal view returns (bytes memory) { require(isContract(target), "Address: static call to non-contract"); // solhint-disable-next-line avoid-low-level-calls (bool success, bytes memory returndata) = target.staticcall(data); return _verifyCallResult(success, returndata, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but performing a delegate call. * * _Available since v3.4._ */ function functionDelegateCall(address target, bytes memory data) internal returns (bytes memory) { return functionDelegateCall(target, data, "Address: low-level delegate call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`], * but performing a delegate call. * * _Available since v3.4._ */ function functionDelegateCall(address target, bytes memory data, string memory errorMessage) internal returns (bytes memory) { require(isContract(target), "Address: delegate call to non-contract"); // solhint-disable-next-line avoid-low-level-calls (bool success, bytes memory returndata) = target.delegatecall(data); return _verifyCallResult(success, returndata, errorMessage); } function _verifyCallResult(bool success, bytes memory returndata, string memory errorMessage) private pure returns(bytes memory) { if (success) { return returndata; } else { // Look for revert reason and bubble it up if present if (returndata.length > 0) { // The easiest way to bubble the revert reason is using memory via assembly // solhint-disable-next-line no-inline-assembly assembly { let returndata_size := mload(returndata) revert(add(32, returndata), returndata_size) } } else { revert(errorMessage); } } } }
// SPDX-License-Identifier: MIT pragma solidity ^0.7.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 () { address msgSender = _msgSender(); _owner = msgSender; emit OwnershipTransferred(address(0), msgSender); } /** * @dev Returns the address of the current owner. */ function owner() public view virtual returns (address) { return _owner; } /** * @dev Throws if called by any account other than the owner. */ modifier onlyOwner() { require(owner() == _msgSender(), "Ownable: caller is not the owner"); _; } /** * @dev Leaves the contract without owner. It will not be possible to call * `onlyOwner` functions anymore. Can only be called by the current owner. * * NOTE: Renouncing ownership will leave the contract without an owner, * thereby removing any functionality that is only available to the owner. */ function renounceOwnership() public virtual onlyOwner { emit OwnershipTransferred(_owner, address(0)); _owner = 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"); emit OwnershipTransferred(_owner, newOwner); _owner = newOwner; } }
interface IUniswapV2Pair { event Approval(address indexed owner, address indexed spender, uint256 value); event Transfer(address indexed from, address indexed to, uint256 value); function name() external pure returns (string memory); function symbol() external pure returns (string memory); function decimals() external pure returns (uint8); function totalSupply() external view returns (uint256); function balanceOf(address owner) external view returns (uint256); function allowance(address owner, address spender) external view returns (uint256); function approve(address spender, uint256 value) external returns (bool); function transfer(address to, uint256 value) external returns (bool); function transferFrom( address from, address to, uint256 value ) external returns (bool); function DOMAIN_SEPARATOR() external view returns (bytes32); function PERMIT_TYPEHASH() external pure returns (bytes32); function nonces(address owner) external view returns (uint256); function permit( address owner, address spender, uint256 value, uint256 deadline, uint8 v, bytes32 r, bytes32 s ) external; event Mint(address indexed sender, uint256 amount0, uint256 amount1); event Burn( address indexed sender, uint256 amount0, uint256 amount1, address indexed to ); event Swap( address indexed sender, uint256 amount0In, uint256 amount1In, uint256 amount0Out, uint256 amount1Out, address indexed to ); event Sync(uint112 reserve0, uint112 reserve1); function MINIMUM_LIQUIDITY() external pure returns (uint256); function factory() external view returns (address); function token0() external view returns (address); function token1() external view returns (address); function getReserves() external view returns ( uint112 reserve0, uint112 reserve1, uint32 blockTimestampLast ); function price0CumulativeLast() external view returns (uint256); function price1CumulativeLast() external view returns (uint256); function kLast() external view returns (uint256); function mint(address to) external returns (uint256 liquidity); function burn(address to) external returns (uint256 amount0, uint256 amount1); function swap( uint256 amount0Out, uint256 amount1Out, address to, bytes calldata data ) external; function skim(address to) external; function sync() external; function initialize(address, address) external; }
interface IUniswapV2Factory { 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; }
interface IUniswapV2Router01 { 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 IUniswapV2Router02 is IUniswapV2Router01 { 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; }
{ "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":[],"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":"minTokensBeforeSwap","type":"uint256"}],"name":"MinTokensBeforeSwapUpdated","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":false,"internalType":"uint256","name":"tokensSwapped","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"ethReceived","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"tokensIntoLiqudity","type":"uint256"}],"name":"SwapAndLiquify","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"bool","name":"enabled","type":"bool"}],"name":"SwapAndLiquifyEnabledUpdated","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":false,"internalType":"uint256","name":"value","type":"uint256"}],"name":"Transfer","type":"event"},{"inputs":[],"name":"_liquidityFee","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"_taxFee","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_owner","type":"address"},{"internalType":"address","name":"spender","type":"address"}],"name":"allowance","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"approve","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"decimals","outputs":[{"internalType":"uint8","name":"","type":"uint8"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"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":"uint256","name":"tAmount","type":"uint256"}],"name":"deliver","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"devAddress","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"devFee","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"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":"includeInFee","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":[{"internalType":"address","name":"account","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":"limitTransferAmount","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"maxTxAmount","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"maxWalletAmount","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":[{"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":[{"internalType":"address","name":"account","type":"address"}],"name":"setDevAddress","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"fee","type":"uint256"}],"name":"setDevFeePercent","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"liquidityFee","type":"uint256"}],"name":"setLiquidityFeePercent","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"_enabled","type":"bool"}],"name":"setSwapAndLiquifyEnabled","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"taxFee","type":"uint256"}],"name":"setTaxFeePercent","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"swapAndLiquifyEnabled","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","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":[],"name":"uniswapV2Pair","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"uniswapV2Router","outputs":[{"internalType":"contract IUniswapV2Router02","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bool","name":"_limit","type":"bool"}],"name":"updateLimitTransferAmount","outputs":[],"stateMutability":"nonpayable","type":"function"},{"stateMutability":"payable","type":"receive"}]
Contract Creation Code
6b019d971e4fe8401e740000006007556a34f8e1f3adab5d4bffffff1960085560c06040526005608081905264784b41574160d81b60a09081526200004891600a91906200091a565b5060408051808201909152600580825264784b41574160d81b60209092019182526200007791600b916200091a565b50600c80547493837577c98e01cfde883c23f64a0f608a70b90f00610100600160a81b031960ff19909216601217919091161790556004600d819055600e819055600f55600060108190556011556013805460ff60b01b1960ff60a81b19909116600160a81b1716600160b01b1790556969e10de76676d08000006014556a02116545850052128000006015553480156200011157600080fd5b5060006200011e62000455565b600080546001600160a01b0319166001600160a01b0383169081178255604051929350917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908290a350600854600160006200017962000455565b6001600160a01b03166001600160a01b03168152602001908152602001600020819055506000737a250d5630b4cf539739df2c5dacb4c659f2488d9050806001600160a01b031663c45a01556040518163ffffffff1660e01b815260040160206040518083038186803b158015620001f057600080fd5b505afa15801562000205573d6000803e3d6000fd5b505050506040513d60208110156200021c57600080fd5b5051604080516315ab88c960e31b815290516001600160a01b039283169263c9c653969230929186169163ad5c464891600480820192602092909190829003018186803b1580156200026d57600080fd5b505afa15801562000282573d6000803e3d6000fd5b505050506040513d60208110156200029957600080fd5b5051604080516001600160e01b031960e086901b1681526001600160a01b0393841660048201529290911660248301525160448083019260209291908290030181600087803b158015620002ec57600080fd5b505af115801562000301573d6000803e3d6000fd5b505050506040513d60208110156200031857600080fd5b5051601380546001600160a01b03199081166001600160a01b0393841617909155601280549091169183169190911790556001600460006200035962000459565b6001600160a01b03908116825260208083019390935260409182016000908120805495151560ff19968716179055308082526004909452828120805486166001908117909155600c546101009004909216815291909120805490931617909155620003c49062000468565b600c54620003e09061010090046001600160a01b031662000468565b601354620003f7906001600160a01b031662000468565b6200040162000455565b6001600160a01b031660006001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef6007546040518082815260200191505060405180910390a350620009c6565b3390565b6000546001600160a01b031690565b6200047262000455565b6001600160a01b03166200048562000459565b6001600160a01b031614620004e1576040805162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015290519081900360640190fd5b6001600160a01b03811660009081526005602052604090205460ff161562000550576040805162461bcd60e51b815260206004820152601b60248201527f4163636f756e7420697320616c7265616479206578636c756465640000000000604482015290519081900360640190fd5b6001600160a01b03811660009081526001602052604090205415620005ad576001600160a01b038116600090815260016020526040902054620005939062000613565b6001600160a01b0382166000908152600260205260409020555b6001600160a01b03166000818152600560205260408120805460ff191660019081179091556006805491820181559091527ff652222313e28459528d920b65115c16c04f3efc82aaedc97be59f3f377c0d3f0180546001600160a01b0319169091179055565b6000600854821115620006585760405162461bcd60e51b815260040180806020018281038252602a8152602001806200334f602a913960400191505060405180910390fd5b60006200066462000687565b9050620006808184620006ba60201b6200179f1790919060201c565b9392505050565b600080806200069562000723565b91509150620006b38183620006ba60201b6200179f1790919060201c565b9250505090565b600080821162000711576040805162461bcd60e51b815260206004820152601a60248201527f536166654d6174683a206469766973696f6e206279207a65726f000000000000604482015290519081900360640190fd5b8183816200071b57fe5b049392505050565b6008546007546000918291825b60065481101562000879578260016000600684815481106200074e57fe5b60009182526020808320909101546001600160a01b031683528201929092526040019020541180620007b557508160026000600684815481106200078e57fe5b60009182526020808320909101546001600160a01b03168352820192909252604001902054115b15620007ce5760085460075494509450505050620008b8565b6200081d6001600060068481548110620007e457fe5b60009182526020808320909101546001600160a01b03168352828101939093526040909101902054859162001806620008bc821b17901c565b92506200086e60026000600684815481106200083557fe5b60009182526020808320909101546001600160a01b03168352828101939093526040909101902054849162001806620008bc821b17901c565b915060010162000730565b5062000898600754600854620006ba60201b6200179f1790919060201c565b821015620008b257600854600754935093505050620008b8565b90925090505b9091565b60008282111562000914576040805162461bcd60e51b815260206004820152601e60248201527f536166654d6174683a207375627472616374696f6e206f766572666c6f770000604482015290519081900360640190fd5b50900390565b828054600181600116156101000203166002900490600052602060002090601f0160209004810192826200095257600085556200099d565b82601f106200096d57805160ff19168380011785556200099d565b828001600101855582156200099d579182015b828111156200099d57825182559160200191906001019062000980565b50620009ab929150620009af565b5090565b5b80821115620009ab5760008155600101620009b0565b61297980620009d66000396000f3fe60806040526004361061023f5760003560e01c80635342acb41161012e57806395d89b41116100ab578063c49b9a801161006f578063c49b9a8014610808578063d0d41fe114610834578063dd62ed3e14610867578063ea2f0b37146108a2578063f2fde38b146108d557610246565b806395d89b4114610740578063a457c2d714610755578063a9059cbb1461078e578063aa4bde28146107c7578063c1ce3c06146107dc57610246565b806372abda1a116100f257806372abda1a146106a457806388f82020146106b95780638c0b5e22146106ec5780638da5cb5b146107015780638ee88c531461071657610246565b80635342acb4146105ff5780636827e764146106325780636bc87c3a1461064757806370a082311461065c578063715018a61461068f57610246565b8063379e2919116101bc578063437823ec11610180578063437823ec1461053d5780634549b0391461057057806349bd5a5e146105a25780634a74bb02146105b757806352390c02146105cc57610246565b8063379e29191461048657806339509351146104b05780633ad10ef6146104e95780633b124fe7146104fe5780633bd5d1731461051357610246565b806318160ddd1161020357806318160ddd146103a657806323b872dd146103bb5780632d838119146103fe578063313ce567146104285780633685d4191461045357610246565b8063061c82d01461024b57806306fdde0314610277578063095ea7b31461030157806313114a9d1461034e5780631694505e1461037557610246565b3661024657005b600080fd5b34801561025757600080fd5b506102756004803603602081101561026e57600080fd5b5035610908565b005b34801561028357600080fd5b5061028c61096f565b6040805160208082528351818301528351919283929083019185019080838360005b838110156102c65781810151838201526020016102ae565b50505050905090810190601f1680156102f35780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b34801561030d57600080fd5b5061033a6004803603604081101561032457600080fd5b506001600160a01b038135169060200135610a05565b604080519115158252519081900360200190f35b34801561035a57600080fd5b50610363610a23565b60408051918252519081900360200190f35b34801561038157600080fd5b5061038a610a29565b604080516001600160a01b039092168252519081900360200190f35b3480156103b257600080fd5b50610363610a38565b3480156103c757600080fd5b5061033a600480360360608110156103de57600080fd5b506001600160a01b03813581169160208101359091169060400135610a3e565b34801561040a57600080fd5b506103636004803603602081101561042157600080fd5b5035610ac5565b34801561043457600080fd5b5061043d610b27565b6040805160ff9092168252519081900360200190f35b34801561045f57600080fd5b506102756004803603602081101561047657600080fd5b50356001600160a01b0316610b30565b34801561049257600080fd5b50610275600480360360208110156104a957600080fd5b5035610cfb565b3480156104bc57600080fd5b5061033a600480360360408110156104d357600080fd5b506001600160a01b038135169060200135610d62565b3480156104f557600080fd5b5061038a610db0565b34801561050a57600080fd5b50610363610dc4565b34801561051f57600080fd5b506102756004803603602081101561053657600080fd5b5035610dca565b34801561054957600080fd5b506102756004803603602081101561056057600080fd5b50356001600160a01b0316610ea4565b34801561057c57600080fd5b506103636004803603604081101561059357600080fd5b50803590602001351515610f2a565b3480156105ae57600080fd5b5061038a610fbc565b3480156105c357600080fd5b5061033a610fcb565b3480156105d857600080fd5b50610275600480360360208110156105ef57600080fd5b50356001600160a01b0316610fdb565b34801561060b57600080fd5b5061033a6004803603602081101561062257600080fd5b50356001600160a01b031661116b565b34801561063e57600080fd5b50610363611189565b34801561065357600080fd5b5061036361118f565b34801561066857600080fd5b506103636004803603602081101561067f57600080fd5b50356001600160a01b0316611195565b34801561069b57600080fd5b506102756111f7565b3480156106b057600080fd5b5061033a6112a3565b3480156106c557600080fd5b5061033a600480360360208110156106dc57600080fd5b50356001600160a01b03166112b3565b3480156106f857600080fd5b506103636112d1565b34801561070d57600080fd5b5061038a6112d7565b34801561072257600080fd5b506102756004803603602081101561073957600080fd5b50356112e6565b34801561074c57600080fd5b5061028c61134d565b34801561076157600080fd5b5061033a6004803603604081101561077857600080fd5b506001600160a01b0381351690602001356113ae565b34801561079a57600080fd5b5061033a600480360360408110156107b157600080fd5b506001600160a01b038135169060200135611416565b3480156107d357600080fd5b5061036361142a565b3480156107e857600080fd5b50610275600480360360208110156107ff57600080fd5b50351515611430565b34801561081457600080fd5b506102756004803603602081101561082b57600080fd5b503515156114b0565b34801561084057600080fd5b506102756004803603602081101561085757600080fd5b50356001600160a01b0316611565565b34801561087357600080fd5b506103636004803603604081101561088a57600080fd5b506001600160a01b03813581169160200135166115ef565b3480156108ae57600080fd5b50610275600480360360208110156108c557600080fd5b50356001600160a01b031661161a565b3480156108e157600080fd5b50610275600480360360208110156108f857600080fd5b50356001600160a01b031661169d565b610910611863565b6001600160a01b03166109216112d7565b6001600160a01b03161461096a576040805162461bcd60e51b81526020600482018190526024820152600080516020612861833981519152604482015290519081900360640190fd5b600e55565b600a8054604080516020601f60026000196101006001881615020190951694909404938401819004810282018101909252828152606093909290918301828280156109fb5780601f106109d0576101008083540402835291602001916109fb565b820191906000526020600020905b8154815290600101906020018083116109de57829003601f168201915b5050505050905090565b6000610a19610a12611863565b8484611867565b5060015b92915050565b60095490565b6012546001600160a01b031681565b60075490565b6000610a4b848484611953565b610abb84610a57611863565b610ab685604051806060016040528060288152602001612839602891396001600160a01b038a16600090815260036020526040812090610a95611863565b6001600160a01b031681526020810191909152604001600020549190611c33565b611867565b5060019392505050565b6000600854821115610b085760405162461bcd60e51b815260040180806020018281038252602a81526020018061275c602a913960400191505060405180910390fd5b6000610b12611cca565b9050610b1e838261179f565b9150505b919050565b600c5460ff1690565b610b38611863565b6001600160a01b0316610b496112d7565b6001600160a01b031614610b92576040805162461bcd60e51b81526020600482018190526024820152600080516020612861833981519152604482015290519081900360640190fd5b6001600160a01b03811660009081526005602052604090205460ff16610bff576040805162461bcd60e51b815260206004820152601b60248201527f4163636f756e7420697320616c7265616479206578636c756465640000000000604482015290519081900360640190fd5b60005b600654811015610cf757816001600160a01b031660068281548110610c2357fe5b6000918252602090912001546001600160a01b03161415610cef57600680546000198101908110610c5057fe5b600091825260209091200154600680546001600160a01b039092169183908110610c7657fe5b600091825260208083209190910180546001600160a01b0319166001600160a01b039485161790559184168152600282526040808220829055600590925220805460ff191690556006805480610cc857fe5b600082815260209020810160001990810180546001600160a01b0319169055019055610cf7565b600101610c02565b5050565b610d03611863565b6001600160a01b0316610d146112d7565b6001600160a01b031614610d5d576040805162461bcd60e51b81526020600482018190526024820152600080516020612861833981519152604482015290519081900360640190fd5b600d55565b6000610a19610d6f611863565b84610ab68560036000610d80611863565b6001600160a01b03908116825260208083019390935260409182016000908120918c168152925290205490611ced565b600c5461010090046001600160a01b031681565b600e5481565b6000610dd4611863565b6001600160a01b03811660009081526005602052604090205490915060ff1615610e2f5760405162461bcd60e51b815260040180806020018281038252602c8152602001806128f3602c913960400191505060405180910390fd5b6000610e3a83611d4e565b505050506001600160a01b038416600090815260016020526040902054919250610e6691905082611806565b6001600160a01b038316600090815260016020526040902055600854610e8c9082611806565b600855600954610e9c9084611ced565b600955505050565b610eac611863565b6001600160a01b0316610ebd6112d7565b6001600160a01b031614610f06576040805162461bcd60e51b81526020600482018190526024820152600080516020612861833981519152604482015290519081900360640190fd5b6001600160a01b03166000908152600460205260409020805460ff19166001179055565b6000600754831115610f83576040805162461bcd60e51b815260206004820152601f60248201527f416d6f756e74206d757374206265206c657373207468616e20737570706c7900604482015290519081900360640190fd5b81610fa2576000610f9384611d4e565b50939550610a1d945050505050565b6000610fad84611d4e565b50929550610a1d945050505050565b6013546001600160a01b031681565b601354600160a81b900460ff1681565b610fe3611863565b6001600160a01b0316610ff46112d7565b6001600160a01b03161461103d576040805162461bcd60e51b81526020600482018190526024820152600080516020612861833981519152604482015290519081900360640190fd5b6001600160a01b03811660009081526005602052604090205460ff16156110ab576040805162461bcd60e51b815260206004820152601b60248201527f4163636f756e7420697320616c7265616479206578636c756465640000000000604482015290519081900360640190fd5b6001600160a01b03811660009081526001602052604090205415611105576001600160a01b0381166000908152600160205260409020546110eb90610ac5565b6001600160a01b0382166000908152600260205260409020555b6001600160a01b03166000818152600560205260408120805460ff191660019081179091556006805491820181559091527ff652222313e28459528d920b65115c16c04f3efc82aaedc97be59f3f377c0d3f0180546001600160a01b0319169091179055565b6001600160a01b031660009081526004602052604090205460ff1690565b600d5481565b60105481565b6001600160a01b03811660009081526005602052604081205460ff16156111d557506001600160a01b038116600090815260026020526040902054610b22565b6001600160a01b038216600090815260016020526040902054610a1d90610ac5565b6111ff611863565b6001600160a01b03166112106112d7565b6001600160a01b031614611259576040805162461bcd60e51b81526020600482018190526024820152600080516020612861833981519152604482015290519081900360640190fd5b600080546040516001600160a01b03909116907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908390a3600080546001600160a01b0319169055565b601354600160b01b900460ff1681565b6001600160a01b031660009081526005602052604090205460ff1690565b60145481565b6000546001600160a01b031690565b6112ee611863565b6001600160a01b03166112ff6112d7565b6001600160a01b031614611348576040805162461bcd60e51b81526020600482018190526024820152600080516020612861833981519152604482015290519081900360640190fd5b601055565b600b8054604080516020601f60026000196101006001881615020190951694909404938401819004810282018101909252828152606093909290918301828280156109fb5780601f106109d0576101008083540402835291602001916109fb565b6000610a196113bb611863565b84610ab68560405180606001604052806025815260200161291f60259139600360006113e5611863565b6001600160a01b03908116825260208083019390935260409182016000908120918d16815292529020549190611c33565b6000610a19611423611863565b8484611953565b60155481565b611438611863565b6001600160a01b03166114496112d7565b6001600160a01b031614611492576040805162461bcd60e51b81526020600482018190526024820152600080516020612861833981519152604482015290519081900360640190fd5b60138054911515600160b01b0260ff60b01b19909216919091179055565b6114b8611863565b6001600160a01b03166114c96112d7565b6001600160a01b031614611512576040805162461bcd60e51b81526020600482018190526024820152600080516020612861833981519152604482015290519081900360640190fd5b60138054821515600160a81b810260ff60a81b199092169190911790915560408051918252517f53726dfcaf90650aa7eb35524f4d3220f07413c8d6cb404cc8c18bf5591bc1599181900360200190a150565b61156d611863565b6001600160a01b031661157e6112d7565b6001600160a01b0316146115c7576040805162461bcd60e51b81526020600482018190526024820152600080516020612861833981519152604482015290519081900360640190fd5b600c80546001600160a01b0390921661010002610100600160a81b0319909216919091179055565b6001600160a01b03918216600090815260036020908152604080832093909416825291909152205490565b611622611863565b6001600160a01b03166116336112d7565b6001600160a01b03161461167c576040805162461bcd60e51b81526020600482018190526024820152600080516020612861833981519152604482015290519081900360640190fd5b6001600160a01b03166000908152600460205260409020805460ff19169055565b6116a5611863565b6001600160a01b03166116b66112d7565b6001600160a01b0316146116ff576040805162461bcd60e51b81526020600482018190526024820152600080516020612861833981519152604482015290519081900360640190fd5b6001600160a01b0381166117445760405162461bcd60e51b81526004018080602001828103825260268152602001806127866026913960400191505060405180910390fd5b600080546040516001600160a01b03808516939216917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e091a3600080546001600160a01b0319166001600160a01b0392909216919091179055565b60008082116117f5576040805162461bcd60e51b815260206004820152601a60248201527f536166654d6174683a206469766973696f6e206279207a65726f000000000000604482015290519081900360640190fd5b8183816117fe57fe5b049392505050565b60008282111561185d576040805162461bcd60e51b815260206004820152601e60248201527f536166654d6174683a207375627472616374696f6e206f766572666c6f770000604482015290519081900360640190fd5b50900390565b3390565b6001600160a01b0383166118ac5760405162461bcd60e51b81526004018080602001828103825260248152602001806128cf6024913960400191505060405180910390fd5b6001600160a01b0382166118f15760405162461bcd60e51b81526004018080602001828103825260228152602001806127ac6022913960400191505060405180910390fd5b6001600160a01b03808416600081815260036020908152604080832094871680845294825291829020859055815185815291517f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b9259281900390910190a3505050565b6001600160a01b0383166119985760405162461bcd60e51b81526004018080602001828103825260258152602001806128aa6025913960400191505060405180910390fd5b6001600160a01b0382166119dd5760405162461bcd60e51b81526004018080602001828103825260238152602001806127396023913960400191505060405180910390fd5b60008111611a1c5760405162461bcd60e51b81526004018080602001828103825260298152602001806128816029913960400191505060405180910390fd5b601354600160b01b900460ff168015611a3b5750611a398261116b565b155b8015611a4d5750611a4b8361116b565b155b15611aec576000611a5d83611195565b9050601454821115611aa05760405162461bcd60e51b81526004018080602001828103825260268152602001806127f26026913960400191505060405180910390fd5b601554611aad8383611ced565b1115611aea5760405162461bcd60e51b81526004018080602001828103825260248152602001806127ce6024913960400191505060405180910390fd5b505b6000611af730611195565b9050600081118015611b135750601354600160a01b900460ff16155b8015611b2d57506012546001600160a01b03858116911614155b8015611b4657506013546001600160a01b038481169116145b8015611b585750611b568461116b565b155b15611b6657611b6681611d9d565b601354600160a01b900460ff16158015611ba457506013546001600160a01b0385811691161480611ba457506013546001600160a01b038481169116145b8015611bb65750611bb48461116b565b155b8015611bc85750611bc68361116b565b155b15611c20576000611bef6064611be9600d5486611e2490919063ffffffff16565b9061179f565b90506000611bfd8483611806565b9050611c0c8630846000611e7d565b611c198686836001611e7d565b5050611c2d565b611c2d8484846000611e7d565b50505050565b60008184841115611cc25760405162461bcd60e51b81526004018080602001828103825283818151815260200191508051906020019080838360005b83811015611c87578181015183820152602001611c6f565b50505050905090810190601f168015611cb45780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b505050900390565b6000806000611cd7611feb565b9092509050611ce6828261179f565b9250505090565b600082820183811015611d47576040805162461bcd60e51b815260206004820152601b60248201527f536166654d6174683a206164646974696f6e206f766572666c6f770000000000604482015290519081900360640190fd5b9392505050565b6000806000806000806000806000611d658a61214e565b9250925092506000806000611d838d8686611d7e611cca565b612190565b919f909e50909c50959a5093985091965092945050505050565b6013805460ff60a01b1916600160a01b179055611db9816121e0565b600c54604051479161010090046001600160a01b0316908290600081818185875af1925050503d8060008114611e0b576040519150601f19603f3d011682016040523d82523d6000602084013e611e10565b606091505b50506013805460ff60a01b19169055505050565b600082611e3357506000610a1d565b82820282848281611e4057fe5b0414611d475760405162461bcd60e51b81526004018080602001828103825260218152602001806128186021913960400191505060405180910390fd5b80611e8a57611e8a61238f565b6001600160a01b03841660009081526005602052604090205460ff168015611ecb57506001600160a01b03831660009081526005602052604090205460ff16155b15611ee057611edb8484846123c1565b611fde565b6001600160a01b03841660009081526005602052604090205460ff16158015611f2157506001600160a01b03831660009081526005602052604090205460ff165b15611f3157611edb8484846124e5565b6001600160a01b03841660009081526005602052604090205460ff16158015611f7357506001600160a01b03831660009081526005602052604090205460ff16155b15611f8357611edb84848461258e565b6001600160a01b03841660009081526005602052604090205460ff168015611fc357506001600160a01b03831660009081526005602052604090205460ff165b15611fd357611edb8484846125d2565b611fde84848461258e565b80611c2d57611c2d612645565b6008546007546000918291825b60065481101561211c5782600160006006848154811061201457fe5b60009182526020808320909101546001600160a01b031683528201929092526040019020541180612079575081600260006006848154811061205257fe5b60009182526020808320909101546001600160a01b03168352820192909252604001902054115b15612090576008546007549450945050505061214a565b6120d060016000600684815481106120a457fe5b60009182526020808320909101546001600160a01b031683528201929092526040019020548490611806565b925061211260026000600684815481106120e657fe5b60009182526020808320909101546001600160a01b031683528201929092526040019020548390611806565b9150600101611ff8565b5060075460085461212c9161179f565b8210156121445760085460075493509350505061214a565b90925090505b9091565b60008060008061215d85612653565b9050600061216a8661266f565b905060006121828261217c8986611806565b90611806565b979296509094509092505050565b600080808061219f8886611e24565b905060006121ad8887611e24565b905060006121bb8888611e24565b905060006121cd8261217c8686611806565b939b939a50919850919650505050505050565b604080516002808252606082018352600092602083019080368337019050509050308160008151811061220f57fe5b6001600160a01b03928316602091820292909201810191909152601254604080516315ab88c960e31b81529051919093169263ad5c4648926004808301939192829003018186803b15801561226357600080fd5b505afa158015612277573d6000803e3d6000fd5b505050506040513d602081101561228d57600080fd5b505181518290600190811061229e57fe5b6001600160a01b0392831660209182029290920101526012546122c49130911684611867565b60125460405163791ac94760e01b8152600481018481526000602483018190523060648401819052426084850181905260a060448601908152875160a487015287516001600160a01b039097169663791ac947968a968a9594939092909160c40190602080880191028083838b5b8381101561234a578181015183820152602001612332565b505050509050019650505050505050600060405180830381600087803b15801561237357600080fd5b505af1158015612387573d6000803e3d6000fd5b505050505050565b600e5415801561239f5750601054155b156123a9576123bf565b600e8054600f5560108054601155600091829055555b565b6000806000806000806123d387611d4e565b6001600160a01b038f16600090815260026020526040902054959b509399509197509550935091506124059088611806565b6001600160a01b038a166000908152600260209081526040808320939093556001905220546124349087611806565b6001600160a01b03808b1660009081526001602052604080822093909355908a16815220546124639086611ced565b6001600160a01b0389166000908152600160205260409020556124858161268b565b61248f8483612714565b876001600160a01b0316896001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef856040518082815260200191505060405180910390a3505050505050505050565b6000806000806000806124f787611d4e565b6001600160a01b038f16600090815260016020526040902054959b509399509197509550935091506125299087611806565b6001600160a01b03808b16600090815260016020908152604080832094909455918b1681526002909152205461255f9084611ced565b6001600160a01b0389166000908152600260209081526040808320939093556001905220546124639086611ced565b6000806000806000806125a087611d4e565b6001600160a01b038f16600090815260016020526040902054959b509399509197509550935091506124349087611806565b6000806000806000806125e487611d4e565b6001600160a01b038f16600090815260026020526040902054959b509399509197509550935091506126169088611806565b6001600160a01b038a166000908152600260209081526040808320939093556001905220546125299087611806565b600f54600e55601154601055565b6000610a1d6064611be9600e5485611e2490919063ffffffff16565b6000610a1d6064611be960105485611e2490919063ffffffff16565b6000612695611cca565b905060006126a38383611e24565b306000908152600160205260409020549091506126c09082611ced565b3060009081526001602090815260408083209390935560059052205460ff161561270f57306000908152600260205260409020546126fe9084611ced565b306000908152600260205260409020555b505050565b6008546127219083611806565b6008556009546127319082611ced565b600955505056fe45524332303a207472616e7366657220746f20746865207a65726f2061646472657373416d6f756e74206d757374206265206c657373207468616e20746f74616c207265666c656374696f6e734f776e61626c653a206e6577206f776e657220697320746865207a65726f206164647265737345524332303a20617070726f766520746f20746865207a65726f206164647265737357616c6c657420616d6f756e74206578636565647320746865206d617820616d6f756e745472616e7366657220616d6f756e74206578636565647320746865206d617820616d6f756e74536166654d6174683a206d756c7469706c69636174696f6e206f766572666c6f7745524332303a207472616e7366657220616d6f756e74206578636565647320616c6c6f77616e63654f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65725472616e7366657220616d6f756e74206d7573742062652067726561746572207468616e207a65726f45524332303a207472616e736665722066726f6d20746865207a65726f206164647265737345524332303a20617070726f76652066726f6d20746865207a65726f20616464726573734578636c75646564206164647265737365732063616e6e6f742063616c6c20746869732066756e6374696f6e45524332303a2064656372656173656420616c6c6f77616e63652062656c6f77207a65726fa2646970667358221220cc15f062c6a1c6594df8141b65a8262de89f61d7ed015157729f8475ac0e0eb264736f6c63430007060033416d6f756e74206d757374206265206c657373207468616e20746f74616c207265666c656374696f6e73
Deployed Bytecode
0x60806040526004361061023f5760003560e01c80635342acb41161012e57806395d89b41116100ab578063c49b9a801161006f578063c49b9a8014610808578063d0d41fe114610834578063dd62ed3e14610867578063ea2f0b37146108a2578063f2fde38b146108d557610246565b806395d89b4114610740578063a457c2d714610755578063a9059cbb1461078e578063aa4bde28146107c7578063c1ce3c06146107dc57610246565b806372abda1a116100f257806372abda1a146106a457806388f82020146106b95780638c0b5e22146106ec5780638da5cb5b146107015780638ee88c531461071657610246565b80635342acb4146105ff5780636827e764146106325780636bc87c3a1461064757806370a082311461065c578063715018a61461068f57610246565b8063379e2919116101bc578063437823ec11610180578063437823ec1461053d5780634549b0391461057057806349bd5a5e146105a25780634a74bb02146105b757806352390c02146105cc57610246565b8063379e29191461048657806339509351146104b05780633ad10ef6146104e95780633b124fe7146104fe5780633bd5d1731461051357610246565b806318160ddd1161020357806318160ddd146103a657806323b872dd146103bb5780632d838119146103fe578063313ce567146104285780633685d4191461045357610246565b8063061c82d01461024b57806306fdde0314610277578063095ea7b31461030157806313114a9d1461034e5780631694505e1461037557610246565b3661024657005b600080fd5b34801561025757600080fd5b506102756004803603602081101561026e57600080fd5b5035610908565b005b34801561028357600080fd5b5061028c61096f565b6040805160208082528351818301528351919283929083019185019080838360005b838110156102c65781810151838201526020016102ae565b50505050905090810190601f1680156102f35780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b34801561030d57600080fd5b5061033a6004803603604081101561032457600080fd5b506001600160a01b038135169060200135610a05565b604080519115158252519081900360200190f35b34801561035a57600080fd5b50610363610a23565b60408051918252519081900360200190f35b34801561038157600080fd5b5061038a610a29565b604080516001600160a01b039092168252519081900360200190f35b3480156103b257600080fd5b50610363610a38565b3480156103c757600080fd5b5061033a600480360360608110156103de57600080fd5b506001600160a01b03813581169160208101359091169060400135610a3e565b34801561040a57600080fd5b506103636004803603602081101561042157600080fd5b5035610ac5565b34801561043457600080fd5b5061043d610b27565b6040805160ff9092168252519081900360200190f35b34801561045f57600080fd5b506102756004803603602081101561047657600080fd5b50356001600160a01b0316610b30565b34801561049257600080fd5b50610275600480360360208110156104a957600080fd5b5035610cfb565b3480156104bc57600080fd5b5061033a600480360360408110156104d357600080fd5b506001600160a01b038135169060200135610d62565b3480156104f557600080fd5b5061038a610db0565b34801561050a57600080fd5b50610363610dc4565b34801561051f57600080fd5b506102756004803603602081101561053657600080fd5b5035610dca565b34801561054957600080fd5b506102756004803603602081101561056057600080fd5b50356001600160a01b0316610ea4565b34801561057c57600080fd5b506103636004803603604081101561059357600080fd5b50803590602001351515610f2a565b3480156105ae57600080fd5b5061038a610fbc565b3480156105c357600080fd5b5061033a610fcb565b3480156105d857600080fd5b50610275600480360360208110156105ef57600080fd5b50356001600160a01b0316610fdb565b34801561060b57600080fd5b5061033a6004803603602081101561062257600080fd5b50356001600160a01b031661116b565b34801561063e57600080fd5b50610363611189565b34801561065357600080fd5b5061036361118f565b34801561066857600080fd5b506103636004803603602081101561067f57600080fd5b50356001600160a01b0316611195565b34801561069b57600080fd5b506102756111f7565b3480156106b057600080fd5b5061033a6112a3565b3480156106c557600080fd5b5061033a600480360360208110156106dc57600080fd5b50356001600160a01b03166112b3565b3480156106f857600080fd5b506103636112d1565b34801561070d57600080fd5b5061038a6112d7565b34801561072257600080fd5b506102756004803603602081101561073957600080fd5b50356112e6565b34801561074c57600080fd5b5061028c61134d565b34801561076157600080fd5b5061033a6004803603604081101561077857600080fd5b506001600160a01b0381351690602001356113ae565b34801561079a57600080fd5b5061033a600480360360408110156107b157600080fd5b506001600160a01b038135169060200135611416565b3480156107d357600080fd5b5061036361142a565b3480156107e857600080fd5b50610275600480360360208110156107ff57600080fd5b50351515611430565b34801561081457600080fd5b506102756004803603602081101561082b57600080fd5b503515156114b0565b34801561084057600080fd5b506102756004803603602081101561085757600080fd5b50356001600160a01b0316611565565b34801561087357600080fd5b506103636004803603604081101561088a57600080fd5b506001600160a01b03813581169160200135166115ef565b3480156108ae57600080fd5b50610275600480360360208110156108c557600080fd5b50356001600160a01b031661161a565b3480156108e157600080fd5b50610275600480360360208110156108f857600080fd5b50356001600160a01b031661169d565b610910611863565b6001600160a01b03166109216112d7565b6001600160a01b03161461096a576040805162461bcd60e51b81526020600482018190526024820152600080516020612861833981519152604482015290519081900360640190fd5b600e55565b600a8054604080516020601f60026000196101006001881615020190951694909404938401819004810282018101909252828152606093909290918301828280156109fb5780601f106109d0576101008083540402835291602001916109fb565b820191906000526020600020905b8154815290600101906020018083116109de57829003601f168201915b5050505050905090565b6000610a19610a12611863565b8484611867565b5060015b92915050565b60095490565b6012546001600160a01b031681565b60075490565b6000610a4b848484611953565b610abb84610a57611863565b610ab685604051806060016040528060288152602001612839602891396001600160a01b038a16600090815260036020526040812090610a95611863565b6001600160a01b031681526020810191909152604001600020549190611c33565b611867565b5060019392505050565b6000600854821115610b085760405162461bcd60e51b815260040180806020018281038252602a81526020018061275c602a913960400191505060405180910390fd5b6000610b12611cca565b9050610b1e838261179f565b9150505b919050565b600c5460ff1690565b610b38611863565b6001600160a01b0316610b496112d7565b6001600160a01b031614610b92576040805162461bcd60e51b81526020600482018190526024820152600080516020612861833981519152604482015290519081900360640190fd5b6001600160a01b03811660009081526005602052604090205460ff16610bff576040805162461bcd60e51b815260206004820152601b60248201527f4163636f756e7420697320616c7265616479206578636c756465640000000000604482015290519081900360640190fd5b60005b600654811015610cf757816001600160a01b031660068281548110610c2357fe5b6000918252602090912001546001600160a01b03161415610cef57600680546000198101908110610c5057fe5b600091825260209091200154600680546001600160a01b039092169183908110610c7657fe5b600091825260208083209190910180546001600160a01b0319166001600160a01b039485161790559184168152600282526040808220829055600590925220805460ff191690556006805480610cc857fe5b600082815260209020810160001990810180546001600160a01b0319169055019055610cf7565b600101610c02565b5050565b610d03611863565b6001600160a01b0316610d146112d7565b6001600160a01b031614610d5d576040805162461bcd60e51b81526020600482018190526024820152600080516020612861833981519152604482015290519081900360640190fd5b600d55565b6000610a19610d6f611863565b84610ab68560036000610d80611863565b6001600160a01b03908116825260208083019390935260409182016000908120918c168152925290205490611ced565b600c5461010090046001600160a01b031681565b600e5481565b6000610dd4611863565b6001600160a01b03811660009081526005602052604090205490915060ff1615610e2f5760405162461bcd60e51b815260040180806020018281038252602c8152602001806128f3602c913960400191505060405180910390fd5b6000610e3a83611d4e565b505050506001600160a01b038416600090815260016020526040902054919250610e6691905082611806565b6001600160a01b038316600090815260016020526040902055600854610e8c9082611806565b600855600954610e9c9084611ced565b600955505050565b610eac611863565b6001600160a01b0316610ebd6112d7565b6001600160a01b031614610f06576040805162461bcd60e51b81526020600482018190526024820152600080516020612861833981519152604482015290519081900360640190fd5b6001600160a01b03166000908152600460205260409020805460ff19166001179055565b6000600754831115610f83576040805162461bcd60e51b815260206004820152601f60248201527f416d6f756e74206d757374206265206c657373207468616e20737570706c7900604482015290519081900360640190fd5b81610fa2576000610f9384611d4e565b50939550610a1d945050505050565b6000610fad84611d4e565b50929550610a1d945050505050565b6013546001600160a01b031681565b601354600160a81b900460ff1681565b610fe3611863565b6001600160a01b0316610ff46112d7565b6001600160a01b03161461103d576040805162461bcd60e51b81526020600482018190526024820152600080516020612861833981519152604482015290519081900360640190fd5b6001600160a01b03811660009081526005602052604090205460ff16156110ab576040805162461bcd60e51b815260206004820152601b60248201527f4163636f756e7420697320616c7265616479206578636c756465640000000000604482015290519081900360640190fd5b6001600160a01b03811660009081526001602052604090205415611105576001600160a01b0381166000908152600160205260409020546110eb90610ac5565b6001600160a01b0382166000908152600260205260409020555b6001600160a01b03166000818152600560205260408120805460ff191660019081179091556006805491820181559091527ff652222313e28459528d920b65115c16c04f3efc82aaedc97be59f3f377c0d3f0180546001600160a01b0319169091179055565b6001600160a01b031660009081526004602052604090205460ff1690565b600d5481565b60105481565b6001600160a01b03811660009081526005602052604081205460ff16156111d557506001600160a01b038116600090815260026020526040902054610b22565b6001600160a01b038216600090815260016020526040902054610a1d90610ac5565b6111ff611863565b6001600160a01b03166112106112d7565b6001600160a01b031614611259576040805162461bcd60e51b81526020600482018190526024820152600080516020612861833981519152604482015290519081900360640190fd5b600080546040516001600160a01b03909116907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908390a3600080546001600160a01b0319169055565b601354600160b01b900460ff1681565b6001600160a01b031660009081526005602052604090205460ff1690565b60145481565b6000546001600160a01b031690565b6112ee611863565b6001600160a01b03166112ff6112d7565b6001600160a01b031614611348576040805162461bcd60e51b81526020600482018190526024820152600080516020612861833981519152604482015290519081900360640190fd5b601055565b600b8054604080516020601f60026000196101006001881615020190951694909404938401819004810282018101909252828152606093909290918301828280156109fb5780601f106109d0576101008083540402835291602001916109fb565b6000610a196113bb611863565b84610ab68560405180606001604052806025815260200161291f60259139600360006113e5611863565b6001600160a01b03908116825260208083019390935260409182016000908120918d16815292529020549190611c33565b6000610a19611423611863565b8484611953565b60155481565b611438611863565b6001600160a01b03166114496112d7565b6001600160a01b031614611492576040805162461bcd60e51b81526020600482018190526024820152600080516020612861833981519152604482015290519081900360640190fd5b60138054911515600160b01b0260ff60b01b19909216919091179055565b6114b8611863565b6001600160a01b03166114c96112d7565b6001600160a01b031614611512576040805162461bcd60e51b81526020600482018190526024820152600080516020612861833981519152604482015290519081900360640190fd5b60138054821515600160a81b810260ff60a81b199092169190911790915560408051918252517f53726dfcaf90650aa7eb35524f4d3220f07413c8d6cb404cc8c18bf5591bc1599181900360200190a150565b61156d611863565b6001600160a01b031661157e6112d7565b6001600160a01b0316146115c7576040805162461bcd60e51b81526020600482018190526024820152600080516020612861833981519152604482015290519081900360640190fd5b600c80546001600160a01b0390921661010002610100600160a81b0319909216919091179055565b6001600160a01b03918216600090815260036020908152604080832093909416825291909152205490565b611622611863565b6001600160a01b03166116336112d7565b6001600160a01b03161461167c576040805162461bcd60e51b81526020600482018190526024820152600080516020612861833981519152604482015290519081900360640190fd5b6001600160a01b03166000908152600460205260409020805460ff19169055565b6116a5611863565b6001600160a01b03166116b66112d7565b6001600160a01b0316146116ff576040805162461bcd60e51b81526020600482018190526024820152600080516020612861833981519152604482015290519081900360640190fd5b6001600160a01b0381166117445760405162461bcd60e51b81526004018080602001828103825260268152602001806127866026913960400191505060405180910390fd5b600080546040516001600160a01b03808516939216917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e091a3600080546001600160a01b0319166001600160a01b0392909216919091179055565b60008082116117f5576040805162461bcd60e51b815260206004820152601a60248201527f536166654d6174683a206469766973696f6e206279207a65726f000000000000604482015290519081900360640190fd5b8183816117fe57fe5b049392505050565b60008282111561185d576040805162461bcd60e51b815260206004820152601e60248201527f536166654d6174683a207375627472616374696f6e206f766572666c6f770000604482015290519081900360640190fd5b50900390565b3390565b6001600160a01b0383166118ac5760405162461bcd60e51b81526004018080602001828103825260248152602001806128cf6024913960400191505060405180910390fd5b6001600160a01b0382166118f15760405162461bcd60e51b81526004018080602001828103825260228152602001806127ac6022913960400191505060405180910390fd5b6001600160a01b03808416600081815260036020908152604080832094871680845294825291829020859055815185815291517f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b9259281900390910190a3505050565b6001600160a01b0383166119985760405162461bcd60e51b81526004018080602001828103825260258152602001806128aa6025913960400191505060405180910390fd5b6001600160a01b0382166119dd5760405162461bcd60e51b81526004018080602001828103825260238152602001806127396023913960400191505060405180910390fd5b60008111611a1c5760405162461bcd60e51b81526004018080602001828103825260298152602001806128816029913960400191505060405180910390fd5b601354600160b01b900460ff168015611a3b5750611a398261116b565b155b8015611a4d5750611a4b8361116b565b155b15611aec576000611a5d83611195565b9050601454821115611aa05760405162461bcd60e51b81526004018080602001828103825260268152602001806127f26026913960400191505060405180910390fd5b601554611aad8383611ced565b1115611aea5760405162461bcd60e51b81526004018080602001828103825260248152602001806127ce6024913960400191505060405180910390fd5b505b6000611af730611195565b9050600081118015611b135750601354600160a01b900460ff16155b8015611b2d57506012546001600160a01b03858116911614155b8015611b4657506013546001600160a01b038481169116145b8015611b585750611b568461116b565b155b15611b6657611b6681611d9d565b601354600160a01b900460ff16158015611ba457506013546001600160a01b0385811691161480611ba457506013546001600160a01b038481169116145b8015611bb65750611bb48461116b565b155b8015611bc85750611bc68361116b565b155b15611c20576000611bef6064611be9600d5486611e2490919063ffffffff16565b9061179f565b90506000611bfd8483611806565b9050611c0c8630846000611e7d565b611c198686836001611e7d565b5050611c2d565b611c2d8484846000611e7d565b50505050565b60008184841115611cc25760405162461bcd60e51b81526004018080602001828103825283818151815260200191508051906020019080838360005b83811015611c87578181015183820152602001611c6f565b50505050905090810190601f168015611cb45780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b505050900390565b6000806000611cd7611feb565b9092509050611ce6828261179f565b9250505090565b600082820183811015611d47576040805162461bcd60e51b815260206004820152601b60248201527f536166654d6174683a206164646974696f6e206f766572666c6f770000000000604482015290519081900360640190fd5b9392505050565b6000806000806000806000806000611d658a61214e565b9250925092506000806000611d838d8686611d7e611cca565b612190565b919f909e50909c50959a5093985091965092945050505050565b6013805460ff60a01b1916600160a01b179055611db9816121e0565b600c54604051479161010090046001600160a01b0316908290600081818185875af1925050503d8060008114611e0b576040519150601f19603f3d011682016040523d82523d6000602084013e611e10565b606091505b50506013805460ff60a01b19169055505050565b600082611e3357506000610a1d565b82820282848281611e4057fe5b0414611d475760405162461bcd60e51b81526004018080602001828103825260218152602001806128186021913960400191505060405180910390fd5b80611e8a57611e8a61238f565b6001600160a01b03841660009081526005602052604090205460ff168015611ecb57506001600160a01b03831660009081526005602052604090205460ff16155b15611ee057611edb8484846123c1565b611fde565b6001600160a01b03841660009081526005602052604090205460ff16158015611f2157506001600160a01b03831660009081526005602052604090205460ff165b15611f3157611edb8484846124e5565b6001600160a01b03841660009081526005602052604090205460ff16158015611f7357506001600160a01b03831660009081526005602052604090205460ff16155b15611f8357611edb84848461258e565b6001600160a01b03841660009081526005602052604090205460ff168015611fc357506001600160a01b03831660009081526005602052604090205460ff165b15611fd357611edb8484846125d2565b611fde84848461258e565b80611c2d57611c2d612645565b6008546007546000918291825b60065481101561211c5782600160006006848154811061201457fe5b60009182526020808320909101546001600160a01b031683528201929092526040019020541180612079575081600260006006848154811061205257fe5b60009182526020808320909101546001600160a01b03168352820192909252604001902054115b15612090576008546007549450945050505061214a565b6120d060016000600684815481106120a457fe5b60009182526020808320909101546001600160a01b031683528201929092526040019020548490611806565b925061211260026000600684815481106120e657fe5b60009182526020808320909101546001600160a01b031683528201929092526040019020548390611806565b9150600101611ff8565b5060075460085461212c9161179f565b8210156121445760085460075493509350505061214a565b90925090505b9091565b60008060008061215d85612653565b9050600061216a8661266f565b905060006121828261217c8986611806565b90611806565b979296509094509092505050565b600080808061219f8886611e24565b905060006121ad8887611e24565b905060006121bb8888611e24565b905060006121cd8261217c8686611806565b939b939a50919850919650505050505050565b604080516002808252606082018352600092602083019080368337019050509050308160008151811061220f57fe5b6001600160a01b03928316602091820292909201810191909152601254604080516315ab88c960e31b81529051919093169263ad5c4648926004808301939192829003018186803b15801561226357600080fd5b505afa158015612277573d6000803e3d6000fd5b505050506040513d602081101561228d57600080fd5b505181518290600190811061229e57fe5b6001600160a01b0392831660209182029290920101526012546122c49130911684611867565b60125460405163791ac94760e01b8152600481018481526000602483018190523060648401819052426084850181905260a060448601908152875160a487015287516001600160a01b039097169663791ac947968a968a9594939092909160c40190602080880191028083838b5b8381101561234a578181015183820152602001612332565b505050509050019650505050505050600060405180830381600087803b15801561237357600080fd5b505af1158015612387573d6000803e3d6000fd5b505050505050565b600e5415801561239f5750601054155b156123a9576123bf565b600e8054600f5560108054601155600091829055555b565b6000806000806000806123d387611d4e565b6001600160a01b038f16600090815260026020526040902054959b509399509197509550935091506124059088611806565b6001600160a01b038a166000908152600260209081526040808320939093556001905220546124349087611806565b6001600160a01b03808b1660009081526001602052604080822093909355908a16815220546124639086611ced565b6001600160a01b0389166000908152600160205260409020556124858161268b565b61248f8483612714565b876001600160a01b0316896001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef856040518082815260200191505060405180910390a3505050505050505050565b6000806000806000806124f787611d4e565b6001600160a01b038f16600090815260016020526040902054959b509399509197509550935091506125299087611806565b6001600160a01b03808b16600090815260016020908152604080832094909455918b1681526002909152205461255f9084611ced565b6001600160a01b0389166000908152600260209081526040808320939093556001905220546124639086611ced565b6000806000806000806125a087611d4e565b6001600160a01b038f16600090815260016020526040902054959b509399509197509550935091506124349087611806565b6000806000806000806125e487611d4e565b6001600160a01b038f16600090815260026020526040902054959b509399509197509550935091506126169088611806565b6001600160a01b038a166000908152600260209081526040808320939093556001905220546125299087611806565b600f54600e55601154601055565b6000610a1d6064611be9600e5485611e2490919063ffffffff16565b6000610a1d6064611be960105485611e2490919063ffffffff16565b6000612695611cca565b905060006126a38383611e24565b306000908152600160205260409020549091506126c09082611ced565b3060009081526001602090815260408083209390935560059052205460ff161561270f57306000908152600260205260409020546126fe9084611ced565b306000908152600260205260409020555b505050565b6008546127219083611806565b6008556009546127319082611ced565b600955505056fe45524332303a207472616e7366657220746f20746865207a65726f2061646472657373416d6f756e74206d757374206265206c657373207468616e20746f74616c207265666c656374696f6e734f776e61626c653a206e6577206f776e657220697320746865207a65726f206164647265737345524332303a20617070726f766520746f20746865207a65726f206164647265737357616c6c657420616d6f756e74206578636565647320746865206d617820616d6f756e745472616e7366657220616d6f756e74206578636565647320746865206d617820616d6f756e74536166654d6174683a206d756c7469706c69636174696f6e206f766572666c6f7745524332303a207472616e7366657220616d6f756e74206578636565647320616c6c6f77616e63654f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65725472616e7366657220616d6f756e74206d7573742062652067726561746572207468616e207a65726f45524332303a207472616e736665722066726f6d20746865207a65726f206164647265737345524332303a20617070726f76652066726f6d20746865207a65726f20616464726573734578636c75646564206164647265737365732063616e6e6f742063616c6c20746869732066756e6374696f6e45524332303a2064656372656173656420616c6c6f77616e63652062656c6f77207a65726fa2646970667358221220cc15f062c6a1c6594df8141b65a8262de89f61d7ed015157729f8475ac0e0eb264736f6c63430007060033
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.