Transactions
Token Transfers
Tokens
Internal Transactions
Coin Balance History
Logs
Code
Read Contract
Write Contract
Warning! Contract bytecode has been changed and doesn't match the verified one. Therefore, interaction with this smart contract may be risky.
- Contract name:
- TaikoC
- Optimization enabled
- true
- Compiler version
- v0.8.20+commit.a1b79de6
- Optimization runs
- 200
- EVM Version
- default
- Verified at
- 2024-05-27T16:34:08.422746Z
Constructor Arguments
0x00000000000000000000000059b255505e3f35931a3a0dd799fe22a4497eaea0
Arg [0] (address) : 0x59b255505e3f35931a3a0dd799fe22a4497eaea0
Contract source code
// SPDX-License-Identifier: MIT pragma solidity 0.8.20; abstract contract Context { function _msgSender() internal view virtual returns (address) { return msg.sender; } } interface IERC20 { function totalSupply() external view returns (uint256); function balanceOf(address account) external view returns (uint256); function transfer(address recipient, uint256 amount) external returns (bool); function allowance(address owner, address spender) external view returns (uint256); function approve(address spender, uint256 amount) external returns (bool); function transferFrom(address sender, address recipient, uint256 amount) external returns (bool); event Transfer(address indexed from, address indexed to, uint256 value); event Approval(address indexed owner, address indexed spender, uint256 value); } library SafeMath { function add(uint256 a, uint256 b) internal pure returns (uint256) { uint256 c = a + b; require(c >= a, "SafeMath: addition overflow"); return c; } function sub(uint256 a, uint256 b) internal pure returns (uint256) { return sub(a, b, "SafeMath: subtraction overflow"); } function sub(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) { require(b <= a, errorMessage); uint256 c = a - b; return c; } 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; } function div(uint256 a, uint256 b) internal pure returns (uint256) { return div(a, b, "SafeMath: division by zero"); } function div(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) { require(b > 0, errorMessage); uint256 c = a / b; return c; } } contract Ownable is Context { address private _owner; event OwnershipTransferred(address indexed previousOwner, address indexed newOwner); constructor () { address msgSender = _msgSender(); _owner = msgSender; emit OwnershipTransferred(address(0), msgSender); } function owner() public view returns (address) { return _owner; } modifier onlyOwner() { require(_owner == _msgSender(), "Ownable: caller is not the owner"); _; } function renounceOwnership() public virtual onlyOwner { emit OwnershipTransferred(_owner, address(0)); _owner = address(0); } } interface IUniswapV2Factory { function createPair(address tokenA, address tokenB) external returns (address pair); } interface IUniswapV2Router02 { function swapExactTokensForETHSupportingFeeOnTransferTokens( uint amountIn, uint amountOutMin, address[] calldata path, address to, uint deadline ) external; function factory() external pure returns (address); function WETH() external pure returns (address); function addLiquidityETH( address token, uint amountTokenDesired, uint amountTokenMin, uint amountETHMin, address to, uint deadline ) external payable returns (uint amountToken, uint amountETH, uint liquidity); } contract TaikoC is Context, IERC20, Ownable { using SafeMath for uint256; mapping (address => uint256) private _balances; mapping (address => mapping (address => uint256)) private _allowances; mapping (address => bool) private _isExcludedFromFee; address payable private _taxWallet; // Marketing Wallet address payable private _lotteryWallet; // Lottery Wallet uint256 private _taxWalletPercentage = 50; // 50% uint256 private _lotteryWalletPercentage = 50; // 50% address private constant deadAddress = address(0xdead); uint256 private constant _initialBuyTax =10; uint256 private constant _initialSellTax=10; uint256 private constant _reduceBuyTaxAt=15; uint256 private constant _reduceSellTaxAt=15; uint256 private constant _preventSwapBefore=15; uint256 private _finalBuyTax=0; uint256 private _finalSellTax=0; uint256 private _buyCount=0; uint8 private constant _decimals = 9; uint256 private constant _tTotal = 100000000 * 10**_decimals; string private constant _name = unicode"Taiko Chan"; string private constant _symbol = unicode"$TCHAN"; uint256 public constant _taxSwapThreshold = 100000 * 10**_decimals; uint256 public constant _maxTaxSwap = 800000 * 10**_decimals; uint256 public _maxTxAmount = 2000000 * 10**_decimals; uint256 public _maxWalletSize = 2000000 * 10**_decimals; IUniswapV2Router02 private uniswapV2Router; address private uniswapV2Pair; bool private tradingOpen; bool private limitEffect = true; bool private inSwap = false; bool private swapEnabled = false; event FinalTax (uint256 _valueBuy, uint256 _valueSell); event Launch (bool _tradingOpen,bool _swapEnabled); event maxAmount(uint256 _value); modifier lockTheSwap { inSwap = true; _; inSwap = false; } constructor (address taxWallet) { _taxWallet = payable (taxWallet); _lotteryWallet = payable(0x59b255505e3f35931a3a0dd799FE22a4497eaEA0); _balances[_msgSender()] = _tTotal; _isExcludedFromFee[owner()] = true; _isExcludedFromFee[_taxWallet] = true; _isExcludedFromFee[_lotteryWallet] = true; _isExcludedFromFee[deadAddress]= true; _isExcludedFromFee[address(this)] = true; emit Transfer(address(0), _msgSender(), _tTotal); } function name() public pure returns (string memory) { return _name; } function symbol() public pure returns (string memory) { return _symbol; } function decimals() public pure returns (uint8) { return _decimals; } function totalSupply() public pure override returns (uint256) { return _tTotal; } function balanceOf(address account) public view override returns (uint256) { return _balances[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 _approve(address owner, address spender, uint256 amount) private { require(owner != address(0) && spender != address(0), "ERC20: approve 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) && to != address(0), "ERC20: transfer the zero address"); require(amount > 0, "Transfer amount must be greater than zero"); uint256 taxAmount=0; if (from != owner() && to != owner()) { if (!tradingOpen) { require( _isExcludedFromFee[from] || _isExcludedFromFee[to], "trading is not yet open" ); } if (from == uniswapV2Pair && to != address(uniswapV2Router) && ! _isExcludedFromFee[to] ) { if (limitEffect) { require(amount <= _maxTxAmount, "Exceeds the _maxTxAmount."); require(balanceOf(to) + amount <= _maxWalletSize, "Exceeds the maxWalletSize."); } _buyCount++; } if ( to == uniswapV2Pair && from!= address(this) ){ taxAmount = amount.mul ((_buyCount>_reduceSellTaxAt) ?_finalSellTax:_initialSellTax).div(100 ); } else if (from == uniswapV2Pair && to!= address(this) ){ taxAmount = amount.mul ((_buyCount>_reduceBuyTaxAt) ?_finalBuyTax:_initialBuyTax).div(100 ); } uint256 contractTokenBalance = balanceOf(address(this)); if ( !inSwap && to == uniswapV2Pair && swapEnabled && contractTokenBalance>_taxSwapThreshold && _buyCount>_preventSwapBefore ){ uint256 getMin = (contractTokenBalance > _maxTaxSwap)?_maxTaxSwap:contractTokenBalance; uint256 amountToSwap = (amount>getMin)?getMin:amount; swapTokensForEth(amountToSwap); uint256 contractETHBalance = address(this).balance; if(contractETHBalance > 0) { sendETHToFee(address(this).balance); } } } if(taxAmount>0){ _balances[address(this)]=_balances[address(this)].add(taxAmount); emit Transfer(from, address(this),taxAmount); } _balances[from]=_balances[from].sub(amount); _balances[to]=_balances[to].add(amount.sub(taxAmount)); emit Transfer(from, to, amount.sub(taxAmount)); } function sendETHToFee(uint256 amount) private { uint256 taxWalletShare = amount * _taxWalletPercentage / 100; uint256 lotteryWalletShare = amount * _lotteryWalletPercentage / 100; _taxWallet.transfer(taxWalletShare); _lotteryWallet.transfer(lotteryWalletShare); } function swapTokensForEth(uint256 tokenAmount) private lockTheSwap { address[] memory path = new address[](2); path[0] = address(this); path[1] = uniswapV2Router.WETH(); _approve(address(this), address(uniswapV2Router), tokenAmount); uniswapV2Router.swapExactTokensForETHSupportingFeeOnTransferTokens( tokenAmount, 0, path, address(this), block.timestamp ); } function initialize () external onlyOwner { require(!tradingOpen,"init already called"); uint256 tokenAmount = balanceOf(address(this)).sub(_tTotal.mul(_initialBuyTax).div(100)); uniswapV2Router = IUniswapV2Router02(0xf8279Bad8Cb76B96de38365A05984b7b8f009B17); _approve(address(this), address(uniswapV2Router), _tTotal); uniswapV2Pair = IUniswapV2Factory(uniswapV2Router.factory()) .createPair(address(this), uniswapV2Router.WETH() ); uniswapV2Router.addLiquidityETH{value: address(this).balance} ( address(this), tokenAmount, 0, 0, _msgSender(), block.timestamp ); IERC20(uniswapV2Pair).approve(address(uniswapV2Router), type(uint).max); } function openTrade() external onlyOwner { require(!tradingOpen,"trading already open"); swapEnabled = true; tradingOpen = true; emit Launch (tradingOpen,swapEnabled); } function removeLimits () external onlyOwner { limitEffect = false; _maxTxAmount= _tTotal; _maxWalletSize= _tTotal; emit maxAmount (_tTotal); } function setFees (uint256 _valueBuy, uint256 _valueSell) external onlyOwner { require(_valueBuy <= 30 && _valueSell <= 30 && tradingOpen, "Exceeds value"); _finalBuyTax = _valueBuy; _finalSellTax = _valueSell; emit FinalTax(_valueBuy, _valueSell); } receive() external payable {} }
Contract ABI
[{"type":"constructor","stateMutability":"nonpayable","inputs":[{"type":"address","name":"taxWallet","internalType":"address"}]},{"type":"event","name":"Approval","inputs":[{"type":"address","name":"owner","internalType":"address","indexed":true},{"type":"address","name":"spender","internalType":"address","indexed":true},{"type":"uint256","name":"value","internalType":"uint256","indexed":false}],"anonymous":false},{"type":"event","name":"FinalTax","inputs":[{"type":"uint256","name":"_valueBuy","internalType":"uint256","indexed":false},{"type":"uint256","name":"_valueSell","internalType":"uint256","indexed":false}],"anonymous":false},{"type":"event","name":"Launch","inputs":[{"type":"bool","name":"_tradingOpen","internalType":"bool","indexed":false},{"type":"bool","name":"_swapEnabled","internalType":"bool","indexed":false}],"anonymous":false},{"type":"event","name":"OwnershipTransferred","inputs":[{"type":"address","name":"previousOwner","internalType":"address","indexed":true},{"type":"address","name":"newOwner","internalType":"address","indexed":true}],"anonymous":false},{"type":"event","name":"Transfer","inputs":[{"type":"address","name":"from","internalType":"address","indexed":true},{"type":"address","name":"to","internalType":"address","indexed":true},{"type":"uint256","name":"value","internalType":"uint256","indexed":false}],"anonymous":false},{"type":"event","name":"maxAmount","inputs":[{"type":"uint256","name":"_value","internalType":"uint256","indexed":false}],"anonymous":false},{"type":"function","stateMutability":"view","outputs":[{"type":"uint256","name":"","internalType":"uint256"}],"name":"_maxTaxSwap","inputs":[]},{"type":"function","stateMutability":"view","outputs":[{"type":"uint256","name":"","internalType":"uint256"}],"name":"_maxTxAmount","inputs":[]},{"type":"function","stateMutability":"view","outputs":[{"type":"uint256","name":"","internalType":"uint256"}],"name":"_maxWalletSize","inputs":[]},{"type":"function","stateMutability":"view","outputs":[{"type":"uint256","name":"","internalType":"uint256"}],"name":"_taxSwapThreshold","inputs":[]},{"type":"function","stateMutability":"view","outputs":[{"type":"uint256","name":"","internalType":"uint256"}],"name":"allowance","inputs":[{"type":"address","name":"owner","internalType":"address"},{"type":"address","name":"spender","internalType":"address"}]},{"type":"function","stateMutability":"nonpayable","outputs":[{"type":"bool","name":"","internalType":"bool"}],"name":"approve","inputs":[{"type":"address","name":"spender","internalType":"address"},{"type":"uint256","name":"amount","internalType":"uint256"}]},{"type":"function","stateMutability":"view","outputs":[{"type":"uint256","name":"","internalType":"uint256"}],"name":"balanceOf","inputs":[{"type":"address","name":"account","internalType":"address"}]},{"type":"function","stateMutability":"pure","outputs":[{"type":"uint8","name":"","internalType":"uint8"}],"name":"decimals","inputs":[]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"initialize","inputs":[]},{"type":"function","stateMutability":"pure","outputs":[{"type":"string","name":"","internalType":"string"}],"name":"name","inputs":[]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"openTrade","inputs":[]},{"type":"function","stateMutability":"view","outputs":[{"type":"address","name":"","internalType":"address"}],"name":"owner","inputs":[]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"removeLimits","inputs":[]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"renounceOwnership","inputs":[]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"setFees","inputs":[{"type":"uint256","name":"_valueBuy","internalType":"uint256"},{"type":"uint256","name":"_valueSell","internalType":"uint256"}]},{"type":"function","stateMutability":"pure","outputs":[{"type":"string","name":"","internalType":"string"}],"name":"symbol","inputs":[]},{"type":"function","stateMutability":"pure","outputs":[{"type":"uint256","name":"","internalType":"uint256"}],"name":"totalSupply","inputs":[]},{"type":"function","stateMutability":"nonpayable","outputs":[{"type":"bool","name":"","internalType":"bool"}],"name":"transfer","inputs":[{"type":"address","name":"recipient","internalType":"address"},{"type":"uint256","name":"amount","internalType":"uint256"}]},{"type":"function","stateMutability":"nonpayable","outputs":[{"type":"bool","name":"","internalType":"bool"}],"name":"transferFrom","inputs":[{"type":"address","name":"sender","internalType":"address"},{"type":"address","name":"recipient","internalType":"address"},{"type":"uint256","name":"amount","internalType":"uint256"}]},{"type":"receive","stateMutability":"payable"}]
Contract Creation Code
0x6080604052603260065560326007555f6008555f6009555f600a556009600a6200002a91906200036d565b6200003990621e848062000384565b600b556200004a6009600a6200036d565b6200005990621e848062000384565b600c55600e805462ffffff60a81b1916600160a81b1790553480156200007d575f80fd5b5060405162001d7538038062001d75833981016040819052620000a0916200039e565b5f80546001600160a01b031916339081178255604051909182917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908290a350600480546001600160a01b0383166001600160a01b031991821617909155600580549091167359b255505e3f35931a3a0dd799fe22a4497eaea01790556200012b6009600a6200036d565b6200013b906305f5e10062000384565b335f908152600160208190526040822092909255600390620001645f546001600160a01b031690565b6001600160a01b03908116825260208083019390935260409182015f908120805495151560ff19968716179055600454821681526003909352818320805485166001908117909155600554909116835281832080548516821790557f262bb27bbdd95c1cdc8e16957e36e38579ea44f7f6413dd7a9c75939def06b2c805485168217905530835291208054909216179055620001fd3390565b6001600160a01b03165f7fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef620002366009600a6200036d565b62000246906305f5e10062000384565b60405190815260200160405180910390a350620003c6565b634e487b7160e01b5f52601160045260245ffd5b600181815b80851115620002b257815f19048211156200029657620002966200025e565b80851615620002a457918102915b93841c939080029062000277565b509250929050565b5f82620002ca5750600162000367565b81620002d857505f62000367565b8160018114620002f15760028114620002fc576200031c565b600191505062000367565b60ff8411156200031057620003106200025e565b50506001821b62000367565b5060208310610133831016604e8410600b841016171562000341575081810a62000367565b6200034d838362000272565b805f19048211156200036357620003636200025e565b0290505b92915050565b5f6200037d60ff841683620002ba565b9392505050565b80820281158282048414176200036757620003676200025e565b5f60208284031215620003af575f80fd5b81516001600160a01b03811681146200037d575f80fd5b6119a180620003d45f395ff3fe608060405260043610610113575f3560e01c8063751039fc1161009d57806395d89b411161006257806395d89b41146102e2578063a9059cbb14610310578063bf474bed1461032f578063dd62ed3e14610343578063fb201b1d14610387575f80fd5b8063751039fc1461026a5780637d1db4a51461027e5780638129fc1c146102935780638da5cb5b146102a75780638f9a55c0146102cd575f80fd5b806318160ddd116100e357806318160ddd146101d457806323b872dd146101e8578063313ce5671461020757806370a0823114610222578063715018a614610256575f80fd5b806306fdde031461011e578063095ea7b3146101625780630b78f9c0146101915780630faee56f146101b2575f80fd5b3661011a57005b5f80fd5b348015610129575f80fd5b5060408051808201909152600a8152692a30b4b5b79021b430b760b11b60208201525b6040516101599190611574565b60405180910390f35b34801561016d575f80fd5b5061018161017c3660046115d6565b61039b565b6040519015158152602001610159565b34801561019c575f80fd5b506101b06101ab366004611600565b6103b1565b005b3480156101bd575f80fd5b506101c661048d565b604051908152602001610159565b3480156101df575f80fd5b506101c66104a9565b3480156101f3575f80fd5b50610181610202366004611620565b6104c9565b348015610212575f80fd5b5060405160098152602001610159565b34801561022d575f80fd5b506101c661023c36600461165e565b6001600160a01b03165f9081526001602052604090205490565b348015610261575f80fd5b506101b0610530565b348015610275575f80fd5b506101b06105a1565b348015610289575f80fd5b506101c6600b5481565b34801561029e575f80fd5b506101b0610660565b3480156102b2575f80fd5b505f546040516001600160a01b039091168152602001610159565b3480156102d8575f80fd5b506101c6600c5481565b3480156102ed575f80fd5b50604080518082019091526006815265122a21a420a760d11b602082015261014c565b34801561031b575f80fd5b5061018161032a3660046115d6565b610a05565b34801561033a575f80fd5b506101c6610a11565b34801561034e575f80fd5b506101c661035d366004611679565b6001600160a01b039182165f90815260026020908152604080832093909416825291909152205490565b348015610392575f80fd5b506101b0610a2a565b5f6103a7338484610b0c565b5060015b92915050565b5f546001600160a01b031633146103e35760405162461bcd60e51b81526004016103da906116b0565b60405180910390fd5b601e82111580156103f55750601e8111155b801561040a5750600e54600160a01b900460ff165b6104465760405162461bcd60e51b815260206004820152600d60248201526c457863656564732076616c756560981b60448201526064016103da565b6008829055600981905560408051838152602081018390527f78009e5656a5c60b3c047015fb856b2efbc6f42beed76119406d7d4e3fc161f4910160405180910390a15050565b6104996009600a6117d9565b6104a690620c35006117e7565b81565b5f6104b66009600a6117d9565b6104c4906305f5e1006117e7565b905090565b5f6104d5848484610bd8565b610526843361052185604051806060016040528060288152602001611944602891396001600160a01b038a165f908152600260209081526040808320338452909152902054919061118d565b610b0c565b5060019392505050565b5f546001600160a01b031633146105595760405162461bcd60e51b81526004016103da906116b0565b5f80546040516001600160a01b03909116907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908390a35f80546001600160a01b0319169055565b5f546001600160a01b031633146105ca5760405162461bcd60e51b81526004016103da906116b0565b600e805460ff60a81b191690556105e36009600a6117d9565b6105f1906305f5e1006117e7565b600b556106006009600a6117d9565b61060e906305f5e1006117e7565b600c557f69ada53addde5123341ce3a822c5f66292103b2771e41e1f3c00c2de8a63a7f961063e6009600a6117d9565b61064c906305f5e1006117e7565b6040519081526020015b60405180910390a1565b5f546001600160a01b031633146106895760405162461bcd60e51b81526004016103da906116b0565b600e54600160a01b900460ff16156106d95760405162461bcd60e51b81526020600482015260136024820152721a5b9a5d08185b1c9958591e4818d85b1b1959606a1b60448201526064016103da565b5f61072161070c6064610706600a6106f26009826117d9565b610700906305f5e1006117e7565b906111c5565b9061124a565b305f908152600160205260409020549061128b565b600d80546001600160a01b03191673f8279bad8cb76b96de38365a05984b7b8f009b1790811790915590915061076d90309061075f6009600a6117d9565b610521906305f5e1006117e7565b600d5f9054906101000a90046001600160a01b03166001600160a01b031663c45a01556040518163ffffffff1660e01b8152600401602060405180830381865afa1580156107bd573d5f803e3d5ffd5b505050506040513d601f19601f820116820180604052508101906107e191906117fe565b6001600160a01b031663c9c6539630600d5f9054906101000a90046001600160a01b03166001600160a01b031663ad5c46486040518163ffffffff1660e01b8152600401602060405180830381865afa158015610840573d5f803e3d5ffd5b505050506040513d601f19601f8201168201806040525081019061086491906117fe565b6040516001600160e01b031960e085901b1681526001600160a01b039283166004820152911660248201526044016020604051808303815f875af11580156108ae573d5f803e3d5ffd5b505050506040513d601f19601f820116820180604052508101906108d291906117fe565b600e80546001600160a01b0319166001600160a01b03928316179055600d541663f305d7194730845f803360405160e088901b6001600160e01b03191681526001600160a01b03958616600482015260248101949094526044840192909252606483015290911660848201524260a482015260c40160606040518083038185885af1158015610963573d5f803e3d5ffd5b50505050506040513d601f19601f820116820180604052508101906109889190611819565b5050600e54600d5460405163095ea7b360e01b81526001600160a01b0391821660048201525f1960248201529116915063095ea7b3906044016020604051808303815f875af11580156109dd573d5f803e3d5ffd5b505050506040513d601f19601f82011682018060405250810190610a019190611844565b5050565b5f6103a7338484610bd8565b610a1d6009600a6117d9565b6104a690620186a06117e7565b5f546001600160a01b03163314610a535760405162461bcd60e51b81526004016103da906116b0565b600e54600160a01b900460ff1615610aa45760405162461bcd60e51b81526020600482015260146024820152733a3930b234b7339030b63932b0b23c9037b832b760611b60448201526064016103da565b600e805463ff0000ff60a01b1916630100000160a01b17908190556040805160ff600160a01b8404811615158252600160b81b909304909216151560208301527f029ed388f3dd39b342f312d7b12cba9e3065871bf0fb668cc5457f217b15dd7c9101610656565b6001600160a01b03831615801590610b2c57506001600160a01b03821615155b610b785760405162461bcd60e51b815260206004820152601f60248201527f45524332303a20617070726f766520746865207a65726f20616464726573730060448201526064016103da565b6001600160a01b038381165f8181526002602090815260408083209487168084529482529182902085905590518481527f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925910160405180910390a3505050565b6001600160a01b03831615801590610bf857506001600160a01b03821615155b610c445760405162461bcd60e51b815260206004820181905260248201527f45524332303a207472616e7366657220746865207a65726f206164647265737360448201526064016103da565b5f8111610ca55760405162461bcd60e51b815260206004820152602960248201527f5472616e7366657220616d6f756e74206d7573742062652067726561746572206044820152687468616e207a65726f60b81b60648201526084016103da565b5f80546001600160a01b03858116911614801590610cd057505f546001600160a01b03848116911614155b1561105057600e54600160a01b900460ff16610d6f576001600160a01b0384165f9081526003602052604090205460ff1680610d2357506001600160a01b0383165f9081526003602052604090205460ff165b610d6f5760405162461bcd60e51b815260206004820152601760248201527f74726164696e67206973206e6f7420796574206f70656e00000000000000000060448201526064016103da565b600e546001600160a01b038581169116148015610d9a5750600d546001600160a01b03848116911614155b8015610dbe57506001600160a01b0383165f9081526003602052604090205460ff16155b15610eb657600e54600160a81b900460ff1615610ea157600b54821115610e275760405162461bcd60e51b815260206004820152601960248201527f4578636565647320746865205f6d61785478416d6f756e742e0000000000000060448201526064016103da565b600c5482610e49856001600160a01b03165f9081526001602052604090205490565b610e539190611863565b1115610ea15760405162461bcd60e51b815260206004820152601a60248201527f4578636565647320746865206d617857616c6c657453697a652e00000000000060448201526064016103da565b600a8054905f610eb083611876565b91905055505b600e546001600160a01b038481169116148015610edc57506001600160a01b0384163014155b15610f0c57610f056064610706600f600a5411610efa57600a610efe565b6009545b85906111c5565b9050610f5d565b600e546001600160a01b038581169116148015610f3257506001600160a01b0383163014155b15610f5d57610f5a6064610706600f600a5411610f5057600a610efe565b60085485906111c5565b90505b305f90815260016020526040902054600e54600160b01b900460ff16158015610f935750600e546001600160a01b038581169116145b8015610fa85750600e54600160b81b900460ff165b8015610fcb5750610fbb6009600a6117d9565b610fc890620186a06117e7565b81115b8015610fd95750600f600a54115b1561104e575f610feb6009600a6117d9565b610ff890620c35006117e7565b8211611004578161101d565b6110106009600a6117d9565b61101d90620c35006117e7565b90505f81851161102d578461102f565b815b905061103a816112cc565b47801561104a5761104a4761143c565b5050505b505b80156110c857305f9081526001602052604090205461106f90826114ea565b305f81815260016020526040908190209290925590516001600160a01b038616907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef906110bf9085815260200190565b60405180910390a35b6001600160a01b0384165f908152600160205260409020546110ea908361128b565b6001600160a01b0385165f9081526001602052604090205561112d61110f838361128b565b6001600160a01b0385165f90815260016020526040902054906114ea565b6001600160a01b038085165f8181526001602052604090209290925585167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef611176858561128b565b60405190815260200160405180910390a350505050565b5f81848411156111b05760405162461bcd60e51b81526004016103da9190611574565b505f6111bc848661188e565b95945050505050565b5f825f036111d457505f6103ab565b5f6111df83856117e7565b9050826111ec85836118a1565b146112435760405162461bcd60e51b815260206004820152602160248201527f536166654d6174683a206d756c7469706c69636174696f6e206f766572666c6f6044820152607760f81b60648201526084016103da565b9392505050565b5f61124383836040518060400160405280601a81526020017f536166654d6174683a206469766973696f6e206279207a65726f000000000000815250611548565b5f61124383836040518060400160405280601e81526020017f536166654d6174683a207375627472616374696f6e206f766572666c6f77000081525061118d565b600e805460ff60b01b1916600160b01b1790556040805160028082526060820183525f9260208301908036833701905050905030815f81518110611312576113126118c0565b6001600160a01b03928316602091820292909201810191909152600d54604080516315ab88c960e31b81529051919093169263ad5c46489260048083019391928290030181865afa158015611369573d5f803e3d5ffd5b505050506040513d601f19601f8201168201806040525081019061138d91906117fe565b816001815181106113a0576113a06118c0565b6001600160a01b039283166020918202929092010152600d546113c69130911684610b0c565b600d5460405163791ac94760e01b81526001600160a01b039091169063791ac947906113fe9085905f908690309042906004016118d4565b5f604051808303815f87803b158015611415575f80fd5b505af1158015611427573d5f803e3d5ffd5b5050600e805460ff60b01b1916905550505050565b5f60646006548361144d91906117e7565b61145791906118a1565b90505f60646007548461146a91906117e7565b61147491906118a1565b6004546040519192506001600160a01b03169083156108fc029084905f818181858888f193505050501580156114ac573d5f803e3d5ffd5b506005546040516001600160a01b039091169082156108fc029083905f818181858888f193505050501580156114e4573d5f803e3d5ffd5b50505050565b5f806114f68385611863565b9050838110156112435760405162461bcd60e51b815260206004820152601b60248201527f536166654d6174683a206164646974696f6e206f766572666c6f77000000000060448201526064016103da565b5f81836115685760405162461bcd60e51b81526004016103da9190611574565b505f6111bc84866118a1565b5f6020808352835180828501525f5b8181101561159f57858101830151858201604001528201611583565b505f604082860101526040601f19601f8301168501019250505092915050565b6001600160a01b03811681146115d3575f80fd5b50565b5f80604083850312156115e7575f80fd5b82356115f2816115bf565b946020939093013593505050565b5f8060408385031215611611575f80fd5b50508035926020909101359150565b5f805f60608486031215611632575f80fd5b833561163d816115bf565b9250602084013561164d816115bf565b929592945050506040919091013590565b5f6020828403121561166e575f80fd5b8135611243816115bf565b5f806040838503121561168a575f80fd5b8235611695816115bf565b915060208301356116a5816115bf565b809150509250929050565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b634e487b7160e01b5f52601160045260245ffd5b600181815b8085111561173357815f1904821115611719576117196116e5565b8085161561172657918102915b93841c93908002906116fe565b509250929050565b5f82611749575060016103ab565b8161175557505f6103ab565b816001811461176b576002811461177557611791565b60019150506103ab565b60ff841115611786576117866116e5565b50506001821b6103ab565b5060208310610133831016604e8410600b84101617156117b4575081810a6103ab565b6117be83836116f9565b805f19048211156117d1576117d16116e5565b029392505050565b5f61124360ff84168361173b565b80820281158282048414176103ab576103ab6116e5565b5f6020828403121561180e575f80fd5b8151611243816115bf565b5f805f6060848603121561182b575f80fd5b8351925060208401519150604084015190509250925092565b5f60208284031215611854575f80fd5b81518015158114611243575f80fd5b808201808211156103ab576103ab6116e5565b5f60018201611887576118876116e5565b5060010190565b818103818111156103ab576103ab6116e5565b5f826118bb57634e487b7160e01b5f52601260045260245ffd5b500490565b634e487b7160e01b5f52603260045260245ffd5b5f60a082018783526020878185015260a0604085015281875180845260c08601915082890193505f5b818110156119225784516001600160a01b0316835293830193918301916001016118fd565b50506001600160a01b0396909616606085015250505060800152939250505056fe45524332303a207472616e7366657220616d6f756e74206578636565647320616c6c6f77616e6365a26469706673582212200d74d4208f4e3c3be9f1ec6685511c2a4cfd32a8615e753c907016a8366c819b64736f6c6343000814003300000000000000000000000059b255505e3f35931a3a0dd799fe22a4497eaea0
Deployed ByteCode
0x608060405260043610610113575f3560e01c8063751039fc1161009d57806395d89b411161006257806395d89b41146102e2578063a9059cbb14610310578063bf474bed1461032f578063dd62ed3e14610343578063fb201b1d14610387575f80fd5b8063751039fc1461026a5780637d1db4a51461027e5780638129fc1c146102935780638da5cb5b146102a75780638f9a55c0146102cd575f80fd5b806318160ddd116100e357806318160ddd146101d457806323b872dd146101e8578063313ce5671461020757806370a0823114610222578063715018a614610256575f80fd5b806306fdde031461011e578063095ea7b3146101625780630b78f9c0146101915780630faee56f146101b2575f80fd5b3661011a57005b5f80fd5b348015610129575f80fd5b5060408051808201909152600a8152692a30b4b5b79021b430b760b11b60208201525b6040516101599190611574565b60405180910390f35b34801561016d575f80fd5b5061018161017c3660046115d6565b61039b565b6040519015158152602001610159565b34801561019c575f80fd5b506101b06101ab366004611600565b6103b1565b005b3480156101bd575f80fd5b506101c661048d565b604051908152602001610159565b3480156101df575f80fd5b506101c66104a9565b3480156101f3575f80fd5b50610181610202366004611620565b6104c9565b348015610212575f80fd5b5060405160098152602001610159565b34801561022d575f80fd5b506101c661023c36600461165e565b6001600160a01b03165f9081526001602052604090205490565b348015610261575f80fd5b506101b0610530565b348015610275575f80fd5b506101b06105a1565b348015610289575f80fd5b506101c6600b5481565b34801561029e575f80fd5b506101b0610660565b3480156102b2575f80fd5b505f546040516001600160a01b039091168152602001610159565b3480156102d8575f80fd5b506101c6600c5481565b3480156102ed575f80fd5b50604080518082019091526006815265122a21a420a760d11b602082015261014c565b34801561031b575f80fd5b5061018161032a3660046115d6565b610a05565b34801561033a575f80fd5b506101c6610a11565b34801561034e575f80fd5b506101c661035d366004611679565b6001600160a01b039182165f90815260026020908152604080832093909416825291909152205490565b348015610392575f80fd5b506101b0610a2a565b5f6103a7338484610b0c565b5060015b92915050565b5f546001600160a01b031633146103e35760405162461bcd60e51b81526004016103da906116b0565b60405180910390fd5b601e82111580156103f55750601e8111155b801561040a5750600e54600160a01b900460ff165b6104465760405162461bcd60e51b815260206004820152600d60248201526c457863656564732076616c756560981b60448201526064016103da565b6008829055600981905560408051838152602081018390527f78009e5656a5c60b3c047015fb856b2efbc6f42beed76119406d7d4e3fc161f4910160405180910390a15050565b6104996009600a6117d9565b6104a690620c35006117e7565b81565b5f6104b66009600a6117d9565b6104c4906305f5e1006117e7565b905090565b5f6104d5848484610bd8565b610526843361052185604051806060016040528060288152602001611944602891396001600160a01b038a165f908152600260209081526040808320338452909152902054919061118d565b610b0c565b5060019392505050565b5f546001600160a01b031633146105595760405162461bcd60e51b81526004016103da906116b0565b5f80546040516001600160a01b03909116907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908390a35f80546001600160a01b0319169055565b5f546001600160a01b031633146105ca5760405162461bcd60e51b81526004016103da906116b0565b600e805460ff60a81b191690556105e36009600a6117d9565b6105f1906305f5e1006117e7565b600b556106006009600a6117d9565b61060e906305f5e1006117e7565b600c557f69ada53addde5123341ce3a822c5f66292103b2771e41e1f3c00c2de8a63a7f961063e6009600a6117d9565b61064c906305f5e1006117e7565b6040519081526020015b60405180910390a1565b5f546001600160a01b031633146106895760405162461bcd60e51b81526004016103da906116b0565b600e54600160a01b900460ff16156106d95760405162461bcd60e51b81526020600482015260136024820152721a5b9a5d08185b1c9958591e4818d85b1b1959606a1b60448201526064016103da565b5f61072161070c6064610706600a6106f26009826117d9565b610700906305f5e1006117e7565b906111c5565b9061124a565b305f908152600160205260409020549061128b565b600d80546001600160a01b03191673f8279bad8cb76b96de38365a05984b7b8f009b1790811790915590915061076d90309061075f6009600a6117d9565b610521906305f5e1006117e7565b600d5f9054906101000a90046001600160a01b03166001600160a01b031663c45a01556040518163ffffffff1660e01b8152600401602060405180830381865afa1580156107bd573d5f803e3d5ffd5b505050506040513d601f19601f820116820180604052508101906107e191906117fe565b6001600160a01b031663c9c6539630600d5f9054906101000a90046001600160a01b03166001600160a01b031663ad5c46486040518163ffffffff1660e01b8152600401602060405180830381865afa158015610840573d5f803e3d5ffd5b505050506040513d601f19601f8201168201806040525081019061086491906117fe565b6040516001600160e01b031960e085901b1681526001600160a01b039283166004820152911660248201526044016020604051808303815f875af11580156108ae573d5f803e3d5ffd5b505050506040513d601f19601f820116820180604052508101906108d291906117fe565b600e80546001600160a01b0319166001600160a01b03928316179055600d541663f305d7194730845f803360405160e088901b6001600160e01b03191681526001600160a01b03958616600482015260248101949094526044840192909252606483015290911660848201524260a482015260c40160606040518083038185885af1158015610963573d5f803e3d5ffd5b50505050506040513d601f19601f820116820180604052508101906109889190611819565b5050600e54600d5460405163095ea7b360e01b81526001600160a01b0391821660048201525f1960248201529116915063095ea7b3906044016020604051808303815f875af11580156109dd573d5f803e3d5ffd5b505050506040513d601f19601f82011682018060405250810190610a019190611844565b5050565b5f6103a7338484610bd8565b610a1d6009600a6117d9565b6104a690620186a06117e7565b5f546001600160a01b03163314610a535760405162461bcd60e51b81526004016103da906116b0565b600e54600160a01b900460ff1615610aa45760405162461bcd60e51b81526020600482015260146024820152733a3930b234b7339030b63932b0b23c9037b832b760611b60448201526064016103da565b600e805463ff0000ff60a01b1916630100000160a01b17908190556040805160ff600160a01b8404811615158252600160b81b909304909216151560208301527f029ed388f3dd39b342f312d7b12cba9e3065871bf0fb668cc5457f217b15dd7c9101610656565b6001600160a01b03831615801590610b2c57506001600160a01b03821615155b610b785760405162461bcd60e51b815260206004820152601f60248201527f45524332303a20617070726f766520746865207a65726f20616464726573730060448201526064016103da565b6001600160a01b038381165f8181526002602090815260408083209487168084529482529182902085905590518481527f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925910160405180910390a3505050565b6001600160a01b03831615801590610bf857506001600160a01b03821615155b610c445760405162461bcd60e51b815260206004820181905260248201527f45524332303a207472616e7366657220746865207a65726f206164647265737360448201526064016103da565b5f8111610ca55760405162461bcd60e51b815260206004820152602960248201527f5472616e7366657220616d6f756e74206d7573742062652067726561746572206044820152687468616e207a65726f60b81b60648201526084016103da565b5f80546001600160a01b03858116911614801590610cd057505f546001600160a01b03848116911614155b1561105057600e54600160a01b900460ff16610d6f576001600160a01b0384165f9081526003602052604090205460ff1680610d2357506001600160a01b0383165f9081526003602052604090205460ff165b610d6f5760405162461bcd60e51b815260206004820152601760248201527f74726164696e67206973206e6f7420796574206f70656e00000000000000000060448201526064016103da565b600e546001600160a01b038581169116148015610d9a5750600d546001600160a01b03848116911614155b8015610dbe57506001600160a01b0383165f9081526003602052604090205460ff16155b15610eb657600e54600160a81b900460ff1615610ea157600b54821115610e275760405162461bcd60e51b815260206004820152601960248201527f4578636565647320746865205f6d61785478416d6f756e742e0000000000000060448201526064016103da565b600c5482610e49856001600160a01b03165f9081526001602052604090205490565b610e539190611863565b1115610ea15760405162461bcd60e51b815260206004820152601a60248201527f4578636565647320746865206d617857616c6c657453697a652e00000000000060448201526064016103da565b600a8054905f610eb083611876565b91905055505b600e546001600160a01b038481169116148015610edc57506001600160a01b0384163014155b15610f0c57610f056064610706600f600a5411610efa57600a610efe565b6009545b85906111c5565b9050610f5d565b600e546001600160a01b038581169116148015610f3257506001600160a01b0383163014155b15610f5d57610f5a6064610706600f600a5411610f5057600a610efe565b60085485906111c5565b90505b305f90815260016020526040902054600e54600160b01b900460ff16158015610f935750600e546001600160a01b038581169116145b8015610fa85750600e54600160b81b900460ff165b8015610fcb5750610fbb6009600a6117d9565b610fc890620186a06117e7565b81115b8015610fd95750600f600a54115b1561104e575f610feb6009600a6117d9565b610ff890620c35006117e7565b8211611004578161101d565b6110106009600a6117d9565b61101d90620c35006117e7565b90505f81851161102d578461102f565b815b905061103a816112cc565b47801561104a5761104a4761143c565b5050505b505b80156110c857305f9081526001602052604090205461106f90826114ea565b305f81815260016020526040908190209290925590516001600160a01b038616907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef906110bf9085815260200190565b60405180910390a35b6001600160a01b0384165f908152600160205260409020546110ea908361128b565b6001600160a01b0385165f9081526001602052604090205561112d61110f838361128b565b6001600160a01b0385165f90815260016020526040902054906114ea565b6001600160a01b038085165f8181526001602052604090209290925585167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef611176858561128b565b60405190815260200160405180910390a350505050565b5f81848411156111b05760405162461bcd60e51b81526004016103da9190611574565b505f6111bc848661188e565b95945050505050565b5f825f036111d457505f6103ab565b5f6111df83856117e7565b9050826111ec85836118a1565b146112435760405162461bcd60e51b815260206004820152602160248201527f536166654d6174683a206d756c7469706c69636174696f6e206f766572666c6f6044820152607760f81b60648201526084016103da565b9392505050565b5f61124383836040518060400160405280601a81526020017f536166654d6174683a206469766973696f6e206279207a65726f000000000000815250611548565b5f61124383836040518060400160405280601e81526020017f536166654d6174683a207375627472616374696f6e206f766572666c6f77000081525061118d565b600e805460ff60b01b1916600160b01b1790556040805160028082526060820183525f9260208301908036833701905050905030815f81518110611312576113126118c0565b6001600160a01b03928316602091820292909201810191909152600d54604080516315ab88c960e31b81529051919093169263ad5c46489260048083019391928290030181865afa158015611369573d5f803e3d5ffd5b505050506040513d601f19601f8201168201806040525081019061138d91906117fe565b816001815181106113a0576113a06118c0565b6001600160a01b039283166020918202929092010152600d546113c69130911684610b0c565b600d5460405163791ac94760e01b81526001600160a01b039091169063791ac947906113fe9085905f908690309042906004016118d4565b5f604051808303815f87803b158015611415575f80fd5b505af1158015611427573d5f803e3d5ffd5b5050600e805460ff60b01b1916905550505050565b5f60646006548361144d91906117e7565b61145791906118a1565b90505f60646007548461146a91906117e7565b61147491906118a1565b6004546040519192506001600160a01b03169083156108fc029084905f818181858888f193505050501580156114ac573d5f803e3d5ffd5b506005546040516001600160a01b039091169082156108fc029083905f818181858888f193505050501580156114e4573d5f803e3d5ffd5b50505050565b5f806114f68385611863565b9050838110156112435760405162461bcd60e51b815260206004820152601b60248201527f536166654d6174683a206164646974696f6e206f766572666c6f77000000000060448201526064016103da565b5f81836115685760405162461bcd60e51b81526004016103da9190611574565b505f6111bc84866118a1565b5f6020808352835180828501525f5b8181101561159f57858101830151858201604001528201611583565b505f604082860101526040601f19601f8301168501019250505092915050565b6001600160a01b03811681146115d3575f80fd5b50565b5f80604083850312156115e7575f80fd5b82356115f2816115bf565b946020939093013593505050565b5f8060408385031215611611575f80fd5b50508035926020909101359150565b5f805f60608486031215611632575f80fd5b833561163d816115bf565b9250602084013561164d816115bf565b929592945050506040919091013590565b5f6020828403121561166e575f80fd5b8135611243816115bf565b5f806040838503121561168a575f80fd5b8235611695816115bf565b915060208301356116a5816115bf565b809150509250929050565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b634e487b7160e01b5f52601160045260245ffd5b600181815b8085111561173357815f1904821115611719576117196116e5565b8085161561172657918102915b93841c93908002906116fe565b509250929050565b5f82611749575060016103ab565b8161175557505f6103ab565b816001811461176b576002811461177557611791565b60019150506103ab565b60ff841115611786576117866116e5565b50506001821b6103ab565b5060208310610133831016604e8410600b84101617156117b4575081810a6103ab565b6117be83836116f9565b805f19048211156117d1576117d16116e5565b029392505050565b5f61124360ff84168361173b565b80820281158282048414176103ab576103ab6116e5565b5f6020828403121561180e575f80fd5b8151611243816115bf565b5f805f6060848603121561182b575f80fd5b8351925060208401519150604084015190509250925092565b5f60208284031215611854575f80fd5b81518015158114611243575f80fd5b808201808211156103ab576103ab6116e5565b5f60018201611887576118876116e5565b5060010190565b818103818111156103ab576103ab6116e5565b5f826118bb57634e487b7160e01b5f52601260045260245ffd5b500490565b634e487b7160e01b5f52603260045260245ffd5b5f60a082018783526020878185015260a0604085015281875180845260c08601915082890193505f5b818110156119225784516001600160a01b0316835293830193918301916001016118fd565b50506001600160a01b0396909616606085015250505060800152939250505056fe45524332303a207472616e7366657220616d6f756e74206578636565647320616c6c6f77616e6365a26469706673582212200d74d4208f4e3c3be9f1ec6685511c2a4cfd32a8615e753c907016a8366c819b64736f6c63430008140033