Feature Tip: Add private address tag to any address under My Name Tag !
ERC-20
Overview
Max Total Supply
100,000,000,000 GECKO
Holders
33
Market
Onchain Market Cap
$0.00
Circulating Supply Market Cap
-
Other Info
Token Contract (WITH 18 Decimals)
Balance
196,088,770 GECKOValue
$0.00Loading...
Loading
Loading...
Loading
Loading...
Loading
# | Exchange | Pair | Price | 24H Volume | % Volume |
---|
Contract Name:
GECKO
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)
/** Telegram: https://t.me/GeckoCoinCommunity Twitter: https://twitter.com/geckocoineth **/ // SPDX-License-Identifier: MIT pragma solidity 0.8.15; import "@openzeppelin/contracts/access/Ownable.sol"; import "@openzeppelin/contracts/token/ERC20/IERC20.sol"; import "@openzeppelin/contracts/token/ERC20/extensions/IERC20Metadata.sol"; import "@openzeppelin/contracts/utils/math/SafeMath.sol"; import "@uniswap/v2-core/contracts/interfaces/IUniswapV2Factory.sol"; import "@uniswap/v2-periphery/contracts/interfaces/IUniswapV2Router02.sol"; contract ERC20 is Context, IERC20, IERC20Metadata { mapping(address => uint256) private _balances; mapping(address => mapping(address => uint256)) private _allowances; uint256 private _totalSupply; string private _name; string private _symbol; address DEAD = 0x000000000000000000000000000000000000dEaD; address ZERO = 0x0000000000000000000000000000000000000000; constructor(string memory name_, string memory symbol_) { _name = name_; _symbol = symbol_; } function name() public view virtual override returns (string memory) { return _name; } function symbol() public view virtual override returns (string memory) { return _symbol; } function decimals() public view virtual override returns (uint8) { return 18; } function totalSupply() public view virtual override returns (uint256) { return _totalSupply; } function balanceOf(address account) public view virtual override returns (uint256) { return _balances[account]; } function transfer(address recipient, uint256 amount) public virtual override returns (bool) { _transfer(_msgSender(), recipient, amount); return true; } function allowance(address owner, address spender) public view virtual override returns (uint256) { return _allowances[owner][spender]; } function approve(address spender, uint256 amount) public virtual override returns (bool) { _approve(_msgSender(), spender, amount); return true; } function transferFrom( address sender, address recipient, uint256 amount ) public virtual override returns (bool) { _transfer(sender, recipient, amount); uint256 currentAllowance = _allowances[sender][_msgSender()]; require(currentAllowance >= amount, "ERC20: transfer amount exceeds allowance"); unchecked { _approve(sender, _msgSender(), currentAllowance - amount); } return true; } function increaseAllowance(address spender, uint256 addedValue) public virtual returns (bool) { _approve(_msgSender(), spender, _allowances[_msgSender()][spender] + addedValue); return true; } function decreaseAllowance(address spender, uint256 subtractedValue) public virtual returns (bool) { uint256 currentAllowance = _allowances[_msgSender()][spender]; require(currentAllowance >= subtractedValue, "ERC20: decreased allowance below zero"); unchecked { _approve(_msgSender(), spender, currentAllowance - subtractedValue); } return true; } function _transfer( address sender, address recipient, uint256 amount ) internal virtual { require(sender != address(0), "ERC20: transfer from the zero address"); require(recipient != address(0), "ERC20: transfer to the zero address"); uint256 senderBalance = _balances[sender]; require(senderBalance >= amount, "ERC20: transfer amount exceeds balance"); unchecked { _balances[sender] = senderBalance - amount; } _balances[recipient] += amount; emit Transfer(sender, recipient, amount); } function _createInitialSupply(address account, uint256 amount) internal virtual { require(account != address(0), "ERC20: mint to the zero address"); _totalSupply += amount; _balances[account] += amount; emit Transfer(address(0), account, amount); } function _approve( address owner, address spender, uint256 amount ) internal virtual { 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); } } interface DividendPayingTokenOptionalInterface { /// @notice View the amount of dividend in wei that an address can withdraw. /// @param _owner The address of a token holder. /// @return The amount of dividend in wei that `_owner` can withdraw. function withdrawableDividendOf(address _owner, address _rewardToken) external view returns(uint256); /// @notice View the amount of dividend in wei that an address has withdrawn. /// @param _owner The address of a token holder. /// @return The amount of dividend in wei that `_owner` has withdrawn. function withdrawnDividendOf(address _owner, address _rewardToken) external view returns(uint256); /// @notice View the amount of dividend in wei that an address has earned in total. /// @dev accumulativeDividendOf(_owner) = withdrawableDividendOf(_owner) + withdrawnDividendOf(_owner) /// @param _owner The address of a token holder. /// @return The amount of dividend in wei that `_owner` has earned in total. function accumulativeDividendOf(address _owner, address _rewardToken) external view returns(uint256); } interface DividendPayingTokenInterface { /// @notice View the amount of dividend in wei that an address can withdraw. /// @param _owner The address of a token holder. /// @return The amount of dividend in wei that `_owner` can withdraw. function dividendOf(address _owner, address _rewardToken) external view returns(uint256); /// @notice Distributes ether to token holders as dividends. /// @dev SHOULD distribute the paid ether to token holders as dividends. /// SHOULD NOT directly transfer ether to token holders in this function. /// MUST emit a `DividendsDistributed` event when the amount of distributed ether is greater than 0. function distributeDividends() external payable; /// @notice Withdraws the ether distributed to the sender. /// @dev SHOULD transfer `dividendOf(msg.sender)` wei to `msg.sender`, and `dividendOf(msg.sender)` SHOULD be 0 after the transfer. /// MUST emit a `DividendWithdrawn` event if the amount of ether transferred is greater than 0. function withdrawDividend(address _rewardToken) external; /// @dev This event MUST emit when ether is distributed to token holders. /// @param from The address which sends ether to this contract. /// @param weiAmount The amount of distributed ether in wei. event DividendsDistributed( address indexed from, uint256 weiAmount ); /// @dev This event MUST emit when an address withdraws their dividend. /// @param to The address which withdraws ether from this contract. /// @param weiAmount The amount of withdrawn ether in wei. event DividendWithdrawn( address indexed to, uint256 weiAmount ); } library SafeMathInt { int256 private constant MIN_INT256 = int256(1) << 255; int256 private constant MAX_INT256 = ~(int256(1) << 255); /** * @dev Multiplies two int256 variables and fails on overflow. */ function mul(int256 a, int256 b) internal pure returns (int256) { int256 c = a * b; // Detect overflow when multiplying MIN_INT256 with -1 require(c != MIN_INT256 || (a & MIN_INT256) != (b & MIN_INT256)); require((b == 0) || (c / b == a)); return c; } /** * @dev Division of two int256 variables and fails on overflow. */ function div(int256 a, int256 b) internal pure returns (int256) { // Prevent overflow when dividing MIN_INT256 by -1 require(b != -1 || a != MIN_INT256); // Solidity already throws when dividing by 0. return a / b; } /** * @dev Subtracts two int256 variables and fails on overflow. */ function sub(int256 a, int256 b) internal pure returns (int256) { int256 c = a - b; require((b >= 0 && c <= a) || (b < 0 && c > a)); return c; } /** * @dev Adds two int256 variables and fails on overflow. */ function add(int256 a, int256 b) internal pure returns (int256) { int256 c = a + b; require((b >= 0 && c >= a) || (b < 0 && c < a)); return c; } /** * @dev Converts to absolute value, and fails on overflow. */ function abs(int256 a) internal pure returns (int256) { require(a != MIN_INT256); return a < 0 ? -a : a; } function toUint256Safe(int256 a) internal pure returns (uint256) { require(a >= 0); return uint256(a); } } library SafeMathUint { function toInt256Safe(uint256 a) internal pure returns (int256) { int256 b = int256(a); require(b >= 0); return b; } } contract DividendPayingToken is DividendPayingTokenInterface, DividendPayingTokenOptionalInterface, Ownable { using SafeMath for uint256; using SafeMathUint for uint256; using SafeMathInt for int256; // With `magnitude`, we can properly distribute dividends even if the amount of received ether is small. // For more discussion about choosing the value of `magnitude`, // see https://github.com/ethereum/EIPs/issues/1726#issuecomment-472352728 uint256 constant internal magnitude = 2**128; mapping(address => uint256) internal magnifiedDividendPerShare; address[] public rewardTokens; address public nextRewardToken; uint256 public rewardTokenCounter; IUniswapV2Router02 public immutable uniswapV2Router; // About dividendCorrection: // If the token balance of a `_user` is never changed, the dividend of `_user` can be computed with: // `dividendOf(_user) = dividendPerShare * balanceOf(_user)`. // When `balanceOf(_user)` is changed (via minting/burning/transferring tokens), // `dividendOf(_user)` should not be changed, // but the computed value of `dividendPerShare * balanceOf(_user)` is changed. // To keep the `dividendOf(_user)` unchanged, we add a correction term: // `dividendOf(_user) = dividendPerShare * balanceOf(_user) + dividendCorrectionOf(_user)`, // where `dividendCorrectionOf(_user)` is updated whenever `balanceOf(_user)` is changed: // `dividendCorrectionOf(_user) = dividendPerShare * (old balanceOf(_user)) - (new balanceOf(_user))`. // So now `dividendOf(_user)` returns the same value before and after `balanceOf(_user)` is changed. mapping(address => mapping(address => int256)) internal magnifiedDividendCorrections; mapping(address => mapping(address => uint256)) internal withdrawnDividends; mapping (address => uint256) public holderBalance; uint256 public totalBalance; mapping(address => uint256) public totalDividendsDistributed; constructor(){ IUniswapV2Router02 _uniswapV2Router = IUniswapV2Router02(0x7a250d5630B4cF539739dF2C5dAcb4c659F2488D); // router 0x7a250d5630B4cF539739dF2C5dAcb4c659F2488D uniswapV2Router = _uniswapV2Router; // Mainnet rewardTokens.push(address(0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48)); // USDC - 0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48 nextRewardToken = rewardTokens[0]; } /// @dev Distributes dividends whenever ether is paid to this contract. receive() external payable { distributeDividends(); } /// @notice Distributes ether to token holders as dividends. /// @dev It reverts if the total supply of tokens is 0. /// It emits the `DividendsDistributed` event if the amount of received ether is greater than 0. /// About undistributed ether: /// In each distribution, there is a small amount of ether not distributed, /// the magnified amount of which is /// `(msg.value * magnitude) % totalSupply()`. /// With a well-chosen `magnitude`, the amount of undistributed ether /// (de-magnified) in a distribution can be less than 1 wei. /// We can actually keep track of the undistributed ether in a distribution /// and try to distribute it in the next distribution, /// but keeping track of such data on-chain costs much more than /// the saved ether, so we don't do that. function distributeDividends() public override payable { require(totalBalance > 0); uint256 initialBalance = IERC20(nextRewardToken).balanceOf(address(this)); buyTokens(msg.value, nextRewardToken); uint256 newBalance = IERC20(nextRewardToken).balanceOf(address(this)).sub(initialBalance); if (newBalance > 0) { magnifiedDividendPerShare[nextRewardToken] = magnifiedDividendPerShare[nextRewardToken].add( (newBalance).mul(magnitude) / totalBalance ); emit DividendsDistributed(msg.sender, newBalance); totalDividendsDistributed[nextRewardToken] = totalDividendsDistributed[nextRewardToken].add(newBalance); } rewardTokenCounter = rewardTokenCounter == rewardTokens.length - 1 ? 0 : rewardTokenCounter + 1; nextRewardToken = rewardTokens[rewardTokenCounter]; } // useful for buybacks or to reclaim any BNB on the contract in a way that helps holders. function buyTokens(uint256 bnbAmountInWei, address rewardToken) internal { // generate the uniswap pair path of weth -> eth address[] memory path = new address[](2); path[0] = uniswapV2Router.WETH(); path[1] = rewardToken; // make the swap uniswapV2Router.swapExactETHForTokensSupportingFeeOnTransferTokens{value: bnbAmountInWei}( 0, // accept any amount of Ethereum path, address(this), block.timestamp ); } /// @notice Withdraws the ether distributed to the sender. /// @dev It emits a `DividendWithdrawn` event if the amount of withdrawn ether is greater than 0. function withdrawDividend(address _rewardToken) external virtual override { _withdrawDividendOfUser(payable(msg.sender), _rewardToken); } /// @notice Withdraws the ether distributed to the sender. /// @dev It emits a `DividendWithdrawn` event if the amount of withdrawn ether is greater than 0. function _withdrawDividendOfUser(address payable user, address _rewardToken) internal returns (uint256) { uint256 _withdrawableDividend = withdrawableDividendOf(user, _rewardToken); if (_withdrawableDividend > 0) { withdrawnDividends[user][_rewardToken] = withdrawnDividends[user][_rewardToken].add(_withdrawableDividend); emit DividendWithdrawn(user, _withdrawableDividend); IERC20(_rewardToken).transfer(user, _withdrawableDividend); return _withdrawableDividend; } return 0; } /// @notice View the amount of dividend in wei that an address can withdraw. /// @param _owner The address of a token holder. /// @return The amount of dividend in wei that `_owner` can withdraw. function dividendOf(address _owner, address _rewardToken) external view override returns(uint256) { return withdrawableDividendOf(_owner, _rewardToken); } /// @notice View the amount of dividend in wei that an address can withdraw. /// @param _owner The address of a token holder. /// @return The amount of dividend in wei that `_owner` can withdraw. function withdrawableDividendOf(address _owner, address _rewardToken) public view override returns(uint256) { return accumulativeDividendOf(_owner,_rewardToken).sub(withdrawnDividends[_owner][_rewardToken]); } /// @notice View the amount of dividend in wei that an address has withdrawn. /// @param _owner The address of a token holder. /// @return The amount of dividend in wei that `_owner` has withdrawn. function withdrawnDividendOf(address _owner, address _rewardToken) external view override returns(uint256) { return withdrawnDividends[_owner][_rewardToken]; } /// @notice View the amount of dividend in wei that an address has earned in total. /// @dev accumulativeDividendOf(_owner) = withdrawableDividendOf(_owner) + withdrawnDividendOf(_owner) /// = (magnifiedDividendPerShare * balanceOf(_owner) + magnifiedDividendCorrections[_owner]) / magnitude /// @param _owner The address of a token holder. /// @return The amount of dividend in wei that `_owner` has earned in total. function accumulativeDividendOf(address _owner, address _rewardToken) public view override returns(uint256) { return magnifiedDividendPerShare[_rewardToken].mul(holderBalance[_owner]).toInt256Safe() .add(magnifiedDividendCorrections[_rewardToken][_owner]).toUint256Safe() / magnitude; } /// @dev Internal function that increases tokens to an account. /// Update magnifiedDividendCorrections to keep dividends unchanged. /// @param account The account that will receive the created tokens. /// @param value The amount that will be created. function _increase(address account, uint256 value) internal { for (uint256 i; i < rewardTokens.length; i++){ magnifiedDividendCorrections[rewardTokens[i]][account] = magnifiedDividendCorrections[rewardTokens[i]][account] .sub((magnifiedDividendPerShare[rewardTokens[i]].mul(value)).toInt256Safe()); } } /// @dev Internal function that reduces an amount of the token of a given account. /// Update magnifiedDividendCorrections to keep dividends unchanged. /// @param account The account whose tokens will be burnt. /// @param value The amount that will be burnt. function _reduce(address account, uint256 value) internal { for (uint256 i; i < rewardTokens.length; i++){ magnifiedDividendCorrections[rewardTokens[i]][account] = magnifiedDividendCorrections[rewardTokens[i]][account] .add( (magnifiedDividendPerShare[rewardTokens[i]].mul(value)).toInt256Safe() ); } } function _setBalance(address account, uint256 newBalance) internal { uint256 currentBalance = holderBalance[account]; holderBalance[account] = newBalance; if(newBalance > currentBalance) { uint256 increaseAmount = newBalance.sub(currentBalance); _increase(account, increaseAmount); totalBalance += increaseAmount; } else if(newBalance < currentBalance) { uint256 reduceAmount = currentBalance.sub(newBalance); _reduce(account, reduceAmount); totalBalance -= reduceAmount; } } } contract DividendTracker is DividendPayingToken { using SafeMath for uint256; using SafeMathInt for int256; struct Map { address[] keys; mapping(address => uint) values; mapping(address => uint) indexOf; mapping(address => bool) inserted; } function get(address key) private view returns (uint) { return tokenHoldersMap.values[key]; } function getIndexOfKey(address key) private view returns (int) { if(!tokenHoldersMap.inserted[key]) { return -1; } return int(tokenHoldersMap.indexOf[key]); } function getKeyAtIndex(uint index) private view returns (address) { return tokenHoldersMap.keys[index]; } function size() private view returns (uint) { return tokenHoldersMap.keys.length; } function set(address key, uint val) private { if (tokenHoldersMap.inserted[key]) { tokenHoldersMap.values[key] = val; } else { tokenHoldersMap.inserted[key] = true; tokenHoldersMap.values[key] = val; tokenHoldersMap.indexOf[key] = tokenHoldersMap.keys.length; tokenHoldersMap.keys.push(key); } } function remove(address key) private { if (!tokenHoldersMap.inserted[key]) { return; } delete tokenHoldersMap.inserted[key]; delete tokenHoldersMap.values[key]; uint index = tokenHoldersMap.indexOf[key]; uint lastIndex = tokenHoldersMap.keys.length - 1; address lastKey = tokenHoldersMap.keys[lastIndex]; tokenHoldersMap.indexOf[lastKey] = index; delete tokenHoldersMap.indexOf[key]; tokenHoldersMap.keys[index] = lastKey; tokenHoldersMap.keys.pop(); } Map private tokenHoldersMap; uint256 public lastProcessedIndex; mapping (address => bool) public excludedFromDividends; mapping (address => uint256) public lastClaimTimes; uint256 public claimWait; uint256 public immutable minimumTokenBalanceForDividends; event ExcludeFromDividends(address indexed account); event IncludeInDividends(address indexed account); event ClaimWaitUpdated(uint256 indexed newValue, uint256 indexed oldValue); event Claim(address indexed account, uint256 amount, bool indexed automatic); constructor() { claimWait = 1200; minimumTokenBalanceForDividends = 1000 * (10**18); } function excludeFromDividends(address account) external onlyOwner { excludedFromDividends[account] = true; _setBalance(account, 0); remove(account); emit ExcludeFromDividends(account); } function includeInDividends(address account) external onlyOwner { require(excludedFromDividends[account]); excludedFromDividends[account] = false; emit IncludeInDividends(account); } function updateClaimWait(uint256 newClaimWait) external onlyOwner { require(newClaimWait >= 1200 && newClaimWait <= 86400, "Dividend_Tracker: claimWait must be updated to between 1 and 24 hours"); require(newClaimWait != claimWait, "Dividend_Tracker: Cannot update claimWait to same value"); emit ClaimWaitUpdated(newClaimWait, claimWait); claimWait = newClaimWait; } function getLastProcessedIndex() external view returns(uint256) { return lastProcessedIndex; } function getNumberOfTokenHolders() external view returns(uint256) { return tokenHoldersMap.keys.length; } // Check to see if I really made this contract or if it is a clone! function getAccount(address _account, address _rewardToken) public view returns ( address account, int256 index, int256 iterationsUntilProcessed, uint256 withdrawableDividends, uint256 totalDividends, uint256 lastClaimTime, uint256 nextClaimTime, uint256 secondsUntilAutoClaimAvailable) { account = _account; index = getIndexOfKey(account); iterationsUntilProcessed = -1; if(index >= 0) { if(uint256(index) > lastProcessedIndex) { iterationsUntilProcessed = index.sub(int256(lastProcessedIndex)); } else { uint256 processesUntilEndOfArray = tokenHoldersMap.keys.length > lastProcessedIndex ? tokenHoldersMap.keys.length.sub(lastProcessedIndex) : 0; iterationsUntilProcessed = index.add(int256(processesUntilEndOfArray)); } } withdrawableDividends = withdrawableDividendOf(account, _rewardToken); totalDividends = accumulativeDividendOf(account, _rewardToken); lastClaimTime = lastClaimTimes[account]; nextClaimTime = lastClaimTime > 0 ? lastClaimTime.add(claimWait) : 0; secondsUntilAutoClaimAvailable = nextClaimTime > block.timestamp ? nextClaimTime.sub(block.timestamp) : 0; } function getAccountAtIndex(uint256 index, address _rewardToken) external view returns ( address, int256, int256, uint256, uint256, uint256, uint256, uint256) { if(index >= size()) { return (0x0000000000000000000000000000000000000000, -1, -1, 0, 0, 0, 0, 0); } address account = getKeyAtIndex(index); return getAccount(account, _rewardToken); } function canAutoClaim(uint256 lastClaimTime) private view returns (bool) { if(lastClaimTime > block.timestamp) { return false; } return block.timestamp.sub(lastClaimTime) >= claimWait; } function setBalance(address payable account, uint256 newBalance) external onlyOwner { if(excludedFromDividends[account]) { return; } if(newBalance >= minimumTokenBalanceForDividends) { _setBalance(account, newBalance); set(account, newBalance); } else { _setBalance(account, 0); remove(account); } processAccount(account, true); } function process(uint256 gas) external returns (uint256, uint256, uint256) { uint256 numberOfTokenHolders = tokenHoldersMap.keys.length; if(numberOfTokenHolders == 0) { return (0, 0, lastProcessedIndex); } uint256 _lastProcessedIndex = lastProcessedIndex; uint256 gasUsed = 0; uint256 gasLeft = gasleft(); uint256 iterations = 0; uint256 claims = 0; while(gasUsed < gas && iterations < numberOfTokenHolders) { _lastProcessedIndex++; if(_lastProcessedIndex >= tokenHoldersMap.keys.length) { _lastProcessedIndex = 0; } address account = tokenHoldersMap.keys[_lastProcessedIndex]; if(canAutoClaim(lastClaimTimes[account])) { if(processAccount(payable(account), true)) { claims++; } } iterations++; uint256 newGasLeft = gasleft(); if(gasLeft > newGasLeft) { gasUsed = gasUsed.add(gasLeft.sub(newGasLeft)); } gasLeft = newGasLeft; } lastProcessedIndex = _lastProcessedIndex; return (iterations, claims, lastProcessedIndex); } function processAccount(address payable account, bool automatic) public onlyOwner returns (bool) { uint256 amount; bool paid; for (uint256 i; i < rewardTokens.length; i++){ amount = _withdrawDividendOfUser(account, rewardTokens[i]); if(amount > 0) { lastClaimTimes[account] = block.timestamp; emit Claim(account, amount, automatic); paid = true; } } return paid; } } contract GECKO is ERC20, Ownable { using SafeMath for uint256; IUniswapV2Router02 public immutable uniswapV2Router; DividendTracker public dividendTracker; address public immutable uniswapV2Pair; address private operationsWallet; uint256 public maxTransactionAmount; uint256 public swapTokensAtAmount; uint256 public maxWallet; uint256 public liquidityActiveBlock = 0; uint256 public tradingActiveBlock = 0; uint256 public earlyBuyPenaltyEnd; uint256 public constant feeDivisor = 1000; uint256 public totalSellFees; uint256 public rewardsSellFee; uint256 public liquiditySellFee; uint256 public totalBuyFees; uint256 public rewardsBuyFee; uint256 public liquidityBuyFee; uint256 public tokensForRewards; uint256 public tokensForLiquidity; uint256 public gasForProcessing = 0; uint256 public lpWithdrawRequestTimestamp; uint256 public lpWithdrawRequestDuration = 3 days; uint256 public lpPercToWithDraw; bool private swapping; bool public limitsInEffect = true; bool public tradingActive = false; bool public swapEnabled = false; bool public transferDelayEnabled = true; bool public lpWithdrawRequestPending; mapping(address => uint256) private _holderLastTransferTimestamp; mapping (address => bool) private _isExcludedFromFees; mapping (address => bool) public _isExcludedMaxTransactionAmount; mapping (address => bool) public automatedMarketMakerPairs; event ExcludeFromFees(address indexed account, bool isExcluded); event ExcludeMultipleAccountsFromFees(address[] accounts, bool isExcluded); event ExcludedMaxTransactionAmount(address indexed account, bool isExcluded); event ExcludeMultipleAccountsMxTx(address[] accounts, bool isExcluded); event SetAutomatedMarketMakerPair(address indexed pair, bool indexed value); event OperationsWalletUpdated(address indexed newWallet, address indexed oldWallet); event DevWalletUpdated(address indexed newWallet, address indexed oldWallet); event GasForProcessingUpdated(uint256 indexed newValue, uint256 indexed oldValue); event SwapAndLiquify( uint256 tokensSwapped, uint256 ethReceived, uint256 tokensIntoLiqudity ); event SendDividends( uint256 tokensSwapped, uint256 amount ); event ProcessedDividendTracker( uint256 iterations, uint256 claims, uint256 lastProcessedIndex, bool indexed automatic, uint256 gas, address indexed processor ); event RequestedLPWithdraw(); event WithdrewLPForMigration(); event CanceledLpWithdrawRequest(); constructor() ERC20("GECKO", "GECKO") { uint256 totalSupply = 100 * 1e9 * 1e18; maxTransactionAmount = totalSupply * 1 / 100; // 1% maxTransactionAmountTxn swapTokensAtAmount = totalSupply * 5 / 10000; // 0.05% swap tokens amount maxWallet = totalSupply * 2 / 100; // 2% Max wallet rewardsBuyFee = 50; liquidityBuyFee = 20; totalBuyFees = rewardsBuyFee + liquidityBuyFee; rewardsSellFee = 50; liquiditySellFee = 20; totalSellFees = rewardsSellFee + liquiditySellFee; dividendTracker = new DividendTracker(); operationsWallet = owner(); IUniswapV2Router02 _uniswapV2Router = IUniswapV2Router02(0x7a250d5630B4cF539739dF2C5dAcb4c659F2488D);//0x7a250d5630B4cF539739dF2C5dAcb4c659F2488D // Create a uniswap pair for this new token address _uniswapV2Pair = IUniswapV2Factory(_uniswapV2Router.factory()) .createPair(address(this), _uniswapV2Router.WETH()); uniswapV2Router = _uniswapV2Router; uniswapV2Pair = _uniswapV2Pair; _setAutomatedMarketMakerPair(_uniswapV2Pair, true); // exclude from receiving dividends dividendTracker.excludeFromDividends(address(dividendTracker)); dividendTracker.excludeFromDividends(address(this)); dividendTracker.excludeFromDividends(owner()); dividendTracker.excludeFromDividends(address(_uniswapV2Router)); dividendTracker.excludeFromDividends(DEAD); // exclude from paying fees or having max transaction amount excludeFromFees(owner(), true); excludeFromFees(address(this), true); excludeFromFees(DEAD, true); excludeFromMaxTransaction(owner(), true); excludeFromMaxTransaction(address(this), true); excludeFromMaxTransaction(address(dividendTracker), true); excludeFromMaxTransaction(address(_uniswapV2Router), true); excludeFromMaxTransaction(DEAD, true); _createInitialSupply(address(owner()), totalSupply); } receive() external payable {} fallback() external payable {} // only use if conducting a presale function addPresaleAddressForExclusions(address _presaleAddress) external onlyOwner { excludeFromFees(_presaleAddress, true); dividendTracker.excludeFromDividends(_presaleAddress); excludeFromMaxTransaction(_presaleAddress, true); } // disable Transfer delay - cannot be reenabled function disableTransferDelay() external onlyOwner returns (bool){ transferDelayEnabled = false; return true; } // excludes wallets and contracts from dividends (such as CEX hotwallets, etc.) function excludeFromDividends(address account) external onlyOwner { dividendTracker.excludeFromDividends(account); } // removes exclusion on wallets and contracts from dividends (such as CEX hotwallets, etc.) function includeInDividends(address account) external onlyOwner { dividendTracker.includeInDividends(account); } // once enabled, can never be turned off function enableTrading() external onlyOwner { require(!tradingActive, "Cannot re-enable trading"); tradingActive = true; swapEnabled = true; tradingActiveBlock = block.number; } // only use to disable contract sales if absolutely necessary (emergency use only) function updateSwapEnabled(bool enabled) external onlyOwner(){ swapEnabled = enabled; } function updateMaxAmount(uint256 newNum) external onlyOwner { require(newNum > (totalSupply() * 1 / 1000)/1e18, "Cannot set maxTransactionAmount lower than 0.1%"); maxTransactionAmount = newNum * (10**18); } function updateMaxWalletAmount(uint256 newNum) external onlyOwner { require(newNum > (totalSupply() * 1 / 100)/1e18, "Cannot set maxWallet lower than 1%"); maxWallet = newNum * (10**18); } function updateBuyFees(uint256 _rewardsFee, uint256 _liquidityFee) external onlyOwner { rewardsBuyFee = _rewardsFee; liquidityBuyFee = _liquidityFee; totalBuyFees = rewardsBuyFee + liquidityBuyFee; require(totalBuyFees <= 100, "Must keep fees at 10% or less"); } function updateSellFees(uint256 _rewardsFee, uint256 _liquidityFee) external onlyOwner { rewardsSellFee = _rewardsFee; liquiditySellFee = _liquidityFee; totalSellFees = rewardsSellFee + liquiditySellFee; require(totalSellFees <= 100, "Must keep fees at 10% or less"); } function excludeFromMaxTransaction(address updAds, bool isEx) public onlyOwner { _isExcludedMaxTransactionAmount[updAds] = isEx; emit ExcludedMaxTransactionAmount(updAds, isEx); } function excludeMultipleAccountsFromMxTx(address[] calldata accounts, bool excluded) external onlyOwner { for(uint256 i = 0; i < accounts.length; i++) { _isExcludedMaxTransactionAmount[accounts[i]] = excluded; } emit ExcludeMultipleAccountsMxTx(accounts, excluded); } function excludeFromFees(address account, bool excluded) public onlyOwner { _isExcludedFromFees[account] = excluded; emit ExcludeFromFees(account, excluded); } function excludeMultipleAccountsFromFees(address[] calldata accounts, bool excluded) external onlyOwner { for(uint256 i = 0; i < accounts.length; i++) { _isExcludedFromFees[accounts[i]] = excluded; } emit ExcludeMultipleAccountsFromFees(accounts, excluded); } function setAutomatedMarketMakerPair(address pair, bool value) external onlyOwner { require(pair != uniswapV2Pair, "The PancakeSwap pair cannot be removed from automatedMarketMakerPairs"); _setAutomatedMarketMakerPair(pair, value); } function _setAutomatedMarketMakerPair(address pair, bool value) private { automatedMarketMakerPairs[pair] = value; excludeFromMaxTransaction(pair, value); if(value) { dividendTracker.excludeFromDividends(pair); } emit SetAutomatedMarketMakerPair(pair, value); } function updateOperationsWallet(address newOperationsWallet) external onlyOwner { require(newOperationsWallet != ZERO, "may not set to 0 address"); excludeFromFees(newOperationsWallet, true); emit OperationsWalletUpdated(newOperationsWallet, operationsWallet); operationsWallet = newOperationsWallet; } function updateGasForProcessing(uint256 newValue) external onlyOwner { require(newValue >= 200000 && newValue <= 500000, " gasForProcessing must be between 200,000 and 500,000"); require(newValue != gasForProcessing, "Cannot update gasForProcessing to same value"); emit GasForProcessingUpdated(newValue, gasForProcessing); gasForProcessing = newValue; } function updateClaimWait(uint256 claimWait) external onlyOwner { dividendTracker.updateClaimWait(claimWait); } function getClaimWait() external view returns(uint256) { return dividendTracker.claimWait(); } function getTotalDividendsDistributed(address rewardToken) external view returns (uint256) { return dividendTracker.totalDividendsDistributed(rewardToken); } function isExcludedFromFees(address account) external view returns(bool) { return _isExcludedFromFees[account]; } function withdrawableDividendOf(address account, address rewardToken) external view returns(uint256) { return dividendTracker.withdrawableDividendOf(account, rewardToken); } function dividendTokenBalanceOf(address account) external view returns (uint256) { return dividendTracker.holderBalance(account); } function getAccountDividendsInfo(address account, address rewardToken) external view returns ( address, int256, int256, uint256, uint256, uint256, uint256, uint256) { return dividendTracker.getAccount(account, rewardToken); } function getAccountDividendsInfoAtIndex(uint256 index, address rewardToken) external view returns ( address, int256, int256, uint256, uint256, uint256, uint256, uint256) { return dividendTracker.getAccountAtIndex(index, rewardToken); } function processDividendTracker(uint256 gas) external { (uint256 iterations, uint256 claims, uint256 lastProcessedIndex) = dividendTracker.process(gas); emit ProcessedDividendTracker(iterations, claims, lastProcessedIndex, false, gas, tx.origin); } function claim() external { dividendTracker.processAccount(payable(msg.sender), false); } function getLastProcessedIndex() external view returns(uint256) { return dividendTracker.getLastProcessedIndex(); } function getNumberOfDividendTokenHolders() external view returns(uint256) { return dividendTracker.getNumberOfTokenHolders(); } function getNumberOfDividends() external view returns(uint256) { return dividendTracker.totalBalance(); } // remove limits after token is stable function removeLimits() external onlyOwner returns (bool){ limitsInEffect = false; transferDelayEnabled = false; return true; } function _transfer( address from, address to, uint256 amount ) internal override { require(from != ZERO, "ERC20: transfer from the zero address"); require(to != ZERO, "ERC20: transfer to the zero address"); if(amount == 0) { super._transfer(from, to, 0); return; } if(!tradingActive){ require(_isExcludedFromFees[from] || _isExcludedFromFees[to], "Trading is not active yet."); } if(limitsInEffect){ if ( from != owner() && to != owner() && to != ZERO && to != DEAD && !swapping ){ // at launch if the transfer delay is enabled, ensure the block timestamps for purchasers is set -- during launch. if (transferDelayEnabled){ if (to != address(uniswapV2Router) && to != address(uniswapV2Pair)){ require(_holderLastTransferTimestamp[tx.origin] < block.number, "_transfer:: Transfer Delay enabled. Only one purchase per block allowed."); _holderLastTransferTimestamp[tx.origin] = block.number; } } //when buy if (automatedMarketMakerPairs[from] && !_isExcludedMaxTransactionAmount[to]) { require(amount <= maxTransactionAmount, "Buy transfer amount exceeds the maxTransactionAmount."); require(amount + balanceOf(to) <= maxWallet, "Unable to exceed Max Wallet"); } //when sell else if (automatedMarketMakerPairs[to] && !_isExcludedMaxTransactionAmount[from]) { require(amount <= maxTransactionAmount, "Sell transfer amount exceeds the maxTransactionAmount."); } else if(!_isExcludedMaxTransactionAmount[to]) { require(amount + balanceOf(to) <= maxWallet, "Unable to exceed Max Wallet"); } } } uint256 contractTokenBalance = balanceOf(address(this)); bool canSwap = contractTokenBalance >= swapTokensAtAmount; if( canSwap && swapEnabled && !swapping && !automatedMarketMakerPairs[from] && !_isExcludedFromFees[from] && !_isExcludedFromFees[to] ) { swapping = true; swapBack(); swapping = false; } bool takeFee = !swapping; // if any account belongs to _isExcludedFromFee account then remove the fee if(_isExcludedFromFees[from] || _isExcludedFromFees[to]) { takeFee = false; } uint256 fees = 0; // no taxes on transfers (non buys/sells) if(takeFee){ if(tradingActiveBlock + 1 >= block.number && (automatedMarketMakerPairs[to] || automatedMarketMakerPairs[from])){ fees = amount.mul(99).div(100); tokensForLiquidity += fees * 49 / 99; tokensForRewards += fees * 49 / 99; } // on sell else if (automatedMarketMakerPairs[to] && totalSellFees > 0){ fees = amount.mul(totalSellFees).div(feeDivisor); tokensForRewards += fees * rewardsSellFee / totalSellFees; tokensForLiquidity += fees * liquiditySellFee / totalSellFees; } // on buy else if(automatedMarketMakerPairs[from] && totalBuyFees > 0) { fees = amount.mul(totalBuyFees).div(feeDivisor); tokensForRewards += fees * rewardsBuyFee / totalBuyFees; tokensForLiquidity += fees * liquidityBuyFee / totalBuyFees; } if(fees > 0){ super._transfer(from, address(this), fees); } amount -= fees; } super._transfer(from, to, amount); dividendTracker.setBalance(payable(from), balanceOf(from)); dividendTracker.setBalance(payable(to), balanceOf(to)); if(!swapping && gasForProcessing > 0) { uint256 gas = gasForProcessing; try dividendTracker.process(gas) returns (uint256 iterations, uint256 claims, uint256 lastProcessedIndex) { emit ProcessedDividendTracker(iterations, claims, lastProcessedIndex, true, gas, tx.origin); } catch {} } } function swapTokensForEth(uint256 tokenAmount) private { // generate the uniswap pair path of token -> weth address[] memory path = new address[](2); path[0] = address(this); path[1] = uniswapV2Router.WETH(); _approve(address(this), address(uniswapV2Router), tokenAmount); // make the swap uniswapV2Router.swapExactTokensForETHSupportingFeeOnTransferTokens( tokenAmount, 0, // accept any amount of ETH path, address(this), block.timestamp ); } function addLiquidity(uint256 tokenAmount, uint256 ethAmount) private { // approve token transfer to cover all possible scenarios _approve(address(this), address(uniswapV2Router), tokenAmount); // add the liquidity uniswapV2Router.addLiquidityETH{value: ethAmount}( address(this), tokenAmount, 0, // slippage is unavoidable 0, // slippage is unavoidable operationsWallet, block.timestamp ); } function swapBack() private { uint256 contractBalance = balanceOf(address(this)); uint256 totalTokensToSwap = tokensForLiquidity + tokensForRewards; if(contractBalance == 0 || totalTokensToSwap == 0) {return;} // Halve the amount of liquidity tokens uint256 liquidityTokens = contractBalance * tokensForLiquidity / totalTokensToSwap / 2; uint256 amountToSwapForETH = contractBalance.sub(liquidityTokens); uint256 initialETHBalance = address(this).balance; swapTokensForEth(amountToSwapForETH); uint256 ethBalance = address(this).balance.sub(initialETHBalance); uint256 ethForRewards = ethBalance.mul(tokensForRewards).div(totalTokensToSwap - (tokensForLiquidity/2)); uint256 ethForLiquidity = ethBalance - ethForRewards; tokensForLiquidity = 0; tokensForRewards = 0; if(liquidityTokens > 0 && ethForLiquidity > 0){ addLiquidity(liquidityTokens, ethForLiquidity); emit SwapAndLiquify(amountToSwapForETH, ethForLiquidity, tokensForLiquidity); } // call twice to force buy of both reward tokens. (bool success,) = address(dividendTracker).call{value: ethForRewards}(""); (success,) = address(operationsWallet).call{value: address(this).balance}(""); } function withdrawStuckETH() external { require(msg.sender == operationsWallet); (bool success,) = address(msg.sender).call{value: address(this).balance}(""); require(success, "failed to withdraw"); } function withdrawStuckTokens(address tkn) external { require(msg.sender == operationsWallet); require(IERC20(tkn).balanceOf(address(this)) > 0, "No tokens"); uint amount = IERC20(tkn).balanceOf(address(this)); IERC20(tkn).transfer(msg.sender, amount); } function requestToWithdrawLP(uint256 percToWithdraw) external onlyOwner { require(!lpWithdrawRequestPending, "Cannot request again until first request is over."); require(percToWithdraw <= 100 && percToWithdraw > 0, "Need to set between 1-100%"); lpWithdrawRequestTimestamp = block.timestamp; lpWithdrawRequestPending = true; lpPercToWithDraw = percToWithdraw; emit RequestedLPWithdraw(); } function nextAvailableLpWithdrawDate() public view returns (uint256){ if(lpWithdrawRequestPending){ return lpWithdrawRequestTimestamp + lpWithdrawRequestDuration; } else { return 0; // 0 means no open requests } } function withdrawRequestedLP() external onlyOwner { require(block.timestamp >= nextAvailableLpWithdrawDate() && nextAvailableLpWithdrawDate() > 0, "Must request and wait."); lpWithdrawRequestTimestamp = 0; lpWithdrawRequestPending = false; uint256 amtToWithdraw = IERC20(address(uniswapV2Pair)).balanceOf(address(this)) * lpPercToWithDraw / 100; lpPercToWithDraw = 0; IERC20(uniswapV2Pair).transfer(msg.sender, amtToWithdraw); } function cancelLPWithdrawRequest() external onlyOwner { lpWithdrawRequestPending = false; lpPercToWithDraw = 0; lpWithdrawRequestTimestamp = 0; emit CanceledLpWithdrawRequest(); } }
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 (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; } } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (token/ERC20/extensions/IERC20Metadata.sol) pragma solidity ^0.8.0; import "../IERC20.sol"; /** * @dev Interface for the optional metadata functions from the ERC20 standard. * * _Available since v4.1._ */ interface IERC20Metadata is IERC20 { /** * @dev Returns the name of the token. */ function name() external view returns (string memory); /** * @dev Returns the symbol of the token. */ function symbol() external view returns (string memory); /** * @dev Returns the decimals places of the token. */ function decimals() external view returns (uint8); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.5.0) (token/ERC20/IERC20.sol) pragma solidity ^0.8.0; /** * @dev Interface of the ERC20 standard as defined in the EIP. */ interface IERC20 { /** * @dev Returns the amount of tokens in existence. */ function totalSupply() external view returns (uint256); /** * @dev Returns the amount of tokens owned by `account`. */ function balanceOf(address account) external view returns (uint256); /** * @dev Moves `amount` tokens from the caller's account to `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); /** * @dev Emitted when `value` tokens are moved from one account (`from`) to * another (`to`). * * Note that `value` may be zero. */ event Transfer(address indexed from, address indexed to, uint256 value); /** * @dev Emitted when the allowance of a `spender` for an `owner` is set by * a call to {approve}. `value` is the new allowance. */ event Approval(address indexed owner, address indexed spender, uint256 value); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (access/Ownable.sol) pragma solidity ^0.8.0; import "../utils/Context.sol"; /** * @dev Contract module which provides a basic access control mechanism, where * there is an account (an owner) that can be granted exclusive access to * specific functions. * * By default, the owner account will be the one that deploys the contract. This * can later be changed with {transferOwnership}. * * This module is used through inheritance. It will make available the modifier * `onlyOwner`, which can be applied to your functions to restrict their use to * the owner. */ abstract contract Ownable is Context { address private _owner; event OwnershipTransferred(address indexed previousOwner, address indexed newOwner); /** * @dev Initializes the contract setting the deployer as the initial owner. */ constructor() { _transferOwnership(_msgSender()); } /** * @dev Returns the address of the current owner. */ function owner() public view virtual returns (address) { return _owner; } /** * @dev Throws if called by any account other than the owner. */ modifier onlyOwner() { require(owner() == _msgSender(), "Ownable: caller is not the owner"); _; } /** * @dev Leaves the contract without owner. It will not be possible to call * `onlyOwner` functions anymore. Can only be called by the current owner. * * NOTE: Renouncing ownership will leave the contract without an owner, * thereby removing any functionality that is only available to the owner. */ function renounceOwnership() public virtual onlyOwner { _transferOwnership(address(0)); } /** * @dev Transfers ownership of the contract to a new account (`newOwner`). * Can only be called by the current owner. */ function transferOwnership(address newOwner) public virtual onlyOwner { require(newOwner != address(0), "Ownable: new owner is the zero address"); _transferOwnership(newOwner); } /** * @dev Transfers ownership of the contract to a new account (`newOwner`). * Internal function without access restriction. */ function _transferOwnership(address newOwner) internal virtual { address oldOwner = _owner; _owner = newOwner; emit OwnershipTransferred(oldOwner, newOwner); } }
pragma solidity >=0.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 v4.4.1 (utils/Context.sol) pragma solidity ^0.8.0; /** * @dev Provides information about the current execution context, including the * sender of the transaction and its data. While these are generally available * via msg.sender and msg.data, they should not be accessed in such a direct * manner, since when dealing with meta-transactions the account sending and * paying for execution may not be the actual sender (as far as an application * is concerned). * * This contract is only required for intermediate, library-like contracts. */ abstract contract Context { function _msgSender() internal view virtual returns (address) { return msg.sender; } function _msgData() internal view virtual returns (bytes calldata) { return msg.data; } }
{ "optimizer": { "enabled": true, "runs": 200 }, "outputSelection": { "*": { "*": [ "evm.bytecode", "evm.deployedBytecode", "devdoc", "userdoc", "metadata", "abi" ] } } }
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":[],"name":"CanceledLpWithdrawRequest","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"newWallet","type":"address"},{"indexed":true,"internalType":"address","name":"oldWallet","type":"address"}],"name":"DevWalletUpdated","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"account","type":"address"},{"indexed":false,"internalType":"bool","name":"isExcluded","type":"bool"}],"name":"ExcludeFromFees","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address[]","name":"accounts","type":"address[]"},{"indexed":false,"internalType":"bool","name":"isExcluded","type":"bool"}],"name":"ExcludeMultipleAccountsFromFees","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address[]","name":"accounts","type":"address[]"},{"indexed":false,"internalType":"bool","name":"isExcluded","type":"bool"}],"name":"ExcludeMultipleAccountsMxTx","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"account","type":"address"},{"indexed":false,"internalType":"bool","name":"isExcluded","type":"bool"}],"name":"ExcludedMaxTransactionAmount","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint256","name":"newValue","type":"uint256"},{"indexed":true,"internalType":"uint256","name":"oldValue","type":"uint256"}],"name":"GasForProcessingUpdated","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"newWallet","type":"address"},{"indexed":true,"internalType":"address","name":"oldWallet","type":"address"}],"name":"OperationsWalletUpdated","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"iterations","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"claims","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"lastProcessedIndex","type":"uint256"},{"indexed":true,"internalType":"bool","name":"automatic","type":"bool"},{"indexed":false,"internalType":"uint256","name":"gas","type":"uint256"},{"indexed":true,"internalType":"address","name":"processor","type":"address"}],"name":"ProcessedDividendTracker","type":"event"},{"anonymous":false,"inputs":[],"name":"RequestedLPWithdraw","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"tokensSwapped","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"SendDividends","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"pair","type":"address"},{"indexed":true,"internalType":"bool","name":"value","type":"bool"}],"name":"SetAutomatedMarketMakerPair","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"tokensSwapped","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"ethReceived","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"tokensIntoLiqudity","type":"uint256"}],"name":"SwapAndLiquify","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":false,"internalType":"uint256","name":"value","type":"uint256"}],"name":"Transfer","type":"event"},{"anonymous":false,"inputs":[],"name":"WithdrewLPForMigration","type":"event"},{"stateMutability":"payable","type":"fallback"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"_isExcludedMaxTransactionAmount","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_presaleAddress","type":"address"}],"name":"addPresaleAddressForExclusions","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":"","type":"address"}],"name":"automatedMarketMakerPairs","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"cancelLPWithdrawRequest","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"claim","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"decimals","outputs":[{"internalType":"uint8","name":"","type":"uint8"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"subtractedValue","type":"uint256"}],"name":"decreaseAllowance","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"disableTransferDelay","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"dividendTokenBalanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"dividendTracker","outputs":[{"internalType":"contract DividendTracker","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"earlyBuyPenaltyEnd","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"enableTrading","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"excludeFromDividends","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"},{"internalType":"bool","name":"excluded","type":"bool"}],"name":"excludeFromFees","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"updAds","type":"address"},{"internalType":"bool","name":"isEx","type":"bool"}],"name":"excludeFromMaxTransaction","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address[]","name":"accounts","type":"address[]"},{"internalType":"bool","name":"excluded","type":"bool"}],"name":"excludeMultipleAccountsFromFees","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address[]","name":"accounts","type":"address[]"},{"internalType":"bool","name":"excluded","type":"bool"}],"name":"excludeMultipleAccountsFromMxTx","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"feeDivisor","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"gasForProcessing","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"},{"internalType":"address","name":"rewardToken","type":"address"}],"name":"getAccountDividendsInfo","outputs":[{"internalType":"address","name":"","type":"address"},{"internalType":"int256","name":"","type":"int256"},{"internalType":"int256","name":"","type":"int256"},{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"index","type":"uint256"},{"internalType":"address","name":"rewardToken","type":"address"}],"name":"getAccountDividendsInfoAtIndex","outputs":[{"internalType":"address","name":"","type":"address"},{"internalType":"int256","name":"","type":"int256"},{"internalType":"int256","name":"","type":"int256"},{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getClaimWait","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getLastProcessedIndex","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getNumberOfDividendTokenHolders","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getNumberOfDividends","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"rewardToken","type":"address"}],"name":"getTotalDividendsDistributed","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"includeInDividends","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"addedValue","type":"uint256"}],"name":"increaseAllowance","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"isExcludedFromFees","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"limitsInEffect","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"liquidityActiveBlock","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"liquidityBuyFee","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"liquiditySellFee","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"lpPercToWithDraw","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"lpWithdrawRequestDuration","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"lpWithdrawRequestPending","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"lpWithdrawRequestTimestamp","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"maxTransactionAmount","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"maxWallet","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"nextAvailableLpWithdrawDate","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"gas","type":"uint256"}],"name":"processDividendTracker","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"removeLimits","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"percToWithdraw","type":"uint256"}],"name":"requestToWithdrawLP","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"rewardsBuyFee","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"rewardsSellFee","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"pair","type":"address"},{"internalType":"bool","name":"value","type":"bool"}],"name":"setAutomatedMarketMakerPair","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"swapEnabled","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"swapTokensAtAmount","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"tokensForLiquidity","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"tokensForRewards","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalBuyFees","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSellFees","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"tradingActive","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"tradingActiveBlock","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"recipient","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"transfer","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"transferDelayEnabled","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"sender","type":"address"},{"internalType":"address","name":"recipient","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"transferFrom","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"uniswapV2Pair","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"uniswapV2Router","outputs":[{"internalType":"contract IUniswapV2Router02","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_rewardsFee","type":"uint256"},{"internalType":"uint256","name":"_liquidityFee","type":"uint256"}],"name":"updateBuyFees","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"claimWait","type":"uint256"}],"name":"updateClaimWait","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"newValue","type":"uint256"}],"name":"updateGasForProcessing","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"newNum","type":"uint256"}],"name":"updateMaxAmount","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"newNum","type":"uint256"}],"name":"updateMaxWalletAmount","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOperationsWallet","type":"address"}],"name":"updateOperationsWallet","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_rewardsFee","type":"uint256"},{"internalType":"uint256","name":"_liquidityFee","type":"uint256"}],"name":"updateSellFees","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"enabled","type":"bool"}],"name":"updateSwapEnabled","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"withdrawRequestedLP","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"withdrawStuckETH","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"tkn","type":"address"}],"name":"withdrawStuckTokens","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"},{"internalType":"address","name":"rewardToken","type":"address"}],"name":"withdrawableDividendOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"stateMutability":"payable","type":"receive"}]
Contract Creation Code
60c06040526005805461dead6001600160a01b0319918216179091556006805490911690556000600d819055600e8190556018556203f480601a55601c805464ffffffff0019166401000001001790553480156200005c57600080fd5b506040805180820182526005808252644745434b4f60d81b60208084018290528451808601909552918452908301529060036200009a838262000a42565b506004620000a9828262000a42565b505050620000c6620000c06200061e60201b60201c565b62000622565b6c01431e0fae6d7217caa00000006064620000e382600162000b24565b620000ef919062000b46565b600a556127106200010282600562000b24565b6200010e919062000b46565b600b5560646200012082600262000b24565b6200012c919062000b46565b600c55603260148181556015819055620001469162000b69565b6013556032601181905560146012819055620001629162000b69565b60105560405162000173906200098f565b604051809103906000f08015801562000190573d6000803e3d6000fd5b50600880546001600160a01b03199081166001600160a01b0393841617909155600754600980549190931691161790556040805163c45a015560e01b81529051737a250d5630b4cf539739df2c5dacb4c659f2488d91600091839163c45a01559160048083019260209291908290030181865afa15801562000216573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906200023c919062000b84565b6001600160a01b031663c9c6539630846001600160a01b031663ad5c46486040518163ffffffff1660e01b8152600401602060405180830381865afa1580156200028a573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190620002b0919062000b84565b6040516001600160e01b031960e085901b1681526001600160a01b039283166004820152911660248201526044016020604051808303816000875af1158015620002fe573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019062000324919062000b84565b6001600160a01b03808416608052811660a05290506200034681600162000683565b60085460405163031e79db60e41b81526001600160a01b0390911660048201819052906331e79db090602401600060405180830381600087803b1580156200038d57600080fd5b505af1158015620003a2573d6000803e3d6000fd5b505060085460405163031e79db60e41b81523060048201526001600160a01b0390911692506331e79db09150602401600060405180830381600087803b158015620003ec57600080fd5b505af115801562000401573d6000803e3d6000fd5b50506008546001600160a01b031691506331e79db090506200042b6007546001600160a01b031690565b6040516001600160e01b031960e084901b1681526001600160a01b039091166004820152602401600060405180830381600087803b1580156200046d57600080fd5b505af115801562000482573d6000803e3d6000fd5b505060085460405163031e79db60e41b81526001600160a01b03868116600483015290911692506331e79db09150602401600060405180830381600087803b158015620004ce57600080fd5b505af1158015620004e3573d6000803e3d6000fd5b505060085460055460405163031e79db60e41b81526001600160a01b039182166004820152911692506331e79db09150602401600060405180830381600087803b1580156200053157600080fd5b505af115801562000546573d6000803e3d6000fd5b50505050620005666200055e6200067460201b60201c565b600162000757565b6200057330600162000757565b6005546200058c906001600160a01b0316600162000757565b620005ab620005a36007546001600160a01b031690565b600162000806565b620005b830600162000806565b600854620005d1906001600160a01b0316600162000806565b620005de82600162000806565b600554620005f7906001600160a01b0316600162000806565b620006156200060e6007546001600160a01b031690565b84620008aa565b50505062000bb6565b3390565b600780546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b6007546001600160a01b031690565b6001600160a01b03821660009081526020805260409020805460ff1916821515179055620006b2828262000806565b80156200071b5760085460405163031e79db60e41b81526001600160a01b038481166004830152909116906331e79db090602401600060405180830381600087803b1580156200070157600080fd5b505af115801562000716573d6000803e3d6000fd5b505050505b604051811515906001600160a01b038416907fffa9187bf1f18bf477bd0ea1bcbb64e93b6a98132473929edfce215cd9b16fab90600090a35050565b6007546001600160a01b03163314620007a65760405162461bcd60e51b8152602060048201819052602482015260008051602062006bcc83398151915260448201526064015b60405180910390fd5b6001600160a01b0382166000818152601e6020908152604091829020805460ff191685151590811790915591519182527f9d8f7706ea1113d1a167b526eca956215946dd36cc7df39eb16180222d8b5df791015b60405180910390a25050565b6007546001600160a01b03163314620008515760405162461bcd60e51b8152602060048201819052602482015260008051602062006bcc83398151915260448201526064016200079d565b6001600160a01b0382166000818152601f6020908152604091829020805460ff191685151590811790915591519182527f575f9d01836c9206322151b9e9ec3f2b77b87e71176933b9b44d2d732f768d959101620007fa565b6001600160a01b038216620009025760405162461bcd60e51b815260206004820152601f60248201527f45524332303a206d696e7420746f20746865207a65726f20616464726573730060448201526064016200079d565b806002600082825462000916919062000b69565b90915550506001600160a01b038216600090815260208190526040812080548392906200094590849062000b69565b90915550506040518181526001600160a01b038316906000907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9060200160405180910390a35050565b611f408062004c8c83390190565b634e487b7160e01b600052604160045260246000fd5b600181811c90821680620009c857607f821691505b602082108103620009e957634e487b7160e01b600052602260045260246000fd5b50919050565b601f82111562000a3d57600081815260208120601f850160051c8101602086101562000a185750805b601f850160051c820191505b8181101562000a395782815560010162000a24565b5050505b505050565b81516001600160401b0381111562000a5e5762000a5e6200099d565b62000a768162000a6f8454620009b3565b84620009ef565b602080601f83116001811462000aae576000841562000a955750858301515b600019600386901b1c1916600185901b17855562000a39565b600085815260208120601f198616915b8281101562000adf5788860151825594840194600190910190840162000abe565b508582101562000afe5787850151600019600388901b60f8161c191681555b5050505050600190811b01905550565b634e487b7160e01b600052601160045260246000fd5b600081600019048311821515161562000b415762000b4162000b0e565b500290565b60008262000b6457634e487b7160e01b600052601260045260246000fd5b500490565b6000821982111562000b7f5762000b7f62000b0e565b500190565b60006020828403121562000b9757600080fd5b81516001600160a01b038116811462000baf57600080fd5b9392505050565b60805160a05161406a62000c2260003960008181610702015281816119c101528181611a6c01528181611d8d0152612acd01526000818161057901528181612a900152818161381f015281816138d8015281816139140152818161398e01526139f6015261406a6000f3fe6080604052600436106104475760003560e01c8063871c128d11610232578063c492f0461161012d578063e7841ec0116100b0578063f2fde38b11610077578063f2fde38b14610d70578063f54afa7814610d90578063f5648a4f14610da6578063f8b45b0514610dbb578063fd361d0e14610dd157005b8063e7841ec014610cfa578063e884f26014610d0f578063e98030c714610d24578063ee40166e14610d44578063ee44b44e14610d5a57005b8063ccb61358116100f4578063ccb6135814610c5c578063ccd146b214610c72578063d0a3981414610c88578063dd62ed3e14610c9e578063e2f4560514610ce457005b8063c492f04614610bcf578063c7c61e2c14610bef578063c876d0b914610c04578063c8c8ebe414610c26578063cb96372814610c3c57005b8063a457c2d7116101b5578063bbc0c7421161017c578063bbc0c74214610b2f578063befd2fac14610b4f578063c024666814610b6f578063c0f306ef14610b8f578063c18bc19514610baf57005b8063a457c2d714610a8a578063a716b77314610aaa578063a9059cbb14610aca578063b62496f514610aea578063b9e9370014610b1957005b806395d89b41116101f957806395d89b4114610a145780639a36f93214610a295780639a7a23d614610a3f5780639c1b8af514610a5f578063a26579ad14610a7557005b8063871c128d146109815780638a8c523c146109a15780638da5cb5b146109b6578063924de9b7146109d457806392b59626146109f457005b806349bd5a5e116103425780636ddd1713116102c557806371778e7d1161028c57806371778e7d1461090c578063751039fc146109215780637571336a14610936578063763cef4914610956578063783102eb1461096b57005b80636ddd171314610881578063700bb191146108a257806370a08231146108c2578063712c2985146108e2578063715018a6146108f757005b80635645cd86116103095780635645cd86146107a7578063632459f0146107c757806364b0f6531461082c57806366ca9b83146108415780636843cd841461086157005b806349bd5a5e146106f05780634a62bb65146107245780634af6f7ee146107435780634e71d92d146107595780634fbee1931461076e57005b80631a8145bb116103ca5780632c1f5216116103915780632c1f52161461065457806330d5d18d14610674578063313ce5671461069457806331e79db0146106b057806339509351146106d057005b80631a8145bb146105c85780631fc851bd146105de578063204f11a8146105f457806323b872dd146106145780632588483e1461063457005b80630f4432e31161040e5780630f4432e314610501578063106b5da11461051757806310d5de53146105375780631694505e1461056757806318160ddd146105b357005b806302dbd8f814610450578063058054c91461047057806306fdde0314610499578063095ea7b3146104bb578063099d0d30146104eb57005b3661044e57005b005b34801561045c57600080fd5b5061044e61046b366004613a67565b610df2565b34801561047c57600080fd5b5061048660195481565b6040519081526020015b60405180910390f35b3480156104a557600080fd5b506104ae610e92565b6040516104909190613a89565b3480156104c757600080fd5b506104db6104d6366004613af3565b610f24565b6040519015158152602001610490565b3480156104f757600080fd5b5061048660125481565b34801561050d57600080fd5b50610486600d5481565b34801561052357600080fd5b5061044e610532366004613b1f565b610f3a565b34801561054357600080fd5b506104db610552366004613b38565b601f6020526000908152604090205460ff1681565b34801561057357600080fd5b5061059b7f000000000000000000000000000000000000000000000000000000000000000081565b6040516001600160a01b039091168152602001610490565b3480156105bf57600080fd5b50600254610486565b3480156105d457600080fd5b5061048660175481565b3480156105ea57600080fd5b50610486600f5481565b34801561060057600080fd5b5061048661060f366004613b55565b611016565b34801561062057600080fd5b506104db61062f366004613b8e565b611094565b34801561064057600080fd5b5061044e61064f366004613bdd565b61113e565b34801561066057600080fd5b5060085461059b906001600160a01b031681565b34801561068057600080fd5b5061044e61068f366004613b38565b61121a565b3480156106a057600080fd5b5060405160128152602001610490565b3480156106bc57600080fd5b5061044e6106cb366004613b38565b61130a565b3480156106dc57600080fd5b506104db6106eb366004613af3565b611397565b3480156106fc57600080fd5b5061059b7f000000000000000000000000000000000000000000000000000000000000000081565b34801561073057600080fd5b50601c546104db90610100900460ff1681565b34801561074f57600080fd5b5061048660145481565b34801561076557600080fd5b5061044e6113d3565b34801561077a57600080fd5b506104db610789366004613b38565b6001600160a01b03166000908152601e602052604090205460ff1690565b3480156107b357600080fd5b506104866107c2366004613b38565b61144b565b3480156107d357600080fd5b506107e76107e2366004613c63565b6114c1565b604080516001600160a01b0390991689526020890197909752958701949094526060860192909252608085015260a084015260c083015260e082015261010001610490565b34801561083857600080fd5b50610486611565565b34801561084d57600080fd5b5061044e61085c366004613a67565b6115d8565b34801561086d57600080fd5b5061048661087c366004613b38565b61166b565b34801561088d57600080fd5b50601c546104db906301000000900460ff1681565b3480156108ae57600080fd5b5061044e6108bd366004613b1f565b61169e565b3480156108ce57600080fd5b506104866108dd366004613b38565b611771565b3480156108ee57600080fd5b5061048661178c565b34801561090357600080fd5b5061044e6117b7565b34801561091857600080fd5b506104866117ed565b34801561092d57600080fd5b506104db611837565b34801561094257600080fd5b5061044e610951366004613c88565b611878565b34801561096257600080fd5b5061044e611902565b34801561097757600080fd5b50610486601b5481565b34801561098d57600080fd5b5061044e61099c366004613b1f565b611ae1565b3480156109ad57600080fd5b5061044e611c24565b3480156109c257600080fd5b506007546001600160a01b031661059b565b3480156109e057600080fd5b5061044e6109ef366004613cb6565b611cc0565b348015610a0057600080fd5b506107e7610a0f366004613b55565b611d08565b348015610a2057600080fd5b506104ae611d52565b348015610a3557600080fd5b506104866103e881565b348015610a4b57600080fd5b5061044e610a5a366004613c88565b611d61565b348015610a6b57600080fd5b5061048660185481565b348015610a8157600080fd5b50610486611e4a565b348015610a9657600080fd5b506104db610aa5366004613af3565b611e94565b348015610ab657600080fd5b5061044e610ac5366004613b38565b611f2d565b348015610ad657600080fd5b506104db610ae5366004613af3565b611fcc565b348015610af657600080fd5b506104db610b05366004613b38565b602080526000908152604090205460ff1681565b348015610b2557600080fd5b5061048660135481565b348015610b3b57600080fd5b50601c546104db9062010000900460ff1681565b348015610b5b57600080fd5b5061044e610b6a366004613b1f565b611fd9565b348015610b7b57600080fd5b5061044e610b8a366004613c88565b61211e565b348015610b9b57600080fd5b5061044e610baa366004613b38565b6121a0565b348015610bbb57600080fd5b5061044e610bca366004613b1f565b6121fc565b348015610bdb57600080fd5b5061044e610bea366004613bdd565b6122ca565b348015610bfb57600080fd5b5061044e612399565b348015610c1057600080fd5b50601c546104db90640100000000900460ff1681565b348015610c3257600080fd5b50610486600a5481565b348015610c4857600080fd5b5061044e610c57366004613b38565b612407565b348015610c6857600080fd5b5061048660155481565b348015610c7e57600080fd5b5061048660115481565b348015610c9457600080fd5b5061048660105481565b348015610caa57600080fd5b50610486610cb9366004613b55565b6001600160a01b03918216600090815260016020908152604080832093909416825291909152205490565b348015610cf057600080fd5b50610486600b5481565b348015610d0657600080fd5b506104866125a6565b348015610d1b57600080fd5b506104db6125f0565b348015610d3057600080fd5b5061044e610d3f366004613b1f565b612631565b348015610d5057600080fd5b50610486600e5481565b348015610d6657600080fd5b50610486601a5481565b348015610d7c57600080fd5b5061044e610d8b366004613b38565b61268c565b348015610d9c57600080fd5b5061048660165481565b348015610db257600080fd5b5061044e612724565b348015610dc757600080fd5b50610486600c5481565b348015610ddd57600080fd5b50601c546104db90600160281b900460ff1681565b6007546001600160a01b03163314610e255760405162461bcd60e51b8152600401610e1c90613cd3565b60405180910390fd5b60118290556012819055610e398183613d1e565b601081905560641015610e8e5760405162461bcd60e51b815260206004820152601d60248201527f4d757374206b656570206665657320617420313025206f72206c6573730000006044820152606401610e1c565b5050565b606060038054610ea190613d36565b80601f0160208091040260200160405190810160405280929190818152602001828054610ecd90613d36565b8015610f1a5780601f10610eef57610100808354040283529160200191610f1a565b820191906000526020600020905b815481529060010190602001808311610efd57829003601f168201915b5050505050905090565b6000610f313384846127c8565b50600192915050565b6007546001600160a01b03163314610f645760405162461bcd60e51b8152600401610e1c90613cd3565b670de0b6b3a76400006103e8610f7960025490565b610f84906001613d70565b610f8e9190613d8f565b610f989190613d8f565b8111610ffe5760405162461bcd60e51b815260206004820152602f60248201527f43616e6e6f7420736574206d61785472616e73616374696f6e416d6f756e742060448201526e6c6f776572207468616e20302e312560881b6064820152608401610e1c565b61101081670de0b6b3a7640000613d70565b600a5550565b600854604051630409e23560e31b81526001600160a01b0384811660048301528381166024830152600092169063204f11a890604401602060405180830381865afa158015611069573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061108d9190613db1565b9392505050565b60006110a18484846128ec565b6001600160a01b0384166000908152600160209081526040808320338452909152902054828110156111265760405162461bcd60e51b815260206004820152602860248201527f45524332303a207472616e7366657220616d6f756e74206578636565647320616044820152676c6c6f77616e636560c01b6064820152608401610e1c565b61113385338584036127c8565b506001949350505050565b6007546001600160a01b031633146111685760405162461bcd60e51b8152600401610e1c90613cd3565b60005b828110156111d95781601f600086868581811061118a5761118a613dca565b905060200201602081019061119f9190613b38565b6001600160a01b031681526020810191909152604001600020805460ff1916911515919091179055806111d181613de0565b91505061116b565b507f7b70015a5afc83c8c7947fcdd187399440dd6e543884d4f7356168007dd151d983838360405161120d93929190613df9565b60405180910390a1505050565b6007546001600160a01b031633146112445760405162461bcd60e51b8152600401610e1c90613cd3565b6006546001600160a01b03908116908216036112a25760405162461bcd60e51b815260206004820152601860248201527f6d6179206e6f742073657420746f2030206164647265737300000000000000006044820152606401610e1c565b6112ad81600161211e565b6009546040516001600160a01b03918216918316907f086aa05ff00214e2d0c7c02b8a46b2614ad955732e6b43aa8afca69ed1ad76f890600090a3600980546001600160a01b0319166001600160a01b0392909216919091179055565b6007546001600160a01b031633146113345760405162461bcd60e51b8152600401610e1c90613cd3565b60085460405163031e79db60e41b81526001600160a01b038381166004830152909116906331e79db0906024015b600060405180830381600087803b15801561137c57600080fd5b505af1158015611390573d6000803e3d6000fd5b5050505050565b3360008181526001602090815260408083206001600160a01b03871684529091528120549091610f319185906113ce908690613d1e565b6127c8565b60085460405163bc4c4b3760e01b8152336004820152600060248201526001600160a01b039091169063bc4c4b37906044016020604051808303816000875af1158015611424573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906114489190613e52565b50565b6008546040516326b72f0160e11b81526001600160a01b0383811660048301526000921690634d6e5e02906024015b602060405180830381865afa158015611497573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906114bb9190613db1565b92915050565b600854604051638c503bf560e01b8152600481018490526001600160a01b0383811660248301526000928392839283928392839283928392911690638c503bf5906044015b61010060405180830381865afa158015611524573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906115489190613e6f565b975097509750975097509750975097509295985092959890939650565b600854604080516304ddf6ef60e11b815290516000926001600160a01b0316916309bbedde9160048083019260209291908290030181865afa1580156115af573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906115d39190613db1565b905090565b6007546001600160a01b031633146116025760405162461bcd60e51b8152600401610e1c90613cd3565b601482905560158190556116168183613d1e565b601381905560641015610e8e5760405162461bcd60e51b815260206004820152601d60248201527f4d757374206b656570206665657320617420313025206f72206c6573730000006044820152606401610e1c565b60085460405163156dbbf560e31b81526001600160a01b038381166004830152600092169063ab6ddfa89060240161147a565b6008546040516001624d3b8760e01b0319815260048101839052600091829182916001600160a01b03169063ffb2c479906024016060604051808303816000875af11580156116f1573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906117159190613ed9565b604080518481526020810184905290810182905260608101889052929550909350915032906000907fc864333d6121033635ab41b29ae52f10a22cf4438c3e4f1c4c68518feb2f8a98906080015b60405180910390a350505050565b6001600160a01b031660009081526020819052604090205490565b601c54600090600160281b900460ff16156117b157601a546019546115d39190613d1e565b50600090565b6007546001600160a01b031633146117e15760405162461bcd60e51b8152600401610e1c90613cd3565b6117eb600061335b565b565b6008546040805163ad7a672f60e01b815290516000926001600160a01b03169163ad7a672f9160048083019260209291908290030181865afa1580156115af573d6000803e3d6000fd5b6007546000906001600160a01b031633146118645760405162461bcd60e51b8152600401610e1c90613cd3565b50601c805464ff0000ff0019169055600190565b6007546001600160a01b031633146118a25760405162461bcd60e51b8152600401610e1c90613cd3565b6001600160a01b0382166000818152601f6020908152604091829020805460ff191685151590811790915591519182527f575f9d01836c9206322151b9e9ec3f2b77b87e71176933b9b44d2d732f768d9591015b60405180910390a25050565b6007546001600160a01b0316331461192c5760405162461bcd60e51b8152600401610e1c90613cd3565b61193461178c565b421015801561194a5750600061194861178c565b115b61198f5760405162461bcd60e51b815260206004820152601660248201527526bab9ba103932b8bab2b9ba1030b732103bb0b4ba1760511b6044820152606401610e1c565b60006019819055601c805465ff000000000019169055601b546040516370a0823160e01b8152306004820152606491907f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316906370a0823190602401602060405180830381865afa158015611a10573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611a349190613db1565b611a3e9190613d70565b611a489190613d8f565b6000601b5560405163a9059cbb60e01b8152336004820152602481018290529091507f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03169063a9059cbb906044016020604051808303816000875af1158015611abd573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610e8e9190613e52565b6007546001600160a01b03163314611b0b5760405162461bcd60e51b8152600401610e1c90613cd3565b62030d408110158015611b2157506207a1208111155b611b8b5760405162461bcd60e51b815260206004820152603560248201527f20676173466f7250726f63657373696e67206d7573742062652062657477656560448201527406e203230302c30303020616e64203530302c30303605c1b6064820152608401610e1c565b6018548103611bf15760405162461bcd60e51b815260206004820152602c60248201527f43616e6e6f742075706461746520676173466f7250726f63657373696e67207460448201526b6f2073616d652076616c756560a01b6064820152608401610e1c565b60185460405182907f40d7e40e79af4e8e5a9b3c57030d8ea93f13d669c06d448c4d631d4ae7d23db790600090a3601855565b6007546001600160a01b03163314611c4e5760405162461bcd60e51b8152600401610e1c90613cd3565b601c5462010000900460ff1615611ca75760405162461bcd60e51b815260206004820152601860248201527f43616e6e6f742072652d656e61626c652074726164696e6700000000000000006044820152606401610e1c565b601c805463ffff00001916630101000017905543600e55565b6007546001600160a01b03163314611cea5760405162461bcd60e51b8152600401610e1c90613cd3565b601c805491151563010000000263ff00000019909216919091179055565b60085460405163fd59084760e01b81526001600160a01b0384811660048301528381166024830152600092839283928392839283928392839291169063fd59084790604401611506565b606060048054610ea190613d36565b6007546001600160a01b03163314611d8b5760405162461bcd60e51b8152600401610e1c90613cd3565b7f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316826001600160a01b031603611e405760405162461bcd60e51b815260206004820152604560248201527f5468652050616e63616b655377617020706169722063616e6e6f74206265207260448201527f656d6f7665642066726f6d206175746f6d617465644d61726b65744d616b6572606482015264506169727360d81b608482015260a401610e1c565b610e8e82826133ad565b60085460408051631bc9e27b60e21b815290516000926001600160a01b031691636f2789ec9160048083019260209291908290030181865afa1580156115af573d6000803e3d6000fd5b3360009081526001602090815260408083206001600160a01b038616845290915281205482811015611f165760405162461bcd60e51b815260206004820152602560248201527f45524332303a2064656372656173656420616c6c6f77616e63652062656c6f77604482015264207a65726f60d81b6064820152608401610e1c565b611f2333858584036127c8565b5060019392505050565b6007546001600160a01b03163314611f575760405162461bcd60e51b8152600401610e1c90613cd3565b611f6281600161211e565b60085460405163031e79db60e41b81526001600160a01b038381166004830152909116906331e79db090602401600060405180830381600087803b158015611fa957600080fd5b505af1158015611fbd573d6000803e3d6000fd5b50505050611448816001611878565b6000610f313384846128ec565b6007546001600160a01b031633146120035760405162461bcd60e51b8152600401610e1c90613cd3565b601c54600160281b900460ff16156120775760405162461bcd60e51b815260206004820152603160248201527f43616e6e6f74207265717565737420616761696e20756e74696c206669727374604482015270103932b8bab2b9ba1034b99037bb32b91760791b6064820152608401610e1c565b606481111580156120885750600081115b6120d45760405162461bcd60e51b815260206004820152601a60248201527f4e65656420746f20736574206265747765656e20312d313030250000000000006044820152606401610e1c565b42601955601c805465ff00000000001916600160281b179055601b8190556040517fd99a77b2f3951cd076e75814e44db497e6abc203dd251329da0b62c288f9f48b90600090a150565b6007546001600160a01b031633146121485760405162461bcd60e51b8152600401610e1c90613cd3565b6001600160a01b0382166000818152601e6020908152604091829020805460ff191685151590811790915591519182527f9d8f7706ea1113d1a167b526eca956215946dd36cc7df39eb16180222d8b5df791016118f6565b6007546001600160a01b031633146121ca5760405162461bcd60e51b8152600401610e1c90613cd3565b60085460405163c0f306ef60e01b81526001600160a01b0383811660048301529091169063c0f306ef90602401611362565b6007546001600160a01b031633146122265760405162461bcd60e51b8152600401610e1c90613cd3565b670de0b6b3a7640000606461223a60025490565b612245906001613d70565b61224f9190613d8f565b6122599190613d8f565b81116122b25760405162461bcd60e51b815260206004820152602260248201527f43616e6e6f7420736574206d617857616c6c6574206c6f776572207468616e20604482015261312560f01b6064820152608401610e1c565b6122c481670de0b6b3a7640000613d70565b600c5550565b6007546001600160a01b031633146122f45760405162461bcd60e51b8152600401610e1c90613cd3565b60005b828110156123655781601e600086868581811061231657612316613dca565b905060200201602081019061232b9190613b38565b6001600160a01b031681526020810191909152604001600020805460ff19169115159190911790558061235d81613de0565b9150506122f7565b507f7fdaf542373fa84f4ee8d662c642f44e4c2276a217d7d29e548b6eb29a233b3583838360405161120d93929190613df9565b6007546001600160a01b031633146123c35760405162461bcd60e51b8152600401610e1c90613cd3565b601c805465ff0000000000191690556000601b81905560198190556040517ffbcc1c208c9c4d1d9f557267b55c5ae316e74ce676a0db72ef18c6d5f5767c619190a1565b6009546001600160a01b0316331461241e57600080fd5b6040516370a0823160e01b81523060048201526000906001600160a01b038316906370a0823190602401602060405180830381865afa158015612465573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906124899190613db1565b116124c25760405162461bcd60e51b81526020600482015260096024820152684e6f20746f6b656e7360b81b6044820152606401610e1c565b6040516370a0823160e01b81523060048201526000906001600160a01b038316906370a0823190602401602060405180830381865afa158015612509573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061252d9190613db1565b60405163a9059cbb60e01b8152336004820152602481018290529091506001600160a01b0383169063a9059cbb906044016020604051808303816000875af115801561257d573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906125a19190613e52565b505050565b6008546040805163039e107b60e61b815290516000926001600160a01b03169163e7841ec09160048083019260209291908290030181865afa1580156115af573d6000803e3d6000fd5b6007546000906001600160a01b0316331461261d5760405162461bcd60e51b8152600401610e1c90613cd3565b50601c805464ff0000000019169055600190565b6007546001600160a01b0316331461265b5760405162461bcd60e51b8152600401610e1c90613cd3565b60085460405163e98030c760e01b8152600481018390526001600160a01b039091169063e98030c790602401611362565b6007546001600160a01b031633146126b65760405162461bcd60e51b8152600401610e1c90613cd3565b6001600160a01b03811661271b5760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610e1c565b6114488161335b565b6009546001600160a01b0316331461273b57600080fd5b604051600090339047908381818185875af1925050503d806000811461277d576040519150601f19603f3d011682016040523d82523d6000602084013e612782565b606091505b50509050806114485760405162461bcd60e51b81526020600482015260126024820152716661696c656420746f20776974686472617760701b6044820152606401610e1c565b6001600160a01b03831661282a5760405162461bcd60e51b8152602060048201526024808201527f45524332303a20617070726f76652066726f6d20746865207a65726f206164646044820152637265737360e01b6064820152608401610e1c565b6001600160a01b03821661288b5760405162461bcd60e51b815260206004820152602260248201527f45524332303a20617070726f766520746f20746865207a65726f206164647265604482015261737360f01b6064820152608401610e1c565b6001600160a01b0383811660008181526001602090815260408083209487168084529482529182902085905590518481527f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925910160405180910390a3505050565b6006546001600160a01b039081169084160361291a5760405162461bcd60e51b8152600401610e1c90613f07565b6006546001600160a01b03908116908316036129485760405162461bcd60e51b8152600401610e1c90613f4c565b8060000361295c576125a18383600061347c565b601c5462010000900460ff166129f7576001600160a01b0383166000908152601e602052604090205460ff16806129ab57506001600160a01b0382166000908152601e602052604090205460ff165b6129f75760405162461bcd60e51b815260206004820152601a60248201527f54726164696e67206973206e6f7420616374697665207965742e0000000000006044820152606401610e1c565b601c54610100900460ff1615612e08576007546001600160a01b03848116911614801590612a3357506007546001600160a01b03838116911614155b8015612a4d57506006546001600160a01b03838116911614155b8015612a6757506005546001600160a01b03838116911614155b8015612a765750601c5460ff16155b15612e0857601c54640100000000900460ff1615612bb0577f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316826001600160a01b031614158015612b0257507f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316826001600160a01b031614155b15612bb057326000908152601d60205260409020544311612b9d5760405162461bcd60e51b815260206004820152604960248201527f5f7472616e736665723a3a205472616e736665722044656c617920656e61626c60448201527f65642e20204f6e6c79206f6e652070757263686173652070657220626c6f636b6064820152681030b63637bbb2b21760b91b608482015260a401610e1c565b326000908152601d602052604090204390555b6001600160a01b038316600090815260208052604090205460ff168015612bf057506001600160a01b0382166000908152601f602052604090205460ff16155b15612cce57600a54811115612c655760405162461bcd60e51b815260206004820152603560248201527f427579207472616e7366657220616d6f756e742065786365656473207468652060448201527436b0bc2a3930b739b0b1ba34b7b720b6b7bab73a1760591b6064820152608401610e1c565b600c54612c7183611771565b612c7b9083613d1e565b1115612cc95760405162461bcd60e51b815260206004820152601b60248201527f556e61626c6520746f20657863656564204d61782057616c6c657400000000006044820152606401610e1c565b612e08565b6001600160a01b038216600090815260208052604090205460ff168015612d0e57506001600160a01b0383166000908152601f602052604090205460ff16155b15612d8457600a54811115612cc95760405162461bcd60e51b815260206004820152603660248201527f53656c6c207472616e7366657220616d6f756e742065786365656473207468656044820152751036b0bc2a3930b739b0b1ba34b7b720b6b7bab73a1760511b6064820152608401610e1c565b6001600160a01b0382166000908152601f602052604090205460ff16612e0857600c54612db083611771565b612dba9083613d1e565b1115612e085760405162461bcd60e51b815260206004820152601b60248201527f556e61626c6520746f20657863656564204d61782057616c6c657400000000006044820152606401610e1c565b6000612e1330611771565b600b5490915081108015908190612e335750601c546301000000900460ff165b8015612e425750601c5460ff16155b8015612e6657506001600160a01b038516600090815260208052604090205460ff16155b8015612e8b57506001600160a01b0385166000908152601e602052604090205460ff16155b8015612eb057506001600160a01b0384166000908152601e602052604090205460ff16155b15612ed557601c805460ff19166001179055612eca6135c3565b601c805460ff191690555b601c546001600160a01b0386166000908152601e602052604090205460ff91821615911680612f1c57506001600160a01b0385166000908152601e602052604090205460ff165b15612f25575060005b600081156131735743600e546001612f3d9190613d1e565b10158015612f8357506001600160a01b038616600090815260208052604090205460ff1680612f8357506001600160a01b038716600090815260208052604090205460ff165b1561300157612f9e6064612f988760636137a4565b906137b0565b90506063612fad826031613d70565b612fb79190613d8f565b60176000828254612fc89190613d1e565b9091555060639050612fdb826031613d70565b612fe59190613d8f565b60166000828254612ff69190613d1e565b909155506131559050565b6001600160a01b038616600090815260208052604090205460ff16801561302a57506000601054115b156130a85761304a6103e8612f98601054886137a490919063ffffffff16565b90506010546011548261305d9190613d70565b6130679190613d8f565b601660008282546130789190613d1e565b909155505060105460125461308d9083613d70565b6130979190613d8f565b60176000828254612ff69190613d1e565b6001600160a01b038716600090815260208052604090205460ff1680156130d157506000601354115b15613155576130f16103e8612f98601354886137a490919063ffffffff16565b9050601354601454826131049190613d70565b61310e9190613d8f565b6016600082825461311f9190613d1e565b90915550506013546015546131349083613d70565b61313e9190613d8f565b6017600082825461314f9190613d1e565b90915550505b80156131665761316687308361347c565b6131708186613f8f565b94505b61317e87878761347c565b6008546001600160a01b031663e30443bc8861319981611771565b6040516001600160e01b031960e085901b1681526001600160a01b0390921660048301526024820152604401600060405180830381600087803b1580156131df57600080fd5b505af11580156131f3573d6000803e3d6000fd5b50506008546001600160a01b0316915063e30443bc90508761321481611771565b6040516001600160e01b031960e085901b1681526001600160a01b0390921660048301526024820152604401600060405180830381600087803b15801561325a57600080fd5b505af115801561326e573d6000803e3d6000fd5b5050601c5460ff1615915050801561328857506000601854115b15613352576018546008546040516001624d3b8760e01b03198152600481018390526001600160a01b039091169063ffb2c479906024016060604051808303816000875af19250505080156132fa575060408051601f3d908101601f191682019092526132f791810190613ed9565b60015b156133505760408051848152602081018490529081018290526060810185905232906001907fc864333d6121033635ab41b29ae52f10a22cf4438c3e4f1c4c68518feb2f8a989060800160405180910390a35050505b505b50505050505050565b600780546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b6001600160a01b03821660009081526020805260409020805460ff19168215151790556133da8282611878565b80156134405760085460405163031e79db60e41b81526001600160a01b038481166004830152909116906331e79db090602401600060405180830381600087803b15801561342757600080fd5b505af115801561343b573d6000803e3d6000fd5b505050505b604051811515906001600160a01b038416907fffa9187bf1f18bf477bd0ea1bcbb64e93b6a98132473929edfce215cd9b16fab90600090a35050565b6001600160a01b0383166134a25760405162461bcd60e51b8152600401610e1c90613f07565b6001600160a01b0382166134c85760405162461bcd60e51b8152600401610e1c90613f4c565b6001600160a01b038316600090815260208190526040902054818110156135405760405162461bcd60e51b815260206004820152602660248201527f45524332303a207472616e7366657220616d6f756e7420657863656564732062604482015265616c616e636560d01b6064820152608401610e1c565b6001600160a01b03808516600090815260208190526040808220858503905591851681529081208054849290613577908490613d1e565b92505081905550826001600160a01b0316846001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef8460405161176391815260200190565b60006135ce30611771565b905060006016546017546135e29190613d1e565b90508115806135ef575080155b156135f8575050565b60006002826017548561360b9190613d70565b6136159190613d8f565b61361f9190613d8f565b9050600061362d84836137bc565b905047613639826137c8565b600061364547836137bc565b90506000613673600260175461365b9190613d8f565b6136659088613f8f565b601654612f989085906137a4565b905060006136818284613f8f565b600060178190556016559050851580159061369c5750600081115b156136ef576136ab8682613988565b601754604080518781526020810184905280820192909252517f17bbfb9a6069321b6ded73bd96327c9e6b7212a5cd51ff219cd61370acafb5619181900360600190a15b6008546040516000916001600160a01b03169084908381818185875af1925050503d806000811461373c576040519150601f19603f3d011682016040523d82523d6000602084013e613741565b606091505b50506009546040519192506001600160a01b0316904790600081818185875af1925050503d8060008114613791576040519150601f19603f3d011682016040523d82523d6000602084013e613796565b606091505b505050505050505050505050565b600061108d8284613d70565b600061108d8284613d8f565b600061108d8284613f8f565b60408051600280825260608201835260009260208301908036833701905050905030816000815181106137fd576137fd613dca565b60200260200101906001600160a01b031690816001600160a01b0316815250507f00000000000000000000000000000000000000000000000000000000000000006001600160a01b031663ad5c46486040518163ffffffff1660e01b8152600401602060405180830381865afa15801561387b573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061389f9190613fa6565b816001815181106138b2576138b2613dca565b60200260200101906001600160a01b031690816001600160a01b0316815250506138fd307f0000000000000000000000000000000000000000000000000000000000000000846127c8565b60405163791ac94760e01b81526001600160a01b037f0000000000000000000000000000000000000000000000000000000000000000169063791ac94790613952908590600090869030904290600401613fc3565b600060405180830381600087803b15801561396c57600080fd5b505af1158015613980573d6000803e3d6000fd5b505050505050565b6139b3307f0000000000000000000000000000000000000000000000000000000000000000846127c8565b60095460405163f305d71960e01b81523060048201526024810184905260006044820181905260648201526001600160a01b0391821660848201524260a48201527f00000000000000000000000000000000000000000000000000000000000000009091169063f305d71990839060c40160606040518083038185885af1158015613a42573d6000803e3d6000fd5b50505050506040513d601f19601f820116820180604052508101906113909190613ed9565b60008060408385031215613a7a57600080fd5b50508035926020909101359150565b600060208083528351808285015260005b81811015613ab657858101830151858201604001528201613a9a565b81811115613ac8576000604083870101525b50601f01601f1916929092016040019392505050565b6001600160a01b038116811461144857600080fd5b60008060408385031215613b0657600080fd5b8235613b1181613ade565b946020939093013593505050565b600060208284031215613b3157600080fd5b5035919050565b600060208284031215613b4a57600080fd5b813561108d81613ade565b60008060408385031215613b6857600080fd5b8235613b7381613ade565b91506020830135613b8381613ade565b809150509250929050565b600080600060608486031215613ba357600080fd5b8335613bae81613ade565b92506020840135613bbe81613ade565b929592945050506040919091013590565b801515811461144857600080fd5b600080600060408486031215613bf257600080fd5b833567ffffffffffffffff80821115613c0a57600080fd5b818601915086601f830112613c1e57600080fd5b813581811115613c2d57600080fd5b8760208260051b8501011115613c4257600080fd5b60209283019550935050840135613c5881613bcf565b809150509250925092565b60008060408385031215613c7657600080fd5b823591506020830135613b8381613ade565b60008060408385031215613c9b57600080fd5b8235613ca681613ade565b91506020830135613b8381613bcf565b600060208284031215613cc857600080fd5b813561108d81613bcf565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b634e487b7160e01b600052601160045260246000fd5b60008219821115613d3157613d31613d08565b500190565b600181811c90821680613d4a57607f821691505b602082108103613d6a57634e487b7160e01b600052602260045260246000fd5b50919050565b6000816000190483118215151615613d8a57613d8a613d08565b500290565b600082613dac57634e487b7160e01b600052601260045260246000fd5b500490565b600060208284031215613dc357600080fd5b5051919050565b634e487b7160e01b600052603260045260246000fd5b600060018201613df257613df2613d08565b5060010190565b6040808252810183905260008460608301825b86811015613e3c578235613e1f81613ade565b6001600160a01b0316825260209283019290910190600101613e0c565b5080925050508215156020830152949350505050565b600060208284031215613e6457600080fd5b815161108d81613bcf565b600080600080600080600080610100898b031215613e8c57600080fd5b8851613e9781613ade565b809850506020890151965060408901519550606089015194506080890151935060a0890151925060c0890151915060e089015190509295985092959890939650565b600080600060608486031215613eee57600080fd5b8351925060208401519150604084015190509250925092565b60208082526025908201527f45524332303a207472616e736665722066726f6d20746865207a65726f206164604082015264647265737360d81b606082015260800190565b60208082526023908201527f45524332303a207472616e7366657220746f20746865207a65726f206164647260408201526265737360e81b606082015260800190565b600082821015613fa157613fa1613d08565b500390565b600060208284031215613fb857600080fd5b815161108d81613ade565b600060a082018783526020878185015260a0604085015281875180845260c086019150828901935060005b818110156140135784516001600160a01b031683529383019391830191600101613fee565b50506001600160a01b0396909616606085015250505060800152939250505056fea26469706673582212209c3f6dfe40bd2d074081f05009633939079926490c3e0ed976c612c2b3de296164736f6c634300080f003360c060405234801561001057600080fd5b5061001a336100dd565b737a250d5630b4cf539739df2c5dacb4c659f2488d60808190526002805460018101825560008281527f405787fa12a823e0f2b7631cc41b3ba8828b3321ca811111fa75cd3aa3bb5ace90910180546001600160a01b03191673a0b86991c6218b36c1d19d4a2e9eb0ce3606eb4817905581546100995761009961012d565b600091825260209091200154600380546001600160a01b0319166001600160a01b03909216919091179055506104b0601155683635c9adc5dea0000060a052610143565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b634e487b7160e01b600052603260045260246000fd5b60805160a051611dc26200017e600039600081816104d10152610cfb01526000818161022e0152818161118c01526112780152611dc26000f3fe6080604052600436106101dc5760003560e01c80639c53c0ca11610102578063e30443bc11610095578063e98030c711610064578063e98030c7146105ee578063f2fde38b1461060e578063fd5908471461062e578063ffb2c4791461064e57600080fd5b8063e30443bc14610553578063e6f083f414610573578063e7841ec0146105b9578063e7f4d2c3146105ce57600080fd5b8063be10b614116100d1578063be10b614146104bf578063c0f306ef146104f3578063cb83bcd614610513578063cc5489df1461053357600080fd5b80639c53c0ca1461043c578063ab6ddfa81461045c578063ad7a672f14610489578063bc4c4b371461049f57600080fd5b80634d6e5e021161017a5780637bb7bed1116101495780637bb7bed1146103835780638c503bf5146103a35780638da5cb5b1461040857806393fcfe611461042657600080fd5b80634d6e5e02146102eb5780634e7b827f146103185780636f2789ec14610358578063715018a61461036e57600080fd5b8063204f11a8116101b6578063204f11a814610268578063226cfa3d146102885780633009a609146102b557806331e79db0146102cb57600080fd5b806303c83302146101f057806309bbedde146101f85780631694505e1461021c57600080fd5b366101eb576101e9610689565b005b600080fd5b6101e9610689565b34801561020457600080fd5b50600a545b6040519081526020015b60405180910390f35b34801561022857600080fd5b506102507f000000000000000000000000000000000000000000000000000000000000000081565b6040516001600160a01b039091168152602001610213565b34801561027457600080fd5b50610209610283366004611a53565b6108eb565b34801561029457600080fd5b506102096102a3366004611a8c565b60106020526000908152604090205481565b3480156102c157600080fd5b50610209600e5481565b3480156102d757600080fd5b506101e96102e6366004611a8c565b61092a565b3480156102f757600080fd5b50610209610306366004611a8c565b60096020526000908152604090205481565b34801561032457600080fd5b50610348610333366004611a8c565b600f6020526000908152604090205460ff1681565b6040519015158152602001610213565b34801561036457600080fd5b5061020960115481565b34801561037a57600080fd5b506101e96109cb565b34801561038f57600080fd5b5061025061039e366004611aa9565b610a01565b3480156103af57600080fd5b506103c36103be366004611ac2565b610a2b565b604080516001600160a01b0390991689526020890197909752958701949094526060860192909252608085015260a084015260c083015260e082015261010001610213565b34801561041457600080fd5b506000546001600160a01b0316610250565b34801561043257600080fd5b5061020960045481565b34801561044857600080fd5b506101e9610457366004611a8c565b610a9b565b34801561046857600080fd5b50610209610477366004611a8c565b60076020526000908152604090205481565b34801561049557600080fd5b5061020960085481565b3480156104ab57600080fd5b506103486104ba366004611af5565b610aa9565b3480156104cb57600080fd5b506102097f000000000000000000000000000000000000000000000000000000000000000081565b3480156104ff57600080fd5b506101e961050e366004611a8c565b610b97565b34801561051f57600080fd5b5061020961052e366004611a53565b610c2f565b34801561053f57600080fd5b5061020961054e366004611a53565b610c3b565b34801561055f57600080fd5b506101e961056e366004611b23565b610caf565b34801561057f57600080fd5b5061020961058e366004611a53565b6001600160a01b03918216600090815260066020908152604080832093909416825291909152205490565b3480156105c557600080fd5b50600e54610209565b3480156105da57600080fd5b50600354610250906001600160a01b031681565b3480156105fa57600080fd5b506101e9610609366004611aa9565b610d5d565b34801561061a57600080fd5b506101e9610629366004611a8c565b610ec6565b34801561063a57600080fd5b506103c3610649366004611a53565b610f61565b34801561065a57600080fd5b5061066e610669366004611aa9565b61104c565b60408051938452602084019290925290820152606001610213565b60006008541161069857600080fd5b6003546040516370a0823160e01b81523060048201526000916001600160a01b0316906370a0823190602401602060405180830381865afa1580156106e1573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906107059190611b4f565b60035490915061071f9034906001600160a01b0316611169565b6003546040516370a0823160e01b81523060048201526000916107989184916001600160a01b0316906370a0823190602401602060405180830381865afa15801561076e573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906107929190611b4f565b906112ef565b90508015610874576008546107e0906107b583600160801b6112fb565b6107bf9190611b7e565b6003546001600160a01b031660009081526001602052604090205490611307565b6003546001600160a01b0316600090815260016020908152604091829020929092555182815233917fa493a9229478c3fcd73f66d2cdeb7f94fd0f341da924d1054236d78454116511910160405180910390a26003546001600160a01b03166000908152600960205260409020546108589082611307565b6003546001600160a01b03166000908152600960205260409020555b60025461088390600190611ba0565b6004541461089e57600454610899906001611bb7565b6108a1565b60005b6004819055506002600454815481106108bc576108bc611bcf565b600091825260209091200154600380546001600160a01b0319166001600160a01b039092169190911790555050565b6001600160a01b038083166000908152600660209081526040808320938516835292905290812054610921906107928585610c3b565b90505b92915050565b6000546001600160a01b0316331461095d5760405162461bcd60e51b815260040161095490611be5565b60405180910390fd5b6001600160a01b0381166000908152600f60205260408120805460ff1916600117905561098b908290611313565b610994816113ac565b6040516001600160a01b038216907fa878b31040b2e6d0a9a3d3361209db3908ba62014b0dca52adbaee451d128b2590600090a250565b6000546001600160a01b031633146109f55760405162461bcd60e51b815260040161095490611be5565b6109ff60006114df565b565b60028181548110610a1157600080fd5b6000918252602090912001546001600160a01b0316905081565b600080600080600080600080610a40600a5490565b8a10610a65575060009650600019955085945086935083925082915081905080610a8e565b6000610a708b61152f565b9050610a7c818b610f61565b98509850985098509850985098509850505b9295985092959890939650565b610aa53382611562565b5050565b600080546001600160a01b03163314610ad45760405162461bcd60e51b815260040161095490611be5565b60008060005b600254811015610b8e57610b158660028381548110610afb57610afb611bcf565b6000918252602090912001546001600160a01b0316611562565b92508215610b7c576001600160a01b038616600081815260106020526040908190204290555186151591907fa2c38e2d2fb7e3e1912d937fd1ca11ed6d51864dee4cfa7a7bf02becd7acf09290610b6f9087815260200190565b60405180910390a3600191505b80610b8681611c1a565b915050610ada565b50949350505050565b6000546001600160a01b03163314610bc15760405162461bcd60e51b815260040161095490611be5565b6001600160a01b0381166000908152600f602052604090205460ff16610be657600080fd5b6001600160a01b0381166000818152600f6020526040808220805460ff19169055517f40a78dcf8526b72f2eaf598af1c7e49c8d5fc577f6c8f1bed887f3e4dfa289329190a250565b600061092183836108eb565b6001600160a01b03808216600081815260056020908152604080832094871683529381528382205460078252848320549383526001909152928120549092600160801b92610ca592610ca09291610c9a91610c95916112fb565b61168f565b9061169f565b6116dd565b6109219190611b7e565b6000546001600160a01b03163314610cd95760405162461bcd60e51b815260040161095490611be5565b6001600160a01b0382166000908152600f602052604090205460ff16610aa5577f00000000000000000000000000000000000000000000000000000000000000008110610d3957610d2a8282611313565b610d3482826116f0565b610d4d565b610d44826000611313565b610d4d826113ac565b610d58826001610aa9565b505050565b6000546001600160a01b03163314610d875760405162461bcd60e51b815260040161095490611be5565b6104b08110158015610d9c5750620151808111155b610e1c5760405162461bcd60e51b815260206004820152604560248201527f4469766964656e645f547261636b65723a20636c61696d57616974206d75737460448201527f206265207570646174656420746f206265747765656e203120616e6420323420606482015264686f75727360d81b608482015260a401610954565b6011548103610e935760405162461bcd60e51b815260206004820152603760248201527f4469766964656e645f547261636b65723a2043616e6e6f74207570646174652060448201527f636c61696d5761697420746f2073616d652076616c75650000000000000000006064820152608401610954565b60115460405182907f474ea64804364a1e29a4487ddb63c3342a2dd826ccd8acf48825e680a0e6f20f90600090a3601155565b6000546001600160a01b03163314610ef05760405162461bcd60e51b815260040161095490611be5565b6001600160a01b038116610f555760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610954565b610f5e816114df565b50565b816000808080808080610f73886117ae565b9650600019955060008712610fd557600e54871115610fa157600e54610f9a9088906117f3565b9550610fd5565b600e54600a5460009110610fb6576000610fc5565b600e54600a54610fc5916112ef565b9050610fd1888261169f565b9650505b610fdf888a6108eb565b9450610feb888a610c3b565b6001600160a01b038916600090815260106020526040902054909450925082611015576000611023565b601154611023908490611307565b915042821161103357600061103d565b61103d82426112ef565b90509295985092959890939650565b600a546000908190819080820361106e575050600e5460009250829150611162565b600e546000805a90506000805b898410801561108957508582105b15611151578461109881611c1a565b600a54909650861090506110ab57600094505b6000600a60000186815481106110c3576110c3611bcf565b60009182526020808320909101546001600160a01b031680835260109091526040909120549091506110f490611830565b1561111757611104816001610aa9565b15611117578161111381611c1a565b9250505b8261112181611c1a565b93505060005a9050808511156111485761114561113e86836112ef565b8790611307565b95505b935061107b9050565b600e85905590975095509193505050505b9193909250565b6040805160028082526060820183526000926020830190803683370190505090507f00000000000000000000000000000000000000000000000000000000000000006001600160a01b031663ad5c46486040518163ffffffff1660e01b8152600401602060405180830381865afa1580156111e8573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061120c9190611c33565b8160008151811061121f5761121f611bcf565b60200260200101906001600160a01b031690816001600160a01b031681525050818160018151811061125357611253611bcf565b6001600160a01b03928316602091820292909201015260405163b6f9de9560e01b81527f00000000000000000000000000000000000000000000000000000000000000009091169063b6f9de959085906112b890600090869030904290600401611c50565b6000604051808303818588803b1580156112d157600080fd5b505af11580156112e5573d6000803e3d6000fd5b5050505050505050565b60006109218284611ba0565b60006109218284611cba565b60006109218284611bb7565b6001600160a01b03821660009081526007602052604090208054908290558082111561136f57600061134583836112ef565b90506113518482611857565b80600860008282546113639190611bb7565b90915550610d58915050565b80821015610d5857600061138382846112ef565b905061138f8482611960565b80600860008282546113a19190611ba0565b909155505050505050565b6001600160a01b0381166000908152600d602052604090205460ff166113cf5750565b6001600160a01b0381166000908152600d60209081526040808320805460ff19169055600b8252808320839055600c909152812054600a5490919061141690600190611ba0565b90506000600a600001828154811061143057611430611bcf565b60009182526020808320909101546001600160a01b03908116808452600c90925260408084208790559087168352822091909155600a805491925082918590811061147d5761147d611bcf565b600091825260209091200180546001600160a01b0319166001600160a01b0392909216919091179055600a8054806114b7576114b7611cd9565b600082815260209020810160001990810180546001600160a01b031916905501905550505050565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b6000600a600001828154811061154757611547611bcf565b6000918252602090912001546001600160a01b031692915050565b60008061156f84846108eb565b90508015611685576001600160a01b038085166000908152600660209081526040808320938716835292905220546115a79082611307565b6001600160a01b038086166000818152600660209081526040808320948916835293905282902092909255517fee503bee2bb6a87e57bc57db795f98137327401a0e7b7ce42e37926cc1a9ca4d906116029084815260200190565b60405180910390a260405163a9059cbb60e01b81526001600160a01b0385811660048301526024820183905284169063a9059cbb906044016020604051808303816000875af1158015611659573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061167d9190611cef565b509050610924565b5060009392505050565b6000818181121561092457600080fd5b6000806116ac8385611d0c565b9050600083121580156116bf5750838112155b806116d457506000831280156116d457508381125b61092157600080fd5b6000808212156116ec57600080fd5b5090565b6001600160a01b0382166000908152600d602052604090205460ff161561172e576001600160a01b03919091166000908152600b6020526040902055565b6001600160a01b0382166000818152600d60209081526040808320805460ff19166001908117909155600b8352818420869055600a8054600c909452918420839055820181559091527fc65a7bb8d6351c1cf70c95a316cc6a92839c986682d98bc35f958f4883f9d2a80180546001600160a01b03191690911790555050565b6001600160a01b0381166000908152600d602052604081205460ff166117d75750600019919050565b506001600160a01b03166000908152600c602052604090205490565b6000806118008385611d4d565b9050600083121580156118135750838113155b806116d457506000831280156116d4575083811361092157600080fd5b60004282111561184257506000919050565b60115461184f42846112ef565b101592915050565b60005b600254811015610d58576119026118b0610c9584600160006002878154811061188557611885611bcf565b60009182526020808320909101546001600160a01b03168352820192909252604001902054906112fb565b60056000600285815481106118c7576118c7611bcf565b60009182526020808320909101546001600160a01b0390811684528382019490945260409283018220938916825292909252902054906117f3565b600560006002848154811061191957611919611bcf565b60009182526020808320909101546001600160a01b03908116845283820194909452604092830182209388168252929092529020558061195881611c1a565b91505061185a565b60005b600254811015610d58576119e061198e610c9584600160006002878154811061188557611885611bcf565b60056000600285815481106119a5576119a5611bcf565b60009182526020808320909101546001600160a01b03908116845283820194909452604092830182209389168252929092529020549061169f565b60056000600284815481106119f7576119f7611bcf565b60009182526020808320909101546001600160a01b039081168452838201949094526040928301822093881682529290925290205580611a3681611c1a565b915050611963565b6001600160a01b0381168114610f5e57600080fd5b60008060408385031215611a6657600080fd5b8235611a7181611a3e565b91506020830135611a8181611a3e565b809150509250929050565b600060208284031215611a9e57600080fd5b813561092181611a3e565b600060208284031215611abb57600080fd5b5035919050565b60008060408385031215611ad557600080fd5b823591506020830135611a8181611a3e565b8015158114610f5e57600080fd5b60008060408385031215611b0857600080fd5b8235611b1381611a3e565b91506020830135611a8181611ae7565b60008060408385031215611b3657600080fd5b8235611b4181611a3e565b946020939093013593505050565b600060208284031215611b6157600080fd5b5051919050565b634e487b7160e01b600052601160045260246000fd5b600082611b9b57634e487b7160e01b600052601260045260246000fd5b500490565b600082821015611bb257611bb2611b68565b500390565b60008219821115611bca57611bca611b68565b500190565b634e487b7160e01b600052603260045260246000fd5b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b600060018201611c2c57611c2c611b68565b5060010190565b600060208284031215611c4557600080fd5b815161092181611a3e565b600060808201868352602060808185015281875180845260a086019150828901935060005b81811015611c9a5784516001600160a01b031683529383019391830191600101611c75565b50506001600160a01b039690961660408501525050506060015292915050565b6000816000190483118215151615611cd457611cd4611b68565b500290565b634e487b7160e01b600052603160045260246000fd5b600060208284031215611d0157600080fd5b815161092181611ae7565b600080821280156001600160ff1b0384900385131615611d2e57611d2e611b68565b600160ff1b8390038412811615611d4757611d47611b68565b50500190565b60008083128015600160ff1b850184121615611d6b57611d6b611b68565b6001600160ff1b0384018313811615611d8657611d86611b68565b5050039056fea2646970667358221220132d4d2781e414425f4a156485b001a68f45b3266a1c363d9762ed0f877386e264736f6c634300080f00334f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572
Deployed Bytecode
0x6080604052600436106104475760003560e01c8063871c128d11610232578063c492f0461161012d578063e7841ec0116100b0578063f2fde38b11610077578063f2fde38b14610d70578063f54afa7814610d90578063f5648a4f14610da6578063f8b45b0514610dbb578063fd361d0e14610dd157005b8063e7841ec014610cfa578063e884f26014610d0f578063e98030c714610d24578063ee40166e14610d44578063ee44b44e14610d5a57005b8063ccb61358116100f4578063ccb6135814610c5c578063ccd146b214610c72578063d0a3981414610c88578063dd62ed3e14610c9e578063e2f4560514610ce457005b8063c492f04614610bcf578063c7c61e2c14610bef578063c876d0b914610c04578063c8c8ebe414610c26578063cb96372814610c3c57005b8063a457c2d7116101b5578063bbc0c7421161017c578063bbc0c74214610b2f578063befd2fac14610b4f578063c024666814610b6f578063c0f306ef14610b8f578063c18bc19514610baf57005b8063a457c2d714610a8a578063a716b77314610aaa578063a9059cbb14610aca578063b62496f514610aea578063b9e9370014610b1957005b806395d89b41116101f957806395d89b4114610a145780639a36f93214610a295780639a7a23d614610a3f5780639c1b8af514610a5f578063a26579ad14610a7557005b8063871c128d146109815780638a8c523c146109a15780638da5cb5b146109b6578063924de9b7146109d457806392b59626146109f457005b806349bd5a5e116103425780636ddd1713116102c557806371778e7d1161028c57806371778e7d1461090c578063751039fc146109215780637571336a14610936578063763cef4914610956578063783102eb1461096b57005b80636ddd171314610881578063700bb191146108a257806370a08231146108c2578063712c2985146108e2578063715018a6146108f757005b80635645cd86116103095780635645cd86146107a7578063632459f0146107c757806364b0f6531461082c57806366ca9b83146108415780636843cd841461086157005b806349bd5a5e146106f05780634a62bb65146107245780634af6f7ee146107435780634e71d92d146107595780634fbee1931461076e57005b80631a8145bb116103ca5780632c1f5216116103915780632c1f52161461065457806330d5d18d14610674578063313ce5671461069457806331e79db0146106b057806339509351146106d057005b80631a8145bb146105c85780631fc851bd146105de578063204f11a8146105f457806323b872dd146106145780632588483e1461063457005b80630f4432e31161040e5780630f4432e314610501578063106b5da11461051757806310d5de53146105375780631694505e1461056757806318160ddd146105b357005b806302dbd8f814610450578063058054c91461047057806306fdde0314610499578063095ea7b3146104bb578063099d0d30146104eb57005b3661044e57005b005b34801561045c57600080fd5b5061044e61046b366004613a67565b610df2565b34801561047c57600080fd5b5061048660195481565b6040519081526020015b60405180910390f35b3480156104a557600080fd5b506104ae610e92565b6040516104909190613a89565b3480156104c757600080fd5b506104db6104d6366004613af3565b610f24565b6040519015158152602001610490565b3480156104f757600080fd5b5061048660125481565b34801561050d57600080fd5b50610486600d5481565b34801561052357600080fd5b5061044e610532366004613b1f565b610f3a565b34801561054357600080fd5b506104db610552366004613b38565b601f6020526000908152604090205460ff1681565b34801561057357600080fd5b5061059b7f0000000000000000000000007a250d5630b4cf539739df2c5dacb4c659f2488d81565b6040516001600160a01b039091168152602001610490565b3480156105bf57600080fd5b50600254610486565b3480156105d457600080fd5b5061048660175481565b3480156105ea57600080fd5b50610486600f5481565b34801561060057600080fd5b5061048661060f366004613b55565b611016565b34801561062057600080fd5b506104db61062f366004613b8e565b611094565b34801561064057600080fd5b5061044e61064f366004613bdd565b61113e565b34801561066057600080fd5b5060085461059b906001600160a01b031681565b34801561068057600080fd5b5061044e61068f366004613b38565b61121a565b3480156106a057600080fd5b5060405160128152602001610490565b3480156106bc57600080fd5b5061044e6106cb366004613b38565b61130a565b3480156106dc57600080fd5b506104db6106eb366004613af3565b611397565b3480156106fc57600080fd5b5061059b7f000000000000000000000000d05053451db1b9d45514da9728123df60c10090281565b34801561073057600080fd5b50601c546104db90610100900460ff1681565b34801561074f57600080fd5b5061048660145481565b34801561076557600080fd5b5061044e6113d3565b34801561077a57600080fd5b506104db610789366004613b38565b6001600160a01b03166000908152601e602052604090205460ff1690565b3480156107b357600080fd5b506104866107c2366004613b38565b61144b565b3480156107d357600080fd5b506107e76107e2366004613c63565b6114c1565b604080516001600160a01b0390991689526020890197909752958701949094526060860192909252608085015260a084015260c083015260e082015261010001610490565b34801561083857600080fd5b50610486611565565b34801561084d57600080fd5b5061044e61085c366004613a67565b6115d8565b34801561086d57600080fd5b5061048661087c366004613b38565b61166b565b34801561088d57600080fd5b50601c546104db906301000000900460ff1681565b3480156108ae57600080fd5b5061044e6108bd366004613b1f565b61169e565b3480156108ce57600080fd5b506104866108dd366004613b38565b611771565b3480156108ee57600080fd5b5061048661178c565b34801561090357600080fd5b5061044e6117b7565b34801561091857600080fd5b506104866117ed565b34801561092d57600080fd5b506104db611837565b34801561094257600080fd5b5061044e610951366004613c88565b611878565b34801561096257600080fd5b5061044e611902565b34801561097757600080fd5b50610486601b5481565b34801561098d57600080fd5b5061044e61099c366004613b1f565b611ae1565b3480156109ad57600080fd5b5061044e611c24565b3480156109c257600080fd5b506007546001600160a01b031661059b565b3480156109e057600080fd5b5061044e6109ef366004613cb6565b611cc0565b348015610a0057600080fd5b506107e7610a0f366004613b55565b611d08565b348015610a2057600080fd5b506104ae611d52565b348015610a3557600080fd5b506104866103e881565b348015610a4b57600080fd5b5061044e610a5a366004613c88565b611d61565b348015610a6b57600080fd5b5061048660185481565b348015610a8157600080fd5b50610486611e4a565b348015610a9657600080fd5b506104db610aa5366004613af3565b611e94565b348015610ab657600080fd5b5061044e610ac5366004613b38565b611f2d565b348015610ad657600080fd5b506104db610ae5366004613af3565b611fcc565b348015610af657600080fd5b506104db610b05366004613b38565b602080526000908152604090205460ff1681565b348015610b2557600080fd5b5061048660135481565b348015610b3b57600080fd5b50601c546104db9062010000900460ff1681565b348015610b5b57600080fd5b5061044e610b6a366004613b1f565b611fd9565b348015610b7b57600080fd5b5061044e610b8a366004613c88565b61211e565b348015610b9b57600080fd5b5061044e610baa366004613b38565b6121a0565b348015610bbb57600080fd5b5061044e610bca366004613b1f565b6121fc565b348015610bdb57600080fd5b5061044e610bea366004613bdd565b6122ca565b348015610bfb57600080fd5b5061044e612399565b348015610c1057600080fd5b50601c546104db90640100000000900460ff1681565b348015610c3257600080fd5b50610486600a5481565b348015610c4857600080fd5b5061044e610c57366004613b38565b612407565b348015610c6857600080fd5b5061048660155481565b348015610c7e57600080fd5b5061048660115481565b348015610c9457600080fd5b5061048660105481565b348015610caa57600080fd5b50610486610cb9366004613b55565b6001600160a01b03918216600090815260016020908152604080832093909416825291909152205490565b348015610cf057600080fd5b50610486600b5481565b348015610d0657600080fd5b506104866125a6565b348015610d1b57600080fd5b506104db6125f0565b348015610d3057600080fd5b5061044e610d3f366004613b1f565b612631565b348015610d5057600080fd5b50610486600e5481565b348015610d6657600080fd5b50610486601a5481565b348015610d7c57600080fd5b5061044e610d8b366004613b38565b61268c565b348015610d9c57600080fd5b5061048660165481565b348015610db257600080fd5b5061044e612724565b348015610dc757600080fd5b50610486600c5481565b348015610ddd57600080fd5b50601c546104db90600160281b900460ff1681565b6007546001600160a01b03163314610e255760405162461bcd60e51b8152600401610e1c90613cd3565b60405180910390fd5b60118290556012819055610e398183613d1e565b601081905560641015610e8e5760405162461bcd60e51b815260206004820152601d60248201527f4d757374206b656570206665657320617420313025206f72206c6573730000006044820152606401610e1c565b5050565b606060038054610ea190613d36565b80601f0160208091040260200160405190810160405280929190818152602001828054610ecd90613d36565b8015610f1a5780601f10610eef57610100808354040283529160200191610f1a565b820191906000526020600020905b815481529060010190602001808311610efd57829003601f168201915b5050505050905090565b6000610f313384846127c8565b50600192915050565b6007546001600160a01b03163314610f645760405162461bcd60e51b8152600401610e1c90613cd3565b670de0b6b3a76400006103e8610f7960025490565b610f84906001613d70565b610f8e9190613d8f565b610f989190613d8f565b8111610ffe5760405162461bcd60e51b815260206004820152602f60248201527f43616e6e6f7420736574206d61785472616e73616374696f6e416d6f756e742060448201526e6c6f776572207468616e20302e312560881b6064820152608401610e1c565b61101081670de0b6b3a7640000613d70565b600a5550565b600854604051630409e23560e31b81526001600160a01b0384811660048301528381166024830152600092169063204f11a890604401602060405180830381865afa158015611069573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061108d9190613db1565b9392505050565b60006110a18484846128ec565b6001600160a01b0384166000908152600160209081526040808320338452909152902054828110156111265760405162461bcd60e51b815260206004820152602860248201527f45524332303a207472616e7366657220616d6f756e74206578636565647320616044820152676c6c6f77616e636560c01b6064820152608401610e1c565b61113385338584036127c8565b506001949350505050565b6007546001600160a01b031633146111685760405162461bcd60e51b8152600401610e1c90613cd3565b60005b828110156111d95781601f600086868581811061118a5761118a613dca565b905060200201602081019061119f9190613b38565b6001600160a01b031681526020810191909152604001600020805460ff1916911515919091179055806111d181613de0565b91505061116b565b507f7b70015a5afc83c8c7947fcdd187399440dd6e543884d4f7356168007dd151d983838360405161120d93929190613df9565b60405180910390a1505050565b6007546001600160a01b031633146112445760405162461bcd60e51b8152600401610e1c90613cd3565b6006546001600160a01b03908116908216036112a25760405162461bcd60e51b815260206004820152601860248201527f6d6179206e6f742073657420746f2030206164647265737300000000000000006044820152606401610e1c565b6112ad81600161211e565b6009546040516001600160a01b03918216918316907f086aa05ff00214e2d0c7c02b8a46b2614ad955732e6b43aa8afca69ed1ad76f890600090a3600980546001600160a01b0319166001600160a01b0392909216919091179055565b6007546001600160a01b031633146113345760405162461bcd60e51b8152600401610e1c90613cd3565b60085460405163031e79db60e41b81526001600160a01b038381166004830152909116906331e79db0906024015b600060405180830381600087803b15801561137c57600080fd5b505af1158015611390573d6000803e3d6000fd5b5050505050565b3360008181526001602090815260408083206001600160a01b03871684529091528120549091610f319185906113ce908690613d1e565b6127c8565b60085460405163bc4c4b3760e01b8152336004820152600060248201526001600160a01b039091169063bc4c4b37906044016020604051808303816000875af1158015611424573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906114489190613e52565b50565b6008546040516326b72f0160e11b81526001600160a01b0383811660048301526000921690634d6e5e02906024015b602060405180830381865afa158015611497573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906114bb9190613db1565b92915050565b600854604051638c503bf560e01b8152600481018490526001600160a01b0383811660248301526000928392839283928392839283928392911690638c503bf5906044015b61010060405180830381865afa158015611524573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906115489190613e6f565b975097509750975097509750975097509295985092959890939650565b600854604080516304ddf6ef60e11b815290516000926001600160a01b0316916309bbedde9160048083019260209291908290030181865afa1580156115af573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906115d39190613db1565b905090565b6007546001600160a01b031633146116025760405162461bcd60e51b8152600401610e1c90613cd3565b601482905560158190556116168183613d1e565b601381905560641015610e8e5760405162461bcd60e51b815260206004820152601d60248201527f4d757374206b656570206665657320617420313025206f72206c6573730000006044820152606401610e1c565b60085460405163156dbbf560e31b81526001600160a01b038381166004830152600092169063ab6ddfa89060240161147a565b6008546040516001624d3b8760e01b0319815260048101839052600091829182916001600160a01b03169063ffb2c479906024016060604051808303816000875af11580156116f1573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906117159190613ed9565b604080518481526020810184905290810182905260608101889052929550909350915032906000907fc864333d6121033635ab41b29ae52f10a22cf4438c3e4f1c4c68518feb2f8a98906080015b60405180910390a350505050565b6001600160a01b031660009081526020819052604090205490565b601c54600090600160281b900460ff16156117b157601a546019546115d39190613d1e565b50600090565b6007546001600160a01b031633146117e15760405162461bcd60e51b8152600401610e1c90613cd3565b6117eb600061335b565b565b6008546040805163ad7a672f60e01b815290516000926001600160a01b03169163ad7a672f9160048083019260209291908290030181865afa1580156115af573d6000803e3d6000fd5b6007546000906001600160a01b031633146118645760405162461bcd60e51b8152600401610e1c90613cd3565b50601c805464ff0000ff0019169055600190565b6007546001600160a01b031633146118a25760405162461bcd60e51b8152600401610e1c90613cd3565b6001600160a01b0382166000818152601f6020908152604091829020805460ff191685151590811790915591519182527f575f9d01836c9206322151b9e9ec3f2b77b87e71176933b9b44d2d732f768d9591015b60405180910390a25050565b6007546001600160a01b0316331461192c5760405162461bcd60e51b8152600401610e1c90613cd3565b61193461178c565b421015801561194a5750600061194861178c565b115b61198f5760405162461bcd60e51b815260206004820152601660248201527526bab9ba103932b8bab2b9ba1030b732103bb0b4ba1760511b6044820152606401610e1c565b60006019819055601c805465ff000000000019169055601b546040516370a0823160e01b8152306004820152606491907f000000000000000000000000d05053451db1b9d45514da9728123df60c1009026001600160a01b0316906370a0823190602401602060405180830381865afa158015611a10573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611a349190613db1565b611a3e9190613d70565b611a489190613d8f565b6000601b5560405163a9059cbb60e01b8152336004820152602481018290529091507f000000000000000000000000d05053451db1b9d45514da9728123df60c1009026001600160a01b03169063a9059cbb906044016020604051808303816000875af1158015611abd573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610e8e9190613e52565b6007546001600160a01b03163314611b0b5760405162461bcd60e51b8152600401610e1c90613cd3565b62030d408110158015611b2157506207a1208111155b611b8b5760405162461bcd60e51b815260206004820152603560248201527f20676173466f7250726f63657373696e67206d7573742062652062657477656560448201527406e203230302c30303020616e64203530302c30303605c1b6064820152608401610e1c565b6018548103611bf15760405162461bcd60e51b815260206004820152602c60248201527f43616e6e6f742075706461746520676173466f7250726f63657373696e67207460448201526b6f2073616d652076616c756560a01b6064820152608401610e1c565b60185460405182907f40d7e40e79af4e8e5a9b3c57030d8ea93f13d669c06d448c4d631d4ae7d23db790600090a3601855565b6007546001600160a01b03163314611c4e5760405162461bcd60e51b8152600401610e1c90613cd3565b601c5462010000900460ff1615611ca75760405162461bcd60e51b815260206004820152601860248201527f43616e6e6f742072652d656e61626c652074726164696e6700000000000000006044820152606401610e1c565b601c805463ffff00001916630101000017905543600e55565b6007546001600160a01b03163314611cea5760405162461bcd60e51b8152600401610e1c90613cd3565b601c805491151563010000000263ff00000019909216919091179055565b60085460405163fd59084760e01b81526001600160a01b0384811660048301528381166024830152600092839283928392839283928392839291169063fd59084790604401611506565b606060048054610ea190613d36565b6007546001600160a01b03163314611d8b5760405162461bcd60e51b8152600401610e1c90613cd3565b7f000000000000000000000000d05053451db1b9d45514da9728123df60c1009026001600160a01b0316826001600160a01b031603611e405760405162461bcd60e51b815260206004820152604560248201527f5468652050616e63616b655377617020706169722063616e6e6f74206265207260448201527f656d6f7665642066726f6d206175746f6d617465644d61726b65744d616b6572606482015264506169727360d81b608482015260a401610e1c565b610e8e82826133ad565b60085460408051631bc9e27b60e21b815290516000926001600160a01b031691636f2789ec9160048083019260209291908290030181865afa1580156115af573d6000803e3d6000fd5b3360009081526001602090815260408083206001600160a01b038616845290915281205482811015611f165760405162461bcd60e51b815260206004820152602560248201527f45524332303a2064656372656173656420616c6c6f77616e63652062656c6f77604482015264207a65726f60d81b6064820152608401610e1c565b611f2333858584036127c8565b5060019392505050565b6007546001600160a01b03163314611f575760405162461bcd60e51b8152600401610e1c90613cd3565b611f6281600161211e565b60085460405163031e79db60e41b81526001600160a01b038381166004830152909116906331e79db090602401600060405180830381600087803b158015611fa957600080fd5b505af1158015611fbd573d6000803e3d6000fd5b50505050611448816001611878565b6000610f313384846128ec565b6007546001600160a01b031633146120035760405162461bcd60e51b8152600401610e1c90613cd3565b601c54600160281b900460ff16156120775760405162461bcd60e51b815260206004820152603160248201527f43616e6e6f74207265717565737420616761696e20756e74696c206669727374604482015270103932b8bab2b9ba1034b99037bb32b91760791b6064820152608401610e1c565b606481111580156120885750600081115b6120d45760405162461bcd60e51b815260206004820152601a60248201527f4e65656420746f20736574206265747765656e20312d313030250000000000006044820152606401610e1c565b42601955601c805465ff00000000001916600160281b179055601b8190556040517fd99a77b2f3951cd076e75814e44db497e6abc203dd251329da0b62c288f9f48b90600090a150565b6007546001600160a01b031633146121485760405162461bcd60e51b8152600401610e1c90613cd3565b6001600160a01b0382166000818152601e6020908152604091829020805460ff191685151590811790915591519182527f9d8f7706ea1113d1a167b526eca956215946dd36cc7df39eb16180222d8b5df791016118f6565b6007546001600160a01b031633146121ca5760405162461bcd60e51b8152600401610e1c90613cd3565b60085460405163c0f306ef60e01b81526001600160a01b0383811660048301529091169063c0f306ef90602401611362565b6007546001600160a01b031633146122265760405162461bcd60e51b8152600401610e1c90613cd3565b670de0b6b3a7640000606461223a60025490565b612245906001613d70565b61224f9190613d8f565b6122599190613d8f565b81116122b25760405162461bcd60e51b815260206004820152602260248201527f43616e6e6f7420736574206d617857616c6c6574206c6f776572207468616e20604482015261312560f01b6064820152608401610e1c565b6122c481670de0b6b3a7640000613d70565b600c5550565b6007546001600160a01b031633146122f45760405162461bcd60e51b8152600401610e1c90613cd3565b60005b828110156123655781601e600086868581811061231657612316613dca565b905060200201602081019061232b9190613b38565b6001600160a01b031681526020810191909152604001600020805460ff19169115159190911790558061235d81613de0565b9150506122f7565b507f7fdaf542373fa84f4ee8d662c642f44e4c2276a217d7d29e548b6eb29a233b3583838360405161120d93929190613df9565b6007546001600160a01b031633146123c35760405162461bcd60e51b8152600401610e1c90613cd3565b601c805465ff0000000000191690556000601b81905560198190556040517ffbcc1c208c9c4d1d9f557267b55c5ae316e74ce676a0db72ef18c6d5f5767c619190a1565b6009546001600160a01b0316331461241e57600080fd5b6040516370a0823160e01b81523060048201526000906001600160a01b038316906370a0823190602401602060405180830381865afa158015612465573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906124899190613db1565b116124c25760405162461bcd60e51b81526020600482015260096024820152684e6f20746f6b656e7360b81b6044820152606401610e1c565b6040516370a0823160e01b81523060048201526000906001600160a01b038316906370a0823190602401602060405180830381865afa158015612509573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061252d9190613db1565b60405163a9059cbb60e01b8152336004820152602481018290529091506001600160a01b0383169063a9059cbb906044016020604051808303816000875af115801561257d573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906125a19190613e52565b505050565b6008546040805163039e107b60e61b815290516000926001600160a01b03169163e7841ec09160048083019260209291908290030181865afa1580156115af573d6000803e3d6000fd5b6007546000906001600160a01b0316331461261d5760405162461bcd60e51b8152600401610e1c90613cd3565b50601c805464ff0000000019169055600190565b6007546001600160a01b0316331461265b5760405162461bcd60e51b8152600401610e1c90613cd3565b60085460405163e98030c760e01b8152600481018390526001600160a01b039091169063e98030c790602401611362565b6007546001600160a01b031633146126b65760405162461bcd60e51b8152600401610e1c90613cd3565b6001600160a01b03811661271b5760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610e1c565b6114488161335b565b6009546001600160a01b0316331461273b57600080fd5b604051600090339047908381818185875af1925050503d806000811461277d576040519150601f19603f3d011682016040523d82523d6000602084013e612782565b606091505b50509050806114485760405162461bcd60e51b81526020600482015260126024820152716661696c656420746f20776974686472617760701b6044820152606401610e1c565b6001600160a01b03831661282a5760405162461bcd60e51b8152602060048201526024808201527f45524332303a20617070726f76652066726f6d20746865207a65726f206164646044820152637265737360e01b6064820152608401610e1c565b6001600160a01b03821661288b5760405162461bcd60e51b815260206004820152602260248201527f45524332303a20617070726f766520746f20746865207a65726f206164647265604482015261737360f01b6064820152608401610e1c565b6001600160a01b0383811660008181526001602090815260408083209487168084529482529182902085905590518481527f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925910160405180910390a3505050565b6006546001600160a01b039081169084160361291a5760405162461bcd60e51b8152600401610e1c90613f07565b6006546001600160a01b03908116908316036129485760405162461bcd60e51b8152600401610e1c90613f4c565b8060000361295c576125a18383600061347c565b601c5462010000900460ff166129f7576001600160a01b0383166000908152601e602052604090205460ff16806129ab57506001600160a01b0382166000908152601e602052604090205460ff165b6129f75760405162461bcd60e51b815260206004820152601a60248201527f54726164696e67206973206e6f7420616374697665207965742e0000000000006044820152606401610e1c565b601c54610100900460ff1615612e08576007546001600160a01b03848116911614801590612a3357506007546001600160a01b03838116911614155b8015612a4d57506006546001600160a01b03838116911614155b8015612a6757506005546001600160a01b03838116911614155b8015612a765750601c5460ff16155b15612e0857601c54640100000000900460ff1615612bb0577f0000000000000000000000007a250d5630b4cf539739df2c5dacb4c659f2488d6001600160a01b0316826001600160a01b031614158015612b0257507f000000000000000000000000d05053451db1b9d45514da9728123df60c1009026001600160a01b0316826001600160a01b031614155b15612bb057326000908152601d60205260409020544311612b9d5760405162461bcd60e51b815260206004820152604960248201527f5f7472616e736665723a3a205472616e736665722044656c617920656e61626c60448201527f65642e20204f6e6c79206f6e652070757263686173652070657220626c6f636b6064820152681030b63637bbb2b21760b91b608482015260a401610e1c565b326000908152601d602052604090204390555b6001600160a01b038316600090815260208052604090205460ff168015612bf057506001600160a01b0382166000908152601f602052604090205460ff16155b15612cce57600a54811115612c655760405162461bcd60e51b815260206004820152603560248201527f427579207472616e7366657220616d6f756e742065786365656473207468652060448201527436b0bc2a3930b739b0b1ba34b7b720b6b7bab73a1760591b6064820152608401610e1c565b600c54612c7183611771565b612c7b9083613d1e565b1115612cc95760405162461bcd60e51b815260206004820152601b60248201527f556e61626c6520746f20657863656564204d61782057616c6c657400000000006044820152606401610e1c565b612e08565b6001600160a01b038216600090815260208052604090205460ff168015612d0e57506001600160a01b0383166000908152601f602052604090205460ff16155b15612d8457600a54811115612cc95760405162461bcd60e51b815260206004820152603660248201527f53656c6c207472616e7366657220616d6f756e742065786365656473207468656044820152751036b0bc2a3930b739b0b1ba34b7b720b6b7bab73a1760511b6064820152608401610e1c565b6001600160a01b0382166000908152601f602052604090205460ff16612e0857600c54612db083611771565b612dba9083613d1e565b1115612e085760405162461bcd60e51b815260206004820152601b60248201527f556e61626c6520746f20657863656564204d61782057616c6c657400000000006044820152606401610e1c565b6000612e1330611771565b600b5490915081108015908190612e335750601c546301000000900460ff165b8015612e425750601c5460ff16155b8015612e6657506001600160a01b038516600090815260208052604090205460ff16155b8015612e8b57506001600160a01b0385166000908152601e602052604090205460ff16155b8015612eb057506001600160a01b0384166000908152601e602052604090205460ff16155b15612ed557601c805460ff19166001179055612eca6135c3565b601c805460ff191690555b601c546001600160a01b0386166000908152601e602052604090205460ff91821615911680612f1c57506001600160a01b0385166000908152601e602052604090205460ff165b15612f25575060005b600081156131735743600e546001612f3d9190613d1e565b10158015612f8357506001600160a01b038616600090815260208052604090205460ff1680612f8357506001600160a01b038716600090815260208052604090205460ff165b1561300157612f9e6064612f988760636137a4565b906137b0565b90506063612fad826031613d70565b612fb79190613d8f565b60176000828254612fc89190613d1e565b9091555060639050612fdb826031613d70565b612fe59190613d8f565b60166000828254612ff69190613d1e565b909155506131559050565b6001600160a01b038616600090815260208052604090205460ff16801561302a57506000601054115b156130a85761304a6103e8612f98601054886137a490919063ffffffff16565b90506010546011548261305d9190613d70565b6130679190613d8f565b601660008282546130789190613d1e565b909155505060105460125461308d9083613d70565b6130979190613d8f565b60176000828254612ff69190613d1e565b6001600160a01b038716600090815260208052604090205460ff1680156130d157506000601354115b15613155576130f16103e8612f98601354886137a490919063ffffffff16565b9050601354601454826131049190613d70565b61310e9190613d8f565b6016600082825461311f9190613d1e565b90915550506013546015546131349083613d70565b61313e9190613d8f565b6017600082825461314f9190613d1e565b90915550505b80156131665761316687308361347c565b6131708186613f8f565b94505b61317e87878761347c565b6008546001600160a01b031663e30443bc8861319981611771565b6040516001600160e01b031960e085901b1681526001600160a01b0390921660048301526024820152604401600060405180830381600087803b1580156131df57600080fd5b505af11580156131f3573d6000803e3d6000fd5b50506008546001600160a01b0316915063e30443bc90508761321481611771565b6040516001600160e01b031960e085901b1681526001600160a01b0390921660048301526024820152604401600060405180830381600087803b15801561325a57600080fd5b505af115801561326e573d6000803e3d6000fd5b5050601c5460ff1615915050801561328857506000601854115b15613352576018546008546040516001624d3b8760e01b03198152600481018390526001600160a01b039091169063ffb2c479906024016060604051808303816000875af19250505080156132fa575060408051601f3d908101601f191682019092526132f791810190613ed9565b60015b156133505760408051848152602081018490529081018290526060810185905232906001907fc864333d6121033635ab41b29ae52f10a22cf4438c3e4f1c4c68518feb2f8a989060800160405180910390a35050505b505b50505050505050565b600780546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b6001600160a01b03821660009081526020805260409020805460ff19168215151790556133da8282611878565b80156134405760085460405163031e79db60e41b81526001600160a01b038481166004830152909116906331e79db090602401600060405180830381600087803b15801561342757600080fd5b505af115801561343b573d6000803e3d6000fd5b505050505b604051811515906001600160a01b038416907fffa9187bf1f18bf477bd0ea1bcbb64e93b6a98132473929edfce215cd9b16fab90600090a35050565b6001600160a01b0383166134a25760405162461bcd60e51b8152600401610e1c90613f07565b6001600160a01b0382166134c85760405162461bcd60e51b8152600401610e1c90613f4c565b6001600160a01b038316600090815260208190526040902054818110156135405760405162461bcd60e51b815260206004820152602660248201527f45524332303a207472616e7366657220616d6f756e7420657863656564732062604482015265616c616e636560d01b6064820152608401610e1c565b6001600160a01b03808516600090815260208190526040808220858503905591851681529081208054849290613577908490613d1e565b92505081905550826001600160a01b0316846001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef8460405161176391815260200190565b60006135ce30611771565b905060006016546017546135e29190613d1e565b90508115806135ef575080155b156135f8575050565b60006002826017548561360b9190613d70565b6136159190613d8f565b61361f9190613d8f565b9050600061362d84836137bc565b905047613639826137c8565b600061364547836137bc565b90506000613673600260175461365b9190613d8f565b6136659088613f8f565b601654612f989085906137a4565b905060006136818284613f8f565b600060178190556016559050851580159061369c5750600081115b156136ef576136ab8682613988565b601754604080518781526020810184905280820192909252517f17bbfb9a6069321b6ded73bd96327c9e6b7212a5cd51ff219cd61370acafb5619181900360600190a15b6008546040516000916001600160a01b03169084908381818185875af1925050503d806000811461373c576040519150601f19603f3d011682016040523d82523d6000602084013e613741565b606091505b50506009546040519192506001600160a01b0316904790600081818185875af1925050503d8060008114613791576040519150601f19603f3d011682016040523d82523d6000602084013e613796565b606091505b505050505050505050505050565b600061108d8284613d70565b600061108d8284613d8f565b600061108d8284613f8f565b60408051600280825260608201835260009260208301908036833701905050905030816000815181106137fd576137fd613dca565b60200260200101906001600160a01b031690816001600160a01b0316815250507f0000000000000000000000007a250d5630b4cf539739df2c5dacb4c659f2488d6001600160a01b031663ad5c46486040518163ffffffff1660e01b8152600401602060405180830381865afa15801561387b573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061389f9190613fa6565b816001815181106138b2576138b2613dca565b60200260200101906001600160a01b031690816001600160a01b0316815250506138fd307f0000000000000000000000007a250d5630b4cf539739df2c5dacb4c659f2488d846127c8565b60405163791ac94760e01b81526001600160a01b037f0000000000000000000000007a250d5630b4cf539739df2c5dacb4c659f2488d169063791ac94790613952908590600090869030904290600401613fc3565b600060405180830381600087803b15801561396c57600080fd5b505af1158015613980573d6000803e3d6000fd5b505050505050565b6139b3307f0000000000000000000000007a250d5630b4cf539739df2c5dacb4c659f2488d846127c8565b60095460405163f305d71960e01b81523060048201526024810184905260006044820181905260648201526001600160a01b0391821660848201524260a48201527f0000000000000000000000007a250d5630b4cf539739df2c5dacb4c659f2488d9091169063f305d71990839060c40160606040518083038185885af1158015613a42573d6000803e3d6000fd5b50505050506040513d601f19601f820116820180604052508101906113909190613ed9565b60008060408385031215613a7a57600080fd5b50508035926020909101359150565b600060208083528351808285015260005b81811015613ab657858101830151858201604001528201613a9a565b81811115613ac8576000604083870101525b50601f01601f1916929092016040019392505050565b6001600160a01b038116811461144857600080fd5b60008060408385031215613b0657600080fd5b8235613b1181613ade565b946020939093013593505050565b600060208284031215613b3157600080fd5b5035919050565b600060208284031215613b4a57600080fd5b813561108d81613ade565b60008060408385031215613b6857600080fd5b8235613b7381613ade565b91506020830135613b8381613ade565b809150509250929050565b600080600060608486031215613ba357600080fd5b8335613bae81613ade565b92506020840135613bbe81613ade565b929592945050506040919091013590565b801515811461144857600080fd5b600080600060408486031215613bf257600080fd5b833567ffffffffffffffff80821115613c0a57600080fd5b818601915086601f830112613c1e57600080fd5b813581811115613c2d57600080fd5b8760208260051b8501011115613c4257600080fd5b60209283019550935050840135613c5881613bcf565b809150509250925092565b60008060408385031215613c7657600080fd5b823591506020830135613b8381613ade565b60008060408385031215613c9b57600080fd5b8235613ca681613ade565b91506020830135613b8381613bcf565b600060208284031215613cc857600080fd5b813561108d81613bcf565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b634e487b7160e01b600052601160045260246000fd5b60008219821115613d3157613d31613d08565b500190565b600181811c90821680613d4a57607f821691505b602082108103613d6a57634e487b7160e01b600052602260045260246000fd5b50919050565b6000816000190483118215151615613d8a57613d8a613d08565b500290565b600082613dac57634e487b7160e01b600052601260045260246000fd5b500490565b600060208284031215613dc357600080fd5b5051919050565b634e487b7160e01b600052603260045260246000fd5b600060018201613df257613df2613d08565b5060010190565b6040808252810183905260008460608301825b86811015613e3c578235613e1f81613ade565b6001600160a01b0316825260209283019290910190600101613e0c565b5080925050508215156020830152949350505050565b600060208284031215613e6457600080fd5b815161108d81613bcf565b600080600080600080600080610100898b031215613e8c57600080fd5b8851613e9781613ade565b809850506020890151965060408901519550606089015194506080890151935060a0890151925060c0890151915060e089015190509295985092959890939650565b600080600060608486031215613eee57600080fd5b8351925060208401519150604084015190509250925092565b60208082526025908201527f45524332303a207472616e736665722066726f6d20746865207a65726f206164604082015264647265737360d81b606082015260800190565b60208082526023908201527f45524332303a207472616e7366657220746f20746865207a65726f206164647260408201526265737360e81b606082015260800190565b600082821015613fa157613fa1613d08565b500390565b600060208284031215613fb857600080fd5b815161108d81613ade565b600060a082018783526020878185015260a0604085015281875180845260c086019150828901935060005b818110156140135784516001600160a01b031683529383019391830191600101613fee565b50506001600160a01b0396909616606085015250505060800152939250505056fea26469706673582212209c3f6dfe40bd2d074081f05009633939079926490c3e0ed976c612c2b3de296164736f6c634300080f0033
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.