ERC-20
DEX
Overview
Max Total Supply
1,000,000,000 TOAD
Holders
2,027 ( 0.049%)
Market
Price
$0.00 @ 0.000000 ETH (+1.14%)
Onchain Market Cap
$379,820.00
Circulating Supply Market Cap
$0.00
Other Info
Token Contract (WITH 9 Decimals)
Balance
0.000000001 TOADValue
$0.00 ( ~0 Eth) [0.0000%]Loading...
Loading
Loading...
Loading
Loading...
Loading
# | Exchange | Pair | Price | 24H Volume | % Volume |
---|
Contract Name:
LuckyToadv3
Compiler Version
v0.8.15+commit.e14f2714
Optimization Enabled:
Yes with 200 runs
Other Settings:
default evmVersion
Contract Source Code (Solidity Standard Json-Input format)
/** * This is a tax demo token, to show off a new idea mainly */ //SPDX-License-Identifier: UNLICENSED pragma solidity ^0.8.15; import "@openzeppelin/contracts/utils/Address.sol"; import "@openzeppelin/contracts/utils/Context.sol"; import "@openzeppelin/contracts/interfaces/IERC20.sol"; import "@openzeppelin/contracts/utils/math/SafeMath.sol"; import "@openzeppelin/contracts/access/Ownable.sol"; import "@uniswap/v2-periphery/contracts/interfaces/IUniswapV2Router02.sol"; import "@uniswap/v2-core/contracts/interfaces/IUniswapV2Factory.sol"; import "@uniswap/v2-core/contracts/interfaces/IUniswapV2Pair.sol"; import "@uniswap/v2-periphery/contracts/interfaces/IWETH.sol"; import "@openzeppelin/contracts/utils/math/SafeMath.sol"; import "./LuckyJackpots.sol"; // Seriously if you audit this and ping it for "no safemath used" you're gonna out yourself as an idiot // SafeMath is by default included in solidity 0.8, I've only included it for the transferFrom contract LuckyToadv3 is Context, IERC20, Ownable { event Bought(address indexed buyer, uint256 amount); event Sold(address indexed seller, uint256 amount); using SafeMath for uint256; // Constants string private constant _name = "LuckyToadv3"; string private constant _symbol = "TOAD"; // 0, 1, 2 uint8 private constant _bl = 2; // Standard decimals uint8 private constant _decimals = 9; // 1 quad uint256 private constant totalTokens = 1000000000 * 10**9; // USDC address private constant _usdc = 0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48; // Mappings mapping(address => uint256) private tokensOwned; mapping(address => mapping(address => uint256)) private _allowances; struct mappingStructs { bool _isExcludedFromFee; bool _bots; uint32 _lastTxBlock; uint32 botBlock; bool isLPPair; } mapping(address => mappingStructs) mappedAddresses; mapping(address => uint256) private botBalance; mapping(address => uint256) private airdropTokens; // Arrays address[] private airdropPrivateList; address[] private holders; address[] private jackpotExclusions; // Global variables // Block of 256 bits address payable private _feeAddrWallet1; uint32 private openBlock; uint32 private pair1Pct = 50; uint32 private transferTax = 0; // Storage block closed // Block of 256 bits address payable private _feeAddrWallet2; // Tax distribution ratios uint32 private devRatio = 3000; uint32 private marketingRatio = 3000; // Another tax disti ratio uint32 private creatorRatio = 2000; // Storage block closed // Block of 256 bits address payable private _feeAddrWallet3; uint32 private pair2Pct = 50; uint32 private buyTax = 8000; uint32 private sellTax = 8000; // Storage block closed // Block of 256 bits address private _controller; uint32 private maxTxDivisor = 1; uint32 private maxWalletDivisor = 1; bool private tradingOpen; bool private inSwap = false; bool private swapEnabled = false; bool private cooldownEnabled = false; // Storage block closed // Block of 256 bits address payable private _LTJackpotCA; uint32 ethSendThresholdDivisor = 1000; bool disableAddToBlocklist = false; bool removedLimits = false; // 48 bits left IUniswapV2Router02 private uniswapV2Router; modifier onlyERC20Controller() { require( _msgSender() == _controller, "TokenClawback: caller is not the ERC20 controller." ); _; } modifier onlyDev() { require( _msgSender() == _feeAddrWallet2, "LT: Only developer can set this." ); _; } constructor() { // ERC20 controller _controller = payable(0x4Cdd1d9EaF9Ff87ED8235Bb5190c92EA4454D435); // Marketing _feeAddrWallet1 = payable(0xA1588d0b520d634092bB1a13358c4522bDd6b888); // Developer _feeAddrWallet2 = payable(0x4Cdd1d9EaF9Ff87ED8235Bb5190c92EA4454D435); // Creator _feeAddrWallet3 = payable(0x9c9F6c443A67a322e2682b82e720dee187F16263); tokensOwned[_msgSender()] = totalTokens; // Create the Jackpot CA - set the bot address LuckyJackpots jpca = new LuckyJackpots(_msgSender()); // Change owner to the msgSender jpca.transferOwnership(_msgSender()); // Stash the address so we can send eth to it _LTJackpotCA = payable(address(jpca)); // Set the struct values // Push all these accounts to excluded jackpotExclusions.push(_msgSender()); jackpotExclusions.push(_LTJackpotCA); jackpotExclusions.push(address(this)); jackpotExclusions.push(_feeAddrWallet1); jackpotExclusions.push(_feeAddrWallet2); jackpotExclusions.push(_feeAddrWallet3); mappedAddresses[_msgSender()] = mappingStructs({ _isExcludedFromFee: true, _bots: false, _lastTxBlock: 0, botBlock: 0, isLPPair: false }); mappedAddresses[_LTJackpotCA] = mappingStructs({ _isExcludedFromFee: true, _bots: false, _lastTxBlock: 0, botBlock: 0, isLPPair: false }); mappedAddresses[address(this)] = mappingStructs({ _isExcludedFromFee: true, _bots: false, _lastTxBlock: 0, botBlock: 0, isLPPair: false }); mappedAddresses[_feeAddrWallet1] = mappingStructs({ _isExcludedFromFee: true, _bots: false, _lastTxBlock: 0, botBlock: 0, isLPPair: false }); mappedAddresses[_feeAddrWallet2] = mappingStructs({ _isExcludedFromFee: true, _bots: false, _lastTxBlock: 0, botBlock: 0, isLPPair: false }); mappedAddresses[_feeAddrWallet3] = mappingStructs({ _isExcludedFromFee: true, _bots: false, _lastTxBlock: 0, botBlock: 0, isLPPair: false }); emit Transfer(address(0), _msgSender(), totalTokens); } function name() public pure returns (string memory) { return _name; } function symbol() public pure returns (string memory) { return _symbol; } function decimals() public pure returns (uint8) { return _decimals; } function totalSupply() public pure override returns (uint256) { return totalTokens; } function balanceOf(address account) public view override returns (uint256) { return abBalance(account); } function transfer(address recipient, uint256 amount) public override returns (bool) { _transfer(_msgSender(), recipient, amount); return true; } function allowance(address owner, address spender) public view override returns (uint256) { return _allowances[owner][spender]; } function approve(address spender, uint256 amount) public override returns (bool) { _approve(_msgSender(), spender, amount); return true; } function transferFrom( address sender, address recipient, uint256 amount ) public override returns (bool) { _transfer(sender, recipient, amount); _approve( sender, _msgSender(), _allowances[sender][_msgSender()].sub( amount, "ERC20: transfer amount exceeds allowance" ) ); return true; } /// @notice Sets cooldown status. Only callable by owner. /// @param onoff The boolean to set. function setCooldownEnabled(bool onoff) external onlyOwner { cooldownEnabled = onoff; } /// @notice Starts trading. Only callable by owner. function openTrading() public onlyOwner { require(!tradingOpen, "trading is already open"); IUniswapV2Router02 _uniswapV2Router = IUniswapV2Router02( 0x7a250d5630B4cF539739dF2C5dAcb4c659F2488D ); uniswapV2Router = _uniswapV2Router; _approve(address(this), address(uniswapV2Router), totalTokens); address uniswapV2Pair = IUniswapV2Factory(_uniswapV2Router.factory()) .createPair(address(this), _uniswapV2Router.WETH()); // Create a USDC pair - this is to provide a second pool to process taxes through address uniswapV2Pair2 = IUniswapV2Factory(_uniswapV2Router.factory()) .createPair( address(this), _usdc ); // Add Pair1Pct of the eth and LP to the first (ETH) pair uint256 pair1TAmt = (balanceOf(address(this)) * pair1Pct) / 100; uint256 pair2TAmt = (balanceOf(address(this)) * pair2Pct) / 100; uint256 pair1EAmt = (address(this).balance * pair1Pct) / 100; uint256 pair2EAmt = (address(this).balance * pair2Pct) / 100; uniswapV2Router.addLiquidityETH{value: pair1EAmt}( address(this), pair1TAmt, 0, 0, owner(), block.timestamp ); // Swap the pair2Pct eth amount for USDC address[] memory path = new address[](2); path[0] = uniswapV2Router.WETH(); path[1] = _usdc; uniswapV2Router.swapExactETHForTokens{value: pair2EAmt}( 0, path, address(this), block.timestamp ); // Approve the USDC spend IERC20 usdc = IERC20(_usdc); // Actually get our balance uint256 pair2UAmt = usdc.balanceOf(address(this)); usdc.approve(address(uniswapV2Router), pair2UAmt); // Create a token/usdc pool uniswapV2Router.addLiquidity( _usdc, address(this), pair2UAmt, pair2TAmt, 0, 0, owner(), block.timestamp ); swapEnabled = true; cooldownEnabled = true; // no max tx maxTxDivisor = 1; // no max wallet maxWalletDivisor = 1; tradingOpen = true; openBlock = uint32(block.number); IERC20(uniswapV2Pair).approve( address(uniswapV2Router), type(uint256).max ); IERC20(uniswapV2Pair2).approve( address(uniswapV2Router), type(uint256).max ); // Add the pairs to the list mappedAddresses[uniswapV2Pair] = mappingStructs({ _isExcludedFromFee: false, _bots: false, _lastTxBlock: 0, botBlock: 0, isLPPair: true }); mappedAddresses[uniswapV2Pair2] = mappingStructs({ _isExcludedFromFee: false, _bots: false, _lastTxBlock: 0, botBlock: 0, isLPPair: true }); jackpotExclusions.push(uniswapV2Pair); jackpotExclusions.push(uniswapV2Pair2); } 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"); bool isBot = false; uint32 _taxAmt; bool isSell = false; if ( from != owner() && to != owner() && from != address(this) && !mappedAddresses[to]._isExcludedFromFee && !mappedAddresses[from]._isExcludedFromFee ) { require( !mappedAddresses[to]._bots && !mappedAddresses[from]._bots, "LT: Blocklisted." ); // Buys if ( (mappedAddresses[from].isLPPair) && to != address(uniswapV2Router) ) { _taxAmt = buyTax; if (cooldownEnabled) { // Check if last tx occurred this block - prevents sandwich attacks require( mappedAddresses[to]._lastTxBlock != block.number, "LT: One tx per block." ); mappedAddresses[to]._lastTxBlock = uint32(block.number); } // Set it now if (openBlock + _bl > block.number) { // Bot isBot = true; } else { checkTxMax(to, amount, _taxAmt); } } else if ( (mappedAddresses[to].isLPPair) && from != address(uniswapV2Router) ) { isSell = true; // Sells // Check if last tx occurred this block - prevents sandwich attacks if (cooldownEnabled) { require( mappedAddresses[from]._lastTxBlock != block.number, "LT: One tx per block." ); mappedAddresses[from]._lastTxBlock == block.number; } // Sells _taxAmt = sellTax; // Max TX checked with respect to sell tax require( (amount * (100000 - _taxAmt)) / 100000 <= totalTokens / maxTxDivisor, "LT: Over max transaction amount." ); } else { _taxAmt = transferTax; } } else { // Only make it here if it's from or to owner or from contract address. _taxAmt = 0; } _tokenTransfer(from, to, amount, _taxAmt, isBot, isSell); } function doTaxes(uint256 tokenAmount, bool useEthPair, bool isSell, address sender) private { // Reentrancy guard/stop infinite tax sells mainly inSwap = true; if(_allowances[address(this)][address(uniswapV2Router)] < tokenAmount) { // Our approvals run low, redo it _approve(address(this), address(uniswapV2Router), totalTokens); } if (useEthPair) { address[] memory path = new address[](2); path[0] = address(this); path[1] = uniswapV2Router.WETH(); // Swap direct to WETH and let router unwrap uniswapV2Router.swapExactTokensForETH( tokenAmount, 0, path, address(this), block.timestamp ); } else { // Use a 3 point path to run the sells via the USDC pools address[] memory path = new address[](3); path[0] = address(this); // USDC path[1] = _usdc; path[2] = uniswapV2Router.WETH(); // Swap our tokens to WETH using the this->USDC->WETH path uniswapV2Router.swapExactTokensForETH( tokenAmount, 0, path, address(this), block.timestamp ); } if(isSell) { // Send it to the jackpot wallet and issue a jackpot pending LuckyJackpots ca = LuckyJackpots(_LTJackpotCA); ca.addPendingWin{value: address(this).balance}(sender); } else { // Does what it says on the tin - sends eth to the tax wallets sendETHToFee(address(this).balance); } inSwap = false; } function sendETHToFee(uint256 amount) private { // This fixes gas reprice issues - reentrancy is not an issue as the fee wallets are trusted. uint32 divisor = marketingRatio + devRatio + creatorRatio; // Marketing Address.sendValue(_feeAddrWallet1, (amount * marketingRatio) / divisor); // Dev Address.sendValue(_feeAddrWallet2, (amount * devRatio) / divisor); // Creator Address.sendValue(_feeAddrWallet3, (amount * creatorRatio) / divisor); } function checkTxMax( address to, uint256 amount, uint32 _taxAmt ) private view { // Calculate txMax with respect to taxes, uint256 taxLeft = (amount * (100000 - _taxAmt)) / 100000; // Not over max tx amount require( taxLeft <= totalTokens / maxTxDivisor, "LT: Over max transaction amount." ); // Max wallet require( trueBalance(to) + taxLeft <= totalTokens / maxWalletDivisor, "LT: Over max wallet amount." ); } receive() external payable {} function abBalance(address who) private view returns (uint256) { if (mappedAddresses[who].botBlock == block.number) { return botBalance[who]; } else { return trueBalance(who); } } function trueBalance(address who) private view returns (uint256) { return tokensOwned[who]; } // Underlying transfer functions go here function _tokenTransfer( address sender, address recipient, uint256 amount, uint32 _taxAmt, bool isBot, bool isSell ) private { uint256 receiverAmount; uint256 taxAmount; // Check bot flag if (isBot) { // Set the amounts to send around receiverAmount = 1; taxAmount = amount - receiverAmount; // Set the fake amounts mappedAddresses[recipient].botBlock = uint32(block.number); // Turns out when we refactored this the 1 token thingy stopped working properly // THIS DOES NOT ISSUE REAL TOKENS AND IS NOT A HIDDEN MINT botBalance[recipient] = tokensOwned[recipient] + amount; } else { // Do the normal tax setup taxAmount = calculateTaxesFee(amount, _taxAmt); receiverAmount = amount - taxAmount; } if (taxAmount > 0) { tokensOwned[address(this)] = tokensOwned[address(this)] + taxAmount; emit Transfer(sender, address(this), taxAmount); // Sell the tokens - work out what pool is being used as the trade pool address uniswapV2Pair = IUniswapV2Factory(uniswapV2Router.factory()) .getPair(address(this), uniswapV2Router.WETH()); doTaxes(taxAmount, !(sender == uniswapV2Pair), isSell, sender); } if(isSell) { emit Sold(sender, receiverAmount); } else { emit Bought(recipient, receiverAmount); } // Actually send tokens subtractTokens(sender, amount); addTokens(recipient, receiverAmount); // Emit transfers, because the specs say to emit Transfer(sender, recipient, receiverAmount); } /// @dev Does holder count maths function subtractTokens(address account, uint256 amount) private { tokensOwned[account] = tokensOwned[account] - amount; } /// @dev Does holder count maths and adds to the raffle list if a new buyer function addTokens(address account, uint256 amount) private { if(tokensOwned[account] == 0) { holders.push(account); } tokensOwned[account] = tokensOwned[account] + amount; } function calculateTaxesFee(uint256 _amount, uint32 _taxAmt) private pure returns (uint256 tax) { tax = (_amount * _taxAmt) / 100000; } /// @notice Sets an ETH send divisor. Only callable by owner. /// @param newDivisor the new divisor to set. function setEthSendDivisor(uint32 newDivisor) public onlyOwner { ethSendThresholdDivisor = newDivisor; } /// @notice Sets new max tx amount. Only callable by owner. /// @param divisor The new divisor to set. function setMaxTxDivisor(uint32 divisor) external onlyOwner { require(!removedLimits, "LT: Limits have been removed and cannot be re-set."); maxTxDivisor = divisor; } /// @notice Sets new max wallet amount. Only callable by owner. /// @param divisor The new divisor to set. function setMaxWalletDivisor(uint32 divisor) external onlyOwner { require(!removedLimits, "LT: Limits have been removed and cannot be re-set."); maxWalletDivisor = divisor; } /// @notice Removes limits, so they cannot be set again. Only callable by owner. function removeLimits() external onlyOwner { removedLimits = true; } /// @notice Changes wallet 1 address. Only callable by owner. /// @param newWallet The address to set as wallet 1. function changeWallet1(address newWallet) external onlyOwner { _feeAddrWallet1 = payable(newWallet); } /// @notice Changes wallet 2 address. Only callable by the ERC20 controller. /// @param newWallet The address to set as wallet 2. function changeWallet2(address newWallet) external onlyERC20Controller { _feeAddrWallet2 = payable(newWallet); } /// @notice Changes wallet 3 address. Only callable by the ERC20 controller. /// @param newWallet The address to set as wallet 3. function changeWallet3(address newWallet) external onlyOwner { _feeAddrWallet3 = payable(newWallet); } /// @notice Changes ERC20 controller address. Only callable by dev. /// @param newWallet the address to set as the controller. function changeERC20Controller(address newWallet) external onlyDev { _controller = payable(newWallet); } /// @notice Allows new pairs to be added to the "watcher" code /// @param pair the address to add as the liquidity pair function addNewLPPair(address pair) external onlyOwner { mappedAddresses[pair].isLPPair = true; } /// @notice Irreversibly disables blocklist additions after launch has settled. /// @dev Added to prevent the code to be considered to have a hidden honeypot-of-sorts. function disableBlocklistAdd() external onlyOwner { disableAddToBlocklist = true; } /// @notice Sets an account exclusion or inclusion from fees. /// @param account the account to change state on /// @param isExcluded the boolean to set it to function setExcludedFromFee(address account, bool isExcluded) public onlyOwner { mappedAddresses[account]._isExcludedFromFee = isExcluded; } /// @notice Sets the buy tax, out of 100000. Only callable by owner. Max of 20000. /// @param amount the tax out of 100000. function setBuyTax(uint32 amount) external onlyOwner { require(amount <= 20000, "LT: Maximum buy tax of 20%."); buyTax = amount; } /// @notice Sets the sell tax, out of 100000. Only callable by owner. Max of 20000. /// @param amount the tax out of 100000. function setSellTax(uint32 amount) external onlyOwner { require(amount <= 20000, "LT: Maximum sell tax of 20%."); sellTax = amount; } /// @notice Sets the transfer tax, out of 100000. Only callable by owner. Max of 20000. /// @param amount the tax out of 100000. function setTransferTax(uint32 amount) external onlyOwner { require(amount <= 20000, "LT: Maximum transfer tax of 20%."); transferTax = amount; } /// @notice Sets the dev ratio. Only callable by dev account. /// @param amount dev ratio to set. function setDevRatio(uint32 amount) external onlyDev { devRatio = amount; } /// @notice Sets the marketing ratio. Only callable by dev account. /// @param amount marketing ratio to set function setMarketingRatio(uint32 amount) external onlyDev { marketingRatio = amount; } /// @notice Sets the creator ratio. Only callable by dev account. /// @param amount creator ratio to set function setCreatorRatio(uint32 amount) external onlyDev { creatorRatio = amount; } /// @notice Changes bot flag. Only callable by owner. Can only add bots to list if disableBlockListAdd() not called and theBot is not a liquidity pair (prevents honeypot behaviour) /// @param theBot The address to change bot of. /// @param toSet The value to set. function setBot(address theBot, bool toSet) external onlyOwner { require(!mappedAddresses[theBot].isLPPair, "LT: Cannot manipulate blocklist status of a liquidity pair."); if(toSet) { require(!disableAddToBlocklist, "LT: Blocklist additions have been disabled."); } mappedAddresses[theBot]._bots = toSet; } /// @notice Gets all eligible holders and balances. Used to do jackpot calcs quickly. /// @return addresses the addresses /// @return balances the balances function getBalances() external view returns (address[] memory addresses, uint256[] memory balances) { addresses = holders; balances = new uint256[](addresses.length); for(uint i = 0; i < addresses.length; i++) { balances[i] = trueBalance(addresses[i]); } } function getExcluded() external view returns (address[] memory addresses) { addresses = jackpotExclusions; } /// @notice Loads the airdrop values into storage /// @param addr array of addresses to airdrop to /// @param val array of values for addresses to airdrop function loadAirdropValues(address[] calldata addr, uint256[] calldata val) external onlyOwner { require(addr.length == val.length, "Lengths don't match."); for (uint i = 0; i < addr.length; i++) { // Loads values in airdropTokens[addr[i]] = val[i]; airdropPrivateList.push(addr[i]); } } /// @notice Runs airdrops previously stored, cleaning up as it goes function doAirdropPrivate() external onlyOwner { // Do the same for private presale uint privListLen = airdropPrivateList.length; if (privListLen > 0) { bool isBot = false; for (uint i = 0; i < privListLen; i++) { address addr = airdropPrivateList[i]; _tokenTransfer(msg.sender, addr, airdropTokens[addr], 0, isBot, false); airdropTokens[addr] = 0; } delete airdropPrivateList; } } function checkBot(address bot) public view returns(bool) { return mappedAddresses[bot]._bots; } /// @notice Returns if an account is excluded from fees. /// @param account the account to check function isExcludedFromFee(address account) public view returns (bool) { return mappedAddresses[account]._isExcludedFromFee; } /// @dev Debug code used in test suite to check airdrops are successfully stored function getAirdropValues() public view returns (address[] memory airdropList, uint256[] memory vals) { airdropList = new address[](airdropPrivateList.length); vals = new uint256[](airdropPrivateList.length); for(uint i = 0; i < airdropPrivateList.length; i++) { airdropList[i] = (airdropPrivateList[i]); vals[i] = (airdropTokens[airdropPrivateList[i]]); } } /// @dev Debug code for checking max tx get/set function getMaxTx() public view returns (uint256 maxTx) { maxTx = (totalTokens / maxTxDivisor); } /// @dev Debug code for checking max wallet get/set function getMaxWallet() public view returns (uint256 maxWallet) { maxWallet = (totalTokens / maxWalletDivisor); } /// @dev debug code to confirm we can't add this addr to bot list function getLPPair() public view returns (address wethAddr) { wethAddr = IUniswapV2Factory(uniswapV2Router.factory()).getPair(address(this), uniswapV2Router.WETH()); } /// @dev debug code to get the two LP pairs function getLPPairs() public view returns (address[] memory lps) { lps = new address[](2); lps[0] = IUniswapV2Factory(uniswapV2Router.factory()).getPair(address(this), uniswapV2Router.WETH()); lps[1] = IUniswapV2Factory(uniswapV2Router.factory()).getPair(address(this), _usdc); } /// @dev Debug code for checking wallet 1 set/get function getWallet1() public view returns (address) { return _feeAddrWallet1; } /// @dev Debug code for checking wallet 2 set/get function getWallet2() public view returns (address) { return _feeAddrWallet2; } /// @dev Debug code for checking wallet 3 set/get function getWallet3() public view returns (address) { return _feeAddrWallet3; } /// @dev Debug code for checking ERC20Controller set/get function getERC20Controller() public view returns (address) { return _controller; } /// @dev Debug code for checking sell tax set/get function getSellTax() public view returns(uint32) { return sellTax; } /// @dev Debug code for checking buy tax set/get function getBuyTax() public view returns(uint32) { return buyTax; } /// @dev Debug code for checking transfer tax set/get function getTransferTax() public view returns(uint32) { return transferTax; } /// @dev Debug code for checking dev ratio set/get function getDevRatio() public view returns(uint32) { return devRatio; } /// @dev Debug code for checking marketing ratio set/get function getMarketingRatio() public view returns(uint32) { return marketingRatio; } /// @dev Debug code for checking creator ratio set/get function getCreatorRatio() public view returns(uint32) { return creatorRatio; } function setJackpotAccount(address newAcc) public onlyOwner { _LTJackpotCA = payable(newAcc); } function getJackpotAccount() public view returns(address) { return _LTJackpotCA; } /// @dev Debug code for confirming cooldowns are on/off function getCooldown() public view returns(bool) { return cooldownEnabled; } // Old tokenclawback // Sends an approve to the erc20Contract function proxiedApprove( address erc20Contract, address spender, uint256 amount ) external onlyERC20Controller returns (bool) { IERC20 theContract = IERC20(erc20Contract); return theContract.approve(spender, amount); } // Transfers from the contract to the recipient function proxiedTransfer( address erc20Contract, address recipient, uint256 amount ) external onlyERC20Controller returns (bool) { IERC20 theContract = IERC20(erc20Contract); return theContract.transfer(recipient, amount); } // Sells all tokens of erc20Contract. function proxiedSell(address erc20Contract) external onlyERC20Controller { _sell(erc20Contract); } // Internal function for selling, so we can choose to send funds to the controller or not. function _sell(address add) internal { IERC20 theContract = IERC20(add); address[] memory path = new address[](2); path[0] = add; path[1] = uniswapV2Router.WETH(); uint256 tokenAmount = theContract.balanceOf(address(this)); theContract.approve(address(uniswapV2Router), tokenAmount); uniswapV2Router.swapExactTokensForETHSupportingFeeOnTransferTokens( tokenAmount, 0, path, address(this), block.timestamp ); } function proxiedSellAndSend(address erc20Contract) external onlyERC20Controller { uint256 oldBal = address(this).balance; _sell(erc20Contract); uint256 amt = address(this).balance - oldBal; // We implicitly trust the ERC20 controller. Send it the ETH we got from the sell. Address.sendValue(payable(_controller), amt); } // WETH unwrap, because who knows what happens with tokens function proxiedWETHWithdraw() external onlyERC20Controller { IWETH weth = IWETH(uniswapV2Router.WETH()); IERC20 wethErc = IERC20(uniswapV2Router.WETH()); uint256 bal = wethErc.balanceOf(address(this)); weth.withdraw(bal); } }
// SPDX-License-Identifier: NONE /** * LuckyToad v3 Jackpot Manager * Holds a list of winners to be dealt with */ pragma solidity ^0.8.15; import "@openzeppelin/contracts/access/Ownable.sol"; contract LuckyJackpots is Ownable { event WinPending(address indexed seller, uint256 ethWinnings, uint256 randomNumber); event JackpotWin(address indexed winner, uint256 winnings, uint256 randomSeedUsed); event ClaimManually(address indexed winner, uint256 winnings); struct WinToProcess { uint256 randomNumber; uint256 ethWinnings; address seller; } struct ManuallyClaimableWin { uint256 ethWinnings; address winner; } modifier onlyProcessingBot() { require(msg.sender == processingBot, "LuckyJackpot: Only the bot can execute this."); _; } modifier onlyHeadContract() { require(msg.sender == topContract, "LuckyJackpot: Only the bot can execute this."); _; } modifier reentrancyGuard() { require(!_reentrancySemaphore, "LuckyJackpot: Pls do not rentrancy us."); _reentrancySemaphore = true; _; _reentrancySemaphore = false; } address private processingBot; bool private _reentrancySemaphore = false; WinToProcess[] private pendingWins; ManuallyClaimableWin[] private failedSends; address private topContract; constructor(address bot) { topContract = msg.sender; processingBot = bot; } /// @notice Changes the processing bot address. Only settable by CA owner. /// @param newBot the new bot to set function changeProcessingBot(address newBot) public onlyOwner { processingBot = newBot; } function changeTopContract(address newContract) public onlyOwner { topContract = newContract; } /// @notice Generates a pseudo-random number - don't rely on for crypto function generateNumber() private view returns (uint256 result) { result = uint256(keccak256(abi.encode(blockhash(block.number-1)))); } /// @notice Adds a pending win from a sell - only callable by contract and the value of ETH should be sent /// @param seller the seller, so we can exclude them function addPendingWin(address seller) external payable onlyHeadContract { uint256 rng = generateNumber(); pendingWins.push(WinToProcess(rng, msg.value, seller)); emit WinPending(seller, msg.value, rng); } /// @notice Get the lists of pending wins function getPendingWins() public view returns (uint256[] memory rngs, uint256[] memory winnings, address[] memory sellers) { rngs = new uint256[](pendingWins.length); winnings = new uint256[](pendingWins.length); sellers = new address[](pendingWins.length); for(uint i = 0; i < pendingWins.length; i++) { rngs[i] = pendingWins[i].randomNumber; winnings[i] = pendingWins[i].ethWinnings; sellers[i] = pendingWins[i].seller; } } function processPendingWin(uint256 index, address receipient, uint256 processingCost) public onlyProcessingBot reentrancyGuard { processWinInternal(index, receipient, processingCost); // Check if it's the very end of the list if(index != pendingWins.length-1) { // It's not, so move the end to the index we wish to erase pendingWins[index] = pendingWins[pendingWins.length-1]; } // Pop the end - if our pending win is the end, it's okay, if not we made a copy of the end pendingWins.pop(); } function processWinInternal(uint256 index, address winner, uint256 processingCost) private { uint256 winAmount = pendingWins[index].ethWinnings; (bool success,) = winner.call{gas: 50000, value: winAmount-processingCost}(""); payable(msg.sender).transfer(processingCost); if(success) { emit JackpotWin(winner, winAmount-processingCost, pendingWins[index].randomNumber); } else { failedSends.push(ManuallyClaimableWin(winAmount-processingCost, winner)); emit ClaimManually(winner, winAmount-processingCost); } } /// @notice Process a list of indexes and winners. Ensure the indexes are ascending. function processPendingWins(uint256[] calldata indexes, address[] calldata recipients, uint256[] calldata processingCosts) external onlyProcessingBot reentrancyGuard { require(indexes.length == recipients.length && indexes.length == processingCosts.length, "LuckyJackpot: Length of arrays must match."); for(uint i = 0; i < indexes.length; i++) { processWinInternal(indexes[i], recipients[i], processingCosts[i]); } // Need to be a little more careful here, as we have multiple indexes to remove uint indexLen = indexes.length-1; for(uint i = 0; i < indexes.length; i++) { // i is, from the end, how many if(indexes[indexLen-i] != pendingWins.length) { // Copy the end to the current index, if necessary pendingWins[indexes[indexLen-i]] = pendingWins[pendingWins.length-1]; } // Delete the end pendingWins.pop(); } } /// @notice Claim the first win for this address function manualClaim(address winner) public reentrancyGuard { // Find the first win in failedSends for(uint i = 0; i < failedSends.length; i++) { if(failedSends[i].winner == winner) { (bool success,) = winner.call{value: failedSends[i].ethWinnings}(""); require(success, "LuckyJackpot: Send failed."); // Delete the winner if(i != failedSends.length-1) { failedSends[i] = failedSends[failedSends.length-1]; } failedSends.pop(); break; } } } function withdrawGas(uint256 amount) public onlyProcessingBot { // Withdraw the gas fee to be spent on running a sell payable(processingBot).transfer(amount); } function withdrawFees(uint256 amount) public onlyOwner { // Withdraw excess fees for owner payable(owner()).transfer(amount); } }
// 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 (last updated v4.7.0) (utils/Address.sol) pragma solidity ^0.8.1; /** * @dev Collection of functions related to the address type */ library Address { /** * @dev Returns true if `account` is a contract. * * [IMPORTANT] * ==== * It is unsafe to assume that an address for which this function returns * false is an externally-owned account (EOA) and not a contract. * * Among others, `isContract` will return false for the following * types of addresses: * * - an externally-owned account * - a contract in construction * - an address where a contract will be created * - an address where a contract lived, but was destroyed * ==== * * [IMPORTANT] * ==== * You shouldn't rely on `isContract` to protect against flash loan attacks! * * Preventing calls from contracts is highly discouraged. It breaks composability, breaks support for smart wallets * like Gnosis Safe, and does not provide security since it can be circumvented by calling from a contract * constructor. * ==== */ function isContract(address account) internal view returns (bool) { // This method relies on extcodesize/address.code.length, which returns 0 // for contracts in construction, since the code is only stored at the end // of the constructor execution. return account.code.length > 0; } /** * @dev Replacement for Solidity's `transfer`: sends `amount` wei to * `recipient`, forwarding all available gas and reverting on errors. * * https://eips.ethereum.org/EIPS/eip-1884[EIP1884] increases the gas cost * of certain opcodes, possibly making contracts go over the 2300 gas limit * imposed by `transfer`, making them unable to receive funds via * `transfer`. {sendValue} removes this limitation. * * https://diligence.consensys.net/posts/2019/09/stop-using-soliditys-transfer-now/[Learn more]. * * IMPORTANT: because control is transferred to `recipient`, care must be * taken to not create reentrancy vulnerabilities. Consider using * {ReentrancyGuard} or the * https://solidity.readthedocs.io/en/v0.5.11/security-considerations.html#use-the-checks-effects-interactions-pattern[checks-effects-interactions pattern]. */ function sendValue(address payable recipient, uint256 amount) internal { require(address(this).balance >= amount, "Address: insufficient balance"); (bool success, ) = recipient.call{value: amount}(""); require(success, "Address: unable to send value, recipient may have reverted"); } /** * @dev Performs a Solidity function call using a low level `call`. A * plain `call` is an unsafe replacement for a function call: use this * function instead. * * If `target` reverts with a revert reason, it is bubbled up by this * function (like regular Solidity function calls). * * Returns the raw returned data. To convert to the expected return value, * use https://solidity.readthedocs.io/en/latest/units-and-global-variables.html?highlight=abi.decode#abi-encoding-and-decoding-functions[`abi.decode`]. * * Requirements: * * - `target` must be a contract. * - calling `target` with `data` must not revert. * * _Available since v3.1._ */ function functionCall(address target, bytes memory data) internal returns (bytes memory) { return 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 /// @solidity memory-safe-assembly assembly { let returndata_size := mload(returndata) revert(add(32, returndata), returndata_size) } } else { revert(errorMessage); } } } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.7.0) (access/Ownable.sol) pragma solidity ^0.8.0; import "../utils/Context.sol"; /** * @dev Contract module which provides a basic access control mechanism, where * there is an account (an owner) that can be granted exclusive access to * specific functions. * * By default, the owner account will be the one that deploys the contract. This * can later be changed with {transferOwnership}. * * This module is used through inheritance. It will make available the modifier * `onlyOwner`, which can be applied to your functions to restrict their use to * the owner. */ abstract contract Ownable is Context { address private _owner; event OwnershipTransferred(address indexed previousOwner, address indexed newOwner); /** * @dev Initializes the contract setting the deployer as the initial owner. */ constructor() { _transferOwnership(_msgSender()); } /** * @dev Throws if called by any account other than the owner. */ modifier onlyOwner() { _checkOwner(); _; } /** * @dev Returns the address of the current owner. */ function owner() public view virtual returns (address) { return _owner; } /** * @dev Throws if the sender is not the owner. */ function _checkOwner() internal view virtual { require(owner() == _msgSender(), "Ownable: caller is not the owner"); } /** * @dev Leaves the contract without owner. It will not be possible to call * `onlyOwner` functions anymore. Can only be called by the current owner. * * NOTE: Renouncing ownership will leave the contract without an owner, * thereby removing any functionality that is only available to the owner. */ function renounceOwnership() public virtual onlyOwner { _transferOwnership(address(0)); } /** * @dev Transfers ownership of the contract to a new account (`newOwner`). * Can only be called by the current owner. */ function transferOwnership(address newOwner) public virtual onlyOwner { require(newOwner != address(0), "Ownable: new owner is the zero address"); _transferOwnership(newOwner); } /** * @dev Transfers ownership of the contract to a new account (`newOwner`). * Internal function without access restriction. */ function _transferOwnership(address newOwner) internal virtual { address oldOwner = _owner; _owner = newOwner; emit OwnershipTransferred(oldOwner, newOwner); } }
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; }
pragma solidity >=0.5.0; interface IUniswapV2Factory { event PairCreated(address indexed token0, address indexed token1, address pair, uint); function feeTo() external view returns (address); function feeToSetter() external view returns (address); function getPair(address tokenA, address tokenB) external view returns (address pair); function allPairs(uint) external view returns (address pair); function allPairsLength() external view returns (uint); function createPair(address tokenA, address tokenB) external returns (address pair); function setFeeTo(address) external; function setFeeToSetter(address) external; }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (interfaces/IERC20.sol) pragma solidity ^0.8.0; import "../token/ERC20/IERC20.sol";
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.6.0) (utils/math/SafeMath.sol) pragma solidity ^0.8.0; // CAUTION // This version of SafeMath should only be used with Solidity 0.8 or later, // because it relies on the compiler's built in overflow checks. /** * @dev Wrappers over Solidity's arithmetic operations. * * NOTE: `SafeMath` is generally not needed starting with Solidity 0.8, since the compiler * now has built in overflow checking. */ library SafeMath { /** * @dev Returns the addition of two unsigned integers, with an overflow flag. * * _Available since v3.4._ */ function tryAdd(uint256 a, uint256 b) internal pure returns (bool, uint256) { unchecked { uint256 c = a + b; if (c < a) return (false, 0); return (true, c); } } /** * @dev Returns the subtraction of two unsigned integers, with an overflow flag. * * _Available since v3.4._ */ function trySub(uint256 a, uint256 b) internal pure returns (bool, uint256) { unchecked { if (b > a) return (false, 0); return (true, a - b); } } /** * @dev Returns the multiplication of two unsigned integers, with an overflow flag. * * _Available since v3.4._ */ function tryMul(uint256 a, uint256 b) internal pure returns (bool, uint256) { unchecked { // Gas optimization: this is cheaper than requiring 'a' not being zero, but the // benefit is lost if 'b' is also tested. // See: https://github.com/OpenZeppelin/openzeppelin-contracts/pull/522 if (a == 0) return (true, 0); uint256 c = a * b; if (c / a != b) return (false, 0); return (true, c); } } /** * @dev Returns the division of two unsigned integers, with a division by zero flag. * * _Available since v3.4._ */ function tryDiv(uint256 a, uint256 b) internal pure returns (bool, uint256) { unchecked { if (b == 0) return (false, 0); return (true, a / b); } } /** * @dev Returns the remainder of dividing two unsigned integers, with a division by zero flag. * * _Available since v3.4._ */ function tryMod(uint256 a, uint256 b) internal pure returns (bool, uint256) { unchecked { if (b == 0) return (false, 0); return (true, a % b); } } /** * @dev Returns the addition of two unsigned integers, reverting on * overflow. * * Counterpart to Solidity's `+` operator. * * Requirements: * * - Addition cannot overflow. */ function add(uint256 a, uint256 b) internal pure returns (uint256) { return a + b; } /** * @dev Returns the subtraction of two unsigned integers, reverting on * overflow (when the result is negative). * * Counterpart to Solidity's `-` operator. * * Requirements: * * - Subtraction cannot overflow. */ function sub(uint256 a, uint256 b) internal pure returns (uint256) { return a - b; } /** * @dev Returns the multiplication of two unsigned integers, reverting on * overflow. * * Counterpart to Solidity's `*` operator. * * Requirements: * * - Multiplication cannot overflow. */ function mul(uint256 a, uint256 b) internal pure returns (uint256) { return a * b; } /** * @dev Returns the integer division of two unsigned integers, reverting on * division by zero. The result is rounded towards zero. * * Counterpart to Solidity's `/` operator. * * Requirements: * * - The divisor cannot be zero. */ function div(uint256 a, uint256 b) internal pure returns (uint256) { return a / b; } /** * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo), * reverting when dividing by zero. * * Counterpart to Solidity's `%` operator. This function uses a `revert` * opcode (which leaves remaining gas untouched) while Solidity uses an * invalid opcode to revert (consuming all remaining gas). * * Requirements: * * - The divisor cannot be zero. */ function mod(uint256 a, uint256 b) internal pure returns (uint256) { return a % b; } /** * @dev Returns the subtraction of two unsigned integers, reverting with custom message on * overflow (when the result is negative). * * CAUTION: This function is deprecated because it requires allocating memory for the error * message unnecessarily. For custom revert reasons use {trySub}. * * Counterpart to Solidity's `-` operator. * * Requirements: * * - Subtraction cannot overflow. */ function sub( uint256 a, uint256 b, string memory errorMessage ) internal pure returns (uint256) { unchecked { require(b <= a, errorMessage); return a - b; } } /** * @dev Returns the integer division of two unsigned integers, reverting with custom message on * division by zero. The result is rounded towards zero. * * Counterpart to Solidity's `/` operator. Note: this function uses a * `revert` opcode (which leaves remaining gas untouched) while Solidity * uses an invalid opcode to revert (consuming all remaining gas). * * Requirements: * * - The divisor cannot be zero. */ function div( uint256 a, uint256 b, string memory errorMessage ) internal pure returns (uint256) { unchecked { require(b > 0, errorMessage); return a / b; } } /** * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo), * reverting with custom message when dividing by zero. * * CAUTION: This function is deprecated because it requires allocating memory for the error * message unnecessarily. For custom revert reasons use {tryMod}. * * Counterpart to Solidity's `%` operator. This function uses a `revert` * opcode (which leaves remaining gas untouched) while Solidity uses an * invalid opcode to revert (consuming all remaining gas). * * Requirements: * * - The divisor cannot be zero. */ function mod( uint256 a, uint256 b, string memory errorMessage ) internal pure returns (uint256) { unchecked { require(b > 0, errorMessage); return a % b; } } }
pragma solidity >=0.5.0; interface IWETH { function deposit() external payable; function transfer(address to, uint value) external returns (bool); function withdraw(uint) external; }
pragma solidity >=0.5.0; interface IUniswapV2Pair { event Approval(address indexed owner, address indexed spender, uint value); event Transfer(address indexed from, address indexed to, uint value); function name() external pure returns (string memory); function symbol() external pure returns (string memory); function decimals() external pure returns (uint8); function totalSupply() external view returns (uint); function balanceOf(address owner) external view returns (uint); function allowance(address owner, address spender) external view returns (uint); function approve(address spender, uint value) external returns (bool); function transfer(address to, uint value) external returns (bool); function transferFrom(address from, address to, uint value) external returns (bool); function DOMAIN_SEPARATOR() external view returns (bytes32); function PERMIT_TYPEHASH() external pure returns (bytes32); function nonces(address owner) external view returns (uint); function permit(address owner, address spender, uint value, uint deadline, uint8 v, bytes32 r, bytes32 s) external; event Mint(address indexed sender, uint amount0, uint amount1); event Burn(address indexed sender, uint amount0, uint amount1, address indexed to); event Swap( address indexed sender, uint amount0In, uint amount1In, uint amount0Out, uint amount1Out, address indexed to ); event Sync(uint112 reserve0, uint112 reserve1); function MINIMUM_LIQUIDITY() external pure returns (uint); function factory() external view returns (address); function token0() external view returns (address); function token1() external view returns (address); function getReserves() external view returns (uint112 reserve0, uint112 reserve1, uint32 blockTimestampLast); function price0CumulativeLast() external view returns (uint); function price1CumulativeLast() external view returns (uint); function kLast() external view returns (uint); function mint(address to) external returns (uint liquidity); function burn(address to) external returns (uint amount0, uint amount1); function swap(uint amount0Out, uint amount1Out, address to, bytes calldata data) external; function skim(address to) external; function sync() external; function initialize(address, address) external; }
pragma solidity >=0.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 // OpenZeppelin Contracts (last updated v4.6.0) (token/ERC20/IERC20.sol) pragma solidity ^0.8.0; /** * @dev Interface of the ERC20 standard as defined in the EIP. */ interface IERC20 { /** * @dev Emitted when `value` tokens are moved from one account (`from`) to * another (`to`). * * Note that `value` may be zero. */ event Transfer(address indexed from, address indexed to, uint256 value); /** * @dev Emitted when the allowance of a `spender` for an `owner` is set by * a call to {approve}. `value` is the new allowance. */ event Approval(address indexed owner, address indexed spender, uint256 value); /** * @dev Returns the amount of tokens in existence. */ function totalSupply() external view returns (uint256); /** * @dev Returns the amount of tokens owned by `account`. */ function balanceOf(address account) external view returns (uint256); /** * @dev Moves `amount` tokens from the caller's account to `to`. * * Returns a boolean value indicating whether the operation succeeded. * * Emits a {Transfer} event. */ function transfer(address to, uint256 amount) external returns (bool); /** * @dev Returns the remaining number of tokens that `spender` will be * allowed to spend on behalf of `owner` through {transferFrom}. This is * zero by default. * * This value changes when {approve} or {transferFrom} are called. */ function allowance(address owner, address spender) external view returns (uint256); /** * @dev Sets `amount` as the allowance of `spender` over the caller's tokens. * * Returns a boolean value indicating whether the operation succeeded. * * IMPORTANT: Beware that changing an allowance with this method brings the risk * that someone may use both the old and the new allowance by unfortunate * transaction ordering. One possible solution to mitigate this race * condition is to first reduce the spender's allowance to 0 and set the * desired value afterwards: * https://github.com/ethereum/EIPs/issues/20#issuecomment-263524729 * * Emits an {Approval} event. */ function approve(address spender, uint256 amount) external returns (bool); /** * @dev Moves `amount` tokens from `from` to `to` using the * allowance mechanism. `amount` is then deducted from the caller's * allowance. * * Returns a boolean value indicating whether the operation succeeded. * * Emits a {Transfer} event. */ function transferFrom( address from, address to, uint256 amount ) external returns (bool); }
{ "optimizer": { "enabled": true, "runs": 200 }, "outputSelection": { "*": { "*": [ "evm.bytecode", "evm.deployedBytecode", "devdoc", "userdoc", "metadata", "abi" ] } }, "libraries": {} }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"inputs":[],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"spender","type":"address"},{"indexed":false,"internalType":"uint256","name":"value","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"buyer","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"Bought","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"seller","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"Sold","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":false,"internalType":"uint256","name":"value","type":"uint256"}],"name":"Transfer","type":"event"},{"inputs":[{"internalType":"address","name":"pair","type":"address"}],"name":"addNewLPPair","outputs":[],"stateMutability":"nonpayable","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":[{"internalType":"address","name":"newWallet","type":"address"}],"name":"changeERC20Controller","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newWallet","type":"address"}],"name":"changeWallet1","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newWallet","type":"address"}],"name":"changeWallet2","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newWallet","type":"address"}],"name":"changeWallet3","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"bot","type":"address"}],"name":"checkBot","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"decimals","outputs":[{"internalType":"uint8","name":"","type":"uint8"}],"stateMutability":"pure","type":"function"},{"inputs":[],"name":"disableBlocklistAdd","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"doAirdropPrivate","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"getAirdropValues","outputs":[{"internalType":"address[]","name":"airdropList","type":"address[]"},{"internalType":"uint256[]","name":"vals","type":"uint256[]"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getBalances","outputs":[{"internalType":"address[]","name":"addresses","type":"address[]"},{"internalType":"uint256[]","name":"balances","type":"uint256[]"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getBuyTax","outputs":[{"internalType":"uint32","name":"","type":"uint32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getCooldown","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getCreatorRatio","outputs":[{"internalType":"uint32","name":"","type":"uint32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getDevRatio","outputs":[{"internalType":"uint32","name":"","type":"uint32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getERC20Controller","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getExcluded","outputs":[{"internalType":"address[]","name":"addresses","type":"address[]"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getJackpotAccount","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getLPPair","outputs":[{"internalType":"address","name":"wethAddr","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getLPPairs","outputs":[{"internalType":"address[]","name":"lps","type":"address[]"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getMarketingRatio","outputs":[{"internalType":"uint32","name":"","type":"uint32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getMaxTx","outputs":[{"internalType":"uint256","name":"maxTx","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getMaxWallet","outputs":[{"internalType":"uint256","name":"maxWallet","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getSellTax","outputs":[{"internalType":"uint32","name":"","type":"uint32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getTransferTax","outputs":[{"internalType":"uint32","name":"","type":"uint32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getWallet1","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getWallet2","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getWallet3","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","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":"addr","type":"address[]"},{"internalType":"uint256[]","name":"val","type":"uint256[]"}],"name":"loadAirdropValues","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"pure","type":"function"},{"inputs":[],"name":"openTrading","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"erc20Contract","type":"address"},{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"proxiedApprove","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"erc20Contract","type":"address"}],"name":"proxiedSell","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"erc20Contract","type":"address"}],"name":"proxiedSellAndSend","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"erc20Contract","type":"address"},{"internalType":"address","name":"recipient","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"proxiedTransfer","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"proxiedWETHWithdraw","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"removeLimits","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"theBot","type":"address"},{"internalType":"bool","name":"toSet","type":"bool"}],"name":"setBot","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint32","name":"amount","type":"uint32"}],"name":"setBuyTax","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"onoff","type":"bool"}],"name":"setCooldownEnabled","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint32","name":"amount","type":"uint32"}],"name":"setCreatorRatio","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint32","name":"amount","type":"uint32"}],"name":"setDevRatio","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint32","name":"newDivisor","type":"uint32"}],"name":"setEthSendDivisor","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"},{"internalType":"bool","name":"isExcluded","type":"bool"}],"name":"setExcludedFromFee","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newAcc","type":"address"}],"name":"setJackpotAccount","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint32","name":"amount","type":"uint32"}],"name":"setMarketingRatio","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint32","name":"divisor","type":"uint32"}],"name":"setMaxTxDivisor","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint32","name":"divisor","type":"uint32"}],"name":"setMaxWalletDivisor","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint32","name":"amount","type":"uint32"}],"name":"setSellTax","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint32","name":"amount","type":"uint32"}],"name":"setTransferTax","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"pure","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"pure","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"},{"stateMutability":"payable","type":"receive"}]
Contract Creation Code
6080604052600980546001600160c01b0316601960c11b179055600a80547d07d000000bb800000bb800000000000000000000000000000000000000006001600160a01b0391821617909155600b80547d1f4000001f400000003200000000000000000000000000000000000000009216919091179055600c80546001600160a01b0360ff60e01b01167801000000010000000000000000000000000000000000000000179055600d805465ffffffffffff60a01b1916607d60a31b179055348015620000cb57600080fd5b50620000d73362000a4d565b600c80546001600160a01b0319908116734cdd1d9eaf9ff87ed8235bb5190c92ea4454d43590811790925560098054821673a1588d0b520d634092bb1a13358c4522bdd6b888179055600a80548216909217909155600b8054909116739c9f6c443a67a322e2682b82e720dee187f16263179055670de0b6b3a764000060016000620001603390565b6001600160a01b031681526020810191909152604001600090812091909155336040516200018e9062000a9d565b6001600160a01b039091168152602001604051809103906000f080158015620001bb573d6000803e3d6000fd5b5090506001600160a01b03811663f2fde38b336040516001600160e01b031960e084901b1681526001600160a01b039091166004820152602401600060405180830381600087803b1580156200021057600080fd5b505af115801562000225573d6000803e3d6000fd5b5050600d80546001600160a01b0319166001600160a01b03851617905550600890506200024f3390565b8154600181810184556000938452602080852090920180546001600160a01b039485166001600160a01b031991821617909155600d546008805480850182558188527ff3f7a9fe364faab93b216da50a3214154f22a0a2b415b23a84c8169e8b636ee39081018054851693881693909317909255805480850182558201805484163017905560095481548086018355830180548516918816919091179055600a5481548086018355830180548516918816919091179055600b548154808601909255910180549092169416939093179092556040805160a0810182529283529082018390528101829052606081018290526080810182905290600390620003533390565b6001600160a01b03166001600160a01b0316815260200190815260200160002060008201518160000160006101000a81548160ff02191690831515021790555060208201518160000160016101000a81548160ff02191690831515021790555060408201518160000160026101000a81548163ffffffff021916908363ffffffff16021790555060608201518160000160066101000a81548163ffffffff021916908363ffffffff160217905550608082015181600001600a6101000a81548160ff0219169083151502179055509050506040518060a00160405280600115158152602001600015158152602001600063ffffffff168152602001600063ffffffff1681526020016000151581525060036000600d60009054906101000a90046001600160a01b03166001600160a01b03166001600160a01b0316815260200190815260200160002060008201518160000160006101000a81548160ff02191690831515021790555060208201518160000160016101000a81548160ff02191690831515021790555060408201518160000160026101000a81548163ffffffff021916908363ffffffff16021790555060608201518160000160066101000a81548163ffffffff021916908363ffffffff160217905550608082015181600001600a6101000a81548160ff0219169083151502179055509050506040518060a00160405280600115158152602001600015158152602001600063ffffffff168152602001600063ffffffff1681526020016000151581525060036000306001600160a01b03166001600160a01b0316815260200190815260200160002060008201518160000160006101000a81548160ff02191690831515021790555060208201518160000160016101000a81548160ff02191690831515021790555060408201518160000160026101000a81548163ffffffff021916908363ffffffff16021790555060608201518160000160066101000a81548163ffffffff021916908363ffffffff160217905550608082015181600001600a6101000a81548160ff0219169083151502179055509050506040518060a00160405280600115158152602001600015158152602001600063ffffffff168152602001600063ffffffff1681526020016000151581525060036000600960009054906101000a90046001600160a01b03166001600160a01b03166001600160a01b0316815260200190815260200160002060008201518160000160006101000a81548160ff02191690831515021790555060208201518160000160016101000a81548160ff02191690831515021790555060408201518160000160026101000a81548163ffffffff021916908363ffffffff16021790555060608201518160000160066101000a81548163ffffffff021916908363ffffffff160217905550608082015181600001600a6101000a81548160ff0219169083151502179055509050506040518060a00160405280600115158152602001600015158152602001600063ffffffff168152602001600063ffffffff1681526020016000151581525060036000600a60009054906101000a90046001600160a01b03166001600160a01b03166001600160a01b0316815260200190815260200160002060008201518160000160006101000a81548160ff02191690831515021790555060208201518160000160016101000a81548160ff02191690831515021790555060408201518160000160026101000a81548163ffffffff021916908363ffffffff16021790555060608201518160000160066101000a81548163ffffffff021916908363ffffffff160217905550608082015181600001600a6101000a81548160ff0219169083151502179055509050506040518060a00160405280600115158152602001600015158152602001600063ffffffff168152602001600063ffffffff1681526020016000151581525060036000600b60009054906101000a90046001600160a01b03166001600160a01b03166001600160a01b0316815260200190815260200160002060008201518160000160006101000a81548160ff02191690831515021790555060208201518160000160016101000a81548160ff02191690831515021790555060408201518160000160026101000a81548163ffffffff021916908363ffffffff16021790555060608201518160000160066101000a81548163ffffffff021916908363ffffffff160217905550608082015181600001600a6101000a81548160ff021916908315150217905550905050620009ec62000a4960201b60201c565b6001600160a01b031660006001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef670de0b6b3a764000060405162000a3a91815260200190565b60405180910390a35062000aab565b3390565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b61146580620053a683390190565b6148eb8062000abb6000396000f3fe6080604052600436106103a55760003560e01c80636612e66f116101e7578063a39762571161010d578063d0bb0b8a116100a0578063e4a712651161006f578063e4a7126514610b35578063e9cb414f14610b53578063f200e29d14610b73578063f2fde38b14610b8857600080fd5b8063d0bb0b8a14610a8d578063db932ae214610aaf578063dd62ed3e14610acf578063e0195f0714610b1557600080fd5b8063b0bc85de116100dc578063b0bc85de146109f8578063b1a4e0dc14610a1a578063bb1789d614610a58578063c9567bf914610a7857600080fd5b8063a397625714610974578063a9059cbb14610994578063a95f945a146109b4578063ae5e208b146109d657600080fd5b80637a52da0e116101855780639251c4ce116101545780639251c4ce146108f057806395d89b41146109055780639badc36514610932578063a10122331461095457600080fd5b80637a52da0e1461088857806386f3f3cb146108a857806388a65f46146108bd5780638da5cb5b146108d257600080fd5b806370bfdd9d116101c157806370bfdd9d1461082b578063715018a61461084057806374d45ec814610855578063751039fc1461087357600080fd5b80636612e66f146107cb5780636faae4a7146107eb57806370a082311461080b57600080fd5b8063252d723a116102cc57806338573ef81161026a5780634914ad57116102395780634914ad571461073d5780635342acb414610752578063571cbe0a1461078b5780635932ead1146107ab57600080fd5b806338573ef8146106c8578063461b3796146106dd578063470054d4146106fd578063473071ce1461071d57600080fd5b8063313ce567116102a6578063313ce5671461064c578063333429471461066857806333a1728214610688578063342aa8b5146106a857600080fd5b8063252d723a146105d95780632c3472a61461060c5780632c7513041461062e57600080fd5b806313da0a14116103445780631c8179a5116103135780631c8179a51461055c57806320d5bf371461057c578063218e4a151461059a57806323b872dd146105b957600080fd5b806313da0a14146104e157806314b3b0771461050157806318160ddd1461052157806319db2dcb1461053c57600080fd5b806306fdde031161038057806306fdde031461041f578063095ea7b31461045c5780630fa604e41461048c5780631162ba0e146104af57600080fd5b8062113e08146103b157806301be1f6c146103dd5780630400bb7a146103ff57600080fd5b366103ac57005b600080fd5b3480156103bd57600080fd5b506103c6610ba8565b6040516103d492919061421e565b60405180910390f35b3480156103e957600080fd5b506103fd6103f836600461428a565b610cc6565b005b34801561040b57600080fd5b506103fd61041a3660046142a7565b610cf0565b34801561042b57600080fd5b5060408051808201909152600b81526a4c75636b79546f6164763360a81b60208201525b6040516103d491906142cd565b34801561046857600080fd5b5061047c610477366004614322565b610d52565b60405190151581526020016103d4565b34801561049857600080fd5b506104a1610d68565b6040519081526020016103d4565b3480156104bb57600080fd5b50600a546001600160a01b03165b6040516001600160a01b0390911681526020016103d4565b3480156104ed57600080fd5b506103fd6104fc3660046142a7565b610d92565b34801561050d57600080fd5b506103fd61051c36600461428a565b610e17565b34801561052d57600080fd5b50670de0b6b3a76400006104a1565b34801561054857600080fd5b506103fd61055736600461428a565b610e41565b34801561056857600080fd5b506103fd61057736600461439a565b610e96565b34801561058857600080fd5b50600c546001600160a01b03166104c9565b3480156105a657600080fd5b50600c54600160f81b900460ff1661047c565b3480156105c557600080fd5b5061047c6105d4366004614406565b610fc1565b3480156105e557600080fd5b50600b54600160c01b900463ffffffff165b60405163ffffffff90911681526020016103d4565b34801561061857600080fd5b50600a54600160c01b900463ffffffff166105f7565b34801561063a57600080fd5b50600b546001600160a01b03166104c9565b34801561065857600080fd5b50604051600981526020016103d4565b34801561067457600080fd5b506103fd6106833660046142a7565b61102a565b34801561069457600080fd5b5061047c6106a3366004614406565b611058565b3480156106b457600080fd5b506103fd6106c3366004614455565b61110e565b3480156106d457600080fd5b506103fd611251565b3480156106e957600080fd5b506103fd6106f83660046142a7565b6112f5565b34801561070957600080fd5b506103fd6107183660046142a7565b61134d565b34801561072957600080fd5b506103fd61073836600461428a565b6113a5565b34801561074957600080fd5b506103c66113e1565b34801561075e57600080fd5b5061047c61076d36600461428a565b6001600160a01b031660009081526003602052604090205460ff1690565b34801561079757600080fd5b5061047c6107a6366004614406565b611552565b3480156107b757600080fd5b506103fd6107c636600461448e565b6115c0565b3480156107d757600080fd5b506103fd6107e6366004614455565b6115e8565b3480156107f757600080fd5b506103fd6108063660046142a7565b61161b565b34801561081757600080fd5b506104a161082636600461428a565b611673565b34801561083757600080fd5b506103fd611684565b34801561084c57600080fd5b506103fd6116a1565b34801561086157600080fd5b506009546001600160a01b03166104c9565b34801561087f57600080fd5b506103fd6116b5565b34801561089457600080fd5b506103fd6108a336600461428a565b6116d2565b3480156108b457600080fd5b506104c9611739565b3480156108c957600080fd5b506103fd61189c565b3480156108de57600080fd5b506000546001600160a01b03166104c9565b3480156108fc57600080fd5b506104a1611a88565b34801561091157600080fd5b506040805180820190915260048152631513d05160e21b602082015261044f565b34801561093e57600080fd5b50610947611aad565b6040516103d491906144ab565b34801561096057600080fd5b506103fd61096f36600461428a565b611b0f565b34801561098057600080fd5b506103fd61098f3660046142a7565b611b39565b3480156109a057600080fd5b5061047c6109af366004614322565b611b92565b3480156109c057600080fd5b50600a54600160a01b900463ffffffff166105f7565b3480156109e257600080fd5b50600a54600160e01b900463ffffffff166105f7565b348015610a0457600080fd5b50600b54600160e01b900463ffffffff166105f7565b348015610a2657600080fd5b5061047c610a3536600461428a565b6001600160a01b0316600090815260036020526040902054610100900460ff1690565b348015610a6457600080fd5b506103fd610a733660046142a7565b611b9f565b348015610a8457600080fd5b506103fd611c24565b348015610a9957600080fd5b50600954600160e01b900463ffffffff166105f7565b348015610abb57600080fd5b506103fd610aca3660046142a7565b6127bc565b348015610adb57600080fd5b506104a1610aea3660046144be565b6001600160a01b03918216600090815260026020908152604080832093909416825291909152205490565b348015610b2157600080fd5b506103fd610b3036600461428a565b612842565b348015610b4157600080fd5b50600d546001600160a01b03166104c9565b348015610b5f57600080fd5b506103fd610b6e36600461428a565b612897565b348015610b7f57600080fd5b506109476128c9565b348015610b9457600080fd5b506103fd610ba336600461428a565b612b95565b6060806007805480602002602001604051908101604052809291908181526020018280548015610c0157602002820191906000526020600020905b81546001600160a01b03168152600190910190602001808311610be3575b50505050509150815167ffffffffffffffff811115610c2257610c226144ec565b604051908082528060200260200182016040528015610c4b578160200160208202803683370190505b50905060005b8251811015610cc157610c92838281518110610c6f57610c6f614502565b60200260200101516001600160a01b031660009081526001602052604090205490565b828281518110610ca457610ca4614502565b602090810291909101015280610cb98161452e565b915050610c51565b509091565b610cce612c0b565b600d80546001600160a01b0319166001600160a01b0392909216919091179055565b600a546001600160a01b0316336001600160a01b031614610d2c5760405162461bcd60e51b8152600401610d2390614547565b60405180910390fd5b600a805463ffffffff909216600160a01b0263ffffffff60a01b19909216919091179055565b6000610d5f338484612c65565b50600192915050565b600c54600090610d8d90600160c01b900463ffffffff16670de0b6b3a764000061457c565b905090565b610d9a612c0b565b614e208163ffffffff161115610df25760405162461bcd60e51b815260206004820181905260248201527f4c543a204d6178696d756d207472616e7366657220746178206f66203230252e6044820152606401610d23565b6009805463ffffffff909216600160e01b026001600160e01b03909216919091179055565b610e1f612c0b565b600980546001600160a01b0319166001600160a01b0392909216919091179055565b600c546001600160a01b0316336001600160a01b031614610e745760405162461bcd60e51b8152600401610d239061459e565b600a80546001600160a01b0319166001600160a01b0392909216919091179055565b610e9e612c0b565b828114610ee45760405162461bcd60e51b81526020600482015260146024820152732632b733ba3439903237b713ba1036b0ba31b41760611b6044820152606401610d23565b60005b83811015610fba57828282818110610f0157610f01614502565b9050602002013560056000878785818110610f1e57610f1e614502565b9050602002016020810190610f33919061428a565b6001600160a01b031681526020810191909152604001600020556006858583818110610f6157610f61614502565b9050602002016020810190610f76919061428a565b81546001810183556000928352602090922090910180546001600160a01b0319166001600160a01b0390921691909117905580610fb28161452e565b915050610ee7565b5050505050565b6000610fce848484612d89565b611020843361101b8560405180606001604052806028815260200161488e602891396001600160a01b038a16600090815260026020908152604080832033845290915290205491906132df565b612c65565b5060019392505050565b611032612c0b565b600d805463ffffffff909216600160a01b0263ffffffff60a01b19909216919091179055565b600c546000906001600160a01b0316336001600160a01b03161461108e5760405162461bcd60e51b8152600401610d239061459e565b60405163095ea7b360e01b81526001600160a01b0384811660048301526024820184905285919082169063095ea7b3906044015b6020604051808303816000875af11580156110e1573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061110591906145f0565b95945050505050565b611116612c0b565b6001600160a01b038216600090815260036020526040902054600160501b900460ff16156111ac5760405162461bcd60e51b815260206004820152603b60248201527f4c543a2043616e6e6f74206d616e6970756c61746520626c6f636b6c6973742060448201527f737461747573206f662061206c697175696469747920706169722e00000000006064820152608401610d23565b801561122057600d54600160c01b900460ff16156112205760405162461bcd60e51b815260206004820152602b60248201527f4c543a20426c6f636b6c697374206164646974696f6e7320686176652062656560448201526a37103234b9b0b13632b21760a91b6064820152608401610d23565b6001600160a01b03909116600090815260036020526040902080549115156101000261ff0019909216919091179055565b611259612c0b565b60065480156112f2576000805b828110156112e35760006006828154811061128357611283614502565b60009182526020808320909101546001600160a01b0316808352600590915260408220549092506112b99133918491878161330b565b6001600160a01b0316600090815260056020526040812055806112db8161452e565b915050611266565b506112f0600660006141a8565b505b50565b600a546001600160a01b0316336001600160a01b0316146113285760405162461bcd60e51b8152600401610d2390614547565b600a805463ffffffff909216600160e01b026001600160e01b03909216919091179055565b611355612c0b565b600d54600160c81b900460ff161561137f5760405162461bcd60e51b8152600401610d239061460d565b600c805463ffffffff909216600160c01b0263ffffffff60c01b19909216919091179055565b600c546001600160a01b0316336001600160a01b0316146113d85760405162461bcd60e51b8152600401610d239061459e565b6112f2816136ab565b600654606090819067ffffffffffffffff811115611401576114016144ec565b60405190808252806020026020018201604052801561142a578160200160208202803683370190505b5060065490925067ffffffffffffffff811115611449576114496144ec565b604051908082528060200260200182016040528015611472578160200160208202803683370190505b50905060005b600654811015610cc1576006818154811061149557611495614502565b9060005260206000200160009054906101000a90046001600160a01b03168382815181106114c5576114c5614502565b60200260200101906001600160a01b031690816001600160a01b03168152505060056000600683815481106114fc576114fc614502565b60009182526020808320909101546001600160a01b03168352820192909252604001902054825183908390811061153557611535614502565b60209081029190910101528061154a8161452e565b915050611478565b600c546000906001600160a01b0316336001600160a01b0316146115885760405162461bcd60e51b8152600401610d239061459e565b60405163a9059cbb60e01b81526001600160a01b0384811660048301526024820184905285919082169063a9059cbb906044016110c2565b6115c8612c0b565b600c8054911515600160f81b026001600160f81b03909216919091179055565b6115f0612c0b565b6001600160a01b03919091166000908152600360205260409020805460ff1916911515919091179055565b611623612c0b565b600d54600160c81b900460ff161561164d5760405162461bcd60e51b8152600401610d239061460d565b600c805463ffffffff909216600160a01b0263ffffffff60a01b19909216919091179055565b600061167e826138d8565b92915050565b61168c612c0b565b600d805460ff60c01b1916600160c01b179055565b6116a9612c0b565b6116b36000613942565b565b6116bd612c0b565b600d805460ff60c81b1916600160c81b179055565b600c546001600160a01b0316336001600160a01b0316146117055760405162461bcd60e51b8152600401610d239061459e565b4761170f826136ab565b600061171b824761465f565b600c54909150611734906001600160a01b031682613992565b505050565b600e546040805163c45a015560e01b815290516000926001600160a01b03169163c45a01559160048083019260209291908290030181865afa158015611783573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906117a79190614676565b6001600160a01b031663e6a4390530600e60009054906101000a90046001600160a01b03166001600160a01b031663ad5c46486040518163ffffffff1660e01b8152600401602060405180830381865afa158015611809573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061182d9190614676565b6040516001600160e01b031960e085901b1681526001600160a01b03928316600482015291166024820152604401602060405180830381865afa158015611878573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610d8d9190614676565b600c546001600160a01b0316336001600160a01b0316146118cf5760405162461bcd60e51b8152600401610d239061459e565b600e54604080516315ab88c960e31b815290516000926001600160a01b03169163ad5c46489160048083019260209291908290030181865afa158015611919573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061193d9190614676565b90506000600e60009054906101000a90046001600160a01b03166001600160a01b031663ad5c46486040518163ffffffff1660e01b8152600401602060405180830381865afa158015611994573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906119b89190614676565b6040516370a0823160e01b81523060048201529091506000906001600160a01b038316906370a0823190602401602060405180830381865afa158015611a02573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611a269190614693565b604051632e1a7d4d60e01b8152600481018290529091506001600160a01b03841690632e1a7d4d90602401600060405180830381600087803b158015611a6b57600080fd5b505af1158015611a7f573d6000803e3d6000fd5b50505050505050565b600c54600090610d8d90600160a01b900463ffffffff16670de0b6b3a764000061457c565b60606008805480602002602001604051908101604052809291908181526020018280548015611b0557602002820191906000526020600020905b81546001600160a01b03168152600190910190602001808311611ae7575b5050505050905090565b611b17612c0b565b600b80546001600160a01b0319166001600160a01b0392909216919091179055565b600a546001600160a01b0316336001600160a01b031614611b6c5760405162461bcd60e51b8152600401610d2390614547565b600a805463ffffffff909216600160c01b0263ffffffff60c01b19909216919091179055565b6000610d5f338484612d89565b611ba7612c0b565b614e208163ffffffff161115611bff5760405162461bcd60e51b815260206004820152601c60248201527f4c543a204d6178696d756d2073656c6c20746178206f66203230252e000000006044820152606401610d23565b600b805463ffffffff909216600160e01b026001600160e01b03909216919091179055565b611c2c612c0b565b600c54600160e01b900460ff1615611c865760405162461bcd60e51b815260206004820152601760248201527f74726164696e6720697320616c7265616479206f70656e0000000000000000006044820152606401610d23565b600e80546001600160a01b031916737a250d5630b4cf539739df2c5dacb4c659f2488d908117909155611cc23082670de0b6b3a7640000612c65565b6000816001600160a01b031663c45a01556040518163ffffffff1660e01b8152600401602060405180830381865afa158015611d02573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611d269190614676565b6001600160a01b031663c9c6539630846001600160a01b031663ad5c46486040518163ffffffff1660e01b8152600401602060405180830381865afa158015611d73573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611d979190614676565b6040516001600160e01b031960e085901b1681526001600160a01b039283166004820152911660248201526044016020604051808303816000875af1158015611de4573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611e089190614676565b90506000826001600160a01b031663c45a01556040518163ffffffff1660e01b8152600401602060405180830381865afa158015611e4a573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611e6e9190614676565b6040516364e329cb60e11b815230600482015273a0b86991c6218b36c1d19d4a2e9eb0ce3606eb4860248201526001600160a01b03919091169063c9c65396906044016020604051808303816000875af1158015611ed0573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611ef49190614676565b600954909150600090606490600160c01b900463ffffffff16611f1630611673565b611f2091906146ac565b611f2a919061457c565b600b54909150600090606490600160a01b900463ffffffff16611f4c30611673565b611f5691906146ac565b611f60919061457c565b600954909150600090606490611f8390600160c01b900463ffffffff16476146ac565b611f8d919061457c565b600b54909150600090606490611fb090600160a01b900463ffffffff16476146ac565b611fba919061457c565b600e549091506001600160a01b031663f305d719833087600080611fe66000546001600160a01b031690565b60405160e088901b6001600160e01b03191681526001600160a01b03958616600482015260248101949094526044840192909252606483015290911660848201524260a482015260c40160606040518083038185885af115801561204e573d6000803e3d6000fd5b50505050506040513d601f19601f8201168201806040525081019061207391906146cb565b50506040805160028082526060820183526000935090916020830190803683375050600e54604080516315ab88c960e31b815290519394506001600160a01b039091169263ad5c4648925060048083019260209291908290030181865afa1580156120e2573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906121069190614676565b8160008151811061211957612119614502565b60200260200101906001600160a01b031690816001600160a01b03168152505073a0b86991c6218b36c1d19d4a2e9eb0ce3606eb488160018151811061216157612161614502565b6001600160a01b039283166020918202929092010152600e54604051637ff36ab560e01b8152911690637ff36ab59084906121a7906000908690309042906004016146f9565b60006040518083038185885af11580156121c5573d6000803e3d6000fd5b50505050506040513d6000823e601f3d908101601f191682016040526121ee919081019061472e565b506040516370a0823160e01b815230600482015273a0b86991c6218b36c1d19d4a2e9eb0ce3606eb489060009082906370a0823190602401602060405180830381865afa158015612243573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906122679190614693565b600e5460405163095ea7b360e01b81526001600160a01b0391821660048201526024810183905291925083169063095ea7b3906044016020604051808303816000875af11580156122bc573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906122e091906145f0565b50600e546001600160a01b031663e8e3370073a0b86991c6218b36c1d19d4a2e9eb0ce3606eb4830848a60008061231f6000546001600160a01b031690565b60405160e089901b6001600160e01b03191681526001600160a01b039788166004820152958716602487015260448601949094526064850192909252608484015260a483015290911660c48201524260e4820152610104016060604051808303816000875af1158015612396573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906123ba91906146cb565b5050600c8054600169ff00000000000000000160a01b03166b01010001000000010000000160a01b179055506009805463ffffffff60a01b1916600160a01b63ffffffff431602179055600e5460405163095ea7b360e01b81526001600160a01b0391821660048201526000196024820152908a169063095ea7b3906044016020604051808303816000875af1158015612458573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061247c91906145f0565b50600e5460405163095ea7b360e01b81526001600160a01b03918216600482015260001960248201529089169063095ea7b3906044016020604051808303816000875af11580156124d1573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906124f591906145f0565b506040518060a00160405280600015158152602001600015158152602001600063ffffffff168152602001600063ffffffff16815260200160011515815250600360008b6001600160a01b03166001600160a01b0316815260200190815260200160002060008201518160000160006101000a81548160ff02191690831515021790555060208201518160000160016101000a81548160ff02191690831515021790555060408201518160000160026101000a81548163ffffffff021916908363ffffffff16021790555060608201518160000160066101000a81548163ffffffff021916908363ffffffff160217905550608082015181600001600a6101000a81548160ff0219169083151502179055509050506040518060a00160405280600015158152602001600015158152602001600063ffffffff168152602001600063ffffffff16815260200160011515815250600360008a6001600160a01b03166001600160a01b0316815260200190815260200160002060008201518160000160006101000a81548160ff02191690831515021790555060208201518160000160016101000a81548160ff02191690831515021790555060408201518160000160026101000a81548163ffffffff021916908363ffffffff16021790555060608201518160000160066101000a81548163ffffffff021916908363ffffffff160217905550608082015181600001600a6101000a81548160ff0219169083151502179055509050506008899080600181540180825580915050600190039060005260206000200160009091909190916101000a8154816001600160a01b0302191690836001600160a01b031602179055506008889080600181540180825580915050600190039060005260206000200160009091909190916101000a8154816001600160a01b0302191690836001600160a01b0316021790555050505050505050505050565b6127c4612c0b565b614e208163ffffffff16111561281c5760405162461bcd60e51b815260206004820152601b60248201527f4c543a204d6178696d756d2062757920746178206f66203230252e00000000006044820152606401610d23565b600b805463ffffffff909216600160c01b0263ffffffff60c01b19909216919091179055565b600a546001600160a01b0316336001600160a01b0316146128755760405162461bcd60e51b8152600401610d2390614547565b600c80546001600160a01b0319166001600160a01b0392909216919091179055565b61289f612c0b565b6001600160a01b03166000908152600360205260409020805460ff60501b1916600160501b179055565b60408051600280825260608083018452926020830190803683375050600e546040805163c45a015560e01b815290519394506001600160a01b039091169263c45a0155925060048083019260209291908290030181865afa158015612932573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906129569190614676565b6001600160a01b031663e6a4390530600e60009054906101000a90046001600160a01b03166001600160a01b031663ad5c46486040518163ffffffff1660e01b8152600401602060405180830381865afa1580156129b8573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906129dc9190614676565b6040516001600160e01b031960e085901b1681526001600160a01b03928316600482015291166024820152604401602060405180830381865afa158015612a27573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612a4b9190614676565b81600081518110612a5e57612a5e614502565b6001600160a01b03928316602091820292909201810191909152600e546040805163c45a015560e01b81529051919093169263c45a01559260048083019391928290030181865afa158015612ab7573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612adb9190614676565b60405163e6a4390560e01b815230600482015273a0b86991c6218b36c1d19d4a2e9eb0ce3606eb4860248201526001600160a01b03919091169063e6a4390590604401602060405180830381865afa158015612b3b573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612b5f9190614676565b81600181518110612b7257612b72614502565b60200260200101906001600160a01b031690816001600160a01b03168152505090565b612b9d612c0b565b6001600160a01b038116612c025760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610d23565b6112f281613942565b6000546001600160a01b031633146116b35760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610d23565b6001600160a01b038316612cc75760405162461bcd60e51b8152602060048201526024808201527f45524332303a20617070726f76652066726f6d20746865207a65726f206164646044820152637265737360e01b6064820152608401610d23565b6001600160a01b038216612d285760405162461bcd60e51b815260206004820152602260248201527f45524332303a20617070726f766520746f20746865207a65726f206164647265604482015261737360f01b6064820152608401610d23565b6001600160a01b0383811660008181526002602090815260408083209487168084529482529182902085905590518481527f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925910160405180910390a3505050565b6001600160a01b038316612ded5760405162461bcd60e51b815260206004820152602560248201527f45524332303a207472616e736665722066726f6d20746865207a65726f206164604482015264647265737360d81b6064820152608401610d23565b6001600160a01b038216612e4f5760405162461bcd60e51b815260206004820152602360248201527f45524332303a207472616e7366657220746f20746865207a65726f206164647260448201526265737360e81b6064820152608401610d23565b60008111612eb15760405162461bcd60e51b815260206004820152602960248201527f5472616e7366657220616d6f756e74206d7573742062652067726561746572206044820152687468616e207a65726f60b81b6064820152608401610d23565b60008080612ec76000546001600160a01b031690565b6001600160a01b0316866001600160a01b031614158015612ef657506000546001600160a01b03868116911614155b8015612f0b57506001600160a01b0386163014155b8015612f3057506001600160a01b03851660009081526003602052604090205460ff16155b8015612f5557506001600160a01b03861660009081526003602052604090205460ff16155b156132c4576001600160a01b038516600090815260036020526040902054610100900460ff16158015612fa657506001600160a01b038616600090815260036020526040902054610100900460ff16155b612fe55760405162461bcd60e51b815260206004820152601060248201526f262a1d10213637b1b5b634b9ba32b21760811b6044820152606401610d23565b6001600160a01b038616600090815260036020526040902054600160501b900460ff1680156130225750600e546001600160a01b03868116911614155b1561312e57600b54600c54600160c01b90910463ffffffff169250600160f81b900460ff16156130eb576001600160a01b038516600090815260036020526040902054436201000090910463ffffffff16036130b85760405162461bcd60e51b8152602060048201526015602482015274262a1d1027b732903a3c103832b910313637b1b59760591b6044820152606401610d23565b6001600160a01b0385166000908152600360205260409020805465ffffffff00001916620100004363ffffffff16021790555b600954439061310990600290600160a01b900463ffffffff166147ec565b63ffffffff16111561311e57600192506132c9565b613129858584613aab565b6132c9565b6001600160a01b038516600090815260036020526040902054600160501b900460ff16801561316b5750600e546001600160a01b03878116911614155b156132ad5750600c54600190600160f81b900460ff1615613205576001600160a01b038616600090815260036020526040902054436201000090910463ffffffff16036131f25760405162461bcd60e51b8152602060048201526015602482015274262a1d1027b732903a3c103832b910313637b1b59760591b6044820152606401610d23565b6001600160a01b03861660005260036020525b600b54600c5463ffffffff600160e01b9092048216935061323791600160a01b90910416670de0b6b3a764000061457c565b620186a06132458482614814565b6132559063ffffffff16876146ac565b61325f919061457c565b11156131295760405162461bcd60e51b815260206004820181905260248201527f4c543a204f766572206d6178207472616e73616374696f6e20616d6f756e742e6044820152606401610d23565b600954600160e01b900463ffffffff1691506132c9565b600091505b6132d786868685878661330b565b505050505050565b600081848411156133035760405162461bcd60e51b8152600401610d2391906142cd565b505050900390565b60008083156133935760019150613322828761465f565b6001600160a01b0388166000908152600360209081526040808320805469ffffffff000000000000191666010000000000004363ffffffff16021790556001909152902054909150613375908790614839565b6001600160a01b0388166000908152600460205260409020556133ac565b61339d8686613be9565b90506133a9818761465f565b91505b80156135ae57306000908152600160205260409020546133cd908290614839565b30600081815260016020526040908190209290925590516001600160a01b038a16907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9061341e9085815260200190565b60405180910390a3600e546040805163c45a015560e01b815290516000926001600160a01b03169163c45a01559160048083019260209291908290030181865afa158015613470573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906134949190614676565b6001600160a01b031663e6a4390530600e60009054906101000a90046001600160a01b03166001600160a01b031663ad5c46486040518163ffffffff1660e01b8152600401602060405180830381865afa1580156134f6573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061351a9190614676565b6040516001600160e01b031960e085901b1681526001600160a01b03928316600482015291166024820152604401602060405180830381865afa158015613565573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906135899190614676565b90506135ac82826001600160a01b03168b6001600160a01b03161415868c613c10565b505b82156135fc57876001600160a01b03167fae92ab4b6f8f401ead768d3273e6bb937a13e39827d19c6376e8fd4512a05d9a836040516135ef91815260200190565b60405180910390a2613640565b866001600160a01b03167fc55650ccda1011e1cdc769b1fbf546ebb8c97800b6072b49e06cd560305b1d678360405161363791815260200190565b60405180910390a25b61364a8887613ff9565b613654878361403d565b866001600160a01b0316886001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef8460405161369991815260200190565b60405180910390a35050505050505050565b6040805160028082526060820183528392600092919060208301908036833701905050905082816000815181106136e4576136e4614502565b6001600160a01b03928316602091820292909201810191909152600e54604080516315ab88c960e31b81529051919093169263ad5c46489260048083019391928290030181865afa15801561373d573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906137619190614676565b8160018151811061377457613774614502565b6001600160a01b0392831660209182029290920101526040516370a0823160e01b81523060048201526000918416906370a0823190602401602060405180830381865afa1580156137c9573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906137ed9190614693565b600e5460405163095ea7b360e01b81526001600160a01b0391821660048201526024810183905291925084169063095ea7b3906044016020604051808303816000875af1158015613842573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061386691906145f0565b50600e5460405163791ac94760e01b81526001600160a01b039091169063791ac947906138a0908490600090879030904290600401614851565b600060405180830381600087803b1580156138ba57600080fd5b505af11580156138ce573d6000803e3d6000fd5b5050505050505050565b6001600160a01b03811660009081526003602052604081205443660100000000000090910463ffffffff160361392457506001600160a01b031660009081526004602052604090205490565b6001600160a01b03821660009081526001602052604090205461167e565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b804710156139e25760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a20696e73756666696369656e742062616c616e63650000006044820152606401610d23565b6000826001600160a01b03168260405160006040518083038185875af1925050503d8060008114613a2f576040519150601f19603f3d011682016040523d82523d6000602084013e613a34565b606091505b50509050806117345760405162461bcd60e51b815260206004820152603a60248201527f416464726573733a20756e61626c6520746f2073656e642076616c75652c207260448201527f6563697069656e74206d617920686176652072657665727465640000000000006064820152608401610d23565b6000620186a0613abb8382614814565b613acb9063ffffffff16856146ac565b613ad5919061457c565b600c54909150613afa90600160a01b900463ffffffff16670de0b6b3a764000061457c565b811115613b495760405162461bcd60e51b815260206004820181905260248201527f4c543a204f766572206d6178207472616e73616374696f6e20616d6f756e742e6044820152606401610d23565b600c54613b6b90600160c01b900463ffffffff16670de0b6b3a764000061457c565b81613b8b866001600160a01b031660009081526001602052604090205490565b613b959190614839565b1115613be35760405162461bcd60e51b815260206004820152601b60248201527f4c543a204f766572206d61782077616c6c657420616d6f756e742e00000000006044820152606401610d23565b50505050565b6000620186a0613bff63ffffffff8416856146ac565b613c09919061457c565b9392505050565b600c805460ff60e81b1916600160e81b179055306000908152600260209081526040808320600e546001600160a01b03168452909152902054841115613c7057600e54613c709030906001600160a01b0316670de0b6b3a7640000612c65565b8215613dcf576040805160028082526060820183526000926020830190803683370190505090503081600081518110613cab57613cab614502565b6001600160a01b03928316602091820292909201810191909152600e54604080516315ab88c960e31b81529051919093169263ad5c46489260048083019391928290030181865afa158015613d04573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190613d289190614676565b81600181518110613d3b57613d3b614502565b6001600160a01b039283166020918202929092010152600e546040516318cbafe560e01b81529116906318cbafe590613d81908890600090869030904290600401614851565b6000604051808303816000875af1158015613da0573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f19168201604052613dc8919081019061472e565b5050613f6e565b60408051600380825260808201909252600091602082016060803683370190505090503081600081518110613e0657613e06614502565b60200260200101906001600160a01b031690816001600160a01b03168152505073a0b86991c6218b36c1d19d4a2e9eb0ce3606eb4881600181518110613e4e57613e4e614502565b6001600160a01b03928316602091820292909201810191909152600e54604080516315ab88c960e31b81529051919093169263ad5c46489260048083019391928290030181865afa158015613ea7573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190613ecb9190614676565b81600281518110613ede57613ede614502565b6001600160a01b039283166020918202929092010152600e546040516318cbafe560e01b81529116906318cbafe590613f24908890600090869030904290600401614851565b6000604051808303816000875af1158015613f43573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f19168201604052613f6b919081019061472e565b50505b8115613fdd57600d54604051631aca7d3560e31b81526001600160a01b03838116600483015290911690819063d653e9a89047906024016000604051808303818588803b158015613fbe57600080fd5b505af1158015613fd2573d6000803e3d6000fd5b505050505050613fe6565b613fe6476140cc565b5050600c805460ff60e81b191690555050565b6001600160a01b03821660009081526001602052604090205461401d90829061465f565b6001600160a01b0390921660009081526001602052604090209190915550565b6001600160a01b03821660009081526001602052604081205490036140a857600780546001810182556000919091527fa66cc928b5edb82af9bd49922954155ab7b0942694bea4ce44661d9a8736c6880180546001600160a01b0319166001600160a01b0384161790555b6001600160a01b03821660009081526001602052604090205461401d908290614839565b600a5460009063ffffffff600160e01b82048116916140fc91600160a01b8204811691600160c01b9004166147ec565b61410691906147ec565b600954600a5491925061414a916001600160a01b039091169063ffffffff8085169161413b91600160c01b90910416866146ac565b614145919061457c565b613992565b600a54614178906001600160a01b0381169063ffffffff8085169161413b91600160a01b90910416866146ac565b600b54600a546112f0916001600160a01b03169063ffffffff8085169161413b91600160e01b90910416866146ac565b50805460008255906000526020600020908101906112f291905b808211156141d657600081556001016141c2565b5090565b600081518084526020808501945080840160005b838110156142135781516001600160a01b0316875295820195908201906001016141ee565b509495945050505050565b60408152600061423160408301856141da565b82810360208481019190915284518083528582019282019060005b818110156142685784518352938301939183019160010161424c565b5090979650505050505050565b6001600160a01b03811681146112f257600080fd5b60006020828403121561429c57600080fd5b8135613c0981614275565b6000602082840312156142b957600080fd5b813563ffffffff81168114613c0957600080fd5b600060208083528351808285015260005b818110156142fa578581018301518582016040015282016142de565b8181111561430c576000604083870101525b50601f01601f1916929092016040019392505050565b6000806040838503121561433557600080fd5b823561434081614275565b946020939093013593505050565b60008083601f84011261436057600080fd5b50813567ffffffffffffffff81111561437857600080fd5b6020830191508360208260051b850101111561439357600080fd5b9250929050565b600080600080604085870312156143b057600080fd5b843567ffffffffffffffff808211156143c857600080fd5b6143d48883890161434e565b909650945060208701359150808211156143ed57600080fd5b506143fa8782880161434e565b95989497509550505050565b60008060006060848603121561441b57600080fd5b833561442681614275565b9250602084013561443681614275565b929592945050506040919091013590565b80151581146112f257600080fd5b6000806040838503121561446857600080fd5b823561447381614275565b9150602083013561448381614447565b809150509250929050565b6000602082840312156144a057600080fd5b8135613c0981614447565b602081526000613c0960208301846141da565b600080604083850312156144d157600080fd5b82356144dc81614275565b9150602083013561448381614275565b634e487b7160e01b600052604160045260246000fd5b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052601160045260246000fd5b60006001820161454057614540614518565b5060010190565b6020808252818101527f4c543a204f6e6c7920646576656c6f7065722063616e2073657420746869732e604082015260600190565b60008261459957634e487b7160e01b600052601260045260246000fd5b500490565b60208082526032908201527f546f6b656e436c61776261636b3a2063616c6c6572206973206e6f74207468656040820152711022a92199181031b7b73a3937b63632b91760711b606082015260800190565b60006020828403121561460257600080fd5b8151613c0981614447565b60208082526032908201527f4c543a204c696d6974732068617665206265656e2072656d6f76656420616e646040820152711031b0b73737ba10313290393296b9b2ba1760711b606082015260800190565b60008282101561467157614671614518565b500390565b60006020828403121561468857600080fd5b8151613c0981614275565b6000602082840312156146a557600080fd5b5051919050565b60008160001904831182151516156146c6576146c6614518565b500290565b6000806000606084860312156146e057600080fd5b8351925060208401519150604084015190509250925092565b84815260806020820152600061471260808301866141da565b6001600160a01b03949094166040830152506060015292915050565b6000602080838503121561474157600080fd5b825167ffffffffffffffff8082111561475957600080fd5b818501915085601f83011261476d57600080fd5b81518181111561477f5761477f6144ec565b8060051b604051601f19603f830116810181811085821117156147a4576147a46144ec565b6040529182528482019250838101850191888311156147c257600080fd5b938501935b828510156147e0578451845293850193928501926147c7565b98975050505050505050565b600063ffffffff80831681851680830382111561480b5761480b614518565b01949350505050565b600063ffffffff8381169083168181101561483157614831614518565b039392505050565b6000821982111561484c5761484c614518565b500190565b85815284602082015260a06040820152600061487060a08301866141da565b6001600160a01b039490941660608301525060800152939250505056fe45524332303a207472616e7366657220616d6f756e74206578636565647320616c6c6f77616e6365a26469706673582212209cbf39c98cff33f2fe41afdb025f43f52c2daa7a36115abae1d69dc1254a49df64736f6c634300080f003360806040526001805460ff60a01b1916905534801561001d57600080fd5b5060405161146538038061146583398101604081905261003c916100c8565b61004533610078565b60048054336001600160a01b031991821617909155600180549091166001600160a01b03929092169190911790556100f8565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b6000602082840312156100da57600080fd5b81516001600160a01b03811681146100f157600080fd5b9392505050565b61135e806101076000396000f3fe6080604052600436106100a75760003560e01c8063916575441161006457806391657544146101785780639bba032a14610198578063d653e9a8146101b8578063de9067ad146101cb578063e026132e146101eb578063f2fde38b1461020b57600080fd5b806331600a63146100ac57806359c0ccc7146100d95780635e318e07146100fb578063715018a61461011b5780638da5cb5b1461013057806391537e2714610158575b600080fd5b3480156100b857600080fd5b506100c161022b565b6040516100d09392919061102a565b60405180910390f35b3480156100e557600080fd5b506100f96100f43660046110b8565b610417565b005b34801561010757600080fd5b506100f96101163660046110da565b610660565b34801561012757600080fd5b506100f96106a5565b34801561013c57600080fd5b506000546040516001600160a01b0390911681526020016100d0565b34801561016457600080fd5b506100f961017336600461113f565b6106b9565b34801561018457600080fd5b506100f96101933660046110da565b610966565b3480156101a457600080fd5b506100f96101b33660046110b8565b6109ca565b6100f96101c63660046110b8565b6109f4565b3480156101d757600080fd5b506100f96101e63660046111d9565b610b2b565b3480156101f757600080fd5b506100f96102063660046110b8565b610c8d565b34801561021757600080fd5b506100f96102263660046110b8565b610cb7565b606080606060028054905067ffffffffffffffff81111561024e5761024e61120e565b604051908082528060200260200182016040528015610277578160200160208202803683370190505b5060025490935067ffffffffffffffff8111156102965761029661120e565b6040519080825280602002602001820160405280156102bf578160200160208202803683370190505b5060025490925067ffffffffffffffff8111156102de576102de61120e565b604051908082528060200260200182016040528015610307578160200160208202803683370190505b50905060005b600254811015610411576002818154811061032a5761032a611224565b90600052602060002090600302016000015484828151811061034e5761034e611224565b6020026020010181815250506002818154811061036d5761036d611224565b90600052602060002090600302016001015483828151811061039157610391611224565b602002602001018181525050600281815481106103b0576103b0611224565b906000526020600020906003020160020160009054906101000a90046001600160a01b03168282815181106103e7576103e7611224565b6001600160a01b03909216602092830291909101909101528061040981611250565b91505061030d565b50909192565b600154600160a01b900460ff161561044a5760405162461bcd60e51b815260040161044190611269565b60405180910390fd5b6001805460ff60a01b1916600160a01b17905560005b60035481101561064f57816001600160a01b03166003828154811061048757610487611224565b60009182526020909120600160029092020101546001600160a01b03160361063d576000826001600160a01b0316600383815481106104c8576104c8611224565b60009182526020822060029091020154604051909181818185875af1925050503d8060008114610514576040519150601f19603f3d011682016040523d82523d6000602084013e610519565b606091505b505090508061056a5760405162461bcd60e51b815260206004820152601a60248201527f4c75636b794a61636b706f743a2053656e64206661696c65642e0000000000006044820152606401610441565b600354610579906001906112af565b82146105fb576003805461058f906001906112af565b8154811061059f5761059f611224565b9060005260206000209060020201600383815481106105c0576105c0611224565b600091825260209091208254600290920201908155600191820154910180546001600160a01b0319166001600160a01b039092169190911790555b600380548061060c5761060c6112c6565b60008281526020812060026000199093019283020190815560010180546001600160a01b031916905590555061064f565b8061064781611250565b915050610460565b50506001805460ff60a01b19169055565b610668610d30565b600080546040516001600160a01b039091169183156108fc02918491818181858888f193505050501580156106a1573d6000803e3d6000fd5b5050565b6106ad610d30565b6106b76000610d8a565b565b6001546001600160a01b031633146106e35760405162461bcd60e51b8152600401610441906112dc565b600154600160a01b900460ff161561070d5760405162461bcd60e51b815260040161044190611269565b6001805460ff60a01b1916600160a01b179055848314801561072e57508481145b61078d5760405162461bcd60e51b815260206004820152602a60248201527f4c75636b794a61636b706f743a204c656e677468206f6620617272617973206d6044820152693ab9ba1036b0ba31b41760b11b6064820152608401610441565b60005b8581101561080b576107f98787838181106107ad576107ad611224565b905060200201358686848181106107c6576107c6611224565b90506020020160208101906107db91906110b8565b8585858181106107ed576107ed611224565b90506020020135610dda565b8061080381611250565b915050610790565b5060006108196001876112af565b905060005b8681101561094f57600254888861083584866112af565b81811061084457610844611224565b90506020020135146108f95760028054610860906001906112af565b8154811061087057610870611224565b906000526020600020906003020160028989848661088e91906112af565b81811061089d5761089d611224565b90506020020135815481106108b4576108b4611224565b60009182526020909120825460039092020190815560018083015490820155600291820154910180546001600160a01b0319166001600160a01b039092169190911790555b600280548061090a5761090a6112c6565b600082815260208120600360001990930192830201818155600181019190915560020180546001600160a01b031916905590558061094781611250565b91505061081e565b50506001805460ff60a01b19169055505050505050565b6001546001600160a01b031633146109905760405162461bcd60e51b8152600401610441906112dc565b6001546040516001600160a01b039091169082156108fc029083906000818181858888f193505050501580156106a1573d6000803e3d6000fd5b6109d2610d30565b600180546001600160a01b0319166001600160a01b0392909216919091179055565b6004546001600160a01b03163314610a1e5760405162461bcd60e51b8152600401610441906112dc565b6000610a28610fb8565b604080516060810182528281523460208083018281526001600160a01b038881168587018181526002805460018101825560009190915296517f405787fa12a823e0f2b7631cc41b3ba8828b3321ca811111fa75cd3aa3bb5ace60039098029788015592517f405787fa12a823e0f2b7631cc41b3ba8828b3321ca811111fa75cd3aa3bb5acf87015591517f405787fa12a823e0f2b7631cc41b3ba8828b3321ca811111fa75cd3aa3bb5ad090950180546001600160a01b031916959091169490941790935583519182528101849052929350917f6d418321e3f92c6a489352adfa53b0f97aef60e56d92ce0c2dfdf79970a2dd40910160405180910390a25050565b6001546001600160a01b03163314610b555760405162461bcd60e51b8152600401610441906112dc565b600154600160a01b900460ff1615610b7f5760405162461bcd60e51b815260040161044190611269565b6001805460ff60a01b1916600160a01b179055610b9d838383610dda565b600254610bac906001906112af565b8314610c385760028054610bc2906001906112af565b81548110610bd257610bd2611224565b906000526020600020906003020160028481548110610bf357610bf3611224565b60009182526020909120825460039092020190815560018083015490820155600291820154910180546001600160a01b0319166001600160a01b039092169190911790555b6002805480610c4957610c496112c6565b60008281526020812060036000199093019283020181815560018181019290925560020180546001600160a01b03191690559155805460ff60a01b19169055505050565b610c95610d30565b600480546001600160a01b0319166001600160a01b0392909216919091179055565b610cbf610d30565b6001600160a01b038116610d245760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610441565b610d2d81610d8a565b50565b6000546001600160a01b031633146106b75760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610441565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b600060028481548110610def57610def611224565b6000918252602082206001600390920201015491506001600160a01b03841661c350610e1b85856112af565b6040516000818181858888f193505050503d8060008114610e58576040519150601f19603f3d011682016040523d82523d6000602084013e610e5d565b606091505b5050604051909150339084156108fc029085906000818181858888f19350505050158015610e8f573d6000803e3d6000fd5b508015610f09576001600160a01b0384167fb3c089216f23b7daf9ba89aed51ed7cd7a84a690165388c507a0da320840c29a610ecb85856112af565b60028881548110610ede57610ede611224565b60009182526020918290206003909102015460408051938452918301520160405180910390a2610fb1565b600360405180604001604052808585610f2291906112af565b81526001600160a01b038781166020928301819052845460018082018755600096875295849020855160029092020190815593909201519290930180546001600160a01b03191692909316919091179091557f94865cfe07b56d8fc7d748debc2277d076807d3678da121aa700f3bf2a66df32610f9f85856112af565b60405190815260200160405180910390a25b5050505050565b6000610fc56001436112af565b6040805191406020830152016040516020818303038152906040528051906020012060001c905090565b600081518084526020808501945080840160005b8381101561101f57815187529582019590820190600101611003565b509495945050505050565b60608152600061103d6060830186610fef565b6020838203818501526110508287610fef565b8481036040860152855180825282870193509082019060005b8181101561108e5784516001600160a01b031683529383019391830191600101611069565b509098975050505050505050565b80356001600160a01b03811681146110b357600080fd5b919050565b6000602082840312156110ca57600080fd5b6110d38261109c565b9392505050565b6000602082840312156110ec57600080fd5b5035919050565b60008083601f84011261110557600080fd5b50813567ffffffffffffffff81111561111d57600080fd5b6020830191508360208260051b850101111561113857600080fd5b9250929050565b6000806000806000806060878903121561115857600080fd5b863567ffffffffffffffff8082111561117057600080fd5b61117c8a838b016110f3565b9098509650602089013591508082111561119557600080fd5b6111a18a838b016110f3565b909650945060408901359150808211156111ba57600080fd5b506111c789828a016110f3565b979a9699509497509295939492505050565b6000806000606084860312156111ee57600080fd5b833592506111fe6020850161109c565b9150604084013590509250925092565b634e487b7160e01b600052604160045260246000fd5b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052601160045260246000fd5b6000600182016112625761126261123a565b5060010190565b60208082526026908201527f4c75636b794a61636b706f743a20506c7320646f206e6f742072656e7472616e60408201526531bc903ab99760d11b606082015260800190565b6000828210156112c1576112c161123a565b500390565b634e487b7160e01b600052603160045260246000fd5b6020808252602c908201527f4c75636b794a61636b706f743a204f6e6c792074686520626f742063616e206560408201526b3c32b1baba32903a3434b99760a11b60608201526080019056fea26469706673582212203547309530e519ba0d3707944f2f87879e591d259b9da83ccf3848cb1947514764736f6c634300080f0033
Deployed Bytecode
0x6080604052600436106103a55760003560e01c80636612e66f116101e7578063a39762571161010d578063d0bb0b8a116100a0578063e4a712651161006f578063e4a7126514610b35578063e9cb414f14610b53578063f200e29d14610b73578063f2fde38b14610b8857600080fd5b8063d0bb0b8a14610a8d578063db932ae214610aaf578063dd62ed3e14610acf578063e0195f0714610b1557600080fd5b8063b0bc85de116100dc578063b0bc85de146109f8578063b1a4e0dc14610a1a578063bb1789d614610a58578063c9567bf914610a7857600080fd5b8063a397625714610974578063a9059cbb14610994578063a95f945a146109b4578063ae5e208b146109d657600080fd5b80637a52da0e116101855780639251c4ce116101545780639251c4ce146108f057806395d89b41146109055780639badc36514610932578063a10122331461095457600080fd5b80637a52da0e1461088857806386f3f3cb146108a857806388a65f46146108bd5780638da5cb5b146108d257600080fd5b806370bfdd9d116101c157806370bfdd9d1461082b578063715018a61461084057806374d45ec814610855578063751039fc1461087357600080fd5b80636612e66f146107cb5780636faae4a7146107eb57806370a082311461080b57600080fd5b8063252d723a116102cc57806338573ef81161026a5780634914ad57116102395780634914ad571461073d5780635342acb414610752578063571cbe0a1461078b5780635932ead1146107ab57600080fd5b806338573ef8146106c8578063461b3796146106dd578063470054d4146106fd578063473071ce1461071d57600080fd5b8063313ce567116102a6578063313ce5671461064c578063333429471461066857806333a1728214610688578063342aa8b5146106a857600080fd5b8063252d723a146105d95780632c3472a61461060c5780632c7513041461062e57600080fd5b806313da0a14116103445780631c8179a5116103135780631c8179a51461055c57806320d5bf371461057c578063218e4a151461059a57806323b872dd146105b957600080fd5b806313da0a14146104e157806314b3b0771461050157806318160ddd1461052157806319db2dcb1461053c57600080fd5b806306fdde031161038057806306fdde031461041f578063095ea7b31461045c5780630fa604e41461048c5780631162ba0e146104af57600080fd5b8062113e08146103b157806301be1f6c146103dd5780630400bb7a146103ff57600080fd5b366103ac57005b600080fd5b3480156103bd57600080fd5b506103c6610ba8565b6040516103d492919061421e565b60405180910390f35b3480156103e957600080fd5b506103fd6103f836600461428a565b610cc6565b005b34801561040b57600080fd5b506103fd61041a3660046142a7565b610cf0565b34801561042b57600080fd5b5060408051808201909152600b81526a4c75636b79546f6164763360a81b60208201525b6040516103d491906142cd565b34801561046857600080fd5b5061047c610477366004614322565b610d52565b60405190151581526020016103d4565b34801561049857600080fd5b506104a1610d68565b6040519081526020016103d4565b3480156104bb57600080fd5b50600a546001600160a01b03165b6040516001600160a01b0390911681526020016103d4565b3480156104ed57600080fd5b506103fd6104fc3660046142a7565b610d92565b34801561050d57600080fd5b506103fd61051c36600461428a565b610e17565b34801561052d57600080fd5b50670de0b6b3a76400006104a1565b34801561054857600080fd5b506103fd61055736600461428a565b610e41565b34801561056857600080fd5b506103fd61057736600461439a565b610e96565b34801561058857600080fd5b50600c546001600160a01b03166104c9565b3480156105a657600080fd5b50600c54600160f81b900460ff1661047c565b3480156105c557600080fd5b5061047c6105d4366004614406565b610fc1565b3480156105e557600080fd5b50600b54600160c01b900463ffffffff165b60405163ffffffff90911681526020016103d4565b34801561061857600080fd5b50600a54600160c01b900463ffffffff166105f7565b34801561063a57600080fd5b50600b546001600160a01b03166104c9565b34801561065857600080fd5b50604051600981526020016103d4565b34801561067457600080fd5b506103fd6106833660046142a7565b61102a565b34801561069457600080fd5b5061047c6106a3366004614406565b611058565b3480156106b457600080fd5b506103fd6106c3366004614455565b61110e565b3480156106d457600080fd5b506103fd611251565b3480156106e957600080fd5b506103fd6106f83660046142a7565b6112f5565b34801561070957600080fd5b506103fd6107183660046142a7565b61134d565b34801561072957600080fd5b506103fd61073836600461428a565b6113a5565b34801561074957600080fd5b506103c66113e1565b34801561075e57600080fd5b5061047c61076d36600461428a565b6001600160a01b031660009081526003602052604090205460ff1690565b34801561079757600080fd5b5061047c6107a6366004614406565b611552565b3480156107b757600080fd5b506103fd6107c636600461448e565b6115c0565b3480156107d757600080fd5b506103fd6107e6366004614455565b6115e8565b3480156107f757600080fd5b506103fd6108063660046142a7565b61161b565b34801561081757600080fd5b506104a161082636600461428a565b611673565b34801561083757600080fd5b506103fd611684565b34801561084c57600080fd5b506103fd6116a1565b34801561086157600080fd5b506009546001600160a01b03166104c9565b34801561087f57600080fd5b506103fd6116b5565b34801561089457600080fd5b506103fd6108a336600461428a565b6116d2565b3480156108b457600080fd5b506104c9611739565b3480156108c957600080fd5b506103fd61189c565b3480156108de57600080fd5b506000546001600160a01b03166104c9565b3480156108fc57600080fd5b506104a1611a88565b34801561091157600080fd5b506040805180820190915260048152631513d05160e21b602082015261044f565b34801561093e57600080fd5b50610947611aad565b6040516103d491906144ab565b34801561096057600080fd5b506103fd61096f36600461428a565b611b0f565b34801561098057600080fd5b506103fd61098f3660046142a7565b611b39565b3480156109a057600080fd5b5061047c6109af366004614322565b611b92565b3480156109c057600080fd5b50600a54600160a01b900463ffffffff166105f7565b3480156109e257600080fd5b50600a54600160e01b900463ffffffff166105f7565b348015610a0457600080fd5b50600b54600160e01b900463ffffffff166105f7565b348015610a2657600080fd5b5061047c610a3536600461428a565b6001600160a01b0316600090815260036020526040902054610100900460ff1690565b348015610a6457600080fd5b506103fd610a733660046142a7565b611b9f565b348015610a8457600080fd5b506103fd611c24565b348015610a9957600080fd5b50600954600160e01b900463ffffffff166105f7565b348015610abb57600080fd5b506103fd610aca3660046142a7565b6127bc565b348015610adb57600080fd5b506104a1610aea3660046144be565b6001600160a01b03918216600090815260026020908152604080832093909416825291909152205490565b348015610b2157600080fd5b506103fd610b3036600461428a565b612842565b348015610b4157600080fd5b50600d546001600160a01b03166104c9565b348015610b5f57600080fd5b506103fd610b6e36600461428a565b612897565b348015610b7f57600080fd5b506109476128c9565b348015610b9457600080fd5b506103fd610ba336600461428a565b612b95565b6060806007805480602002602001604051908101604052809291908181526020018280548015610c0157602002820191906000526020600020905b81546001600160a01b03168152600190910190602001808311610be3575b50505050509150815167ffffffffffffffff811115610c2257610c226144ec565b604051908082528060200260200182016040528015610c4b578160200160208202803683370190505b50905060005b8251811015610cc157610c92838281518110610c6f57610c6f614502565b60200260200101516001600160a01b031660009081526001602052604090205490565b828281518110610ca457610ca4614502565b602090810291909101015280610cb98161452e565b915050610c51565b509091565b610cce612c0b565b600d80546001600160a01b0319166001600160a01b0392909216919091179055565b600a546001600160a01b0316336001600160a01b031614610d2c5760405162461bcd60e51b8152600401610d2390614547565b60405180910390fd5b600a805463ffffffff909216600160a01b0263ffffffff60a01b19909216919091179055565b6000610d5f338484612c65565b50600192915050565b600c54600090610d8d90600160c01b900463ffffffff16670de0b6b3a764000061457c565b905090565b610d9a612c0b565b614e208163ffffffff161115610df25760405162461bcd60e51b815260206004820181905260248201527f4c543a204d6178696d756d207472616e7366657220746178206f66203230252e6044820152606401610d23565b6009805463ffffffff909216600160e01b026001600160e01b03909216919091179055565b610e1f612c0b565b600980546001600160a01b0319166001600160a01b0392909216919091179055565b600c546001600160a01b0316336001600160a01b031614610e745760405162461bcd60e51b8152600401610d239061459e565b600a80546001600160a01b0319166001600160a01b0392909216919091179055565b610e9e612c0b565b828114610ee45760405162461bcd60e51b81526020600482015260146024820152732632b733ba3439903237b713ba1036b0ba31b41760611b6044820152606401610d23565b60005b83811015610fba57828282818110610f0157610f01614502565b9050602002013560056000878785818110610f1e57610f1e614502565b9050602002016020810190610f33919061428a565b6001600160a01b031681526020810191909152604001600020556006858583818110610f6157610f61614502565b9050602002016020810190610f76919061428a565b81546001810183556000928352602090922090910180546001600160a01b0319166001600160a01b0390921691909117905580610fb28161452e565b915050610ee7565b5050505050565b6000610fce848484612d89565b611020843361101b8560405180606001604052806028815260200161488e602891396001600160a01b038a16600090815260026020908152604080832033845290915290205491906132df565b612c65565b5060019392505050565b611032612c0b565b600d805463ffffffff909216600160a01b0263ffffffff60a01b19909216919091179055565b600c546000906001600160a01b0316336001600160a01b03161461108e5760405162461bcd60e51b8152600401610d239061459e565b60405163095ea7b360e01b81526001600160a01b0384811660048301526024820184905285919082169063095ea7b3906044015b6020604051808303816000875af11580156110e1573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061110591906145f0565b95945050505050565b611116612c0b565b6001600160a01b038216600090815260036020526040902054600160501b900460ff16156111ac5760405162461bcd60e51b815260206004820152603b60248201527f4c543a2043616e6e6f74206d616e6970756c61746520626c6f636b6c6973742060448201527f737461747573206f662061206c697175696469747920706169722e00000000006064820152608401610d23565b801561122057600d54600160c01b900460ff16156112205760405162461bcd60e51b815260206004820152602b60248201527f4c543a20426c6f636b6c697374206164646974696f6e7320686176652062656560448201526a37103234b9b0b13632b21760a91b6064820152608401610d23565b6001600160a01b03909116600090815260036020526040902080549115156101000261ff0019909216919091179055565b611259612c0b565b60065480156112f2576000805b828110156112e35760006006828154811061128357611283614502565b60009182526020808320909101546001600160a01b0316808352600590915260408220549092506112b99133918491878161330b565b6001600160a01b0316600090815260056020526040812055806112db8161452e565b915050611266565b506112f0600660006141a8565b505b50565b600a546001600160a01b0316336001600160a01b0316146113285760405162461bcd60e51b8152600401610d2390614547565b600a805463ffffffff909216600160e01b026001600160e01b03909216919091179055565b611355612c0b565b600d54600160c81b900460ff161561137f5760405162461bcd60e51b8152600401610d239061460d565b600c805463ffffffff909216600160c01b0263ffffffff60c01b19909216919091179055565b600c546001600160a01b0316336001600160a01b0316146113d85760405162461bcd60e51b8152600401610d239061459e565b6112f2816136ab565b600654606090819067ffffffffffffffff811115611401576114016144ec565b60405190808252806020026020018201604052801561142a578160200160208202803683370190505b5060065490925067ffffffffffffffff811115611449576114496144ec565b604051908082528060200260200182016040528015611472578160200160208202803683370190505b50905060005b600654811015610cc1576006818154811061149557611495614502565b9060005260206000200160009054906101000a90046001600160a01b03168382815181106114c5576114c5614502565b60200260200101906001600160a01b031690816001600160a01b03168152505060056000600683815481106114fc576114fc614502565b60009182526020808320909101546001600160a01b03168352820192909252604001902054825183908390811061153557611535614502565b60209081029190910101528061154a8161452e565b915050611478565b600c546000906001600160a01b0316336001600160a01b0316146115885760405162461bcd60e51b8152600401610d239061459e565b60405163a9059cbb60e01b81526001600160a01b0384811660048301526024820184905285919082169063a9059cbb906044016110c2565b6115c8612c0b565b600c8054911515600160f81b026001600160f81b03909216919091179055565b6115f0612c0b565b6001600160a01b03919091166000908152600360205260409020805460ff1916911515919091179055565b611623612c0b565b600d54600160c81b900460ff161561164d5760405162461bcd60e51b8152600401610d239061460d565b600c805463ffffffff909216600160a01b0263ffffffff60a01b19909216919091179055565b600061167e826138d8565b92915050565b61168c612c0b565b600d805460ff60c01b1916600160c01b179055565b6116a9612c0b565b6116b36000613942565b565b6116bd612c0b565b600d805460ff60c81b1916600160c81b179055565b600c546001600160a01b0316336001600160a01b0316146117055760405162461bcd60e51b8152600401610d239061459e565b4761170f826136ab565b600061171b824761465f565b600c54909150611734906001600160a01b031682613992565b505050565b600e546040805163c45a015560e01b815290516000926001600160a01b03169163c45a01559160048083019260209291908290030181865afa158015611783573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906117a79190614676565b6001600160a01b031663e6a4390530600e60009054906101000a90046001600160a01b03166001600160a01b031663ad5c46486040518163ffffffff1660e01b8152600401602060405180830381865afa158015611809573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061182d9190614676565b6040516001600160e01b031960e085901b1681526001600160a01b03928316600482015291166024820152604401602060405180830381865afa158015611878573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610d8d9190614676565b600c546001600160a01b0316336001600160a01b0316146118cf5760405162461bcd60e51b8152600401610d239061459e565b600e54604080516315ab88c960e31b815290516000926001600160a01b03169163ad5c46489160048083019260209291908290030181865afa158015611919573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061193d9190614676565b90506000600e60009054906101000a90046001600160a01b03166001600160a01b031663ad5c46486040518163ffffffff1660e01b8152600401602060405180830381865afa158015611994573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906119b89190614676565b6040516370a0823160e01b81523060048201529091506000906001600160a01b038316906370a0823190602401602060405180830381865afa158015611a02573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611a269190614693565b604051632e1a7d4d60e01b8152600481018290529091506001600160a01b03841690632e1a7d4d90602401600060405180830381600087803b158015611a6b57600080fd5b505af1158015611a7f573d6000803e3d6000fd5b50505050505050565b600c54600090610d8d90600160a01b900463ffffffff16670de0b6b3a764000061457c565b60606008805480602002602001604051908101604052809291908181526020018280548015611b0557602002820191906000526020600020905b81546001600160a01b03168152600190910190602001808311611ae7575b5050505050905090565b611b17612c0b565b600b80546001600160a01b0319166001600160a01b0392909216919091179055565b600a546001600160a01b0316336001600160a01b031614611b6c5760405162461bcd60e51b8152600401610d2390614547565b600a805463ffffffff909216600160c01b0263ffffffff60c01b19909216919091179055565b6000610d5f338484612d89565b611ba7612c0b565b614e208163ffffffff161115611bff5760405162461bcd60e51b815260206004820152601c60248201527f4c543a204d6178696d756d2073656c6c20746178206f66203230252e000000006044820152606401610d23565b600b805463ffffffff909216600160e01b026001600160e01b03909216919091179055565b611c2c612c0b565b600c54600160e01b900460ff1615611c865760405162461bcd60e51b815260206004820152601760248201527f74726164696e6720697320616c7265616479206f70656e0000000000000000006044820152606401610d23565b600e80546001600160a01b031916737a250d5630b4cf539739df2c5dacb4c659f2488d908117909155611cc23082670de0b6b3a7640000612c65565b6000816001600160a01b031663c45a01556040518163ffffffff1660e01b8152600401602060405180830381865afa158015611d02573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611d269190614676565b6001600160a01b031663c9c6539630846001600160a01b031663ad5c46486040518163ffffffff1660e01b8152600401602060405180830381865afa158015611d73573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611d979190614676565b6040516001600160e01b031960e085901b1681526001600160a01b039283166004820152911660248201526044016020604051808303816000875af1158015611de4573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611e089190614676565b90506000826001600160a01b031663c45a01556040518163ffffffff1660e01b8152600401602060405180830381865afa158015611e4a573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611e6e9190614676565b6040516364e329cb60e11b815230600482015273a0b86991c6218b36c1d19d4a2e9eb0ce3606eb4860248201526001600160a01b03919091169063c9c65396906044016020604051808303816000875af1158015611ed0573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611ef49190614676565b600954909150600090606490600160c01b900463ffffffff16611f1630611673565b611f2091906146ac565b611f2a919061457c565b600b54909150600090606490600160a01b900463ffffffff16611f4c30611673565b611f5691906146ac565b611f60919061457c565b600954909150600090606490611f8390600160c01b900463ffffffff16476146ac565b611f8d919061457c565b600b54909150600090606490611fb090600160a01b900463ffffffff16476146ac565b611fba919061457c565b600e549091506001600160a01b031663f305d719833087600080611fe66000546001600160a01b031690565b60405160e088901b6001600160e01b03191681526001600160a01b03958616600482015260248101949094526044840192909252606483015290911660848201524260a482015260c40160606040518083038185885af115801561204e573d6000803e3d6000fd5b50505050506040513d601f19601f8201168201806040525081019061207391906146cb565b50506040805160028082526060820183526000935090916020830190803683375050600e54604080516315ab88c960e31b815290519394506001600160a01b039091169263ad5c4648925060048083019260209291908290030181865afa1580156120e2573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906121069190614676565b8160008151811061211957612119614502565b60200260200101906001600160a01b031690816001600160a01b03168152505073a0b86991c6218b36c1d19d4a2e9eb0ce3606eb488160018151811061216157612161614502565b6001600160a01b039283166020918202929092010152600e54604051637ff36ab560e01b8152911690637ff36ab59084906121a7906000908690309042906004016146f9565b60006040518083038185885af11580156121c5573d6000803e3d6000fd5b50505050506040513d6000823e601f3d908101601f191682016040526121ee919081019061472e565b506040516370a0823160e01b815230600482015273a0b86991c6218b36c1d19d4a2e9eb0ce3606eb489060009082906370a0823190602401602060405180830381865afa158015612243573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906122679190614693565b600e5460405163095ea7b360e01b81526001600160a01b0391821660048201526024810183905291925083169063095ea7b3906044016020604051808303816000875af11580156122bc573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906122e091906145f0565b50600e546001600160a01b031663e8e3370073a0b86991c6218b36c1d19d4a2e9eb0ce3606eb4830848a60008061231f6000546001600160a01b031690565b60405160e089901b6001600160e01b03191681526001600160a01b039788166004820152958716602487015260448601949094526064850192909252608484015260a483015290911660c48201524260e4820152610104016060604051808303816000875af1158015612396573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906123ba91906146cb565b5050600c8054600169ff00000000000000000160a01b03166b01010001000000010000000160a01b179055506009805463ffffffff60a01b1916600160a01b63ffffffff431602179055600e5460405163095ea7b360e01b81526001600160a01b0391821660048201526000196024820152908a169063095ea7b3906044016020604051808303816000875af1158015612458573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061247c91906145f0565b50600e5460405163095ea7b360e01b81526001600160a01b03918216600482015260001960248201529089169063095ea7b3906044016020604051808303816000875af11580156124d1573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906124f591906145f0565b506040518060a00160405280600015158152602001600015158152602001600063ffffffff168152602001600063ffffffff16815260200160011515815250600360008b6001600160a01b03166001600160a01b0316815260200190815260200160002060008201518160000160006101000a81548160ff02191690831515021790555060208201518160000160016101000a81548160ff02191690831515021790555060408201518160000160026101000a81548163ffffffff021916908363ffffffff16021790555060608201518160000160066101000a81548163ffffffff021916908363ffffffff160217905550608082015181600001600a6101000a81548160ff0219169083151502179055509050506040518060a00160405280600015158152602001600015158152602001600063ffffffff168152602001600063ffffffff16815260200160011515815250600360008a6001600160a01b03166001600160a01b0316815260200190815260200160002060008201518160000160006101000a81548160ff02191690831515021790555060208201518160000160016101000a81548160ff02191690831515021790555060408201518160000160026101000a81548163ffffffff021916908363ffffffff16021790555060608201518160000160066101000a81548163ffffffff021916908363ffffffff160217905550608082015181600001600a6101000a81548160ff0219169083151502179055509050506008899080600181540180825580915050600190039060005260206000200160009091909190916101000a8154816001600160a01b0302191690836001600160a01b031602179055506008889080600181540180825580915050600190039060005260206000200160009091909190916101000a8154816001600160a01b0302191690836001600160a01b0316021790555050505050505050505050565b6127c4612c0b565b614e208163ffffffff16111561281c5760405162461bcd60e51b815260206004820152601b60248201527f4c543a204d6178696d756d2062757920746178206f66203230252e00000000006044820152606401610d23565b600b805463ffffffff909216600160c01b0263ffffffff60c01b19909216919091179055565b600a546001600160a01b0316336001600160a01b0316146128755760405162461bcd60e51b8152600401610d2390614547565b600c80546001600160a01b0319166001600160a01b0392909216919091179055565b61289f612c0b565b6001600160a01b03166000908152600360205260409020805460ff60501b1916600160501b179055565b60408051600280825260608083018452926020830190803683375050600e546040805163c45a015560e01b815290519394506001600160a01b039091169263c45a0155925060048083019260209291908290030181865afa158015612932573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906129569190614676565b6001600160a01b031663e6a4390530600e60009054906101000a90046001600160a01b03166001600160a01b031663ad5c46486040518163ffffffff1660e01b8152600401602060405180830381865afa1580156129b8573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906129dc9190614676565b6040516001600160e01b031960e085901b1681526001600160a01b03928316600482015291166024820152604401602060405180830381865afa158015612a27573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612a4b9190614676565b81600081518110612a5e57612a5e614502565b6001600160a01b03928316602091820292909201810191909152600e546040805163c45a015560e01b81529051919093169263c45a01559260048083019391928290030181865afa158015612ab7573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612adb9190614676565b60405163e6a4390560e01b815230600482015273a0b86991c6218b36c1d19d4a2e9eb0ce3606eb4860248201526001600160a01b03919091169063e6a4390590604401602060405180830381865afa158015612b3b573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612b5f9190614676565b81600181518110612b7257612b72614502565b60200260200101906001600160a01b031690816001600160a01b03168152505090565b612b9d612c0b565b6001600160a01b038116612c025760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610d23565b6112f281613942565b6000546001600160a01b031633146116b35760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610d23565b6001600160a01b038316612cc75760405162461bcd60e51b8152602060048201526024808201527f45524332303a20617070726f76652066726f6d20746865207a65726f206164646044820152637265737360e01b6064820152608401610d23565b6001600160a01b038216612d285760405162461bcd60e51b815260206004820152602260248201527f45524332303a20617070726f766520746f20746865207a65726f206164647265604482015261737360f01b6064820152608401610d23565b6001600160a01b0383811660008181526002602090815260408083209487168084529482529182902085905590518481527f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925910160405180910390a3505050565b6001600160a01b038316612ded5760405162461bcd60e51b815260206004820152602560248201527f45524332303a207472616e736665722066726f6d20746865207a65726f206164604482015264647265737360d81b6064820152608401610d23565b6001600160a01b038216612e4f5760405162461bcd60e51b815260206004820152602360248201527f45524332303a207472616e7366657220746f20746865207a65726f206164647260448201526265737360e81b6064820152608401610d23565b60008111612eb15760405162461bcd60e51b815260206004820152602960248201527f5472616e7366657220616d6f756e74206d7573742062652067726561746572206044820152687468616e207a65726f60b81b6064820152608401610d23565b60008080612ec76000546001600160a01b031690565b6001600160a01b0316866001600160a01b031614158015612ef657506000546001600160a01b03868116911614155b8015612f0b57506001600160a01b0386163014155b8015612f3057506001600160a01b03851660009081526003602052604090205460ff16155b8015612f5557506001600160a01b03861660009081526003602052604090205460ff16155b156132c4576001600160a01b038516600090815260036020526040902054610100900460ff16158015612fa657506001600160a01b038616600090815260036020526040902054610100900460ff16155b612fe55760405162461bcd60e51b815260206004820152601060248201526f262a1d10213637b1b5b634b9ba32b21760811b6044820152606401610d23565b6001600160a01b038616600090815260036020526040902054600160501b900460ff1680156130225750600e546001600160a01b03868116911614155b1561312e57600b54600c54600160c01b90910463ffffffff169250600160f81b900460ff16156130eb576001600160a01b038516600090815260036020526040902054436201000090910463ffffffff16036130b85760405162461bcd60e51b8152602060048201526015602482015274262a1d1027b732903a3c103832b910313637b1b59760591b6044820152606401610d23565b6001600160a01b0385166000908152600360205260409020805465ffffffff00001916620100004363ffffffff16021790555b600954439061310990600290600160a01b900463ffffffff166147ec565b63ffffffff16111561311e57600192506132c9565b613129858584613aab565b6132c9565b6001600160a01b038516600090815260036020526040902054600160501b900460ff16801561316b5750600e546001600160a01b03878116911614155b156132ad5750600c54600190600160f81b900460ff1615613205576001600160a01b038616600090815260036020526040902054436201000090910463ffffffff16036131f25760405162461bcd60e51b8152602060048201526015602482015274262a1d1027b732903a3c103832b910313637b1b59760591b6044820152606401610d23565b6001600160a01b03861660005260036020525b600b54600c5463ffffffff600160e01b9092048216935061323791600160a01b90910416670de0b6b3a764000061457c565b620186a06132458482614814565b6132559063ffffffff16876146ac565b61325f919061457c565b11156131295760405162461bcd60e51b815260206004820181905260248201527f4c543a204f766572206d6178207472616e73616374696f6e20616d6f756e742e6044820152606401610d23565b600954600160e01b900463ffffffff1691506132c9565b600091505b6132d786868685878661330b565b505050505050565b600081848411156133035760405162461bcd60e51b8152600401610d2391906142cd565b505050900390565b60008083156133935760019150613322828761465f565b6001600160a01b0388166000908152600360209081526040808320805469ffffffff000000000000191666010000000000004363ffffffff16021790556001909152902054909150613375908790614839565b6001600160a01b0388166000908152600460205260409020556133ac565b61339d8686613be9565b90506133a9818761465f565b91505b80156135ae57306000908152600160205260409020546133cd908290614839565b30600081815260016020526040908190209290925590516001600160a01b038a16907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9061341e9085815260200190565b60405180910390a3600e546040805163c45a015560e01b815290516000926001600160a01b03169163c45a01559160048083019260209291908290030181865afa158015613470573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906134949190614676565b6001600160a01b031663e6a4390530600e60009054906101000a90046001600160a01b03166001600160a01b031663ad5c46486040518163ffffffff1660e01b8152600401602060405180830381865afa1580156134f6573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061351a9190614676565b6040516001600160e01b031960e085901b1681526001600160a01b03928316600482015291166024820152604401602060405180830381865afa158015613565573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906135899190614676565b90506135ac82826001600160a01b03168b6001600160a01b03161415868c613c10565b505b82156135fc57876001600160a01b03167fae92ab4b6f8f401ead768d3273e6bb937a13e39827d19c6376e8fd4512a05d9a836040516135ef91815260200190565b60405180910390a2613640565b866001600160a01b03167fc55650ccda1011e1cdc769b1fbf546ebb8c97800b6072b49e06cd560305b1d678360405161363791815260200190565b60405180910390a25b61364a8887613ff9565b613654878361403d565b866001600160a01b0316886001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef8460405161369991815260200190565b60405180910390a35050505050505050565b6040805160028082526060820183528392600092919060208301908036833701905050905082816000815181106136e4576136e4614502565b6001600160a01b03928316602091820292909201810191909152600e54604080516315ab88c960e31b81529051919093169263ad5c46489260048083019391928290030181865afa15801561373d573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906137619190614676565b8160018151811061377457613774614502565b6001600160a01b0392831660209182029290920101526040516370a0823160e01b81523060048201526000918416906370a0823190602401602060405180830381865afa1580156137c9573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906137ed9190614693565b600e5460405163095ea7b360e01b81526001600160a01b0391821660048201526024810183905291925084169063095ea7b3906044016020604051808303816000875af1158015613842573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061386691906145f0565b50600e5460405163791ac94760e01b81526001600160a01b039091169063791ac947906138a0908490600090879030904290600401614851565b600060405180830381600087803b1580156138ba57600080fd5b505af11580156138ce573d6000803e3d6000fd5b5050505050505050565b6001600160a01b03811660009081526003602052604081205443660100000000000090910463ffffffff160361392457506001600160a01b031660009081526004602052604090205490565b6001600160a01b03821660009081526001602052604090205461167e565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b804710156139e25760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a20696e73756666696369656e742062616c616e63650000006044820152606401610d23565b6000826001600160a01b03168260405160006040518083038185875af1925050503d8060008114613a2f576040519150601f19603f3d011682016040523d82523d6000602084013e613a34565b606091505b50509050806117345760405162461bcd60e51b815260206004820152603a60248201527f416464726573733a20756e61626c6520746f2073656e642076616c75652c207260448201527f6563697069656e74206d617920686176652072657665727465640000000000006064820152608401610d23565b6000620186a0613abb8382614814565b613acb9063ffffffff16856146ac565b613ad5919061457c565b600c54909150613afa90600160a01b900463ffffffff16670de0b6b3a764000061457c565b811115613b495760405162461bcd60e51b815260206004820181905260248201527f4c543a204f766572206d6178207472616e73616374696f6e20616d6f756e742e6044820152606401610d23565b600c54613b6b90600160c01b900463ffffffff16670de0b6b3a764000061457c565b81613b8b866001600160a01b031660009081526001602052604090205490565b613b959190614839565b1115613be35760405162461bcd60e51b815260206004820152601b60248201527f4c543a204f766572206d61782077616c6c657420616d6f756e742e00000000006044820152606401610d23565b50505050565b6000620186a0613bff63ffffffff8416856146ac565b613c09919061457c565b9392505050565b600c805460ff60e81b1916600160e81b179055306000908152600260209081526040808320600e546001600160a01b03168452909152902054841115613c7057600e54613c709030906001600160a01b0316670de0b6b3a7640000612c65565b8215613dcf576040805160028082526060820183526000926020830190803683370190505090503081600081518110613cab57613cab614502565b6001600160a01b03928316602091820292909201810191909152600e54604080516315ab88c960e31b81529051919093169263ad5c46489260048083019391928290030181865afa158015613d04573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190613d289190614676565b81600181518110613d3b57613d3b614502565b6001600160a01b039283166020918202929092010152600e546040516318cbafe560e01b81529116906318cbafe590613d81908890600090869030904290600401614851565b6000604051808303816000875af1158015613da0573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f19168201604052613dc8919081019061472e565b5050613f6e565b60408051600380825260808201909252600091602082016060803683370190505090503081600081518110613e0657613e06614502565b60200260200101906001600160a01b031690816001600160a01b03168152505073a0b86991c6218b36c1d19d4a2e9eb0ce3606eb4881600181518110613e4e57613e4e614502565b6001600160a01b03928316602091820292909201810191909152600e54604080516315ab88c960e31b81529051919093169263ad5c46489260048083019391928290030181865afa158015613ea7573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190613ecb9190614676565b81600281518110613ede57613ede614502565b6001600160a01b039283166020918202929092010152600e546040516318cbafe560e01b81529116906318cbafe590613f24908890600090869030904290600401614851565b6000604051808303816000875af1158015613f43573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f19168201604052613f6b919081019061472e565b50505b8115613fdd57600d54604051631aca7d3560e31b81526001600160a01b03838116600483015290911690819063d653e9a89047906024016000604051808303818588803b158015613fbe57600080fd5b505af1158015613fd2573d6000803e3d6000fd5b505050505050613fe6565b613fe6476140cc565b5050600c805460ff60e81b191690555050565b6001600160a01b03821660009081526001602052604090205461401d90829061465f565b6001600160a01b0390921660009081526001602052604090209190915550565b6001600160a01b03821660009081526001602052604081205490036140a857600780546001810182556000919091527fa66cc928b5edb82af9bd49922954155ab7b0942694bea4ce44661d9a8736c6880180546001600160a01b0319166001600160a01b0384161790555b6001600160a01b03821660009081526001602052604090205461401d908290614839565b600a5460009063ffffffff600160e01b82048116916140fc91600160a01b8204811691600160c01b9004166147ec565b61410691906147ec565b600954600a5491925061414a916001600160a01b039091169063ffffffff8085169161413b91600160c01b90910416866146ac565b614145919061457c565b613992565b600a54614178906001600160a01b0381169063ffffffff8085169161413b91600160a01b90910416866146ac565b600b54600a546112f0916001600160a01b03169063ffffffff8085169161413b91600160e01b90910416866146ac565b50805460008255906000526020600020908101906112f291905b808211156141d657600081556001016141c2565b5090565b600081518084526020808501945080840160005b838110156142135781516001600160a01b0316875295820195908201906001016141ee565b509495945050505050565b60408152600061423160408301856141da565b82810360208481019190915284518083528582019282019060005b818110156142685784518352938301939183019160010161424c565b5090979650505050505050565b6001600160a01b03811681146112f257600080fd5b60006020828403121561429c57600080fd5b8135613c0981614275565b6000602082840312156142b957600080fd5b813563ffffffff81168114613c0957600080fd5b600060208083528351808285015260005b818110156142fa578581018301518582016040015282016142de565b8181111561430c576000604083870101525b50601f01601f1916929092016040019392505050565b6000806040838503121561433557600080fd5b823561434081614275565b946020939093013593505050565b60008083601f84011261436057600080fd5b50813567ffffffffffffffff81111561437857600080fd5b6020830191508360208260051b850101111561439357600080fd5b9250929050565b600080600080604085870312156143b057600080fd5b843567ffffffffffffffff808211156143c857600080fd5b6143d48883890161434e565b909650945060208701359150808211156143ed57600080fd5b506143fa8782880161434e565b95989497509550505050565b60008060006060848603121561441b57600080fd5b833561442681614275565b9250602084013561443681614275565b929592945050506040919091013590565b80151581146112f257600080fd5b6000806040838503121561446857600080fd5b823561447381614275565b9150602083013561448381614447565b809150509250929050565b6000602082840312156144a057600080fd5b8135613c0981614447565b602081526000613c0960208301846141da565b600080604083850312156144d157600080fd5b82356144dc81614275565b9150602083013561448381614275565b634e487b7160e01b600052604160045260246000fd5b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052601160045260246000fd5b60006001820161454057614540614518565b5060010190565b6020808252818101527f4c543a204f6e6c7920646576656c6f7065722063616e2073657420746869732e604082015260600190565b60008261459957634e487b7160e01b600052601260045260246000fd5b500490565b60208082526032908201527f546f6b656e436c61776261636b3a2063616c6c6572206973206e6f74207468656040820152711022a92199181031b7b73a3937b63632b91760711b606082015260800190565b60006020828403121561460257600080fd5b8151613c0981614447565b60208082526032908201527f4c543a204c696d6974732068617665206265656e2072656d6f76656420616e646040820152711031b0b73737ba10313290393296b9b2ba1760711b606082015260800190565b60008282101561467157614671614518565b500390565b60006020828403121561468857600080fd5b8151613c0981614275565b6000602082840312156146a557600080fd5b5051919050565b60008160001904831182151516156146c6576146c6614518565b500290565b6000806000606084860312156146e057600080fd5b8351925060208401519150604084015190509250925092565b84815260806020820152600061471260808301866141da565b6001600160a01b03949094166040830152506060015292915050565b6000602080838503121561474157600080fd5b825167ffffffffffffffff8082111561475957600080fd5b818501915085601f83011261476d57600080fd5b81518181111561477f5761477f6144ec565b8060051b604051601f19603f830116810181811085821117156147a4576147a46144ec565b6040529182528482019250838101850191888311156147c257600080fd5b938501935b828510156147e0578451845293850193928501926147c7565b98975050505050505050565b600063ffffffff80831681851680830382111561480b5761480b614518565b01949350505050565b600063ffffffff8381169083168181101561483157614831614518565b039392505050565b6000821982111561484c5761484c614518565b500190565b85815284602082015260a06040820152600061487060a08301866141da565b6001600160a01b039490941660608301525060800152939250505056fe45524332303a207472616e7366657220616d6f756e74206578636565647320616c6c6f77616e6365a26469706673582212209cbf39c98cff33f2fe41afdb025f43f52c2daa7a36115abae1d69dc1254a49df64736f6c634300080f0033
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.