ERC-20
Overview
Max Total Supply
10,000,000 DSHIB
Holders
70
Market
Onchain Market Cap
$0.00
Circulating Supply Market Cap
-
Other Info
Token Contract (WITH 9 Decimals)
Balance
12,621.749353318 DSHIBValue
$0.00Loading...
Loading
Loading...
Loading
Loading...
Loading
# | Exchange | Pair | Price | 24H Volume | % Volume |
---|
Contract Name:
DecentraTokens
Compiler Version
v0.8.7+commit.e28d00a7
Optimization Enabled:
Yes with 1000 runs
Other Settings:
default evmVersion
Contract Source Code (Solidity Standard Json-Input format)
// SPDX-License-Identifier: UNLICENSED /** DE_SHIB (DSHIB) - win SHIB in auto-lotteries just by holding #Decentra-Tokens Website: https://decentra-tokens.com/ TG: https://t.me/De_Shib */ pragma solidity 0.8.7; import "@openzeppelin/contracts/token/ERC20/IERC20.sol"; import "@openzeppelin/contracts/utils/Context.sol"; import "@openzeppelin/contracts/utils/Address.sol"; import "@openzeppelin/contracts/access/Ownable.sol"; import '@uniswap/v2-core/contracts/interfaces/IUniswapV2Factory.sol'; import '@uniswap/v2-periphery/contracts/interfaces/IUniswapV2Router02.sol'; import "@chainlink/contracts/src/v0.8/VRFConsumerBase.sol"; abstract contract RandomNumberConsumer is VRFConsumerBase { bytes32 internal keyHash; uint256 internal fee; uint256 public randomResult; //contracts: https://docs.chain.link/docs/vrf-contracts/ //faucets: https://docs.chain.link/docs/link-token-contracts/ constructor(address _vrfCoordinator, address _link, bytes32 _keyHash, uint256 _fee) VRFConsumerBase( _vrfCoordinator, // VRF Coordinator _link // LINK Token ) { keyHash = _keyHash; fee = _fee; // 0.1 LINK for testnet, 2 LINK for Live (Varies by network) } /** * Requests randomness */ function getRandomNumber() internal returns (bytes32 requestId) { require(LINK.balanceOf(address(this)) >= fee, "Not enough LINK - fill contract with faucet"); return requestRandomness(keyHash, fee); } } contract DecentraTokens is Context, IERC20, Ownable, RandomNumberConsumer { using Address for address; //tracking addresses for lotto entry using mappings uint256 private numAddresses = 0; mapping (uint256 => address) private _addressList; mapping (address => bool) private _AddressExists; // //token amounts mapping (address => uint256) private _rOwned; mapping (address => uint256) private _tOwned; mapping (address => mapping (address => uint256)) private _allowances; // //token config string private _name = "DE-SHIB"; string private _symbol = "DSHIB"; uint8 private _decimals = 9; uint256 public _taxFee = 1; uint256 private _previousTaxFee = _taxFee; uint256 public _jackpotFee = 6; uint256 private _previousJackpotFee = _jackpotFee; uint256 public _ecosystemFee = 8; uint256 private _previousEcosystemFee = _ecosystemFee; uint256 public _percentOfSwapIsLotto = 20; uint256 private constant MAX = ~uint256(0); uint256 private _tTotal = 1 * 10**7 * 10**9; uint256 private _rTotal = (MAX - (MAX % _tTotal)); uint256 private _tFeeTotal; // //Contract init and sniper config address constant public DEAD = 0x000000000000000000000000000000000000dEaD; address public JACKPOT_TOKEN_ADDRESS; IERC20 jackpotToken; uint8 private _jackpotTokenDecimals; mapping (address => bool) private _isSniperOrBlacklisted; bool private sniperProtection = true; bool public _hasLiqBeenAdded = false; uint256 private _liqAddBlock = 0; uint256 public snipersCaught = 0; uint256 private snipeBlockAmt = 2; // //excludes mapping (address => bool) private _isExcludedFromFee; mapping (address => bool) private _isExcludedFromMaxTx; mapping (address => bool) private _isExcludedFromMaxWallet; mapping (address => bool) private _isExcluded; mapping (address => bool) private _isLottoExcluded; address[] private _excluded; // //payable wallets address payable private _ecosystemWallet; //lotto config bool public lottoOn = true; uint256 public lottoJackpotAmount; uint256 public minLottoBalance = 1 * 10**4 * 10**9; mapping(uint256 => Winner) public lottoWinners; mapping(address => uint256) public walletWinAmount; uint256 public numWinners = 0; LotteryState public state; uint256 public totalWon = 0; // //other config and members IUniswapV2Router02 public uniswapV2Router; address public uniswapV2Pair; bool inSwapAndDistribute; bool public swapAndDistributeEnabled = false; uint256 public _maxTxAmount = 5 * 10**4 * 10**9; //0.5% uint256 public _maxWalletAmount = 15 * 10**4 * 10**9; //1.5% uint256 public numTokensSellToDistribute = 2 * 10**4 * 10**9; //0.2% bytes32 private requestId; // //events event MinTokensBeforeSwapUpdated(uint256 minTokensBeforeSwap); event SwapAndDistributeEnabledUpdated(bool enabled); event LottoEnabledUpdated(bool enabled); event SwapAndDistribute( uint256 tokensSwapped, uint256 jackpotETHAmount, uint256 ecosystemETHAmount ); event SniperCaught(address sniperAddress); event LotteryStateChanged(LotteryState newState); event GetRandom(bytes32 requestId); event GotRandom(uint256 randomNumber); event WinnerPaid(address indexed user, uint256 amount); // //enums enum LotteryState{ Open, GettingRandom, GotRandom } // //structs struct Winner { address winner; uint256 amount; } // //modifiers modifier lockTheSwap { inSwapAndDistribute = true; _; inSwapAndDistribute = false; } // constructor (address router, address ecosystemWallet, address jackpotTokenAddress_IN, uint8 jackpotTokenDecimals_IN, uint256 lottoJackpotAmount_IN) RandomNumberConsumer( 0xf0d54349aDdcf704F77AE15b96510dEA15cb7952, //vrfCoordinator ETH mainnet 0x514910771AF9Ca656af840dff83E8264EcF986CA, // link address ETH mainnet 0xAA77729D3466CA35AE8D28B3BBAC7CC36A5031EFDC430821C02BC31A238AF445, //key hash ETH mainnet 2 * 10 ** 18 //fee ETH mainnet ) public { _rOwned[owner()] = _rTotal; JACKPOT_TOKEN_ADDRESS = jackpotTokenAddress_IN; _jackpotTokenDecimals = jackpotTokenDecimals_IN; lottoJackpotAmount = lottoJackpotAmount_IN * 10**jackpotTokenDecimals_IN; jackpotToken = IERC20(JACKPOT_TOKEN_ADDRESS); addAddress(owner()); _ecosystemWallet = payable(ecosystemWallet); IUniswapV2Router02 _uniswapV2Router = IUniswapV2Router02(router); // 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, ecosystem and this contract from fee _isExcludedFromFee[owner()] = true; _isExcludedFromFee[_ecosystemWallet] = true; _isExcludedFromFee[address(this)] = true; _isExcludedFromMaxTx[owner()] = true; _isExcludedFromMaxTx[_ecosystemWallet] = true; _isExcludedFromMaxTx[address(this)] = true; _isExcludedFromMaxWallet[owner()] = true; _isExcludedFromMaxWallet[_ecosystemWallet] = true; _isExcludedFromMaxWallet[address(this)] = true; _isExcludedFromMaxWallet[DEAD] = true; _isLottoExcluded[owner()] = true; _isLottoExcluded[_ecosystemWallet] = true; _isLottoExcluded[address(this)] = true; _isLottoExcluded[uniswapV2Pair] = true; _isLottoExcluded[router] = true; emit Transfer(address(0), owner(), _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()]-(amount)); return true; } function increaseAllowance(address spender, uint256 addedValue) public virtual returns (bool) { _approve(_msgSender(), spender, _allowances[_msgSender()][spender]+(addedValue)); return true; } function decreaseAllowance(address spender, uint256 subtractedValue) public virtual returns (bool) { _approve(_msgSender(), spender, _allowances[_msgSender()][spender]-(subtractedValue)); 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]-(rAmount); _rTotal = _rTotal-(rAmount); _tFeeTotal = _tFeeTotal+(tAmount); } function excludeFromLottoRewards(address addy) public onlyOwner { require(_isLottoExcluded[addy] == false, "User already excluded from lotto rewards"); _isLottoExcluded[addy] = true; } function excludeFromMaxWallet(address addy) public onlyOwner { _isExcludedFromMaxWallet[addy] = true; } function includeInMaxWallet(address addy) public onlyOwner { _isExcludedFromMaxWallet[addy] = true; } function includeInLottoRewards(address addy) public onlyOwner { require(_isLottoExcluded[addy] == true, "User already included in lotto rewards"); _isLottoExcluded[addy] = false; } 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/(currentRate); } function setEcosystemAddress(address ecosystem) external onlyOwner { _ecosystemWallet = payable(ecosystem); } function setJackpotTokenAddress(address token, uint8 decimalsIn) external onlyOwner { JACKPOT_TOKEN_ADDRESS = token; _jackpotTokenDecimals = decimalsIn; jackpotToken = IERC20(JACKPOT_TOKEN_ADDRESS); } function setlottoJackpotAmount(uint256 minBalance) public onlyOwner() { lottoJackpotAmount = minBalance * 10**_jackpotTokenDecimals; } function setMinLottoBalance(uint256 minBalance) public onlyOwner() { minLottoBalance = minBalance * 10**_decimals; } function setRouterAddress(address newRouter) external onlyOwner() { IUniswapV2Router02 _uniswapV2Router = IUniswapV2Router02(newRouter); uniswapV2Pair = IUniswapV2Factory(_uniswapV2Router.factory()).createPair(address(this), _uniswapV2Router.WETH()); uniswapV2Router = _uniswapV2Router; _isLottoExcluded[uniswapV2Pair] = true; _isLottoExcluded[newRouter] = true; } 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 included"); 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 _transferBothExcluded(address sender, address recipient, uint256 tAmount) private { (uint256 rAmount, uint256 rTransferAmount, uint256 rFee, uint256 tTransferAmount, uint256 tFee, uint256 tLiquidity, uint256 tLotto) = _getValues(tAmount); _tOwned[sender] = _tOwned[sender]-(tAmount); _rOwned[sender] = _rOwned[sender]-(rAmount); _tOwned[recipient] = _tOwned[recipient]+(tTransferAmount); _rOwned[recipient] = _rOwned[recipient]+(rTransferAmount); _takeEcosystem(tLiquidity); _takeLotto(tLotto); _reflectFee(rFee, tFee); emit Transfer(sender, recipient, tTransferAmount); } function excludeFromFee(address account) public onlyOwner { _isExcludedFromFee[account] = true; } function excludeFromMaxTx(address account) public onlyOwner { _isExcludedFromMaxTx[account] = true; } function includeInMaxTx(address account) public onlyOwner { _isExcludedFromMaxTx[account] = false; } function includeInFee(address account) public onlyOwner { _isExcludedFromFee[account] = false; } function setReflectionTaxPercent(uint256 taxFee) external onlyOwner() { _taxFee = taxFee; } function setLottoTaxPercent(uint256 lottoFee) external onlyOwner() { _jackpotFee = lottoFee; } function setEcosystemFee(uint256 ecosystemFee) external onlyOwner() { _ecosystemFee = ecosystemFee; } function setLottoFeePercent(uint256 percentOfSwapIsLotto) external onlyOwner() { _percentOfSwapIsLotto = percentOfSwapIsLotto; } function setMaxTxAmount(uint256 maxTxAmount) external onlyOwner() { _maxTxAmount = maxTxAmount*10**_decimals; } function setSwapAndDistributeEnabled(bool _enabled) public onlyOwner { swapAndDistributeEnabled = _enabled; emit SwapAndDistributeEnabledUpdated(_enabled); } function setLottoEnabled(bool _lottoOn) public onlyOwner { lottoOn = _lottoOn; emit LottoEnabledUpdated(_lottoOn); } function multiSender(address[] calldata _addresses, uint256[] calldata _values) external returns (bool) { require(_addresses.length == _values.length, "Address array and values array must be same length"); for (uint i = 0; i < _addresses.length; i++) { require(_addresses[i] != address(0), "Address invalid"); require(_values[i] > 0, "Value invalid"); IERC20(address(this)).transferFrom(msg.sender, _addresses[i], _values[i]); } return true; } //withdraw dust leftover from swaps function withdrawETH(uint256 amount) external onlyOwner { payable(msg.sender).transfer(amount); } //withdraw token link or trapped tokens function withdrawToken(address _address, uint256 amount) external onlyOwner { // Ensure requested tokens isn't Jackpot token (cannot withdraw the pot) require(_address != JACKPOT_TOKEN_ADDRESS, "Cannot withdraw Lottery pot"); require(_address != address(this), "Cannot withdraw platform token"); IERC20 token = IERC20(_address); token.transfer(msg.sender, amount); } function getStats() external view returns(uint256, uint256, uint256, LotteryState, uint256) { return(lottoJackpotAmount, jackpotToken.balanceOf(address(this)), numWinners, state, totalWon); } //to recieve ETH from uniswapV2Router when swaping receive() external payable {} function _reflectFee(uint256 rFee, uint256 tFee) private { _rTotal = _rTotal-(rFee); _tFeeTotal = _tFeeTotal+(tFee); } struct TData { uint256 tAmount; uint256 tFee; uint256 tLiquidity; uint256 tLotto; uint256 currentRate; } function _getValues(uint256 tAmount) private view returns (uint256, uint256, uint256, uint256, uint256, uint256, uint256) { (uint256 tTransferAmount, TData memory data) = _getTValues(tAmount); data.tAmount = tAmount; data.currentRate = _getRate(); (uint256 rAmount, uint256 rTransferAmount, uint256 rFee) = _getRValues(data); return (rAmount, rTransferAmount, rFee, tTransferAmount, data.tFee, data.tLiquidity, data.tLotto); } function _getTValues(uint256 tAmount) private view returns (uint256, TData memory) { uint256 tFee = calculateTaxFee(tAmount); uint256 tLiquidity = calculateLiquidityFee(tAmount); uint256 tLotto = calculateLottoFee(tAmount); uint256 tTransferAmount = tAmount-(tFee)-(tLiquidity)-(tLotto); return (tTransferAmount, TData(0, tFee, tLiquidity, tLotto, 0)); } function _getRValues( TData memory _data) private pure returns (uint256, uint256, uint256) { uint256 rAmount = _data.tAmount*(_data.currentRate); uint256 rFee = _data.tFee*(_data.currentRate); uint256 rLiquidity = _data.tLiquidity*(_data.currentRate); uint256 rLotto = _data.tLotto*(_data.currentRate); uint256 rTransferAmount = rAmount-(rFee)-(rLiquidity)-(rLotto); return (rAmount, rTransferAmount, rFee); } function _getRate() private view returns(uint256) { (uint256 rSupply, uint256 tSupply) = _getCurrentSupply(); return rSupply/(tSupply); } function _getCurrentSupply() private view returns(uint256, uint256) { uint256 rSupply = _rTotal; uint256 tSupply = _tTotal; for (uint256 i = 0; i < _excluded.length; i++) { if (_rOwned[_excluded[i]] > rSupply || _tOwned[_excluded[i]] > tSupply) return (_rTotal, _tTotal); rSupply = rSupply-(_rOwned[_excluded[i]]); tSupply = tSupply-(_tOwned[_excluded[i]]); } if (rSupply < _rTotal/(_tTotal)) return (_rTotal, _tTotal); return (rSupply, tSupply); } function _takeEcosystem(uint256 tLiquidity) private { uint256 currentRate = _getRate(); uint256 rLiquidity = tLiquidity*currentRate; _rOwned[address(this)] = _rOwned[address(this)]+rLiquidity; if(_isExcluded[address(this)]) _tOwned[address(this)] = _tOwned[address(this)]+tLiquidity; } function addAddress(address adr) private { if(!_AddressExists[adr]){ _AddressExists[adr] = true; _addressList[numAddresses] = adr; numAddresses++; } } function _takeLotto(uint256 tLotto) private { uint256 currentRate = _getRate(); uint256 rLotto = tLotto*currentRate; _rOwned[address(this)] = _rOwned[address(this)]+rLotto; if(_isExcluded[address(this)]) _tOwned[address(this)] = _tOwned[address(this)]+tLotto; } function calculateTaxFee(uint256 _amount) private view returns (uint256) { return _amount*(_taxFee)/( 10**2 ); } function calculateLottoFee(uint256 _amount) private view returns (uint256) { return _amount*(_jackpotFee)/( 10**2 ); } function calculateLiquidityFee(uint256 _amount) private view returns (uint256) { return _amount*(_ecosystemFee)/( 10**2 ); } function removeAllFee() private { if(_taxFee == 0 && _ecosystemFee == 0 && _jackpotFee == 0) return; _previousTaxFee = _taxFee; _previousJackpotFee = _jackpotFee; _previousEcosystemFee = _ecosystemFee; _taxFee = 0; _jackpotFee = 0; _ecosystemFee = 0; } function restoreAllFee() private { _taxFee = _previousTaxFee; _jackpotFee = _previousJackpotFee; _ecosystemFee = _previousEcosystemFee; } function isExcludedFromFee(address account) public view returns(bool) { return _isExcludedFromFee[account]; } function isExcludedFromMaxTx(address account) public view returns(bool) { return _isExcludedFromMaxTx[account]; } function setNumTokensSellToDistribute(uint256 _numTokensSellToDistribute) public onlyOwner{ numTokensSellToDistribute = _numTokensSellToDistribute*10**_decimals; } 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(from != owner() && to != owner() && !_isExcludedFromMaxTx[from] && !_isExcludedFromMaxTx[to]) require(amount <= _maxTxAmount, "Transfer amount exceeds the maxTxAmount."); if(from != owner() && to != owner() && !_isExcludedFromMaxWallet[to] && from == uniswapV2Pair) require(balanceOf(to)+(amount) <= _maxWalletAmount, "Transfer amount makes wallet hold more than max."); uint256 contractTokenBalance = balanceOf(address(this)); if(contractTokenBalance >= _maxTxAmount) { contractTokenBalance = _maxTxAmount; } bool overMinTokenBalance = contractTokenBalance >= numTokensSellToDistribute; if ( overMinTokenBalance && !inSwapAndDistribute && from != uniswapV2Pair && swapAndDistributeEnabled ) { contractTokenBalance = numTokensSellToDistribute; //swa and distribute tokens swapAndDistribute(contractTokenBalance); }else{ //check if random got to draw winner here so as not to do too much in one transaction avoiding of gas exceptions if (state == LotteryState.GotRandom && lottoOn){ drawWinner(); } } //check jackpot threshold and lotto state here to get random uint256 jackpotTokenBalance = jackpotToken.balanceOf(address(this)); bool overMinJackpotBalance = jackpotTokenBalance >= lottoJackpotAmount; if ( overMinJackpotBalance && state == LotteryState.Open && LINK.balanceOf(address(this)) >= fee && lottoOn ) { _changeState(LotteryState.GettingRandom); requestId = getRandomNumber(); emit GetRandom(requestId); } //indicates if fee should be deducted from transfer bool takeFee = true; //if any account belongs to _isExcludedFromFee account then remove the fee if(_isExcludedFromFee[from] || _isExcludedFromFee[to]){ takeFee = false; } addAddress(from); addAddress(to); //transfer amount, it will take tax, burn, liquidity fee _tokenTransfer(from,to,amount,takeFee); } function getRandomAddress(uint32 seed) private view returns(address) { return _addressList[(uint256(keccak256(abi.encode(randomResult, seed))) % numAddresses)]; } function drawWinner() private { _changeState(LotteryState.Open); //seed for abi encoding random number uint32 seed = 1; address randomAddress = getRandomAddress(seed); //get more random addresses until an address qualifies to win while (balanceOf(randomAddress) < minLottoBalance || _isLottoExcluded[randomAddress]){ seed++; randomAddress = getRandomAddress(seed); if(seed > 40){ //cap it at 40 iterations so we don't get infinite loop or out of gas exception break; } } uint256 jackpotAmount = jackpotToken.balanceOf(address(this)); jackpotToken.transfer(randomAddress, jackpotAmount); numWinners++; lottoWinners[numWinners] = Winner(randomAddress, jackpotAmount); walletWinAmount[randomAddress] += jackpotAmount; totalWon += jackpotAmount; emit WinnerPaid(randomAddress, jackpotAmount); } function swapAndDistribute(uint256 contractTokenBalance) private lockTheSwap { //SWAP TO ETH uint256 initialBalance = address(this).balance; swapTokensForEth(contractTokenBalance); //amount of ETH swapped into uint256 deltaBalance = address(this).balance - initialBalance; //get the percentage split for Ecosystem, and Jackpot uint256 jackpotETHAmount = (deltaBalance*_percentOfSwapIsLotto)/100; //swap to jackpot token swapEthForJackpotToken(jackpotETHAmount); //send ETH to ecosystem _ecosystemWallet.transfer(deltaBalance-jackpotETHAmount); emit SwapAndDistribute(contractTokenBalance, jackpotETHAmount, deltaBalance-jackpotETHAmount); } 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 swapEthForJackpotToken(uint256 ethAmount) private { // generate the uniswap pair path of weth -> token address[] memory path = new address[](2); path[0] = uniswapV2Router.WETH(); path[1] = JACKPOT_TOKEN_ADDRESS; // make the swap uniswapV2Router.swapExactETHForTokensSupportingFeeOnTransferTokens{value: ethAmount}( 0, // accept any amount of token path, address(this), block.timestamp ); } function _checkLiquidityAdd(address from, address to) private { require(!_hasLiqBeenAdded, "Liquidity already added and marked."); if (!_hasLimits(from, to) && to == uniswapV2Pair) { _liqAddBlock = block.number; _hasLiqBeenAdded = true; swapAndDistributeEnabled = true; emit SwapAndDistributeEnabledUpdated(true); } } function _hasLimits(address from, address to) private view returns (bool) { return from != owner() && to != owner() && to != DEAD && to != address(0) && from != address(this); } function excludeSniper(address sniper) public onlyOwner{ require(_isSniperOrBlacklisted[sniper], "Address not considered a sniper."); _isSniperOrBlacklisted[sniper] = false; snipersCaught --; } function includeSniper(address sniper) public onlyOwner{ require(!_isSniperOrBlacklisted[sniper], "Address already considered a sniper."); _isSniperOrBlacklisted[sniper] = true; snipersCaught ++; } function setSniperProtection(bool _sniperProtection) public onlyOwner{ sniperProtection = _sniperProtection; } //this method is responsible for taking all fee, if takeFee is true and checking/banning bots function _tokenTransfer(address sender, address recipient, uint256 amount,bool takeFee) private { if (sniperProtection){ if (_isSniperOrBlacklisted[sender] || _isSniperOrBlacklisted[recipient]) { revert("Sniper rejected."); } if (!_hasLiqBeenAdded) { _checkLiquidityAdd(sender, recipient); if (!_hasLiqBeenAdded && _hasLimits(sender, recipient)) { revert("Only owner can transfer at this time."); } } else { if (_liqAddBlock > 0 && sender == uniswapV2Pair && _hasLimits(sender, recipient) ) { if (block.number - _liqAddBlock < snipeBlockAmt) { _isSniperOrBlacklisted[recipient] = true; snipersCaught ++; emit SniperCaught(recipient); } } } } 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, uint256 tLotto) = _getValues(tAmount); _rOwned[sender] = _rOwned[sender]-(rAmount); _rOwned[recipient] = _rOwned[recipient]+(rTransferAmount); _takeEcosystem(tLiquidity); _takeLotto(tLotto); _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, uint256 tLotto) = _getValues(tAmount); _rOwned[sender] = _rOwned[sender]-(rAmount); _tOwned[recipient] = _tOwned[recipient]+(tTransferAmount); _rOwned[recipient] = _rOwned[recipient]+(rTransferAmount); _takeEcosystem(tLiquidity); _takeLotto(tLotto); _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, uint256 tLotto) = _getValues(tAmount); _tOwned[sender] = _tOwned[sender]-(tAmount); _rOwned[sender] = _rOwned[sender]-(rAmount); _rOwned[recipient] = _rOwned[recipient]+(rTransferAmount); _takeEcosystem(tLiquidity); _takeLotto(tLotto); _reflectFee(rFee, tFee); emit Transfer(sender, recipient, tTransferAmount); } /** * Callback function used by VRF Coordinator */ function fulfillRandomness(bytes32 _requestId, uint256 randomness) internal override { require (requestId == _requestId, "requestId doesn't match"); randomResult = randomness; _changeState(LotteryState.GotRandom); emit GotRandom(randomResult); } function _changeState(LotteryState _newState) private { state = _newState; emit LotteryStateChanged(state); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (token/ERC20/IERC20.sol) pragma solidity ^0.8.0; /** * @dev Interface of the ERC20 standard as defined in the EIP. */ interface IERC20 { /** * @dev Returns the amount of tokens in existence. */ function totalSupply() external view returns (uint256); /** * @dev Returns the amount of tokens owned by `account`. */ function balanceOf(address account) external view returns (uint256); /** * @dev Moves `amount` tokens from the caller's account to `recipient`. * * Returns a boolean value indicating whether the operation succeeded. * * Emits a {Transfer} event. */ function transfer(address recipient, uint256 amount) external returns (bool); /** * @dev Returns the remaining number of tokens that `spender` will be * allowed to spend on behalf of `owner` through {transferFrom}. This is * zero by default. * * This value changes when {approve} or {transferFrom} are called. */ function allowance(address owner, address spender) external view returns (uint256); /** * @dev Sets `amount` as the allowance of `spender` over the caller's tokens. * * Returns a boolean value indicating whether the operation succeeded. * * IMPORTANT: Beware that changing an allowance with this method brings the risk * that someone may use both the old and the new allowance by unfortunate * transaction ordering. One possible solution to mitigate this race * condition is to first reduce the spender's allowance to 0 and set the * desired value afterwards: * https://github.com/ethereum/EIPs/issues/20#issuecomment-263524729 * * Emits an {Approval} event. */ function approve(address spender, uint256 amount) external returns (bool); /** * @dev Moves `amount` tokens from `sender` to `recipient` using the * allowance mechanism. `amount` is then deducted from the caller's * allowance. * * Returns a boolean value indicating whether the operation succeeded. * * Emits a {Transfer} event. */ function transferFrom( address sender, address recipient, uint256 amount ) external returns (bool); /** * @dev Emitted when `value` tokens are moved from one account (`from`) to * another (`to`). * * Note that `value` may be zero. */ event Transfer(address indexed from, address indexed to, uint256 value); /** * @dev Emitted when the allowance of a `spender` for an `owner` is set by * a call to {approve}. `value` is the new allowance. */ event Approval(address indexed owner, address indexed spender, uint256 value); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/Context.sol) pragma solidity ^0.8.0; /** * @dev Provides information about the current execution context, including the * sender of the transaction and its data. While these are generally available * via msg.sender and msg.data, they should not be accessed in such a direct * manner, since when dealing with meta-transactions the account sending and * paying for execution may not be the actual sender (as far as an application * is concerned). * * This contract is only required for intermediate, library-like contracts. */ abstract contract Context { function _msgSender() internal view virtual returns (address) { return msg.sender; } function _msgData() internal view virtual returns (bytes calldata) { return msg.data; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/Address.sol) pragma solidity ^0.8.0; /** * @dev Collection of functions related to the address type */ library Address { /** * @dev Returns true if `account` is a contract. * * [IMPORTANT] * ==== * It is unsafe to assume that an address for which this function returns * false is an externally-owned account (EOA) and not a contract. * * Among others, `isContract` will return false for the following * types of addresses: * * - an externally-owned account * - a contract in construction * - an address where a contract will be created * - an address where a contract lived, but was destroyed * ==== */ function isContract(address account) internal view returns (bool) { // This method relies on extcodesize, which returns 0 for contracts in // construction, since the code is only stored at the end of the // constructor execution. uint256 size; assembly { size := extcodesize(account) } return size > 0; } /** * @dev Replacement for Solidity's `transfer`: sends `amount` wei to * `recipient`, forwarding all available gas and reverting on errors. * * https://eips.ethereum.org/EIPS/eip-1884[EIP1884] increases the gas cost * of certain opcodes, possibly making contracts go over the 2300 gas limit * imposed by `transfer`, making them unable to receive funds via * `transfer`. {sendValue} removes this limitation. * * https://diligence.consensys.net/posts/2019/09/stop-using-soliditys-transfer-now/[Learn more]. * * IMPORTANT: because control is transferred to `recipient`, care must be * taken to not create reentrancy vulnerabilities. Consider using * {ReentrancyGuard} or the * https://solidity.readthedocs.io/en/v0.5.11/security-considerations.html#use-the-checks-effects-interactions-pattern[checks-effects-interactions pattern]. */ function sendValue(address payable recipient, uint256 amount) internal { require(address(this).balance >= amount, "Address: insufficient balance"); (bool success, ) = recipient.call{value: amount}(""); require(success, "Address: unable to send value, recipient may have reverted"); } /** * @dev Performs a Solidity function call using a low level `call`. A * plain `call` is an unsafe replacement for a function call: use this * function instead. * * If `target` reverts with a revert reason, it is bubbled up by this * function (like regular Solidity function calls). * * Returns the raw returned data. To convert to the expected return value, * use https://solidity.readthedocs.io/en/latest/units-and-global-variables.html?highlight=abi.decode#abi-encoding-and-decoding-functions[`abi.decode`]. * * Requirements: * * - `target` must be a contract. * - calling `target` with `data` must not revert. * * _Available since v3.1._ */ function functionCall(address target, bytes memory data) internal returns (bytes memory) { return functionCall(target, data, "Address: low-level call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], but with * `errorMessage` as a fallback revert reason when `target` reverts. * * _Available since v3.1._ */ function functionCall( address target, bytes memory data, string memory errorMessage ) internal returns (bytes memory) { return functionCallWithValue(target, data, 0, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but also transferring `value` wei to `target`. * * Requirements: * * - the calling contract must have an ETH balance of at least `value`. * - the called Solidity function must be `payable`. * * _Available since v3.1._ */ function functionCallWithValue( address target, bytes memory data, uint256 value ) internal returns (bytes memory) { return functionCallWithValue(target, data, value, "Address: low-level call with value failed"); } /** * @dev Same as {xref-Address-functionCallWithValue-address-bytes-uint256-}[`functionCallWithValue`], but * with `errorMessage` as a fallback revert reason when `target` reverts. * * _Available since v3.1._ */ function functionCallWithValue( address target, bytes memory data, uint256 value, string memory errorMessage ) internal returns (bytes memory) { require(address(this).balance >= value, "Address: insufficient balance for call"); require(isContract(target), "Address: call to non-contract"); (bool success, bytes memory returndata) = target.call{value: value}(data); return verifyCallResult(success, returndata, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but performing a static call. * * _Available since v3.3._ */ function functionStaticCall(address target, bytes memory data) internal view returns (bytes memory) { return functionStaticCall(target, data, "Address: low-level static call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`], * but performing a static call. * * _Available since v3.3._ */ function functionStaticCall( address target, bytes memory data, string memory errorMessage ) internal view returns (bytes memory) { require(isContract(target), "Address: static call to non-contract"); (bool success, bytes memory returndata) = target.staticcall(data); return verifyCallResult(success, returndata, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but performing a delegate call. * * _Available since v3.4._ */ function functionDelegateCall(address target, bytes memory data) internal returns (bytes memory) { return functionDelegateCall(target, data, "Address: low-level delegate call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`], * but performing a delegate call. * * _Available since v3.4._ */ function functionDelegateCall( address target, bytes memory data, string memory errorMessage ) internal returns (bytes memory) { require(isContract(target), "Address: delegate call to non-contract"); (bool success, bytes memory returndata) = target.delegatecall(data); return verifyCallResult(success, returndata, errorMessage); } /** * @dev Tool to verifies that a low level call was successful, and revert if it wasn't, either by bubbling the * revert reason using the provided one. * * _Available since v4.3._ */ function verifyCallResult( bool success, bytes memory returndata, string memory errorMessage ) internal pure returns (bytes memory) { if (success) { return returndata; } else { // Look for revert reason and bubble it up if present if (returndata.length > 0) { // The easiest way to bubble the revert reason is using memory via assembly assembly { let returndata_size := mload(returndata) revert(add(32, returndata), returndata_size) } } else { revert(errorMessage); } } } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (access/Ownable.sol) pragma solidity ^0.8.0; import "../utils/Context.sol"; /** * @dev Contract module which provides a basic access control mechanism, where * there is an account (an owner) that can be granted exclusive access to * specific functions. * * By default, the owner account will be the one that deploys the contract. This * can later be changed with {transferOwnership}. * * This module is used through inheritance. It will make available the modifier * `onlyOwner`, which can be applied to your functions to restrict their use to * the owner. */ abstract contract Ownable is Context { address private _owner; event OwnershipTransferred(address indexed previousOwner, address indexed newOwner); /** * @dev Initializes the contract setting the deployer as the initial owner. */ constructor() { _transferOwnership(_msgSender()); } /** * @dev Returns the address of the current owner. */ function owner() public view virtual returns (address) { return _owner; } /** * @dev Throws if called by any account other than the owner. */ modifier onlyOwner() { require(owner() == _msgSender(), "Ownable: caller is not the owner"); _; } /** * @dev Leaves the contract without owner. It will not be possible to call * `onlyOwner` functions anymore. Can only be called by the current owner. * * NOTE: Renouncing ownership will leave the contract without an owner, * thereby removing any functionality that is only available to the owner. */ function renounceOwnership() public virtual onlyOwner { _transferOwnership(address(0)); } /** * @dev Transfers ownership of the contract to a new account (`newOwner`). * Can only be called by the current owner. */ function transferOwnership(address newOwner) public virtual onlyOwner { require(newOwner != address(0), "Ownable: new owner is the zero address"); _transferOwnership(newOwner); } /** * @dev Transfers ownership of the contract to a new account (`newOwner`). * Internal function without access restriction. */ function _transferOwnership(address newOwner) internal virtual { address oldOwner = _owner; _owner = newOwner; emit OwnershipTransferred(oldOwner, newOwner); } }
pragma solidity >=0.5.0; interface IUniswapV2Factory { event PairCreated(address indexed token0, address indexed token1, address pair, uint); function feeTo() external view returns (address); function feeToSetter() external view returns (address); function getPair(address tokenA, address tokenB) external view returns (address pair); function allPairs(uint) external view returns (address pair); function allPairsLength() external view returns (uint); function createPair(address tokenA, address tokenB) external returns (address pair); function setFeeTo(address) external; function setFeeToSetter(address) external; }
pragma solidity >=0.6.2; import './IUniswapV2Router01.sol'; interface IUniswapV2Router02 is IUniswapV2Router01 { function removeLiquidityETHSupportingFeeOnTransferTokens( address token, uint liquidity, uint amountTokenMin, uint amountETHMin, address to, uint deadline ) external returns (uint amountETH); function removeLiquidityETHWithPermitSupportingFeeOnTransferTokens( address token, uint liquidity, uint amountTokenMin, uint amountETHMin, address to, uint deadline, bool approveMax, uint8 v, bytes32 r, bytes32 s ) external returns (uint amountETH); function swapExactTokensForTokensSupportingFeeOnTransferTokens( uint amountIn, uint amountOutMin, address[] calldata path, address to, uint deadline ) external; function swapExactETHForTokensSupportingFeeOnTransferTokens( uint amountOutMin, address[] calldata path, address to, uint deadline ) external payable; function swapExactTokensForETHSupportingFeeOnTransferTokens( uint amountIn, uint amountOutMin, address[] calldata path, address to, uint deadline ) external; }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "./interfaces/LinkTokenInterface.sol"; import "./VRFRequestIDBase.sol"; /** **************************************************************************** * @notice Interface for contracts using VRF randomness * ***************************************************************************** * @dev PURPOSE * * @dev Reggie the Random Oracle (not his real job) wants to provide randomness * @dev to Vera the verifier in such a way that Vera can be sure he's not * @dev making his output up to suit himself. Reggie provides Vera a public key * @dev to which he knows the secret key. Each time Vera provides a seed to * @dev Reggie, he gives back a value which is computed completely * @dev deterministically from the seed and the secret key. * * @dev Reggie provides a proof by which Vera can verify that the output was * @dev correctly computed once Reggie tells it to her, but without that proof, * @dev the output is indistinguishable to her from a uniform random sample * @dev from the output space. * * @dev The purpose of this contract is to make it easy for unrelated contracts * @dev to talk to Vera the verifier about the work Reggie is doing, to provide * @dev simple access to a verifiable source of randomness. * ***************************************************************************** * @dev USAGE * * @dev Calling contracts must inherit from VRFConsumerBase, and can * @dev initialize VRFConsumerBase's attributes in their constructor as * @dev shown: * * @dev contract VRFConsumer { * @dev constuctor(<other arguments>, address _vrfCoordinator, address _link) * @dev VRFConsumerBase(_vrfCoordinator, _link) public { * @dev <initialization with other arguments goes here> * @dev } * @dev } * * @dev The oracle will have given you an ID for the VRF keypair they have * @dev committed to (let's call it keyHash), and have told you the minimum LINK * @dev price for VRF service. Make sure your contract has sufficient LINK, and * @dev call requestRandomness(keyHash, fee, seed), where seed is the input you * @dev want to generate randomness from. * * @dev Once the VRFCoordinator has received and validated the oracle's response * @dev to your request, it will call your contract's fulfillRandomness method. * * @dev The randomness argument to fulfillRandomness is the actual random value * @dev generated from your seed. * * @dev The requestId argument is generated from the keyHash and the seed by * @dev makeRequestId(keyHash, seed). If your contract could have concurrent * @dev requests open, you can use the requestId to track which seed is * @dev associated with which randomness. See VRFRequestIDBase.sol for more * @dev details. (See "SECURITY CONSIDERATIONS" for principles to keep in mind, * @dev if your contract could have multiple requests in flight simultaneously.) * * @dev Colliding `requestId`s are cryptographically impossible as long as seeds * @dev differ. (Which is critical to making unpredictable randomness! See the * @dev next section.) * * ***************************************************************************** * @dev SECURITY CONSIDERATIONS * * @dev A method with the ability to call your fulfillRandomness method directly * @dev could spoof a VRF response with any random value, so it's critical that * @dev it cannot be directly called by anything other than this base contract * @dev (specifically, by the VRFConsumerBase.rawFulfillRandomness method). * * @dev For your users to trust that your contract's random behavior is free * @dev from malicious interference, it's best if you can write it so that all * @dev behaviors implied by a VRF response are executed *during* your * @dev fulfillRandomness method. If your contract must store the response (or * @dev anything derived from it) and use it later, you must ensure that any * @dev user-significant behavior which depends on that stored value cannot be * @dev manipulated by a subsequent VRF request. * * @dev Similarly, both miners and the VRF oracle itself have some influence * @dev over the order in which VRF responses appear on the blockchain, so if * @dev your contract could have multiple VRF requests in flight simultaneously, * @dev you must ensure that the order in which the VRF responses arrive cannot * @dev be used to manipulate your contract's user-significant behavior. * * @dev Since the ultimate input to the VRF is mixed with the block hash of the * @dev block in which the request is made, user-provided seeds have no impact * @dev on its economic security properties. They are only included for API * @dev compatability with previous versions of this contract. * * @dev Since the block hash of the block which contains the requestRandomness * @dev call is mixed into the input to the VRF *last*, a sufficiently powerful * @dev miner could, in principle, fork the blockchain to evict the block * @dev containing the request, forcing the request to be included in a * @dev different block with a different hash, and therefore a different input * @dev to the VRF. However, such an attack would incur a substantial economic * @dev cost. This cost scales with the number of blocks the VRF oracle waits * @dev until it calls responds to a request. */ abstract contract VRFConsumerBase is VRFRequestIDBase { /** * @notice fulfillRandomness handles the VRF response. Your contract must * @notice implement it. See "SECURITY CONSIDERATIONS" above for important * @notice principles to keep in mind when implementing your fulfillRandomness * @notice method. * * @dev VRFConsumerBase expects its subcontracts to have a method with this * @dev signature, and will call it once it has verified the proof * @dev associated with the randomness. (It is triggered via a call to * @dev rawFulfillRandomness, below.) * * @param requestId The Id initially returned by requestRandomness * @param randomness the VRF output */ function fulfillRandomness(bytes32 requestId, uint256 randomness) internal virtual; /** * @dev In order to keep backwards compatibility we have kept the user * seed field around. We remove the use of it because given that the blockhash * enters later, it overrides whatever randomness the used seed provides. * Given that it adds no security, and can easily lead to misunderstandings, * we have removed it from usage and can now provide a simpler API. */ uint256 private constant USER_SEED_PLACEHOLDER = 0; /** * @notice requestRandomness initiates a request for VRF output given _seed * * @dev The fulfillRandomness method receives the output, once it's provided * @dev by the Oracle, and verified by the vrfCoordinator. * * @dev The _keyHash must already be registered with the VRFCoordinator, and * @dev the _fee must exceed the fee specified during registration of the * @dev _keyHash. * * @dev The _seed parameter is vestigial, and is kept only for API * @dev compatibility with older versions. It can't *hurt* to mix in some of * @dev your own randomness, here, but it's not necessary because the VRF * @dev oracle will mix the hash of the block containing your request into the * @dev VRF seed it ultimately uses. * * @param _keyHash ID of public key against which randomness is generated * @param _fee The amount of LINK to send with the request * * @return requestId unique ID for this request * * @dev The returned requestId can be used to distinguish responses to * @dev concurrent requests. It is passed as the first argument to * @dev fulfillRandomness. */ function requestRandomness(bytes32 _keyHash, uint256 _fee) internal returns (bytes32 requestId) { LINK.transferAndCall(vrfCoordinator, _fee, abi.encode(_keyHash, USER_SEED_PLACEHOLDER)); // This is the seed passed to VRFCoordinator. The oracle will mix this with // the hash of the block containing this request to obtain the seed/input // which is finally passed to the VRF cryptographic machinery. uint256 vRFSeed = makeVRFInputSeed(_keyHash, USER_SEED_PLACEHOLDER, address(this), nonces[_keyHash]); // nonces[_keyHash] must stay in sync with // VRFCoordinator.nonces[_keyHash][this], which was incremented by the above // successful LINK.transferAndCall (in VRFCoordinator.randomnessRequest). // This provides protection against the user repeating their input seed, // which would result in a predictable/duplicate output, if multiple such // requests appeared in the same block. nonces[_keyHash] = nonces[_keyHash] + 1; return makeRequestId(_keyHash, vRFSeed); } LinkTokenInterface internal immutable LINK; address private immutable vrfCoordinator; // Nonces for each VRF key from which randomness has been requested. // // Must stay in sync with VRFCoordinator[_keyHash][this] mapping(bytes32 => uint256) /* keyHash */ /* nonce */ private nonces; /** * @param _vrfCoordinator address of VRFCoordinator contract * @param _link address of LINK token contract * * @dev https://docs.chain.link/docs/link-token-contracts */ constructor(address _vrfCoordinator, address _link) { vrfCoordinator = _vrfCoordinator; LINK = LinkTokenInterface(_link); } // rawFulfillRandomness is called by VRFCoordinator when it receives a valid VRF // proof. rawFulfillRandomness then calls fulfillRandomness, after validating // the origin of the call function rawFulfillRandomness(bytes32 requestId, uint256 randomness) external { require(msg.sender == vrfCoordinator, "Only VRFCoordinator can fulfill"); fulfillRandomness(requestId, randomness); } }
pragma solidity >=0.6.2; interface IUniswapV2Router01 { function factory() external pure returns (address); function WETH() external pure returns (address); function addLiquidity( address tokenA, address tokenB, uint amountADesired, uint amountBDesired, uint amountAMin, uint amountBMin, address to, uint deadline ) external returns (uint amountA, uint amountB, uint liquidity); function addLiquidityETH( address token, uint amountTokenDesired, uint amountTokenMin, uint amountETHMin, address to, uint deadline ) external payable returns (uint amountToken, uint amountETH, uint liquidity); function removeLiquidity( address tokenA, address tokenB, uint liquidity, uint amountAMin, uint amountBMin, address to, uint deadline ) external returns (uint amountA, uint amountB); function removeLiquidityETH( address token, uint liquidity, uint amountTokenMin, uint amountETHMin, address to, uint deadline ) external returns (uint amountToken, uint amountETH); function removeLiquidityWithPermit( address tokenA, address tokenB, uint liquidity, uint amountAMin, uint amountBMin, address to, uint deadline, bool approveMax, uint8 v, bytes32 r, bytes32 s ) external returns (uint amountA, uint amountB); function removeLiquidityETHWithPermit( address token, uint liquidity, uint amountTokenMin, uint amountETHMin, address to, uint deadline, bool approveMax, uint8 v, bytes32 r, bytes32 s ) external returns (uint amountToken, uint amountETH); function swapExactTokensForTokens( uint amountIn, uint amountOutMin, address[] calldata path, address to, uint deadline ) external returns (uint[] memory amounts); function swapTokensForExactTokens( uint amountOut, uint amountInMax, address[] calldata path, address to, uint deadline ) external returns (uint[] memory amounts); function swapExactETHForTokens(uint amountOutMin, address[] calldata path, address to, uint deadline) external payable returns (uint[] memory amounts); function swapTokensForExactETH(uint amountOut, uint amountInMax, address[] calldata path, address to, uint deadline) external returns (uint[] memory amounts); function swapExactTokensForETH(uint amountIn, uint amountOutMin, address[] calldata path, address to, uint deadline) external returns (uint[] memory amounts); function swapETHForExactTokens(uint amountOut, address[] calldata path, address to, uint deadline) external payable returns (uint[] memory amounts); function quote(uint amountA, uint reserveA, uint reserveB) external pure returns (uint amountB); function getAmountOut(uint amountIn, uint reserveIn, uint reserveOut) external pure returns (uint amountOut); function getAmountIn(uint amountOut, uint reserveIn, uint reserveOut) external pure returns (uint amountIn); function getAmountsOut(uint amountIn, address[] calldata path) external view returns (uint[] memory amounts); function getAmountsIn(uint amountOut, address[] calldata path) external view returns (uint[] memory amounts); }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; interface LinkTokenInterface { function allowance(address owner, address spender) external view returns (uint256 remaining); function approve(address spender, uint256 value) external returns (bool success); function balanceOf(address owner) external view returns (uint256 balance); function decimals() external view returns (uint8 decimalPlaces); function decreaseApproval(address spender, uint256 addedValue) external returns (bool success); function increaseApproval(address spender, uint256 subtractedValue) external; function name() external view returns (string memory tokenName); function symbol() external view returns (string memory tokenSymbol); function totalSupply() external view returns (uint256 totalTokensIssued); function transfer(address to, uint256 value) external returns (bool success); function transferAndCall( address to, uint256 value, bytes calldata data ) external returns (bool success); function transferFrom( address from, address to, uint256 value ) external returns (bool success); }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; contract VRFRequestIDBase { /** * @notice returns the seed which is actually input to the VRF coordinator * * @dev To prevent repetition of VRF output due to repetition of the * @dev user-supplied seed, that seed is combined in a hash with the * @dev user-specific nonce, and the address of the consuming contract. The * @dev risk of repetition is mostly mitigated by inclusion of a blockhash in * @dev the final seed, but the nonce does protect against repetition in * @dev requests which are included in a single block. * * @param _userSeed VRF seed input provided by user * @param _requester Address of the requesting contract * @param _nonce User-specific nonce at the time of the request */ function makeVRFInputSeed( bytes32 _keyHash, uint256 _userSeed, address _requester, uint256 _nonce ) internal pure returns (uint256) { return uint256(keccak256(abi.encode(_keyHash, _userSeed, _requester, _nonce))); } /** * @notice Returns the id for this request * @param _keyHash The serviceAgreement ID to be used for this request * @param _vRFInputSeed The seed to be passed directly to the VRF * @return The id for this request * * @dev Note that _vRFInputSeed is not the seed passed by the consuming * @dev contract, but the one generated by makeVRFInputSeed */ function makeRequestId(bytes32 _keyHash, uint256 _vRFInputSeed) internal pure returns (bytes32) { return keccak256(abi.encodePacked(_keyHash, _vRFInputSeed)); } }
{ "optimizer": { "enabled": true, "runs": 1000 }, "outputSelection": { "*": { "*": [ "evm.bytecode", "evm.deployedBytecode", "devdoc", "userdoc", "metadata", "abi" ] } }, "libraries": {} }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"inputs":[{"internalType":"address","name":"router","type":"address"},{"internalType":"address","name":"ecosystemWallet","type":"address"},{"internalType":"address","name":"jackpotTokenAddress_IN","type":"address"},{"internalType":"uint8","name":"jackpotTokenDecimals_IN","type":"uint8"},{"internalType":"uint256","name":"lottoJackpotAmount_IN","type":"uint256"}],"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":"bytes32","name":"requestId","type":"bytes32"}],"name":"GetRandom","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"randomNumber","type":"uint256"}],"name":"GotRandom","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"enum DecentraTokens.LotteryState","name":"newState","type":"uint8"}],"name":"LotteryStateChanged","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"bool","name":"enabled","type":"bool"}],"name":"LottoEnabledUpdated","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":"address","name":"sniperAddress","type":"address"}],"name":"SniperCaught","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"tokensSwapped","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"jackpotETHAmount","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"ecosystemETHAmount","type":"uint256"}],"name":"SwapAndDistribute","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"bool","name":"enabled","type":"bool"}],"name":"SwapAndDistributeEnabledUpdated","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":false,"internalType":"uint256","name":"value","type":"uint256"}],"name":"Transfer","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"user","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"WinnerPaid","type":"event"},{"inputs":[],"name":"DEAD","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"JACKPOT_TOKEN_ADDRESS","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"_ecosystemFee","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"_hasLiqBeenAdded","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"_jackpotFee","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"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":"_percentOfSwapIsLotto","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":[{"internalType":"address","name":"account","type":"address"}],"name":"excludeFromFee","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"addy","type":"address"}],"name":"excludeFromLottoRewards","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"excludeFromMaxTx","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"addy","type":"address"}],"name":"excludeFromMaxWallet","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"excludeFromReward","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"sniper","type":"address"}],"name":"excludeSniper","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"getStats","outputs":[{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"enum DecentraTokens.LotteryState","name":"","type":"uint8"},{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"includeInFee","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"addy","type":"address"}],"name":"includeInLottoRewards","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"includeInMaxTx","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"addy","type":"address"}],"name":"includeInMaxWallet","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"includeInReward","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"sniper","type":"address"}],"name":"includeSniper","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":"isExcludedFromMaxTx","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":"lottoJackpotAmount","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"lottoOn","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"lottoWinners","outputs":[{"internalType":"address","name":"winner","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"minLottoBalance","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address[]","name":"_addresses","type":"address[]"},{"internalType":"uint256[]","name":"_values","type":"uint256[]"}],"name":"multiSender","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"numTokensSellToDistribute","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"numWinners","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"randomResult","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"requestId","type":"bytes32"},{"internalType":"uint256","name":"randomness","type":"uint256"}],"name":"rawFulfillRandomness","outputs":[],"stateMutability":"nonpayable","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":"ecosystem","type":"address"}],"name":"setEcosystemAddress","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"ecosystemFee","type":"uint256"}],"name":"setEcosystemFee","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"token","type":"address"},{"internalType":"uint8","name":"decimalsIn","type":"uint8"}],"name":"setJackpotTokenAddress","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"_lottoOn","type":"bool"}],"name":"setLottoEnabled","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"percentOfSwapIsLotto","type":"uint256"}],"name":"setLottoFeePercent","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"lottoFee","type":"uint256"}],"name":"setLottoTaxPercent","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"maxTxAmount","type":"uint256"}],"name":"setMaxTxAmount","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"minBalance","type":"uint256"}],"name":"setMinLottoBalance","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_numTokensSellToDistribute","type":"uint256"}],"name":"setNumTokensSellToDistribute","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"taxFee","type":"uint256"}],"name":"setReflectionTaxPercent","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newRouter","type":"address"}],"name":"setRouterAddress","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"_sniperProtection","type":"bool"}],"name":"setSniperProtection","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"_enabled","type":"bool"}],"name":"setSwapAndDistributeEnabled","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"minBalance","type":"uint256"}],"name":"setlottoJackpotAmount","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"snipersCaught","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"state","outputs":[{"internalType":"enum DecentraTokens.LotteryState","name":"","type":"uint8"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"swapAndDistributeEnabled","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":[],"name":"totalWon","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":"address","name":"","type":"address"}],"name":"walletWinAmount","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"withdrawETH","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_address","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"withdrawToken","outputs":[],"stateMutability":"nonpayable","type":"function"},{"stateMutability":"payable","type":"receive"}]
Contract Creation Code
6000600555610100604052600760c081905266222296a9a424a160c91b60e09081526200003091600b9190620007b0565b50604080518082019091526005808252642229a424a160d91b60209092019182526200005f91600c91620007b0565b50600d805460ff191660091790556001600e819055600f55600660108190556011556008601281905560135560148055662386f26fc100006015819055620000aa9060001962000aa9565b620000b89060001962000a34565b601655601b805461ffff191660011790556000601c819055601d8190556002601e556025805460ff60a01b1916600160a01b1790556509184e72a000602755602a819055602c55602e805460ff60a81b19169055652d79883d2000602f5565886c98b760006030556512309ce540006031553480156200013757600080fd5b5060405162005b8b38038062005b8b8339810160408190526200015a9162000898565b73f0d54349addcf704f77ae15b96510dea15cb795273514910771af9ca656af840dff83e8264ecf986ca7faa77729d3466ca35ae8d28b3bbac7cc36a5031efdc430821c02bc31a238af445671bc16d674ec800008383620001bb33620006e2565b6001600160601b0319606092831b811660a052911b16608052600291909155600355505060165460086000620001f96000546001600160a01b031690565b6001600160a01b039081168252602082019290925260400160002091909155601880546001600160a01b0319169185169190911790556019805460ff60a01b1916600160a01b60ff8516021790556200025482600a62000951565b62000260908262000a12565b602655601854601980546001600160a01b0319166001600160a01b0392831617905560005462000291911662000732565b83602560006101000a8154816001600160a01b0302191690836001600160a01b031602179055506000859050806001600160a01b031663c45a01556040518163ffffffff1660e01b815260040160206040518083038186803b158015620002f757600080fd5b505afa1580156200030c573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019062000332919062000873565b6001600160a01b031663c9c6539630836001600160a01b031663ad5c46486040518163ffffffff1660e01b815260040160206040518083038186803b1580156200037b57600080fd5b505afa15801562000390573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190620003b6919062000873565b6040516001600160e01b031960e085901b1681526001600160a01b03928316600482015291166024820152604401602060405180830381600087803b158015620003ff57600080fd5b505af115801562000414573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906200043a919062000873565b602e80546001600160a01b03199081166001600160a01b0393841617909155602d80549091169183169190911790556001601f6000620004826000546001600160a01b031690565b6001600160a01b03908116825260208083019390935260409182016000908120805495151560ff199687161790556025549091168152601f83528181208054851660019081179091553082529181208054909416821790935591620004ef6000546001600160a01b031690565b6001600160a01b03908116825260208083019390935260409182016000908120805495151560ff199687161790556025549091168152918052808220805484166001908117909155308352908220805490931681179092556021906200055d6000546001600160a01b031690565b6001600160a01b03908116825260208083019390935260409182016000908120805495151560ff1996871617905560255490911681526021909252808220805484166001908117909155308352908220805484168217905561dead82527fda90364631e387f138e7e413f1de75a8ecb4767574209ddf012729113dea45c080549093168117909255602390620005fb6000546001600160a01b031690565b6001600160a01b03908116825260208083019390935260409182016000908120805495151560ff199687161790556025548216815260239093528183208054851660019081179091553084528284208054861682179055602e54821684528284208054861682179055908a16835291208054909216179055620006866000546001600160a01b031690565b6001600160a01b031660006001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef601554604051620006ce91815260200190565b60405180910390a350505050505062000ae2565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b6001600160a01b03811660009081526007602052604090205460ff16620007ad576001600160a01b0381166000818152600760209081526040808320805460ff191660011790556005805484526006909252822080546001600160a01b03191690931790925581549190620007a78362000a8b565b91905055505b50565b828054620007be9062000a4e565b90600052602060002090601f016020900481019282620007e257600085556200082d565b82601f10620007fd57805160ff19168380011785556200082d565b828001600101855582156200082d579182015b828111156200082d57825182559160200191906001019062000810565b506200083b9291506200083f565b5090565b5b808211156200083b576000815560010162000840565b80516001600160a01b03811681146200086e57600080fd5b919050565b6000602082840312156200088657600080fd5b620008918262000856565b9392505050565b600080600080600060a08688031215620008b157600080fd5b620008bc8662000856565b9450620008cc6020870162000856565b9350620008dc6040870162000856565b9250606086015160ff81168114620008f357600080fd5b80925050608086015190509295509295909350565b600181815b80851115620009495781600019048211156200092d576200092d62000acc565b808516156200093b57918102915b93841c93908002906200090d565b509250929050565b60006200089160ff8416836000826200096d5750600162000a0c565b816200097c5750600062000a0c565b8160018114620009955760028114620009a057620009c0565b600191505062000a0c565b60ff841115620009b457620009b462000acc565b50506001821b62000a0c565b5060208310610133831016604e8410600b8410161715620009e5575081810a62000a0c565b620009f1838362000908565b806000190482111562000a085762000a0862000acc565b0290505b92915050565b600081600019048311821515161562000a2f5762000a2f62000acc565b500290565b60008282101562000a495762000a4962000acc565b500390565b600181811c9082168062000a6357607f821691505b6020821081141562000a8557634e487b7160e01b600052602260045260246000fd5b50919050565b600060001982141562000aa25762000aa262000acc565b5060010190565b60008262000ac757634e487b7160e01b600052601260045260246000fd5b500690565b634e487b7160e01b600052601160045260246000fd5b60805160601c60a05160601c61506862000b2360003960008181611dc1015261428a01526000818161307e0152818161372c015261425b01526150686000f3fe6080604052600436106104f05760003560e01c80636c0a24eb11610294578063a8e01b281161015e578063d650b6f5116100d6578063ea49b7591161008a578063f14210a61161006f578063f14210a614610e29578063f2fde38b14610e49578063ff098f5c14610e6957600080fd5b8063ea49b75914610de9578063ec28438a14610e0957600080fd5b8063dd62ed3e116100bb578063dd62ed3e14610d6d578063e79d416014610db3578063ea2f0b3714610dc957600080fd5b8063d650b6f514610d2d578063db4cf1e014610d4d57600080fd5b8063bacc22421161012d578063c59d484711610112578063c59d484714610cc7578063ca290c2214610ced578063ceed9b5014610d0d57600080fd5b8063bacc224214610c80578063c19d93fb14610ca057600080fd5b8063a8e01b2814610c0a578063a9059cbb14610c2a578063ac935b2d14610c4a578063b3ff277d14610c6a57600080fd5b80638bcaff501161020c5780639d044046116101c0578063a41157ac116101a5578063a41157ac14610b9d578063a457c2d714610bca578063a8bc8ec314610bea57600080fd5b80639d04404614610b5d5780639e281a9814610b7d57600080fd5b80638edd14e1116101f15780638edd14e114610b1257806394985ddd14610b2857806395d89b4114610b4857600080fd5b80638bcaff5014610ade5780638da5cb5b14610af457600080fd5b80637d1db4a511610263578063896e629e11610248578063896e629e14610a915780638b6f6e0814610aa75780638b7bcc8614610ac857600080fd5b80637d1db4a514610a4257806388f8202014610a5857600080fd5b80636c0a24eb146109d7578063704d0b68146109ed57806370a0823114610a0d578063715018a614610a2d57600080fd5b80633b124fe7116103d557806350a8e0161161034d5780635b700d9111610301578063658ca87c116102e6578063658ca87c146109765780636787d184146109975780636979fd67146109b757600080fd5b80635b700d91146107da578063658c27a91461093e57600080fd5b80635342acb4116103325780635342acb4146108cf578063574dfe9f14610908578063595d82b11461091e57600080fd5b806350a8e0161461089057806352390c02146108af57600080fd5b806341cb87fc116103a4578063437823ec11610389578063437823ec146108305780634549b0391461085057806349bd5a5e1461087057600080fd5b806341cb87fc146107fa57806342619f661461081a57600080fd5b80633b124fe7146107845780633bd5d1731461079a5780633e1892c1146107ba5780633f33e909146107da57600080fd5b806318621fe5116104685780632d838119116104375780633685d4191161041c5780633685d4191461072457806339248ec914610744578063395093511461076457600080fd5b80632d838119146106e2578063313ce5671461070257600080fd5b806318621fe51461066c57806323b872dd1461068c578063248db8df146106ac578063250bb3b9146106c257600080fd5b8063095ea7b3116104bf5780631694505e116104a45780631694505e1461062157806317fc654c1461064157806318160ddd1461065757600080fd5b8063095ea7b3146105d257806313114a9d1461060257600080fd5b806301f94617146104fc57806303fd2a451461056057806306fdde031461058e57806307eb38c0146105b057600080fd5b366104f757005b600080fd5b34801561050857600080fd5b5061053c610517366004614b8d565b602860205260009081526040902080546001909101546001600160a01b039091169082565b604080516001600160a01b0390931683526020830191909152015b60405180910390f35b34801561056c57600080fd5b5061057661dead81565b6040516001600160a01b039091168152602001610557565b34801561059a57600080fd5b506105a3610e89565b6040516105579190614d0b565b3480156105bc57600080fd5b506105d06105cb366004614b8d565b610f1b565b005b3480156105de57600080fd5b506105f26105ed366004614a65565b610f89565b6040519015158152602001610557565b34801561060e57600080fd5b506017545b604051908152602001610557565b34801561062d57600080fd5b50602d54610576906001600160a01b031681565b34801561064d57600080fd5b5061061360275481565b34801561066357600080fd5b50601554610613565b34801561067857600080fd5b506105d06106873660046149b1565b610fa0565b34801561069857600080fd5b506105f26106a7366004614a24565b611008565b3480156106b857600080fd5b5061061360145481565b3480156106ce57600080fd5b506105d06106dd366004614a91565b61105a565b3480156106ee57600080fd5b506106136106fd366004614b8d565b611101565b34801561070e57600080fd5b50600d5460405160ff9091168152602001610557565b34801561073057600080fd5b506105d061073f3660046149b1565b611198565b34801561075057600080fd5b506105d061075f3660046149b1565b61136d565b34801561077057600080fd5b506105f261077f366004614a65565b611469565b34801561079057600080fd5b50610613600e5481565b3480156107a657600080fd5b506105d06107b5366004614b8d565b6114a0565b3480156107c657600080fd5b506105d06107d53660046149b1565b61159f565b3480156107e657600080fd5b506105d06107f53660046149b1565b61169a565b34801561080657600080fd5b506105d06108153660046149b1565b611706565b34801561082657600080fd5b5061061360045481565b34801561083c57600080fd5b506105d061084b3660046149b1565b611940565b34801561085c57600080fd5b5061061361086b366004614bbf565b6119ac565b34801561087c57600080fd5b50602e54610576906001600160a01b031681565b34801561089c57600080fd5b50601b546105f290610100900460ff1681565b3480156108bb57600080fd5b506105d06108ca3660046149b1565b611a3b565b3480156108db57600080fd5b506105f26108ea3660046149b1565b6001600160a01b03166000908152601f602052604090205460ff1690565b34801561091457600080fd5b5061061360125481565b34801561092a57600080fd5b506105d0610939366004614b8d565b611bac565b34801561094a57600080fd5b506105f26109593660046149b1565b6001600160a01b0316600090815260208052604090205460ff1690565b34801561098257600080fd5b506025546105f290600160a01b900460ff1681565b3480156109a357600080fd5b506105d06109b2366004614b8d565b611bf9565b3480156109c357600080fd5b506105d06109d2366004614b8d565b611c46565b3480156109e357600080fd5b5061061360305481565b3480156109f957600080fd5b506105d0610a08366004614b8d565b611cb6565b348015610a1957600080fd5b50610613610a283660046149b1565b611d03565b348015610a3957600080fd5b506105d0611d62565b348015610a4e57600080fd5b50610613602f5481565b348015610a6457600080fd5b506105f2610a733660046149b1565b6001600160a01b031660009081526022602052604090205460ff1690565b348015610a9d57600080fd5b5061061360265481565b348015610ab357600080fd5b50602e546105f290600160a81b900460ff1681565b348015610ad457600080fd5b50610613602a5481565b348015610aea57600080fd5b5061061360315481565b348015610b0057600080fd5b506000546001600160a01b0316610576565b348015610b1e57600080fd5b5061061360105481565b348015610b3457600080fd5b506105d0610b43366004614b6b565b611db6565b348015610b5457600080fd5b506105a3611e38565b348015610b6957600080fd5b506105d0610b78366004614b31565b611e47565b348015610b8957600080fd5b506105d0610b98366004614a65565b611ee7565b348015610ba957600080fd5b50610613610bb83660046149b1565b60296020526000908152604090205481565b348015610bd657600080fd5b506105f2610be5366004614a65565b61206e565b348015610bf657600080fd5b50601854610576906001600160a01b031681565b348015610c1657600080fd5b506105d0610c253660046149b1565b6120a5565b348015610c3657600080fd5b506105f2610c45366004614a65565b61210f565b348015610c5657600080fd5b506105d0610c65366004614b8d565b61211c565b348015610c7657600080fd5b50610613602c5481565b348015610c8c57600080fd5b506105d0610c9b3660046149b1565b612169565b348015610cac57600080fd5b50602b54610cba9060ff1681565b6040516105579190614cc8565b348015610cd357600080fd5b50610cdc61224f565b604051610557959493929190614d5a565b348015610cf957600080fd5b506105d0610d08366004614b31565b6122f7565b348015610d1957600080fd5b506105d0610d283660046149b1565b61238c565b348015610d3957600080fd5b506105f2610d48366004614ac5565b612493565b348015610d5957600080fd5b506105d0610d683660046149b1565b612703565b348015610d7957600080fd5b50610613610d883660046149eb565b6001600160a01b039182166000908152600a6020908152604080832093909416825291909152205490565b348015610dbf57600080fd5b50610613601d5481565b348015610dd557600080fd5b506105d0610de43660046149b1565b61276e565b348015610df557600080fd5b506105d0610e04366004614b8d565b6127d7565b348015610e1557600080fd5b506105d0610e24366004614b8d565b612840565b348015610e3557600080fd5b506105d0610e44366004614b8d565b6128a9565b348015610e5557600080fd5b506105d0610e643660046149b1565b61291e565b348015610e7557600080fd5b506105d0610e84366004614b31565b6129ee565b6060600b8054610e9890614ef3565b80601f0160208091040260200160405190810160405280929190818152602001828054610ec490614ef3565b8015610f115780601f10610ee657610100808354040283529160200191610f11565b820191906000526020600020905b815481529060010190602001808311610ef457829003601f168201915b5050505050905090565b6000546001600160a01b03163314610f685760405162461bcd60e51b8152602060048201819052602482015260008051602061501383398151915260448201526064015b60405180910390fd5b600d54610f799060ff16600a614dfb565b610f839082614ea6565b60275550565b6000610f96338484612a49565b5060015b92915050565b6000546001600160a01b03163314610fe85760405162461bcd60e51b815260206004820181905260248201526000805160206150138339815191526044820152606401610f5f565b6001600160a01b031660009081526020805260409020805460ff19169055565b6000611015848484612ba1565b6001600160a01b0384166000908152600a602090815260408083203380855292529091205461105091869161104b908690614ec5565b612a49565b5060019392505050565b6000546001600160a01b031633146110a25760405162461bcd60e51b815260206004820181905260248201526000805160206150138339815191526044820152606401610f5f565b601880546001600160a01b039093166001600160a01b031993841681179091556019805460ff909316600160a01b029093167fffffffffffffffffffffff00000000000000000000000000000000000000000090921691909117179055565b600060165482111561117b5760405162461bcd60e51b815260206004820152602a60248201527f416d6f756e74206d757374206265206c657373207468616e20746f74616c207260448201527f65666c656374696f6e73000000000000000000000000000000000000000000006064820152608401610f5f565b60006111856131db565b90506111918184614da4565b9392505050565b6000546001600160a01b031633146111e05760405162461bcd60e51b815260206004820181905260248201526000805160206150138339815191526044820152606401610f5f565b6001600160a01b03811660009081526022602052604090205460ff166112485760405162461bcd60e51b815260206004820152601b60248201527f4163636f756e7420697320616c726561647920696e636c7564656400000000006044820152606401610f5f565b60005b60245481101561136957816001600160a01b03166024828154811061127257611272614fd9565b6000918252602090912001546001600160a01b03161415611357576024805461129d90600190614ec5565b815481106112ad576112ad614fd9565b600091825260209091200154602480546001600160a01b0390921691839081106112d9576112d9614fd9565b600091825260208083209190910180546001600160a01b0319166001600160a01b039485161790559184168152600982526040808220829055602290925220805460ff19169055602480548061133157611331614fc3565b600082815260209020810160001990810180546001600160a01b03191690550190555050565b8061136181614f2e565b91505061124b565b5050565b6000546001600160a01b031633146113b55760405162461bcd60e51b815260206004820181905260248201526000805160206150138339815191526044820152606401610f5f565b6001600160a01b03811660009081526023602052604090205460ff1615156001146114485760405162461bcd60e51b815260206004820152602660248201527f5573657220616c726561647920696e636c7564656420696e206c6f74746f207260448201527f65776172647300000000000000000000000000000000000000000000000000006064820152608401610f5f565b6001600160a01b03166000908152602360205260409020805460ff19169055565b336000818152600a602090815260408083206001600160a01b03871684529091528120549091610f9691859061104b908690614d8c565b3360008181526022602052604090205460ff16156115265760405162461bcd60e51b815260206004820152602c60248201527f4578636c75646564206164647265737365732063616e6e6f742063616c6c207460448201527f6869732066756e6374696f6e00000000000000000000000000000000000000006064820152608401610f5f565b6000611531836131fe565b505050506001600160a01b03851660009081526008602052604090205492935061155f928492509050614ec5565b6001600160a01b038316600090815260086020526040902055601654611586908290614ec5565b601655601754611597908490614d8c565b601755505050565b6000546001600160a01b031633146115e75760405162461bcd60e51b815260206004820181905260248201526000805160206150138339815191526044820152606401610f5f565b6001600160a01b03811660009081526023602052604090205460ff16156116765760405162461bcd60e51b815260206004820152602860248201527f5573657220616c7265616479206578636c756465642066726f6d206c6f74746f60448201527f20726577617264730000000000000000000000000000000000000000000000006064820152608401610f5f565b6001600160a01b03166000908152602360205260409020805460ff19166001179055565b6000546001600160a01b031633146116e25760405162461bcd60e51b815260206004820181905260248201526000805160206150138339815191526044820152606401610f5f565b6001600160a01b03166000908152602160205260409020805460ff19166001179055565b6000546001600160a01b0316331461174e5760405162461bcd60e51b815260206004820181905260248201526000805160206150138339815191526044820152606401610f5f565b6000819050806001600160a01b031663c45a01556040518163ffffffff1660e01b815260040160206040518083038186803b15801561178c57600080fd5b505afa1580156117a0573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906117c491906149ce565b6001600160a01b031663c9c6539630836001600160a01b031663ad5c46486040518163ffffffff1660e01b815260040160206040518083038186803b15801561180c57600080fd5b505afa158015611820573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061184491906149ce565b6040517fffffffff0000000000000000000000000000000000000000000000000000000060e085901b1681526001600160a01b03928316600482015291166024820152604401602060405180830381600087803b1580156118a457600080fd5b505af11580156118b8573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906118dc91906149ce565b602e80546001600160a01b039283166001600160a01b03199182168117909255602d80549484169490911693909317909255600091825260236020526040808320805460ff1990811660019081179092559490921683529091208054909216179055565b6000546001600160a01b031633146119885760405162461bcd60e51b815260206004820181905260248201526000805160206150138339815191526044820152606401610f5f565b6001600160a01b03166000908152601f60205260409020805460ff19166001179055565b6000601554831115611a005760405162461bcd60e51b815260206004820152601f60248201527f416d6f756e74206d757374206265206c657373207468616e20737570706c79006044820152606401610f5f565b81611a20576000611a10846131fe565b50949650610f9a95505050505050565b6000611a2b846131fe565b50939650610f9a95505050505050565b6000546001600160a01b03163314611a835760405162461bcd60e51b815260206004820181905260248201526000805160206150138339815191526044820152606401610f5f565b6001600160a01b03811660009081526022602052604090205460ff1615611aec5760405162461bcd60e51b815260206004820152601b60248201527f4163636f756e7420697320616c7265616479206578636c7564656400000000006044820152606401610f5f565b6001600160a01b03811660009081526008602052604090205415611b46576001600160a01b038116600090815260086020526040902054611b2c90611101565b6001600160a01b0382166000908152600960205260409020555b6001600160a01b03166000818152602260205260408120805460ff191660019081179091556024805491820181559091527f7cd332d19b93bcabe3cce7ca0c18a052f57e5fd03b4758a09f30f5ddc4b22ec40180546001600160a01b0319169091179055565b6000546001600160a01b03163314611bf45760405162461bcd60e51b815260206004820181905260248201526000805160206150138339815191526044820152606401610f5f565b601255565b6000546001600160a01b03163314611c415760405162461bcd60e51b815260206004820181905260248201526000805160206150138339815191526044820152606401610f5f565b601455565b6000546001600160a01b03163314611c8e5760405162461bcd60e51b815260206004820181905260248201526000805160206150138339815191526044820152606401610f5f565b601954611ca690600160a01b900460ff16600a614dfb565b611cb09082614ea6565b60265550565b6000546001600160a01b03163314611cfe5760405162461bcd60e51b815260206004820181905260248201526000805160206150138339815191526044820152606401610f5f565b600e55565b6001600160a01b03811660009081526022602052604081205460ff1615611d4057506001600160a01b031660009081526009602052604090205490565b6001600160a01b038216600090815260086020526040902054610f9a90611101565b6000546001600160a01b03163314611daa5760405162461bcd60e51b815260206004820181905260248201526000805160206150138339815191526044820152606401610f5f565b611db46000613269565b565b336001600160a01b037f00000000000000000000000000000000000000000000000000000000000000001614611e2e5760405162461bcd60e51b815260206004820152601f60248201527f4f6e6c7920565246436f6f7264696e61746f722063616e2066756c66696c6c006044820152606401610f5f565b61136982826132b9565b6060600c8054610e9890614ef3565b6000546001600160a01b03163314611e8f5760405162461bcd60e51b815260206004820181905260248201526000805160206150138339815191526044820152606401610f5f565b60258054821515600160a01b0260ff60a01b199091161790556040517fc09a8da45cf5ca5a0a768ea4bb86617a8feed2445e799276b725b5e7519b231790611edc90831515815260200190565b60405180910390a150565b6000546001600160a01b03163314611f2f5760405162461bcd60e51b815260206004820181905260248201526000805160206150138339815191526044820152606401610f5f565b6018546001600160a01b0383811691161415611f8d5760405162461bcd60e51b815260206004820152601b60248201527f43616e6e6f74207769746864726177204c6f747465727920706f7400000000006044820152606401610f5f565b6001600160a01b038216301415611fe65760405162461bcd60e51b815260206004820152601e60248201527f43616e6e6f7420776974686472617720706c6174666f726d20746f6b656e00006044820152606401610f5f565b60405163a9059cbb60e01b81523360048201526024810182905282906001600160a01b0382169063a9059cbb90604401602060405180830381600087803b15801561203057600080fd5b505af1158015612044573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906120689190614b4e565b50505050565b336000818152600a602090815260408083206001600160a01b03871684529091528120549091610f9691859061104b908690614ec5565b6000546001600160a01b031633146120ed5760405162461bcd60e51b815260206004820181905260248201526000805160206150138339815191526044820152606401610f5f565b602580546001600160a01b0319166001600160a01b0392909216919091179055565b6000610f96338484612ba1565b6000546001600160a01b031633146121645760405162461bcd60e51b815260206004820181905260248201526000805160206150138339815191526044820152606401610f5f565b601055565b6000546001600160a01b031633146121b15760405162461bcd60e51b815260206004820181905260248201526000805160206150138339815191526044820152606401610f5f565b6001600160a01b0381166000908152601a602052604090205460ff166122195760405162461bcd60e51b815260206004820181905260248201527f41646472657373206e6f7420636f6e73696465726564206120736e697065722e6044820152606401610f5f565b6001600160a01b0381166000908152601a60205260408120805460ff19169055601d80549161224783614edc565b919050555050565b6026546019546040516370a0823160e01b8152306004820152600092839283928392839290916001600160a01b03909116906370a082319060240160206040518083038186803b1580156122a257600080fd5b505afa1580156122b6573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906122da9190614ba6565b602a54602b54602c54939992985090965060ff1694509092509050565b6000546001600160a01b0316331461233f5760405162461bcd60e51b815260206004820181905260248201526000805160206150138339815191526044820152606401610f5f565b602e8054821515600160a81b0260ff60a81b199091161790556040517fb4714a39a761e558659d1f2765a38570c94673756118da2710f01aa062dd2ad890611edc90831515815260200190565b6000546001600160a01b031633146123d45760405162461bcd60e51b815260206004820181905260248201526000805160206150138339815191526044820152606401610f5f565b6001600160a01b0381166000908152601a602052604090205460ff16156124625760405162461bcd60e51b8152602060048201526024808201527f4164647265737320616c726561647920636f6e73696465726564206120736e6960448201527f7065722e000000000000000000000000000000000000000000000000000000006064820152608401610f5f565b6001600160a01b0381166000908152601a60205260408120805460ff19166001179055601d80549161224783614f2e565b600083821461250a5760405162461bcd60e51b815260206004820152603260248201527f4164647265737320617272617920616e642076616c756573206172726179206d60448201527f7573742062652073616d65206c656e67746800000000000000000000000000006064820152608401610f5f565b60005b848110156126f757600086868381811061252957612529614fd9565b905060200201602081019061253e91906149b1565b6001600160a01b031614156125955760405162461bcd60e51b815260206004820152600f60248201527f4164647265737320696e76616c696400000000000000000000000000000000006044820152606401610f5f565b60008484838181106125a9576125a9614fd9565b90506020020135116125fd5760405162461bcd60e51b815260206004820152600d60248201527f56616c756520696e76616c6964000000000000000000000000000000000000006044820152606401610f5f565b306323b872dd3388888581811061261657612616614fd9565b905060200201602081019061262b91906149b1565b87878681811061263d5761263d614fd9565b6040517fffffffff0000000000000000000000000000000000000000000000000000000060e088901b1681526001600160a01b03958616600482015294909316602485015250602090910201356044820152606401602060405180830381600087803b1580156126ac57600080fd5b505af11580156126c0573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906126e49190614b4e565b50806126ef81614f2e565b91505061250d565b50600195945050505050565b6000546001600160a01b0316331461274b5760405162461bcd60e51b815260206004820181905260248201526000805160206150138339815191526044820152606401610f5f565b6001600160a01b031660009081526020805260409020805460ff19166001179055565b6000546001600160a01b031633146127b65760405162461bcd60e51b815260206004820181905260248201526000805160206150138339815191526044820152606401610f5f565b6001600160a01b03166000908152601f60205260409020805460ff19169055565b6000546001600160a01b0316331461281f5760405162461bcd60e51b815260206004820181905260248201526000805160206150138339815191526044820152606401610f5f565b600d546128309060ff16600a614dfb565b61283a9082614ea6565b60315550565b6000546001600160a01b031633146128885760405162461bcd60e51b815260206004820181905260248201526000805160206150138339815191526044820152606401610f5f565b600d546128999060ff16600a614dfb565b6128a39082614ea6565b602f5550565b6000546001600160a01b031633146128f15760405162461bcd60e51b815260206004820181905260248201526000805160206150138339815191526044820152606401610f5f565b604051339082156108fc029083906000818181858888f19350505050158015611369573d6000803e3d6000fd5b6000546001600160a01b031633146129665760405162461bcd60e51b815260206004820181905260248201526000805160206150138339815191526044820152606401610f5f565b6001600160a01b0381166129e25760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201527f64647265737300000000000000000000000000000000000000000000000000006064820152608401610f5f565b6129eb81613269565b50565b6000546001600160a01b03163314612a365760405162461bcd60e51b815260206004820181905260248201526000805160206150138339815191526044820152606401610f5f565b601b805460ff1916911515919091179055565b6001600160a01b038316612ac45760405162461bcd60e51b8152602060048201526024808201527f45524332303a20617070726f76652066726f6d20746865207a65726f2061646460448201527f72657373000000000000000000000000000000000000000000000000000000006064820152608401610f5f565b6001600160a01b038216612b405760405162461bcd60e51b815260206004820152602260248201527f45524332303a20617070726f766520746f20746865207a65726f20616464726560448201527f73730000000000000000000000000000000000000000000000000000000000006064820152608401610f5f565b6001600160a01b038381166000818152600a602090815260408083209487168084529482529182902085905590518481527f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925910160405180910390a3505050565b6001600160a01b038316612c1d5760405162461bcd60e51b815260206004820152602560248201527f45524332303a207472616e736665722066726f6d20746865207a65726f20616460448201527f64726573730000000000000000000000000000000000000000000000000000006064820152608401610f5f565b6001600160a01b038216612c995760405162461bcd60e51b815260206004820152602360248201527f45524332303a207472616e7366657220746f20746865207a65726f206164647260448201527f65737300000000000000000000000000000000000000000000000000000000006064820152608401610f5f565b60008111612d0f5760405162461bcd60e51b815260206004820152602960248201527f5472616e7366657220616d6f756e74206d75737420626520677265617465722060448201527f7468616e207a65726f00000000000000000000000000000000000000000000006064820152608401610f5f565b6000546001600160a01b03848116911614801590612d3b57506000546001600160a01b03838116911614155b8015612d5f57506001600160a01b038316600090815260208052604090205460ff16155b8015612d8357506001600160a01b038216600090815260208052604090205460ff16155b15612e0057602f54811115612e005760405162461bcd60e51b815260206004820152602860248201527f5472616e7366657220616d6f756e74206578636565647320746865206d61785460448201527f78416d6f756e742e0000000000000000000000000000000000000000000000006064820152608401610f5f565b6000546001600160a01b03848116911614801590612e2c57506000546001600160a01b03838116911614155b8015612e5157506001600160a01b03821660009081526021602052604090205460ff16155b8015612e6a5750602e546001600160a01b038481169116145b15612efa5760305481612e7c84611d03565b612e869190614d8c565b1115612efa5760405162461bcd60e51b815260206004820152603060248201527f5472616e7366657220616d6f756e74206d616b65732077616c6c657420686f6c60448201527f64206d6f7265207468616e206d61782e000000000000000000000000000000006064820152608401610f5f565b6000612f0530611d03565b9050602f548110612f155750602f545b60315481108015908190612f335750602e54600160a01b900460ff16155b8015612f4d5750602e546001600160a01b03868116911614155b8015612f625750602e54600160a81b900460ff165b15612f7a576031549150612f7582613358565b612fb6565b6002602b5460ff166002811115612f9357612f93614fad565b148015612fa95750602554600160a01b900460ff165b15612fb657612fb661344a565b6019546040516370a0823160e01b81523060048201526000916001600160a01b0316906370a082319060240160206040518083038186803b158015612ffa57600080fd5b505afa15801561300e573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906130329190614ba6565b6026549091508110801590819061305f57506000602b5460ff16600281111561305d5761305d614fad565b145b801561310357506003546040516370a0823160e01b81523060048201527f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316906370a082319060240160206040518083038186803b1580156130c857600080fd5b505afa1580156130dc573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906131009190614ba6565b10155b80156131185750602554600160a01b900460ff165b156131685761312760016136ad565b61312f613708565b60328190556040519081527f1add6009a43c617146a2bff417f8ed10a18b056872abcafe02f7d0cea175fc609060200160405180910390a15b6001600160a01b0387166000908152601f602052604090205460019060ff16806131aa57506001600160a01b0387166000908152601f602052604090205460ff165b156131b3575060005b6131bc8861382d565b6131c58761382d565b6131d18888888461389f565b5050505050505050565b60008060006131e8613c1f565b90925090506131f78183614da4565b9250505090565b60008060008060008060008060006132158a613da2565b8b815290925090506132256131db565b60808201526000808061323784613e58565b60208701516040880151606090980151939f50919d509b50959950949750929550929350505050919395979092949650565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b816032541461330a5760405162461bcd60e51b815260206004820152601760248201527f72657175657374496420646f65736e2774206d617463680000000000000000006044820152606401610f5f565b600481905561331960026136ad565b7f8954b4d6771943e184c537ec3af71baceb42e4d040b7073b7e7593504cb6d03f60045460405161334c91815260200190565b60405180910390a15050565b602e805460ff60a01b1916600160a01b1790554761337582613eef565b60006133818247614ec5565b905060006064601454836133959190614ea6565b61339f9190614da4565b90506133aa81614071565b6025546001600160a01b03166108fc6133c38385614ec5565b6040518115909202916000818181858888f193505050501580156133eb573d6000803e3d6000fd5b507fe311663738d04ec8dc2fd78be2177b3e0523ae76300ada1219ebb9bd60ca33dd84826134198186614ec5565b6040805193845260208401929092529082015260600160405180910390a15050602e805460ff60a01b191690555050565b61345460006136ad565b60016000613461826141e7565b90505b60275461347082611d03565b108061349457506001600160a01b03811660009081526023602052604090205460ff165b156134ca57816134a381614f49565b9250506134af826141e7565b905060288263ffffffff1611156134c5576134ca565b613464565b6019546040516370a0823160e01b81523060048201526000916001600160a01b0316906370a082319060240160206040518083038186803b15801561350e57600080fd5b505afa158015613522573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906135469190614ba6565b60195460405163a9059cbb60e01b81526001600160a01b0385811660048301526024820184905292935091169063a9059cbb90604401602060405180830381600087803b15801561359657600080fd5b505af11580156135aa573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906135ce9190614b4e565b50602a80549060006135df83614f2e565b90915550506040805180820182526001600160a01b038481168083526020808401868152602a54600090815260288352868120955186546001600160a01b03191695169490941785555160019094019390935581526029909152908120805483929061364c908490614d8c565b9250508190555080602c60008282546136659190614d8c565b90915550506040518181526001600160a01b038316907f8cbbe5cd65720098fc8ce6e99a5deb232085117dd486475b49cb11604b528f309060200160405180910390a2505050565b602b805482919060ff191660018360028111156136cc576136cc614fad565b0217905550602b546040517f1e046fdd2110d82ed3fa7652b41ced17c49cbb9ee4536e65f51ad2a6ed5359a791611edc9160ff90911690614cc8565b6003546040516370a0823160e01b8152306004820152600091906001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016906370a082319060240160206040518083038186803b15801561376e57600080fd5b505afa158015613782573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906137a69190614ba6565b101561381a5760405162461bcd60e51b815260206004820152602b60248201527f4e6f7420656e6f756768204c494e4b202d2066696c6c20636f6e74726163742060448201527f77697468206661756365740000000000000000000000000000000000000000006064820152608401610f5f565b613828600254600354614257565b905090565b6001600160a01b03811660009081526007602052604090205460ff166129eb576001600160a01b0381166000818152600760209081526040808320805460ff191660011790556005805484526006909252822080546001600160a01b0319169093179092558154919061224783614f2e565b601b5460ff1615613aa2576001600160a01b0384166000908152601a602052604090205460ff16806138e957506001600160a01b0383166000908152601a602052604090205460ff165b156139365760405162461bcd60e51b815260206004820152601060248201527f536e697065722072656a65637465642e000000000000000000000000000000006044820152606401610f5f565b601b54610100900460ff166139e45761394f84846143e9565b601b54610100900460ff1615801561396c575061396c84846144eb565b156139df5760405162461bcd60e51b815260206004820152602560248201527f4f6e6c79206f776e65722063616e207472616e7366657220617420746869732060448201527f74696d652e0000000000000000000000000000000000000000000000000000006064820152608401610f5f565b613aa2565b6000601c54118015613a035750602e546001600160a01b038581169116145b8015613a145750613a1484846144eb565b15613aa257601e54601c54613a299043614ec5565b1015613aa2576001600160a01b0383166000908152601a60205260408120805460ff19166001179055601d805491613a6083614f2e565b90915550506040516001600160a01b03841681527f18e6e5ce5c121466e41a954e72765d1ea02b8e6919043b61f0dab08b4c6572e59060200160405180910390a15b80613aaf57613aaf61455e565b6001600160a01b03841660009081526022602052604090205460ff168015613af057506001600160a01b03831660009081526022602052604090205460ff16155b15613b0557613b008484846145a3565b613c03565b6001600160a01b03841660009081526022602052604090205460ff16158015613b4657506001600160a01b03831660009081526022602052604090205460ff165b15613b5657613b008484846146e4565b6001600160a01b03841660009081526022602052604090205460ff16158015613b9857506001600160a01b03831660009081526022602052604090205460ff16155b15613ba857613b0084848461479e565b6001600160a01b03841660009081526022602052604090205460ff168015613be857506001600160a01b03831660009081526022602052604090205460ff165b15613bf857613b008484846147f1565b613c0384848461479e565b8061206857612068600f54600e55601154601055601354601255565b6016546015546000918291825b602454811015613d7157826008600060248481548110613c4e57613c4e614fd9565b60009182526020808320909101546001600160a01b031683528201929092526040019020541180613cb95750816009600060248481548110613c9257613c92614fd9565b60009182526020808320909101546001600160a01b03168352820192909252604001902054115b15613ccf57601654601554945094505050509091565b6008600060248381548110613ce657613ce6614fd9565b60009182526020808320909101546001600160a01b03168352820192909252604001902054613d159084614ec5565b92506009600060248381548110613d2e57613d2e614fd9565b60009182526020808320909101546001600160a01b03168352820192909252604001902054613d5d9083614ec5565b915080613d6981614f2e565b915050613c2c565b50601554601654613d829190614da4565b821015613d99576016546015549350935050509091565b90939092509050565b6000613dd66040518060a0016040528060008152602001600081526020016000815260200160008152602001600081525090565b6000613de184614874565b90506000613dee85614890565b90506000613dfb866148a2565b905060008183613e0b868a614ec5565b613e159190614ec5565b613e1f9190614ec5565b9050806040518060a001604052806000815260200186815260200185815260200184815260200160008152509550955050505050915091565b60008060008084608001518560000151613e729190614ea6565b9050600085608001518660200151613e8a9190614ea6565b9050600086608001518760400151613ea29190614ea6565b9050600087608001518860600151613eba9190614ea6565b905060008183613eca8688614ec5565b613ed49190614ec5565b613ede9190614ec5565b949994985092965092945050505050565b6040805160028082526060820183526000926020830190803683370190505090503081600081518110613f2457613f24614fd9565b6001600160a01b03928316602091820292909201810191909152602d54604080516315ab88c960e31b81529051919093169263ad5c4648926004808301939192829003018186803b158015613f7857600080fd5b505afa158015613f8c573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190613fb091906149ce565b81600181518110613fc357613fc3614fd9565b6001600160a01b039283166020918202929092010152602d54613fe99130911684612a49565b602d546040517f791ac9470000000000000000000000000000000000000000000000000000000081526001600160a01b039091169063791ac9479061403b908590600090869030904290600401614d1e565b600060405180830381600087803b15801561405557600080fd5b505af1158015614069573d6000803e3d6000fd5b505050505050565b6040805160028082526060820183526000926020830190803683375050602d54604080516315ab88c960e31b815290519394506001600160a01b039091169263ad5c464892506004808301926020929190829003018186803b1580156140d657600080fd5b505afa1580156140ea573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061410e91906149ce565b8160008151811061412157614121614fd9565b6001600160a01b03928316602091820292909201015260185482519116908290600190811061415257614152614fd9565b6001600160a01b039283166020918202929092010152602d546040517fb6f9de9500000000000000000000000000000000000000000000000000000000815291169063b6f9de959084906141b190600090869030904290600401614cd6565b6000604051808303818588803b1580156141ca57600080fd5b505af11580156141de573d6000803e3d6000fd5b50505050505050565b6000600660006005546004548560405160200161421492919091825263ffffffff16602082015260400190565b6040516020818303038152906040528051906020012060001c6142379190614f6d565b81526020810191909152604001600020546001600160a01b031692915050565b60007f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316634000aea07f0000000000000000000000000000000000000000000000000000000000000000848660006040516020016142c7929190918252602082015260400190565b6040516020818303038152906040526040518463ffffffff1660e01b81526004016142f493929190614c97565b602060405180830381600087803b15801561430e57600080fd5b505af1158015614322573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906143469190614b4e565b50600083815260016020818152604080842054815180840189905280830186905230606082015260808082018390528351808303909101815260a090910190925281519183019190912093879052908290526143a191614d8c565b6000858152600160205260409020556143e18482604080516020808201949094528082019290925280518083038201815260609092019052805191012090565b949350505050565b601b54610100900460ff16156144675760405162461bcd60e51b815260206004820152602360248201527f4c697175696469747920616c726561647920616464656420616e64206d61726b60448201527f65642e00000000000000000000000000000000000000000000000000000000006064820152608401610f5f565b61447182826144eb565b15801561448b5750602e546001600160a01b038281169116145b156113695743601c55601b805461ff001916610100179055602e805460ff60a81b1916600160a81b1790556040517fb4714a39a761e558659d1f2765a38570c94673756118da2710f01aa062dd2ad89061334c9060011515815260200190565b600080546001600160a01b0384811691161480159061451857506000546001600160a01b03838116911614155b801561452f57506001600160a01b03821661dead14155b801561454357506001600160a01b03821615155b801561119157506001600160a01b0383163014159392505050565b600e5415801561456e5750601254155b801561457a5750601054155b1561458157565b600e8054600f5560108054601155601280546013556000928390559082905555565b60008060008060008060006145b7886131fe565b965096509650965096509650965087600960008c6001600160a01b03166001600160a01b03168152602001908152602001600020546145f69190614ec5565b6001600160a01b038b16600090815260096020908152604080832093909355600890522054614626908890614ec5565b6001600160a01b03808c1660009081526008602052604080822093909355908b1681522054614656908790614d8c565b6001600160a01b038a16600090815260086020526040902055614678826148b4565b614681816148b4565b61468b858461493f565b886001600160a01b03168a6001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef866040516146d091815260200190565b60405180910390a350505050505050505050565b60008060008060008060006146f8886131fe565b965096509650965096509650965086600860008c6001600160a01b03166001600160a01b03168152602001908152602001600020546147379190614ec5565b6001600160a01b03808c16600090815260086020908152604080832094909455918c1681526009909152205461476e908590614d8c565b6001600160a01b038a16600090815260096020908152604080832093909355600890522054614656908790614d8c565b60008060008060008060006147b2886131fe565b965096509650965096509650965086600860008c6001600160a01b03166001600160a01b03168152602001908152602001600020546146269190614ec5565b6000806000806000806000614805886131fe565b965096509650965096509650965087600960008c6001600160a01b03166001600160a01b03168152602001908152602001600020546148449190614ec5565b6001600160a01b038b16600090815260096020908152604080832093909355600890522054614737908890614ec5565b60006064600e54836148869190614ea6565b610f9a9190614da4565b60006064601254836148869190614ea6565b60006064601054836148869190614ea6565b60006148be6131db565b905060006148cc8284614ea6565b306000908152600860205260409020549091506148ea908290614d8c565b3060009081526008602090815260408083209390935560229052205460ff161561493a5730600090815260096020526040902054614929908490614d8c565b306000908152600960205260409020555b505050565b8160165461494d9190614ec5565b60165560175461495e908290614d8c565b6017555050565b60008083601f84011261497757600080fd5b50813567ffffffffffffffff81111561498f57600080fd5b6020830191508360208260051b85010111156149aa57600080fd5b9250929050565b6000602082840312156149c357600080fd5b813561119181614fef565b6000602082840312156149e057600080fd5b815161119181614fef565b600080604083850312156149fe57600080fd5b8235614a0981614fef565b91506020830135614a1981614fef565b809150509250929050565b600080600060608486031215614a3957600080fd5b8335614a4481614fef565b92506020840135614a5481614fef565b929592945050506040919091013590565b60008060408385031215614a7857600080fd5b8235614a8381614fef565b946020939093013593505050565b60008060408385031215614aa457600080fd5b8235614aaf81614fef565b9150602083013560ff81168114614a1957600080fd5b60008060008060408587031215614adb57600080fd5b843567ffffffffffffffff80821115614af357600080fd5b614aff88838901614965565b90965094506020870135915080821115614b1857600080fd5b50614b2587828801614965565b95989497509550505050565b600060208284031215614b4357600080fd5b813561119181615004565b600060208284031215614b6057600080fd5b815161119181615004565b60008060408385031215614b7e57600080fd5b50508035926020909101359150565b600060208284031215614b9f57600080fd5b5035919050565b600060208284031215614bb857600080fd5b5051919050565b60008060408385031215614bd257600080fd5b823591506020830135614a1981615004565b600081518084526020808501945080840160005b83811015614c1d5781516001600160a01b031687529582019590820190600101614bf8565b509495945050505050565b6000815180845260005b81811015614c4e57602081850181015186830182015201614c32565b81811115614c60576000602083870101525b50601f01601f19169290920160200192915050565b60038110614c9357634e487b7160e01b600052602160045260246000fd5b9052565b6001600160a01b0384168152826020820152606060408201526000614cbf6060830184614c28565b95945050505050565b60208101610f9a8284614c75565b848152608060208201526000614cef6080830186614be4565b6001600160a01b03949094166040830152506060015292915050565b6020815260006111916020830184614c28565b85815284602082015260a060408201526000614d3d60a0830186614be4565b6001600160a01b0394909416606083015250608001529392505050565b858152602081018590526040810184905260a08101614d7c6060830185614c75565b8260808301529695505050505050565b60008219821115614d9f57614d9f614f81565b500190565b600082614db357614db3614f97565b500490565b600181815b80851115614df3578160001904821115614dd957614dd9614f81565b80851615614de657918102915b93841c9390800290614dbd565b509250929050565b600061119160ff841683600082614e1457506001610f9a565b81614e2157506000610f9a565b8160018114614e375760028114614e4157614e5d565b6001915050610f9a565b60ff841115614e5257614e52614f81565b50506001821b610f9a565b5060208310610133831016604e8410600b8410161715614e80575081810a610f9a565b614e8a8383614db8565b8060001904821115614e9e57614e9e614f81565b029392505050565b6000816000190483118215151615614ec057614ec0614f81565b500290565b600082821015614ed757614ed7614f81565b500390565b600081614eeb57614eeb614f81565b506000190190565b600181811c90821680614f0757607f821691505b60208210811415614f2857634e487b7160e01b600052602260045260246000fd5b50919050565b6000600019821415614f4257614f42614f81565b5060010190565b600063ffffffff80831681811415614f6357614f63614f81565b6001019392505050565b600082614f7c57614f7c614f97565b500690565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052601260045260246000fd5b634e487b7160e01b600052602160045260246000fd5b634e487b7160e01b600052603160045260246000fd5b634e487b7160e01b600052603260045260246000fd5b6001600160a01b03811681146129eb57600080fd5b80151581146129eb57600080fdfe4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572a26469706673582212205f7cd0a13075ad90a7aff5db8c478be0a8d4bdedff7025f295477fddc0d3b99364736f6c634300080700330000000000000000000000007a250d5630b4cf539739df2c5dacb4c659f2488d000000000000000000000000dcf5c8273b57d0d227724dd2ac9a0ce010412d0f00000000000000000000000095ad61b0a150d79219dcf64e1e6cc01f0b64c4ce000000000000000000000000000000000000000000000000000000000000001200000000000000000000000000000000000000000000000000000000022e263a
Deployed Bytecode
0x6080604052600436106104f05760003560e01c80636c0a24eb11610294578063a8e01b281161015e578063d650b6f5116100d6578063ea49b7591161008a578063f14210a61161006f578063f14210a614610e29578063f2fde38b14610e49578063ff098f5c14610e6957600080fd5b8063ea49b75914610de9578063ec28438a14610e0957600080fd5b8063dd62ed3e116100bb578063dd62ed3e14610d6d578063e79d416014610db3578063ea2f0b3714610dc957600080fd5b8063d650b6f514610d2d578063db4cf1e014610d4d57600080fd5b8063bacc22421161012d578063c59d484711610112578063c59d484714610cc7578063ca290c2214610ced578063ceed9b5014610d0d57600080fd5b8063bacc224214610c80578063c19d93fb14610ca057600080fd5b8063a8e01b2814610c0a578063a9059cbb14610c2a578063ac935b2d14610c4a578063b3ff277d14610c6a57600080fd5b80638bcaff501161020c5780639d044046116101c0578063a41157ac116101a5578063a41157ac14610b9d578063a457c2d714610bca578063a8bc8ec314610bea57600080fd5b80639d04404614610b5d5780639e281a9814610b7d57600080fd5b80638edd14e1116101f15780638edd14e114610b1257806394985ddd14610b2857806395d89b4114610b4857600080fd5b80638bcaff5014610ade5780638da5cb5b14610af457600080fd5b80637d1db4a511610263578063896e629e11610248578063896e629e14610a915780638b6f6e0814610aa75780638b7bcc8614610ac857600080fd5b80637d1db4a514610a4257806388f8202014610a5857600080fd5b80636c0a24eb146109d7578063704d0b68146109ed57806370a0823114610a0d578063715018a614610a2d57600080fd5b80633b124fe7116103d557806350a8e0161161034d5780635b700d9111610301578063658ca87c116102e6578063658ca87c146109765780636787d184146109975780636979fd67146109b757600080fd5b80635b700d91146107da578063658c27a91461093e57600080fd5b80635342acb4116103325780635342acb4146108cf578063574dfe9f14610908578063595d82b11461091e57600080fd5b806350a8e0161461089057806352390c02146108af57600080fd5b806341cb87fc116103a4578063437823ec11610389578063437823ec146108305780634549b0391461085057806349bd5a5e1461087057600080fd5b806341cb87fc146107fa57806342619f661461081a57600080fd5b80633b124fe7146107845780633bd5d1731461079a5780633e1892c1146107ba5780633f33e909146107da57600080fd5b806318621fe5116104685780632d838119116104375780633685d4191161041c5780633685d4191461072457806339248ec914610744578063395093511461076457600080fd5b80632d838119146106e2578063313ce5671461070257600080fd5b806318621fe51461066c57806323b872dd1461068c578063248db8df146106ac578063250bb3b9146106c257600080fd5b8063095ea7b3116104bf5780631694505e116104a45780631694505e1461062157806317fc654c1461064157806318160ddd1461065757600080fd5b8063095ea7b3146105d257806313114a9d1461060257600080fd5b806301f94617146104fc57806303fd2a451461056057806306fdde031461058e57806307eb38c0146105b057600080fd5b366104f757005b600080fd5b34801561050857600080fd5b5061053c610517366004614b8d565b602860205260009081526040902080546001909101546001600160a01b039091169082565b604080516001600160a01b0390931683526020830191909152015b60405180910390f35b34801561056c57600080fd5b5061057661dead81565b6040516001600160a01b039091168152602001610557565b34801561059a57600080fd5b506105a3610e89565b6040516105579190614d0b565b3480156105bc57600080fd5b506105d06105cb366004614b8d565b610f1b565b005b3480156105de57600080fd5b506105f26105ed366004614a65565b610f89565b6040519015158152602001610557565b34801561060e57600080fd5b506017545b604051908152602001610557565b34801561062d57600080fd5b50602d54610576906001600160a01b031681565b34801561064d57600080fd5b5061061360275481565b34801561066357600080fd5b50601554610613565b34801561067857600080fd5b506105d06106873660046149b1565b610fa0565b34801561069857600080fd5b506105f26106a7366004614a24565b611008565b3480156106b857600080fd5b5061061360145481565b3480156106ce57600080fd5b506105d06106dd366004614a91565b61105a565b3480156106ee57600080fd5b506106136106fd366004614b8d565b611101565b34801561070e57600080fd5b50600d5460405160ff9091168152602001610557565b34801561073057600080fd5b506105d061073f3660046149b1565b611198565b34801561075057600080fd5b506105d061075f3660046149b1565b61136d565b34801561077057600080fd5b506105f261077f366004614a65565b611469565b34801561079057600080fd5b50610613600e5481565b3480156107a657600080fd5b506105d06107b5366004614b8d565b6114a0565b3480156107c657600080fd5b506105d06107d53660046149b1565b61159f565b3480156107e657600080fd5b506105d06107f53660046149b1565b61169a565b34801561080657600080fd5b506105d06108153660046149b1565b611706565b34801561082657600080fd5b5061061360045481565b34801561083c57600080fd5b506105d061084b3660046149b1565b611940565b34801561085c57600080fd5b5061061361086b366004614bbf565b6119ac565b34801561087c57600080fd5b50602e54610576906001600160a01b031681565b34801561089c57600080fd5b50601b546105f290610100900460ff1681565b3480156108bb57600080fd5b506105d06108ca3660046149b1565b611a3b565b3480156108db57600080fd5b506105f26108ea3660046149b1565b6001600160a01b03166000908152601f602052604090205460ff1690565b34801561091457600080fd5b5061061360125481565b34801561092a57600080fd5b506105d0610939366004614b8d565b611bac565b34801561094a57600080fd5b506105f26109593660046149b1565b6001600160a01b0316600090815260208052604090205460ff1690565b34801561098257600080fd5b506025546105f290600160a01b900460ff1681565b3480156109a357600080fd5b506105d06109b2366004614b8d565b611bf9565b3480156109c357600080fd5b506105d06109d2366004614b8d565b611c46565b3480156109e357600080fd5b5061061360305481565b3480156109f957600080fd5b506105d0610a08366004614b8d565b611cb6565b348015610a1957600080fd5b50610613610a283660046149b1565b611d03565b348015610a3957600080fd5b506105d0611d62565b348015610a4e57600080fd5b50610613602f5481565b348015610a6457600080fd5b506105f2610a733660046149b1565b6001600160a01b031660009081526022602052604090205460ff1690565b348015610a9d57600080fd5b5061061360265481565b348015610ab357600080fd5b50602e546105f290600160a81b900460ff1681565b348015610ad457600080fd5b50610613602a5481565b348015610aea57600080fd5b5061061360315481565b348015610b0057600080fd5b506000546001600160a01b0316610576565b348015610b1e57600080fd5b5061061360105481565b348015610b3457600080fd5b506105d0610b43366004614b6b565b611db6565b348015610b5457600080fd5b506105a3611e38565b348015610b6957600080fd5b506105d0610b78366004614b31565b611e47565b348015610b8957600080fd5b506105d0610b98366004614a65565b611ee7565b348015610ba957600080fd5b50610613610bb83660046149b1565b60296020526000908152604090205481565b348015610bd657600080fd5b506105f2610be5366004614a65565b61206e565b348015610bf657600080fd5b50601854610576906001600160a01b031681565b348015610c1657600080fd5b506105d0610c253660046149b1565b6120a5565b348015610c3657600080fd5b506105f2610c45366004614a65565b61210f565b348015610c5657600080fd5b506105d0610c65366004614b8d565b61211c565b348015610c7657600080fd5b50610613602c5481565b348015610c8c57600080fd5b506105d0610c9b3660046149b1565b612169565b348015610cac57600080fd5b50602b54610cba9060ff1681565b6040516105579190614cc8565b348015610cd357600080fd5b50610cdc61224f565b604051610557959493929190614d5a565b348015610cf957600080fd5b506105d0610d08366004614b31565b6122f7565b348015610d1957600080fd5b506105d0610d283660046149b1565b61238c565b348015610d3957600080fd5b506105f2610d48366004614ac5565b612493565b348015610d5957600080fd5b506105d0610d683660046149b1565b612703565b348015610d7957600080fd5b50610613610d883660046149eb565b6001600160a01b039182166000908152600a6020908152604080832093909416825291909152205490565b348015610dbf57600080fd5b50610613601d5481565b348015610dd557600080fd5b506105d0610de43660046149b1565b61276e565b348015610df557600080fd5b506105d0610e04366004614b8d565b6127d7565b348015610e1557600080fd5b506105d0610e24366004614b8d565b612840565b348015610e3557600080fd5b506105d0610e44366004614b8d565b6128a9565b348015610e5557600080fd5b506105d0610e643660046149b1565b61291e565b348015610e7557600080fd5b506105d0610e84366004614b31565b6129ee565b6060600b8054610e9890614ef3565b80601f0160208091040260200160405190810160405280929190818152602001828054610ec490614ef3565b8015610f115780601f10610ee657610100808354040283529160200191610f11565b820191906000526020600020905b815481529060010190602001808311610ef457829003601f168201915b5050505050905090565b6000546001600160a01b03163314610f685760405162461bcd60e51b8152602060048201819052602482015260008051602061501383398151915260448201526064015b60405180910390fd5b600d54610f799060ff16600a614dfb565b610f839082614ea6565b60275550565b6000610f96338484612a49565b5060015b92915050565b6000546001600160a01b03163314610fe85760405162461bcd60e51b815260206004820181905260248201526000805160206150138339815191526044820152606401610f5f565b6001600160a01b031660009081526020805260409020805460ff19169055565b6000611015848484612ba1565b6001600160a01b0384166000908152600a602090815260408083203380855292529091205461105091869161104b908690614ec5565b612a49565b5060019392505050565b6000546001600160a01b031633146110a25760405162461bcd60e51b815260206004820181905260248201526000805160206150138339815191526044820152606401610f5f565b601880546001600160a01b039093166001600160a01b031993841681179091556019805460ff909316600160a01b029093167fffffffffffffffffffffff00000000000000000000000000000000000000000090921691909117179055565b600060165482111561117b5760405162461bcd60e51b815260206004820152602a60248201527f416d6f756e74206d757374206265206c657373207468616e20746f74616c207260448201527f65666c656374696f6e73000000000000000000000000000000000000000000006064820152608401610f5f565b60006111856131db565b90506111918184614da4565b9392505050565b6000546001600160a01b031633146111e05760405162461bcd60e51b815260206004820181905260248201526000805160206150138339815191526044820152606401610f5f565b6001600160a01b03811660009081526022602052604090205460ff166112485760405162461bcd60e51b815260206004820152601b60248201527f4163636f756e7420697320616c726561647920696e636c7564656400000000006044820152606401610f5f565b60005b60245481101561136957816001600160a01b03166024828154811061127257611272614fd9565b6000918252602090912001546001600160a01b03161415611357576024805461129d90600190614ec5565b815481106112ad576112ad614fd9565b600091825260209091200154602480546001600160a01b0390921691839081106112d9576112d9614fd9565b600091825260208083209190910180546001600160a01b0319166001600160a01b039485161790559184168152600982526040808220829055602290925220805460ff19169055602480548061133157611331614fc3565b600082815260209020810160001990810180546001600160a01b03191690550190555050565b8061136181614f2e565b91505061124b565b5050565b6000546001600160a01b031633146113b55760405162461bcd60e51b815260206004820181905260248201526000805160206150138339815191526044820152606401610f5f565b6001600160a01b03811660009081526023602052604090205460ff1615156001146114485760405162461bcd60e51b815260206004820152602660248201527f5573657220616c726561647920696e636c7564656420696e206c6f74746f207260448201527f65776172647300000000000000000000000000000000000000000000000000006064820152608401610f5f565b6001600160a01b03166000908152602360205260409020805460ff19169055565b336000818152600a602090815260408083206001600160a01b03871684529091528120549091610f9691859061104b908690614d8c565b3360008181526022602052604090205460ff16156115265760405162461bcd60e51b815260206004820152602c60248201527f4578636c75646564206164647265737365732063616e6e6f742063616c6c207460448201527f6869732066756e6374696f6e00000000000000000000000000000000000000006064820152608401610f5f565b6000611531836131fe565b505050506001600160a01b03851660009081526008602052604090205492935061155f928492509050614ec5565b6001600160a01b038316600090815260086020526040902055601654611586908290614ec5565b601655601754611597908490614d8c565b601755505050565b6000546001600160a01b031633146115e75760405162461bcd60e51b815260206004820181905260248201526000805160206150138339815191526044820152606401610f5f565b6001600160a01b03811660009081526023602052604090205460ff16156116765760405162461bcd60e51b815260206004820152602860248201527f5573657220616c7265616479206578636c756465642066726f6d206c6f74746f60448201527f20726577617264730000000000000000000000000000000000000000000000006064820152608401610f5f565b6001600160a01b03166000908152602360205260409020805460ff19166001179055565b6000546001600160a01b031633146116e25760405162461bcd60e51b815260206004820181905260248201526000805160206150138339815191526044820152606401610f5f565b6001600160a01b03166000908152602160205260409020805460ff19166001179055565b6000546001600160a01b0316331461174e5760405162461bcd60e51b815260206004820181905260248201526000805160206150138339815191526044820152606401610f5f565b6000819050806001600160a01b031663c45a01556040518163ffffffff1660e01b815260040160206040518083038186803b15801561178c57600080fd5b505afa1580156117a0573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906117c491906149ce565b6001600160a01b031663c9c6539630836001600160a01b031663ad5c46486040518163ffffffff1660e01b815260040160206040518083038186803b15801561180c57600080fd5b505afa158015611820573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061184491906149ce565b6040517fffffffff0000000000000000000000000000000000000000000000000000000060e085901b1681526001600160a01b03928316600482015291166024820152604401602060405180830381600087803b1580156118a457600080fd5b505af11580156118b8573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906118dc91906149ce565b602e80546001600160a01b039283166001600160a01b03199182168117909255602d80549484169490911693909317909255600091825260236020526040808320805460ff1990811660019081179092559490921683529091208054909216179055565b6000546001600160a01b031633146119885760405162461bcd60e51b815260206004820181905260248201526000805160206150138339815191526044820152606401610f5f565b6001600160a01b03166000908152601f60205260409020805460ff19166001179055565b6000601554831115611a005760405162461bcd60e51b815260206004820152601f60248201527f416d6f756e74206d757374206265206c657373207468616e20737570706c79006044820152606401610f5f565b81611a20576000611a10846131fe565b50949650610f9a95505050505050565b6000611a2b846131fe565b50939650610f9a95505050505050565b6000546001600160a01b03163314611a835760405162461bcd60e51b815260206004820181905260248201526000805160206150138339815191526044820152606401610f5f565b6001600160a01b03811660009081526022602052604090205460ff1615611aec5760405162461bcd60e51b815260206004820152601b60248201527f4163636f756e7420697320616c7265616479206578636c7564656400000000006044820152606401610f5f565b6001600160a01b03811660009081526008602052604090205415611b46576001600160a01b038116600090815260086020526040902054611b2c90611101565b6001600160a01b0382166000908152600960205260409020555b6001600160a01b03166000818152602260205260408120805460ff191660019081179091556024805491820181559091527f7cd332d19b93bcabe3cce7ca0c18a052f57e5fd03b4758a09f30f5ddc4b22ec40180546001600160a01b0319169091179055565b6000546001600160a01b03163314611bf45760405162461bcd60e51b815260206004820181905260248201526000805160206150138339815191526044820152606401610f5f565b601255565b6000546001600160a01b03163314611c415760405162461bcd60e51b815260206004820181905260248201526000805160206150138339815191526044820152606401610f5f565b601455565b6000546001600160a01b03163314611c8e5760405162461bcd60e51b815260206004820181905260248201526000805160206150138339815191526044820152606401610f5f565b601954611ca690600160a01b900460ff16600a614dfb565b611cb09082614ea6565b60265550565b6000546001600160a01b03163314611cfe5760405162461bcd60e51b815260206004820181905260248201526000805160206150138339815191526044820152606401610f5f565b600e55565b6001600160a01b03811660009081526022602052604081205460ff1615611d4057506001600160a01b031660009081526009602052604090205490565b6001600160a01b038216600090815260086020526040902054610f9a90611101565b6000546001600160a01b03163314611daa5760405162461bcd60e51b815260206004820181905260248201526000805160206150138339815191526044820152606401610f5f565b611db46000613269565b565b336001600160a01b037f000000000000000000000000f0d54349addcf704f77ae15b96510dea15cb79521614611e2e5760405162461bcd60e51b815260206004820152601f60248201527f4f6e6c7920565246436f6f7264696e61746f722063616e2066756c66696c6c006044820152606401610f5f565b61136982826132b9565b6060600c8054610e9890614ef3565b6000546001600160a01b03163314611e8f5760405162461bcd60e51b815260206004820181905260248201526000805160206150138339815191526044820152606401610f5f565b60258054821515600160a01b0260ff60a01b199091161790556040517fc09a8da45cf5ca5a0a768ea4bb86617a8feed2445e799276b725b5e7519b231790611edc90831515815260200190565b60405180910390a150565b6000546001600160a01b03163314611f2f5760405162461bcd60e51b815260206004820181905260248201526000805160206150138339815191526044820152606401610f5f565b6018546001600160a01b0383811691161415611f8d5760405162461bcd60e51b815260206004820152601b60248201527f43616e6e6f74207769746864726177204c6f747465727920706f7400000000006044820152606401610f5f565b6001600160a01b038216301415611fe65760405162461bcd60e51b815260206004820152601e60248201527f43616e6e6f7420776974686472617720706c6174666f726d20746f6b656e00006044820152606401610f5f565b60405163a9059cbb60e01b81523360048201526024810182905282906001600160a01b0382169063a9059cbb90604401602060405180830381600087803b15801561203057600080fd5b505af1158015612044573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906120689190614b4e565b50505050565b336000818152600a602090815260408083206001600160a01b03871684529091528120549091610f9691859061104b908690614ec5565b6000546001600160a01b031633146120ed5760405162461bcd60e51b815260206004820181905260248201526000805160206150138339815191526044820152606401610f5f565b602580546001600160a01b0319166001600160a01b0392909216919091179055565b6000610f96338484612ba1565b6000546001600160a01b031633146121645760405162461bcd60e51b815260206004820181905260248201526000805160206150138339815191526044820152606401610f5f565b601055565b6000546001600160a01b031633146121b15760405162461bcd60e51b815260206004820181905260248201526000805160206150138339815191526044820152606401610f5f565b6001600160a01b0381166000908152601a602052604090205460ff166122195760405162461bcd60e51b815260206004820181905260248201527f41646472657373206e6f7420636f6e73696465726564206120736e697065722e6044820152606401610f5f565b6001600160a01b0381166000908152601a60205260408120805460ff19169055601d80549161224783614edc565b919050555050565b6026546019546040516370a0823160e01b8152306004820152600092839283928392839290916001600160a01b03909116906370a082319060240160206040518083038186803b1580156122a257600080fd5b505afa1580156122b6573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906122da9190614ba6565b602a54602b54602c54939992985090965060ff1694509092509050565b6000546001600160a01b0316331461233f5760405162461bcd60e51b815260206004820181905260248201526000805160206150138339815191526044820152606401610f5f565b602e8054821515600160a81b0260ff60a81b199091161790556040517fb4714a39a761e558659d1f2765a38570c94673756118da2710f01aa062dd2ad890611edc90831515815260200190565b6000546001600160a01b031633146123d45760405162461bcd60e51b815260206004820181905260248201526000805160206150138339815191526044820152606401610f5f565b6001600160a01b0381166000908152601a602052604090205460ff16156124625760405162461bcd60e51b8152602060048201526024808201527f4164647265737320616c726561647920636f6e73696465726564206120736e6960448201527f7065722e000000000000000000000000000000000000000000000000000000006064820152608401610f5f565b6001600160a01b0381166000908152601a60205260408120805460ff19166001179055601d80549161224783614f2e565b600083821461250a5760405162461bcd60e51b815260206004820152603260248201527f4164647265737320617272617920616e642076616c756573206172726179206d60448201527f7573742062652073616d65206c656e67746800000000000000000000000000006064820152608401610f5f565b60005b848110156126f757600086868381811061252957612529614fd9565b905060200201602081019061253e91906149b1565b6001600160a01b031614156125955760405162461bcd60e51b815260206004820152600f60248201527f4164647265737320696e76616c696400000000000000000000000000000000006044820152606401610f5f565b60008484838181106125a9576125a9614fd9565b90506020020135116125fd5760405162461bcd60e51b815260206004820152600d60248201527f56616c756520696e76616c6964000000000000000000000000000000000000006044820152606401610f5f565b306323b872dd3388888581811061261657612616614fd9565b905060200201602081019061262b91906149b1565b87878681811061263d5761263d614fd9565b6040517fffffffff0000000000000000000000000000000000000000000000000000000060e088901b1681526001600160a01b03958616600482015294909316602485015250602090910201356044820152606401602060405180830381600087803b1580156126ac57600080fd5b505af11580156126c0573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906126e49190614b4e565b50806126ef81614f2e565b91505061250d565b50600195945050505050565b6000546001600160a01b0316331461274b5760405162461bcd60e51b815260206004820181905260248201526000805160206150138339815191526044820152606401610f5f565b6001600160a01b031660009081526020805260409020805460ff19166001179055565b6000546001600160a01b031633146127b65760405162461bcd60e51b815260206004820181905260248201526000805160206150138339815191526044820152606401610f5f565b6001600160a01b03166000908152601f60205260409020805460ff19169055565b6000546001600160a01b0316331461281f5760405162461bcd60e51b815260206004820181905260248201526000805160206150138339815191526044820152606401610f5f565b600d546128309060ff16600a614dfb565b61283a9082614ea6565b60315550565b6000546001600160a01b031633146128885760405162461bcd60e51b815260206004820181905260248201526000805160206150138339815191526044820152606401610f5f565b600d546128999060ff16600a614dfb565b6128a39082614ea6565b602f5550565b6000546001600160a01b031633146128f15760405162461bcd60e51b815260206004820181905260248201526000805160206150138339815191526044820152606401610f5f565b604051339082156108fc029083906000818181858888f19350505050158015611369573d6000803e3d6000fd5b6000546001600160a01b031633146129665760405162461bcd60e51b815260206004820181905260248201526000805160206150138339815191526044820152606401610f5f565b6001600160a01b0381166129e25760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201527f64647265737300000000000000000000000000000000000000000000000000006064820152608401610f5f565b6129eb81613269565b50565b6000546001600160a01b03163314612a365760405162461bcd60e51b815260206004820181905260248201526000805160206150138339815191526044820152606401610f5f565b601b805460ff1916911515919091179055565b6001600160a01b038316612ac45760405162461bcd60e51b8152602060048201526024808201527f45524332303a20617070726f76652066726f6d20746865207a65726f2061646460448201527f72657373000000000000000000000000000000000000000000000000000000006064820152608401610f5f565b6001600160a01b038216612b405760405162461bcd60e51b815260206004820152602260248201527f45524332303a20617070726f766520746f20746865207a65726f20616464726560448201527f73730000000000000000000000000000000000000000000000000000000000006064820152608401610f5f565b6001600160a01b038381166000818152600a602090815260408083209487168084529482529182902085905590518481527f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925910160405180910390a3505050565b6001600160a01b038316612c1d5760405162461bcd60e51b815260206004820152602560248201527f45524332303a207472616e736665722066726f6d20746865207a65726f20616460448201527f64726573730000000000000000000000000000000000000000000000000000006064820152608401610f5f565b6001600160a01b038216612c995760405162461bcd60e51b815260206004820152602360248201527f45524332303a207472616e7366657220746f20746865207a65726f206164647260448201527f65737300000000000000000000000000000000000000000000000000000000006064820152608401610f5f565b60008111612d0f5760405162461bcd60e51b815260206004820152602960248201527f5472616e7366657220616d6f756e74206d75737420626520677265617465722060448201527f7468616e207a65726f00000000000000000000000000000000000000000000006064820152608401610f5f565b6000546001600160a01b03848116911614801590612d3b57506000546001600160a01b03838116911614155b8015612d5f57506001600160a01b038316600090815260208052604090205460ff16155b8015612d8357506001600160a01b038216600090815260208052604090205460ff16155b15612e0057602f54811115612e005760405162461bcd60e51b815260206004820152602860248201527f5472616e7366657220616d6f756e74206578636565647320746865206d61785460448201527f78416d6f756e742e0000000000000000000000000000000000000000000000006064820152608401610f5f565b6000546001600160a01b03848116911614801590612e2c57506000546001600160a01b03838116911614155b8015612e5157506001600160a01b03821660009081526021602052604090205460ff16155b8015612e6a5750602e546001600160a01b038481169116145b15612efa5760305481612e7c84611d03565b612e869190614d8c565b1115612efa5760405162461bcd60e51b815260206004820152603060248201527f5472616e7366657220616d6f756e74206d616b65732077616c6c657420686f6c60448201527f64206d6f7265207468616e206d61782e000000000000000000000000000000006064820152608401610f5f565b6000612f0530611d03565b9050602f548110612f155750602f545b60315481108015908190612f335750602e54600160a01b900460ff16155b8015612f4d5750602e546001600160a01b03868116911614155b8015612f625750602e54600160a81b900460ff165b15612f7a576031549150612f7582613358565b612fb6565b6002602b5460ff166002811115612f9357612f93614fad565b148015612fa95750602554600160a01b900460ff165b15612fb657612fb661344a565b6019546040516370a0823160e01b81523060048201526000916001600160a01b0316906370a082319060240160206040518083038186803b158015612ffa57600080fd5b505afa15801561300e573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906130329190614ba6565b6026549091508110801590819061305f57506000602b5460ff16600281111561305d5761305d614fad565b145b801561310357506003546040516370a0823160e01b81523060048201527f000000000000000000000000514910771af9ca656af840dff83e8264ecf986ca6001600160a01b0316906370a082319060240160206040518083038186803b1580156130c857600080fd5b505afa1580156130dc573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906131009190614ba6565b10155b80156131185750602554600160a01b900460ff165b156131685761312760016136ad565b61312f613708565b60328190556040519081527f1add6009a43c617146a2bff417f8ed10a18b056872abcafe02f7d0cea175fc609060200160405180910390a15b6001600160a01b0387166000908152601f602052604090205460019060ff16806131aa57506001600160a01b0387166000908152601f602052604090205460ff165b156131b3575060005b6131bc8861382d565b6131c58761382d565b6131d18888888461389f565b5050505050505050565b60008060006131e8613c1f565b90925090506131f78183614da4565b9250505090565b60008060008060008060008060006132158a613da2565b8b815290925090506132256131db565b60808201526000808061323784613e58565b60208701516040880151606090980151939f50919d509b50959950949750929550929350505050919395979092949650565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b816032541461330a5760405162461bcd60e51b815260206004820152601760248201527f72657175657374496420646f65736e2774206d617463680000000000000000006044820152606401610f5f565b600481905561331960026136ad565b7f8954b4d6771943e184c537ec3af71baceb42e4d040b7073b7e7593504cb6d03f60045460405161334c91815260200190565b60405180910390a15050565b602e805460ff60a01b1916600160a01b1790554761337582613eef565b60006133818247614ec5565b905060006064601454836133959190614ea6565b61339f9190614da4565b90506133aa81614071565b6025546001600160a01b03166108fc6133c38385614ec5565b6040518115909202916000818181858888f193505050501580156133eb573d6000803e3d6000fd5b507fe311663738d04ec8dc2fd78be2177b3e0523ae76300ada1219ebb9bd60ca33dd84826134198186614ec5565b6040805193845260208401929092529082015260600160405180910390a15050602e805460ff60a01b191690555050565b61345460006136ad565b60016000613461826141e7565b90505b60275461347082611d03565b108061349457506001600160a01b03811660009081526023602052604090205460ff165b156134ca57816134a381614f49565b9250506134af826141e7565b905060288263ffffffff1611156134c5576134ca565b613464565b6019546040516370a0823160e01b81523060048201526000916001600160a01b0316906370a082319060240160206040518083038186803b15801561350e57600080fd5b505afa158015613522573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906135469190614ba6565b60195460405163a9059cbb60e01b81526001600160a01b0385811660048301526024820184905292935091169063a9059cbb90604401602060405180830381600087803b15801561359657600080fd5b505af11580156135aa573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906135ce9190614b4e565b50602a80549060006135df83614f2e565b90915550506040805180820182526001600160a01b038481168083526020808401868152602a54600090815260288352868120955186546001600160a01b03191695169490941785555160019094019390935581526029909152908120805483929061364c908490614d8c565b9250508190555080602c60008282546136659190614d8c565b90915550506040518181526001600160a01b038316907f8cbbe5cd65720098fc8ce6e99a5deb232085117dd486475b49cb11604b528f309060200160405180910390a2505050565b602b805482919060ff191660018360028111156136cc576136cc614fad565b0217905550602b546040517f1e046fdd2110d82ed3fa7652b41ced17c49cbb9ee4536e65f51ad2a6ed5359a791611edc9160ff90911690614cc8565b6003546040516370a0823160e01b8152306004820152600091906001600160a01b037f000000000000000000000000514910771af9ca656af840dff83e8264ecf986ca16906370a082319060240160206040518083038186803b15801561376e57600080fd5b505afa158015613782573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906137a69190614ba6565b101561381a5760405162461bcd60e51b815260206004820152602b60248201527f4e6f7420656e6f756768204c494e4b202d2066696c6c20636f6e74726163742060448201527f77697468206661756365740000000000000000000000000000000000000000006064820152608401610f5f565b613828600254600354614257565b905090565b6001600160a01b03811660009081526007602052604090205460ff166129eb576001600160a01b0381166000818152600760209081526040808320805460ff191660011790556005805484526006909252822080546001600160a01b0319169093179092558154919061224783614f2e565b601b5460ff1615613aa2576001600160a01b0384166000908152601a602052604090205460ff16806138e957506001600160a01b0383166000908152601a602052604090205460ff165b156139365760405162461bcd60e51b815260206004820152601060248201527f536e697065722072656a65637465642e000000000000000000000000000000006044820152606401610f5f565b601b54610100900460ff166139e45761394f84846143e9565b601b54610100900460ff1615801561396c575061396c84846144eb565b156139df5760405162461bcd60e51b815260206004820152602560248201527f4f6e6c79206f776e65722063616e207472616e7366657220617420746869732060448201527f74696d652e0000000000000000000000000000000000000000000000000000006064820152608401610f5f565b613aa2565b6000601c54118015613a035750602e546001600160a01b038581169116145b8015613a145750613a1484846144eb565b15613aa257601e54601c54613a299043614ec5565b1015613aa2576001600160a01b0383166000908152601a60205260408120805460ff19166001179055601d805491613a6083614f2e565b90915550506040516001600160a01b03841681527f18e6e5ce5c121466e41a954e72765d1ea02b8e6919043b61f0dab08b4c6572e59060200160405180910390a15b80613aaf57613aaf61455e565b6001600160a01b03841660009081526022602052604090205460ff168015613af057506001600160a01b03831660009081526022602052604090205460ff16155b15613b0557613b008484846145a3565b613c03565b6001600160a01b03841660009081526022602052604090205460ff16158015613b4657506001600160a01b03831660009081526022602052604090205460ff165b15613b5657613b008484846146e4565b6001600160a01b03841660009081526022602052604090205460ff16158015613b9857506001600160a01b03831660009081526022602052604090205460ff16155b15613ba857613b0084848461479e565b6001600160a01b03841660009081526022602052604090205460ff168015613be857506001600160a01b03831660009081526022602052604090205460ff165b15613bf857613b008484846147f1565b613c0384848461479e565b8061206857612068600f54600e55601154601055601354601255565b6016546015546000918291825b602454811015613d7157826008600060248481548110613c4e57613c4e614fd9565b60009182526020808320909101546001600160a01b031683528201929092526040019020541180613cb95750816009600060248481548110613c9257613c92614fd9565b60009182526020808320909101546001600160a01b03168352820192909252604001902054115b15613ccf57601654601554945094505050509091565b6008600060248381548110613ce657613ce6614fd9565b60009182526020808320909101546001600160a01b03168352820192909252604001902054613d159084614ec5565b92506009600060248381548110613d2e57613d2e614fd9565b60009182526020808320909101546001600160a01b03168352820192909252604001902054613d5d9083614ec5565b915080613d6981614f2e565b915050613c2c565b50601554601654613d829190614da4565b821015613d99576016546015549350935050509091565b90939092509050565b6000613dd66040518060a0016040528060008152602001600081526020016000815260200160008152602001600081525090565b6000613de184614874565b90506000613dee85614890565b90506000613dfb866148a2565b905060008183613e0b868a614ec5565b613e159190614ec5565b613e1f9190614ec5565b9050806040518060a001604052806000815260200186815260200185815260200184815260200160008152509550955050505050915091565b60008060008084608001518560000151613e729190614ea6565b9050600085608001518660200151613e8a9190614ea6565b9050600086608001518760400151613ea29190614ea6565b9050600087608001518860600151613eba9190614ea6565b905060008183613eca8688614ec5565b613ed49190614ec5565b613ede9190614ec5565b949994985092965092945050505050565b6040805160028082526060820183526000926020830190803683370190505090503081600081518110613f2457613f24614fd9565b6001600160a01b03928316602091820292909201810191909152602d54604080516315ab88c960e31b81529051919093169263ad5c4648926004808301939192829003018186803b158015613f7857600080fd5b505afa158015613f8c573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190613fb091906149ce565b81600181518110613fc357613fc3614fd9565b6001600160a01b039283166020918202929092010152602d54613fe99130911684612a49565b602d546040517f791ac9470000000000000000000000000000000000000000000000000000000081526001600160a01b039091169063791ac9479061403b908590600090869030904290600401614d1e565b600060405180830381600087803b15801561405557600080fd5b505af1158015614069573d6000803e3d6000fd5b505050505050565b6040805160028082526060820183526000926020830190803683375050602d54604080516315ab88c960e31b815290519394506001600160a01b039091169263ad5c464892506004808301926020929190829003018186803b1580156140d657600080fd5b505afa1580156140ea573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061410e91906149ce565b8160008151811061412157614121614fd9565b6001600160a01b03928316602091820292909201015260185482519116908290600190811061415257614152614fd9565b6001600160a01b039283166020918202929092010152602d546040517fb6f9de9500000000000000000000000000000000000000000000000000000000815291169063b6f9de959084906141b190600090869030904290600401614cd6565b6000604051808303818588803b1580156141ca57600080fd5b505af11580156141de573d6000803e3d6000fd5b50505050505050565b6000600660006005546004548560405160200161421492919091825263ffffffff16602082015260400190565b6040516020818303038152906040528051906020012060001c6142379190614f6d565b81526020810191909152604001600020546001600160a01b031692915050565b60007f000000000000000000000000514910771af9ca656af840dff83e8264ecf986ca6001600160a01b0316634000aea07f000000000000000000000000f0d54349addcf704f77ae15b96510dea15cb7952848660006040516020016142c7929190918252602082015260400190565b6040516020818303038152906040526040518463ffffffff1660e01b81526004016142f493929190614c97565b602060405180830381600087803b15801561430e57600080fd5b505af1158015614322573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906143469190614b4e565b50600083815260016020818152604080842054815180840189905280830186905230606082015260808082018390528351808303909101815260a090910190925281519183019190912093879052908290526143a191614d8c565b6000858152600160205260409020556143e18482604080516020808201949094528082019290925280518083038201815260609092019052805191012090565b949350505050565b601b54610100900460ff16156144675760405162461bcd60e51b815260206004820152602360248201527f4c697175696469747920616c726561647920616464656420616e64206d61726b60448201527f65642e00000000000000000000000000000000000000000000000000000000006064820152608401610f5f565b61447182826144eb565b15801561448b5750602e546001600160a01b038281169116145b156113695743601c55601b805461ff001916610100179055602e805460ff60a81b1916600160a81b1790556040517fb4714a39a761e558659d1f2765a38570c94673756118da2710f01aa062dd2ad89061334c9060011515815260200190565b600080546001600160a01b0384811691161480159061451857506000546001600160a01b03838116911614155b801561452f57506001600160a01b03821661dead14155b801561454357506001600160a01b03821615155b801561119157506001600160a01b0383163014159392505050565b600e5415801561456e5750601254155b801561457a5750601054155b1561458157565b600e8054600f5560108054601155601280546013556000928390559082905555565b60008060008060008060006145b7886131fe565b965096509650965096509650965087600960008c6001600160a01b03166001600160a01b03168152602001908152602001600020546145f69190614ec5565b6001600160a01b038b16600090815260096020908152604080832093909355600890522054614626908890614ec5565b6001600160a01b03808c1660009081526008602052604080822093909355908b1681522054614656908790614d8c565b6001600160a01b038a16600090815260086020526040902055614678826148b4565b614681816148b4565b61468b858461493f565b886001600160a01b03168a6001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef866040516146d091815260200190565b60405180910390a350505050505050505050565b60008060008060008060006146f8886131fe565b965096509650965096509650965086600860008c6001600160a01b03166001600160a01b03168152602001908152602001600020546147379190614ec5565b6001600160a01b03808c16600090815260086020908152604080832094909455918c1681526009909152205461476e908590614d8c565b6001600160a01b038a16600090815260096020908152604080832093909355600890522054614656908790614d8c565b60008060008060008060006147b2886131fe565b965096509650965096509650965086600860008c6001600160a01b03166001600160a01b03168152602001908152602001600020546146269190614ec5565b6000806000806000806000614805886131fe565b965096509650965096509650965087600960008c6001600160a01b03166001600160a01b03168152602001908152602001600020546148449190614ec5565b6001600160a01b038b16600090815260096020908152604080832093909355600890522054614737908890614ec5565b60006064600e54836148869190614ea6565b610f9a9190614da4565b60006064601254836148869190614ea6565b60006064601054836148869190614ea6565b60006148be6131db565b905060006148cc8284614ea6565b306000908152600860205260409020549091506148ea908290614d8c565b3060009081526008602090815260408083209390935560229052205460ff161561493a5730600090815260096020526040902054614929908490614d8c565b306000908152600960205260409020555b505050565b8160165461494d9190614ec5565b60165560175461495e908290614d8c565b6017555050565b60008083601f84011261497757600080fd5b50813567ffffffffffffffff81111561498f57600080fd5b6020830191508360208260051b85010111156149aa57600080fd5b9250929050565b6000602082840312156149c357600080fd5b813561119181614fef565b6000602082840312156149e057600080fd5b815161119181614fef565b600080604083850312156149fe57600080fd5b8235614a0981614fef565b91506020830135614a1981614fef565b809150509250929050565b600080600060608486031215614a3957600080fd5b8335614a4481614fef565b92506020840135614a5481614fef565b929592945050506040919091013590565b60008060408385031215614a7857600080fd5b8235614a8381614fef565b946020939093013593505050565b60008060408385031215614aa457600080fd5b8235614aaf81614fef565b9150602083013560ff81168114614a1957600080fd5b60008060008060408587031215614adb57600080fd5b843567ffffffffffffffff80821115614af357600080fd5b614aff88838901614965565b90965094506020870135915080821115614b1857600080fd5b50614b2587828801614965565b95989497509550505050565b600060208284031215614b4357600080fd5b813561119181615004565b600060208284031215614b6057600080fd5b815161119181615004565b60008060408385031215614b7e57600080fd5b50508035926020909101359150565b600060208284031215614b9f57600080fd5b5035919050565b600060208284031215614bb857600080fd5b5051919050565b60008060408385031215614bd257600080fd5b823591506020830135614a1981615004565b600081518084526020808501945080840160005b83811015614c1d5781516001600160a01b031687529582019590820190600101614bf8565b509495945050505050565b6000815180845260005b81811015614c4e57602081850181015186830182015201614c32565b81811115614c60576000602083870101525b50601f01601f19169290920160200192915050565b60038110614c9357634e487b7160e01b600052602160045260246000fd5b9052565b6001600160a01b0384168152826020820152606060408201526000614cbf6060830184614c28565b95945050505050565b60208101610f9a8284614c75565b848152608060208201526000614cef6080830186614be4565b6001600160a01b03949094166040830152506060015292915050565b6020815260006111916020830184614c28565b85815284602082015260a060408201526000614d3d60a0830186614be4565b6001600160a01b0394909416606083015250608001529392505050565b858152602081018590526040810184905260a08101614d7c6060830185614c75565b8260808301529695505050505050565b60008219821115614d9f57614d9f614f81565b500190565b600082614db357614db3614f97565b500490565b600181815b80851115614df3578160001904821115614dd957614dd9614f81565b80851615614de657918102915b93841c9390800290614dbd565b509250929050565b600061119160ff841683600082614e1457506001610f9a565b81614e2157506000610f9a565b8160018114614e375760028114614e4157614e5d565b6001915050610f9a565b60ff841115614e5257614e52614f81565b50506001821b610f9a565b5060208310610133831016604e8410600b8410161715614e80575081810a610f9a565b614e8a8383614db8565b8060001904821115614e9e57614e9e614f81565b029392505050565b6000816000190483118215151615614ec057614ec0614f81565b500290565b600082821015614ed757614ed7614f81565b500390565b600081614eeb57614eeb614f81565b506000190190565b600181811c90821680614f0757607f821691505b60208210811415614f2857634e487b7160e01b600052602260045260246000fd5b50919050565b6000600019821415614f4257614f42614f81565b5060010190565b600063ffffffff80831681811415614f6357614f63614f81565b6001019392505050565b600082614f7c57614f7c614f97565b500690565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052601260045260246000fd5b634e487b7160e01b600052602160045260246000fd5b634e487b7160e01b600052603160045260246000fd5b634e487b7160e01b600052603260045260246000fd5b6001600160a01b03811681146129eb57600080fd5b80151581146129eb57600080fdfe4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572a26469706673582212205f7cd0a13075ad90a7aff5db8c478be0a8d4bdedff7025f295477fddc0d3b99364736f6c63430008070033
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
0000000000000000000000007a250d5630b4cf539739df2c5dacb4c659f2488d000000000000000000000000dcf5c8273b57d0d227724dd2ac9a0ce010412d0f00000000000000000000000095ad61b0a150d79219dcf64e1e6cc01f0b64c4ce000000000000000000000000000000000000000000000000000000000000001200000000000000000000000000000000000000000000000000000000022e263a
-----Decoded View---------------
Arg [0] : router (address): 0x7a250d5630B4cF539739dF2C5dAcb4c659F2488D
Arg [1] : ecosystemWallet (address): 0xdcf5C8273b57D0d227724DD2aC9A0ce010412d0f
Arg [2] : jackpotTokenAddress_IN (address): 0x95aD61b0a150d79219dCF64E1E6Cc01f0B64C4cE
Arg [3] : jackpotTokenDecimals_IN (uint8): 18
Arg [4] : lottoJackpotAmount_IN (uint256): 36578874
-----Encoded View---------------
5 Constructor Arguments found :
Arg [0] : 0000000000000000000000007a250d5630b4cf539739df2c5dacb4c659f2488d
Arg [1] : 000000000000000000000000dcf5c8273b57d0d227724dd2ac9a0ce010412d0f
Arg [2] : 00000000000000000000000095ad61b0a150d79219dcf64e1e6cc01f0b64c4ce
Arg [3] : 0000000000000000000000000000000000000000000000000000000000000012
Arg [4] : 00000000000000000000000000000000000000000000000000000000022e263a
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.