ERC-20
Overview
Max Total Supply
333,333,333,333,333 $RICH
Holders
51
Market
Onchain Market Cap
$0.00
Circulating Supply Market Cap
-
Other Info
Token Contract (WITH 18 Decimals)
Balance
663,199,674,570.59 $RICHValue
$0.00Loading...
Loading
Loading...
Loading
Loading...
Loading
# | Exchange | Pair | Price | 24H Volume | % Volume |
---|
Contract Name:
RichieRich
Compiler Version
v0.8.17+commit.8df45f5f
Optimization Enabled:
Yes with 200 runs
Other Settings:
default evmVersion
Contract Source Code (Solidity Standard Json-Input format)
// SPDX-License-Identifier: MIT pragma solidity ^0.8.17; import "@openzeppelin/contracts/access/Ownable.sol"; import "@openzeppelin/contracts/token/ERC20/IERC20.sol"; import "@openzeppelin/contracts/token/ERC20/ERC20.sol"; library SafeMath { function add(uint256 a, uint256 b) internal pure returns (uint256) { uint256 c = a + b; require(c >= a, "SafeMath: addition overflow"); return c; } function sub(uint256 a, uint256 b) internal pure returns (uint256) { return sub(a, b, "SafeMath: subtraction overflow"); } function sub(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) { require(b <= a, errorMessage); uint256 c = a - b; return c; } function mul(uint256 a, uint256 b) internal pure returns (uint256) { if (a == 0) { return 0; } uint256 c = a * b; require(c / a == b, "SafeMath: multiplication overflow"); return c; } function div(uint256 a, uint256 b) internal pure returns (uint256) { return div(a, b, "SafeMath: division by zero"); } function div(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) { require(b > 0, errorMessage); uint256 c = a / b; // assert(a == b * c + a % b); // There is no case in which this doesn't hold return c; } function mod(uint256 a, uint256 b) internal pure returns (uint256) { return mod(a, b, "SafeMath: modulo by zero"); } function mod(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) { require(b != 0, errorMessage); return a % b; } } library SafeMathInt { int256 private constant MIN_INT256 = int256(1) << 255; int256 private constant MAX_INT256 = ~(int256(1) << 255); 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; } 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; } 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; } 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; } 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; } } library IterableMapping { struct Map { address[] keys; mapping(address => uint) values; mapping(address => uint) indexOf; mapping(address => bool) inserted; } function get(Map storage map, address key) public view returns (uint) { return map.values[key]; } function getIndexOfKey(Map storage map, address key) public view returns (int) { if(!map.inserted[key]) { return -1; } return int(map.indexOf[key]); } function getKeyAtIndex(Map storage map, uint index) public view returns (address) { return map.keys[index]; } function size(Map storage map) public view returns (uint) { return map.keys.length; } function set(Map storage map, address key, uint val) public { if (map.inserted[key]) { map.values[key] = val; } else { map.inserted[key] = true; map.values[key] = val; map.indexOf[key] = map.keys.length; map.keys.push(key); } } function remove(Map storage map, address key) public { if (!map.inserted[key]) { return; } delete map.inserted[key]; delete map.values[key]; uint index = map.indexOf[key]; uint lastIndex = map.keys.length - 1; address lastKey = map.keys[lastIndex]; map.indexOf[lastKey] = index; delete map.indexOf[key]; map.keys[index] = lastKey; map.keys.pop(); } } interface UniswapV2Factory { 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; } interface UniswapV2Pair { event Approval(address indexed owner, address indexed spender, uint value); event Transfer(address indexed from, address indexed to, uint value); function name() external pure returns (string memory); function symbol() external pure returns (string memory); function decimals() external pure returns (uint8); function totalSupply() external view returns (uint); function balanceOf(address owner) external view returns (uint); function allowance(address owner, address spender) external view returns (uint); function approve(address spender, uint value) external returns (bool); function transfer(address to, uint value) external returns (bool); function transferFrom(address from, address to, uint value) external returns (bool); function DOMAIN_SEPARATOR() external view returns (bytes32); function PERMIT_TYPEHASH() external pure returns (bytes32); function nonces(address owner) external view returns (uint); function permit(address owner, address spender, uint value, uint deadline, uint8 v, bytes32 r, bytes32 s) external; event Mint(address indexed sender, uint amount0, uint amount1); event Burn(address indexed sender, uint amount0, uint amount1, address indexed to); event Swap( address indexed sender, uint amount0In, uint amount1In, uint amount0Out, uint amount1Out, address indexed to ); event Sync(uint112 reserve0, uint112 reserve1); function MINIMUM_LIQUIDITY() external pure returns (uint); function factory() external view returns (address); function token0() external view returns (address); function token1() external view returns (address); function getReserves() external view returns (uint112 reserve0, uint112 reserve1, uint32 blockTimestampLast); function price0CumulativeLast() external view returns (uint); function price1CumulativeLast() external view returns (uint); function kLast() external view returns (uint); function mint(address to) external returns (uint liquidity); function burn(address to) external returns (uint amount0, uint amount1); function swap(uint amount0Out, uint amount1Out, address to, bytes calldata data) external; function skim(address to) external; function sync() external; function initialize(address, address) external; } interface UniswapV2Router01 { 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); } interface UniswapV2Router02 is UniswapV2Router01 { 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; } interface DividendPayingTokenInterface { function dividendOf(address _owner) external view returns(uint256); function withdrawDividend() external; event DividendsDistributed( address indexed from, uint256 weiAmount ); event DividendWithdrawn( address indexed to, uint256 weiAmount ); } interface DividendPayingTokenOptionalInterface { function withdrawableDividendOf(address _owner) external view returns(uint256); function withdrawnDividendOf(address _owner) external view returns(uint256); function accumulativeDividendOf(address _owner) external view returns(uint256); } contract DividendPayingToken is ERC20, Ownable, DividendPayingTokenInterface, DividendPayingTokenOptionalInterface { using SafeMath for uint256; using SafeMathUint for uint256; using SafeMathInt for int256; uint256 constant internal magnitude = 2**128; uint256 internal magnifiedDividendPerShare; uint256 public totalDividendsDistributed; address public immutable rewardToken; mapping(address => int256) internal magnifiedDividendCorrections; mapping(address => uint256) internal withdrawnDividends; constructor(string memory _name, string memory _symbol, address _rewardToken) ERC20(_name, _symbol) { rewardToken = _rewardToken; } function distributeDividends(uint256 amount) public onlyOwner{ require(totalSupply() > 0); if (amount > 0) { magnifiedDividendPerShare = magnifiedDividendPerShare.add( (amount).mul(magnitude) / totalSupply() ); emit DividendsDistributed(msg.sender, amount); totalDividendsDistributed = totalDividendsDistributed.add(amount); } } function withdrawDividend() public virtual override { _withdrawDividendOfUser(payable(msg.sender)); } function _withdrawDividendOfUser(address payable user) internal returns (uint256) { uint256 _withdrawableDividend = withdrawableDividendOf(user); if (_withdrawableDividend > 0) { withdrawnDividends[user] = withdrawnDividends[user].add(_withdrawableDividend); emit DividendWithdrawn(user, _withdrawableDividend); bool success = IERC20(rewardToken).transfer(user, _withdrawableDividend); if(!success) { withdrawnDividends[user] = withdrawnDividends[user].sub(_withdrawableDividend); return 0; } return _withdrawableDividend; } return 0; } function dividendOf(address _owner) public view override returns(uint256) { return withdrawableDividendOf(_owner); } function withdrawableDividendOf(address _owner) public view override returns(uint256) { return accumulativeDividendOf(_owner).sub(withdrawnDividends[_owner]); } function withdrawnDividendOf(address _owner) public view override returns(uint256) { return withdrawnDividends[_owner]; } function accumulativeDividendOf(address _owner) public view override returns(uint256) { return magnifiedDividendPerShare.mul(balanceOf(_owner)).toInt256Safe() .add(magnifiedDividendCorrections[_owner]).toUint256Safe() / magnitude; } function _transfer(address from, address to, uint256 value) internal virtual override { require(false); int256 _magCorrection = magnifiedDividendPerShare.mul(value).toInt256Safe(); magnifiedDividendCorrections[from] = magnifiedDividendCorrections[from].add(_magCorrection); magnifiedDividendCorrections[to] = magnifiedDividendCorrections[to].sub(_magCorrection); } function _mint(address account, uint256 value) internal override { super._mint(account, value); magnifiedDividendCorrections[account] = magnifiedDividendCorrections[account] .sub( (magnifiedDividendPerShare.mul(value)).toInt256Safe() ); } function _burn(address account, uint256 value) internal override { super._burn(account, value); magnifiedDividendCorrections[account] = magnifiedDividendCorrections[account] .add( (magnifiedDividendPerShare.mul(value)).toInt256Safe() ); } function _setBalance(address account, uint256 newBalance) internal { uint256 currentBalance = balanceOf(account); if(newBalance > currentBalance) { uint256 mintAmount = newBalance.sub(currentBalance); _mint(account, mintAmount); } else if(newBalance < currentBalance) { uint256 burnAmount = currentBalance.sub(newBalance); _burn(account, burnAmount); } } } contract DividendTracker is Ownable, DividendPayingToken { using SafeMath for uint256; using SafeMathInt for int256; using IterableMapping for IterableMapping.Map; IterableMapping.Map private tokenHoldersMap; uint256 public lastProcessedIndex; mapping (address => bool) public excludedFromDividends; mapping (address => uint256) public lastClaimTimes; uint256 public claimWait; uint256 public minimumTokenBalanceForDividends; event ExcludeFromDividends(address indexed account); event ClaimWaitUpdated(uint256 indexed newValue, uint256 indexed oldValue); event Claim(address indexed account, uint256 amount, bool indexed automatic); constructor(uint256 minBalance, address _rewardToken) DividendPayingToken("Reward Tracker", "DividendTracker", _rewardToken) { claimWait = 3600; minimumTokenBalanceForDividends = minBalance * 10 ** 9; } function _transfer(address, address, uint256) internal pure override { require(false, "No transfers allowed"); } function withdrawDividend() public pure override { require(false, "withdrawDividend disabled. Use the 'claim' function on the main contract."); } function updateMinimumTokenBalanceForDividends(uint256 _newMinimumBalance) external onlyOwner { require(_newMinimumBalance != minimumTokenBalanceForDividends, "New mimimum balance for dividend cannot be same as current minimum balance"); minimumTokenBalanceForDividends = _newMinimumBalance; } function excludeFromDividends(address account) external onlyOwner { require(!excludedFromDividends[account]); excludedFromDividends[account] = true; _setBalance(account, 0); tokenHoldersMap.remove(account); emit ExcludeFromDividends(account); } function updateClaimWait(uint256 newClaimWait) external onlyOwner { require(newClaimWait >= 3_600 && newClaimWait <= 86_400, "claimWait must be updated to between 1 and 24 hours"); require(newClaimWait != claimWait, "Cannot update claimWait to same value"); emit ClaimWaitUpdated(newClaimWait, claimWait); claimWait = newClaimWait; } function setLastProcessedIndex(uint256 index) external onlyOwner { lastProcessedIndex = index; } function getLastProcessedIndex() external view returns(uint256) { return lastProcessedIndex; } function getNumberOfTokenHolders() external view returns(uint256) { return tokenHoldersMap.keys.length; } function getAccount(address _account) public view returns ( address account, int256 index, int256 iterationsUntilProcessed, uint256 withdrawableDividends, uint256 totalDividends, uint256 lastClaimTime, uint256 nextClaimTime, uint256 secondsUntilAutoClaimAvailable) { account = _account; index = tokenHoldersMap.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); totalDividends = accumulativeDividendOf(account); lastClaimTime = lastClaimTimes[account]; nextClaimTime = lastClaimTime > 0 ? lastClaimTime.add(claimWait) : 0; secondsUntilAutoClaimAvailable = nextClaimTime > block.timestamp ? nextClaimTime.sub(block.timestamp) : 0; } function getAccountAtIndex(uint256 index) public view returns ( address, int256, int256, uint256, uint256, uint256, uint256, uint256) { if(index >= tokenHoldersMap.size()) { return (0x0000000000000000000000000000000000000000, -1, -1, 0, 0, 0, 0, 0); } address account = tokenHoldersMap.getKeyAtIndex(index); return getAccount(account); } 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); tokenHoldersMap.set(account, newBalance); } else { _setBalance(account, 0); tokenHoldersMap.remove(account); } processAccount(account, true); } function process(uint256 gas) public 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 = _withdrawDividendOfUser(account); if(amount > 0) { lastClaimTimes[account] = block.timestamp; emit Claim(account, amount, automatic); return true; } return false; } } contract RichieRich is ERC20, Ownable { uint256 private _totalSupply = 333333333333333 * 10**18; // 333T uint256 public rewardFeeOnSell = 5; // 5% refected reward fee to holders on Sell bool private enabledTrade = false; uint256 private enabledTradeAt; // Start time enabled trade uint256 private whitelistTime = 600; // 10mins for only whitelist then all mapping (address => bool) private whitelist; // white list allowed to buy at private sale. UniswapV2Router02 public uniswapV2Router; address public uniswapV2Pair; bool private swapping = false; uint256 public swapTokensAtAmount = 10**6 * 10**18; // Swap when balance is more than 1M mapping (address => bool) private _isExcludedFromFees; mapping (address => bool) public automatedMarketMakerPairs; DividendTracker public dividendTracker; address public immutable rewardToken = 0xdAC17F958D2ee523a2206206994597C13D831ec7; // USDT Mainet // address public immutable rewardToken = 0xC2C527C0CACF457746Bd31B2a698Fe89de2b6d49; // USDT Goerli uint256 public gasForProcessing = 300000; event ExcludeFromFees(address indexed account, bool isExcluded); event SetAutomatedMarketMakerPair(address indexed pair, bool indexed value); event SendMarketing(uint256 bnbSend); event UpdatePancakeswapV2Router(address indexed newAddress, address indexed oldAddress); event UpdateDividendTracker(address indexed newAddress, address indexed oldAddress); event GasForProcessingUpdated(uint256 indexed newValue, uint256 indexed oldValue); event SendDividends(uint256 amount); event ProcessedDividendTracker( uint256 iterations, uint256 claims, uint256 lastProcessedIndex, bool indexed automatic, uint256 gas, address indexed processor ); constructor() ERC20("Richie Rich", "$RICH") { dividendTracker = new DividendTracker(10*5, rewardToken); UniswapV2Router02 _uniswapV2Router = UniswapV2Router02(0x7a250d5630B4cF539739dF2C5dAcb4c659F2488D); // UniswapV2 router address _uniswapV2Pair = UniswapV2Factory(_uniswapV2Router.factory()) .createPair(address(this), _uniswapV2Router.WETH()); uniswapV2Router = _uniswapV2Router; uniswapV2Pair = _uniswapV2Pair; _approve(address(this), address(uniswapV2Router), type(uint256).max); _setAutomatedMarketMakerPair(_uniswapV2Pair, true); dividendTracker.excludeFromDividends(address(dividendTracker)); dividendTracker.excludeFromDividends(address(this)); dividendTracker.excludeFromDividends(address(_uniswapV2Router)); _isExcludedFromFees[owner()] = true; _isExcludedFromFees[address(this)] = true; setWhitelist(); _mint(msg.sender, _totalSupply); } receive() external payable { } function setWhitelist() internal { whitelist[0x56002427F9082d456421Da62557498ae6951C142] = true; whitelist[0xCB8961Ef0C7a188b40b6cd3A2bEba18E942F7b64] = true; whitelist[0x6EbBb96273EB2b9d67c4e789fa5A7247185bF319] = true; whitelist[0xEc4a488736b00C7F807aE805669c9e6e1F5684D2] = true; whitelist[0x9750a60a163A5DF27e5e3498f792B28cFB7F1520] = true; whitelist[0xDA297D329fBAAD934a48DbE0E6b0699515874f77] = true; whitelist[0xA83c24eC717E6e1fE2d26A259B2287fb28ac02dd] = true; whitelist[0x3F185c1661Fcf307697d46f329109C3Ba5a93408] = true; whitelist[0x19b8Db03eF5025592f1ceD71aB112E008F71B45a] = true; whitelist[0xb7Fb12B9E0092a19Cfe261cB6847f15aeFc47404] = true; whitelist[0x36497bEAd8F2F7aD88DbB3402AF4e67c8307E4A0] = true; } function enableTrade() external onlyOwner() { enabledTrade = true; enabledTradeAt = block.timestamp; } function claimStuckTokens(address token) external onlyOwner { require(token != address(this), "Owner cannot claim native tokens"); if (token == address(0x0)) { payable(msg.sender).transfer(address(this).balance); return; } IERC20 ERC20token = IERC20(token); uint256 balance = ERC20token.balanceOf(address(this)); ERC20token.transfer(msg.sender, balance); } function isContract(address account) internal view returns (bool) { return account.code.length > 0; } function sendBNB(address payable recipient, uint256 amount) internal { require(address(this).balance >= amount, "Address: insufficient balance"); (bool success, ) = recipient.call{value: amount}(""); require(success, "Address: unable to send value, recipient may have reverted"); } function _setAutomatedMarketMakerPair(address pair, bool value) private { require(automatedMarketMakerPairs[pair] != value, "Automated market maker pair is already set to that value"); automatedMarketMakerPairs[pair] = value; if(value) { dividendTracker.excludeFromDividends(pair); } emit SetAutomatedMarketMakerPair(pair, value); } function excludeFromFees(address account, bool excluded) external onlyOwner { require(_isExcludedFromFees[account] != excluded, "Account is already set to that state"); _isExcludedFromFees[account] = excluded; emit ExcludeFromFees(account, excluded); } function isExcludedFromFees(address account) public view returns(bool) { return _isExcludedFromFees[account]; } function _transfer( address from, address to, uint256 amount ) internal override { require(from != address(0), "ERC20: transfer from the zero address"); require(to != address(0), "ERC20: transfer to the zero address"); require(amount > 0, "Transfer amount must be greater than zero"); if(from != owner() && to != owner()) { // No owner transaction require(enabledTrade, "No allow to trade yet."); // Check tradable if (automatedMarketMakerPairs[from] && block.timestamp < (enabledTradeAt + whitelistTime)) { // Allow white list only for whitelist time require(whitelist[to], "No whitelist address."); } } uint256 contractTokenBalance = balanceOf(address(this)); bool canSwap = contractTokenBalance >= swapTokensAtAmount; if( canSwap && !swapping && automatedMarketMakerPairs[to] && rewardFeeOnSell > 0 ) { swapping = true; if(contractTokenBalance > 0 && rewardFeeOnSell > 0) { uint256 initialBalance = address(this).balance; address[] memory path = new address[](2); path[0] = address(this); path[1] = uniswapV2Router.WETH(); uniswapV2Router.swapExactTokensForETHSupportingFeeOnTransferTokens( contractTokenBalance, 0, path, address(this), block.timestamp); uint256 newBalance = address(this).balance - initialBalance; if(rewardFeeOnSell > 0) { swapAndSendDividends(newBalance); } } swapping = false; } bool takeFee = !swapping; if(_isExcludedFromFees[from] || _isExcludedFromFees[to]) { takeFee = false; } // no take fee at normal transfer if(from != uniswapV2Pair && to != uniswapV2Pair) { takeFee = false; } if(takeFee && automatedMarketMakerPairs[to]) { // Take fee on sell only uint256 fees = amount * rewardFeeOnSell / 100; amount = amount - fees; super._transfer(from, address(this), fees); } super._transfer(from, to, amount); try dividendTracker.setBalance(payable(from), balanceOf(from)) {} catch {} try dividendTracker.setBalance(payable(to), balanceOf(to)) {} catch {} if(!swapping) { 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 swapAndSendDividends(uint256 amount) private{ address[] memory path = new address[](2); path[0] = uniswapV2Router.WETH(); path[1] = rewardToken; uniswapV2Router.swapExactETHForTokensSupportingFeeOnTransferTokens{value: amount}( 0, path, address(this), block.timestamp ); uint256 balanceRewardToken = IERC20(rewardToken).balanceOf(address(this)); bool success = IERC20(rewardToken).transfer(address(dividendTracker), balanceRewardToken); if (success) { dividendTracker.distributeDividends(balanceRewardToken); emit SendDividends(balanceRewardToken); } } function setSwapTokensAtAmount(uint256 newAmount) external onlyOwner{ swapTokensAtAmount = newAmount; } function updateClaimWait(uint256 newClaimWait) external onlyOwner { require(newClaimWait >= 3600 && newClaimWait <= 86400, "claimWait must be updated to between 1 and 24 hours"); dividendTracker.updateClaimWait(newClaimWait); } function getClaimWait() external view returns(uint256) { return dividendTracker.claimWait(); } function getTotalDividendsDistributed() external view returns (uint256) { return dividendTracker.totalDividendsDistributed(); } function withdrawableDividendOf(address account) public view returns(uint256) { return dividendTracker.withdrawableDividendOf(account); } function dividendTokenBalanceOf(address account) public view returns (uint256) { return dividendTracker.balanceOf(account); } function totalRewardsEarned(address account) public view returns (uint256) { return dividendTracker.accumulativeDividendOf(account); } function excludeFromDividends(address account) external onlyOwner{ dividendTracker.excludeFromDividends(account); } function getAccountDividendsInfo(address account) external view returns ( address, int256, int256, uint256, uint256, uint256, uint256, uint256) { return dividendTracker.getAccount(account); } function getAccountDividendsInfoAtIndex(uint256 index) external view returns ( address, int256, int256, uint256, uint256, uint256, uint256, uint256) { return dividendTracker.getAccountAtIndex(index); } 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 claimAddress(address claimee) external onlyOwner { dividendTracker.processAccount(payable(claimee), false); } function getLastProcessedIndex() external view returns(uint256) { return dividendTracker.getLastProcessedIndex(); } function setLastProcessedIndex(uint256 index) external onlyOwner { dividendTracker.setLastProcessedIndex(index); } function getNumberOfDividendTokenHolders() external view returns(uint256) { return dividendTracker.getNumberOfTokenHolders(); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.7.0) (access/Ownable.sol) pragma solidity ^0.8.0; import "../utils/Context.sol"; /** * @dev Contract module which provides a basic access control mechanism, where * there is an account (an owner) that can be granted exclusive access to * specific functions. * * By default, the owner account will be the one that deploys the contract. This * can later be changed with {transferOwnership}. * * This module is used through inheritance. It will make available the modifier * `onlyOwner`, which can be applied to your functions to restrict their use to * the owner. */ abstract contract Ownable is Context { address private _owner; event OwnershipTransferred(address indexed previousOwner, address indexed newOwner); /** * @dev Initializes the contract setting the deployer as the initial owner. */ constructor() { _transferOwnership(_msgSender()); } /** * @dev Throws if called by any account other than the owner. */ modifier onlyOwner() { _checkOwner(); _; } /** * @dev Returns the address of the current owner. */ function owner() public view virtual returns (address) { return _owner; } /** * @dev Throws if the sender is not the owner. */ function _checkOwner() internal view virtual { require(owner() == _msgSender(), "Ownable: caller is not the owner"); } /** * @dev Leaves the contract without owner. It will not be possible to call * `onlyOwner` functions anymore. Can only be called by the current owner. * * NOTE: Renouncing ownership will leave the contract without an owner, * thereby removing any functionality that is only available to the owner. */ function renounceOwnership() public virtual onlyOwner { _transferOwnership(address(0)); } /** * @dev Transfers ownership of the contract to a new account (`newOwner`). * Can only be called by the current owner. */ function transferOwnership(address newOwner) public virtual onlyOwner { require(newOwner != address(0), "Ownable: new owner is the zero address"); _transferOwnership(newOwner); } /** * @dev Transfers ownership of the contract to a new account (`newOwner`). * Internal function without access restriction. */ function _transferOwnership(address newOwner) internal virtual { address oldOwner = _owner; _owner = newOwner; emit OwnershipTransferred(oldOwner, newOwner); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.8.0) (token/ERC20/ERC20.sol) pragma solidity ^0.8.0; import "./IERC20.sol"; import "./extensions/IERC20Metadata.sol"; import "../../utils/Context.sol"; /** * @dev Implementation of the {IERC20} interface. * * This implementation is agnostic to the way tokens are created. This means * that a supply mechanism has to be added in a derived contract using {_mint}. * For a generic mechanism see {ERC20PresetMinterPauser}. * * TIP: For a detailed writeup see our guide * https://forum.openzeppelin.com/t/how-to-implement-erc20-supply-mechanisms/226[How * to implement supply mechanisms]. * * We have followed general OpenZeppelin Contracts guidelines: functions revert * instead returning `false` on failure. This behavior is nonetheless * conventional and does not conflict with the expectations of ERC20 * applications. * * Additionally, an {Approval} event is emitted on calls to {transferFrom}. * This allows applications to reconstruct the allowance for all accounts just * by listening to said events. Other implementations of the EIP may not emit * these events, as it isn't required by the specification. * * Finally, the non-standard {decreaseAllowance} and {increaseAllowance} * functions have been added to mitigate the well-known issues around setting * allowances. See {IERC20-approve}. */ 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; /** * @dev Sets the values for {name} and {symbol}. * * The default value of {decimals} is 18. To select a different value for * {decimals} you should overload it. * * All two of these values are immutable: they can only be set once during * construction. */ constructor(string memory name_, string memory symbol_) { _name = name_; _symbol = symbol_; } /** * @dev Returns the name of the token. */ function name() public view virtual override returns (string memory) { return _name; } /** * @dev Returns the symbol of the token, usually a shorter version of the * name. */ function symbol() public view virtual override returns (string memory) { return _symbol; } /** * @dev Returns the number of decimals used to get its user representation. * For example, if `decimals` equals `2`, a balance of `505` tokens should * be displayed to a user as `5.05` (`505 / 10 ** 2`). * * Tokens usually opt for a value of 18, imitating the relationship between * Ether and Wei. This is the value {ERC20} uses, unless this function is * overridden; * * NOTE: This information is only used for _display_ purposes: it in * no way affects any of the arithmetic of the contract, including * {IERC20-balanceOf} and {IERC20-transfer}. */ function decimals() public view virtual override returns (uint8) { return 18; } /** * @dev See {IERC20-totalSupply}. */ function totalSupply() public view virtual override returns (uint256) { return _totalSupply; } /** * @dev See {IERC20-balanceOf}. */ function balanceOf(address account) public view virtual override returns (uint256) { return _balances[account]; } /** * @dev See {IERC20-transfer}. * * Requirements: * * - `to` cannot be the zero address. * - the caller must have a balance of at least `amount`. */ function transfer(address to, uint256 amount) public virtual override returns (bool) { address owner = _msgSender(); _transfer(owner, to, amount); return true; } /** * @dev See {IERC20-allowance}. */ function allowance(address owner, address spender) public view virtual override returns (uint256) { return _allowances[owner][spender]; } /** * @dev See {IERC20-approve}. * * NOTE: If `amount` is the maximum `uint256`, the allowance is not updated on * `transferFrom`. This is semantically equivalent to an infinite approval. * * Requirements: * * - `spender` cannot be the zero address. */ function approve(address spender, uint256 amount) public virtual override returns (bool) { address owner = _msgSender(); _approve(owner, spender, amount); return true; } /** * @dev See {IERC20-transferFrom}. * * Emits an {Approval} event indicating the updated allowance. This is not * required by the EIP. See the note at the beginning of {ERC20}. * * NOTE: Does not update the allowance if the current allowance * is the maximum `uint256`. * * Requirements: * * - `from` and `to` cannot be the zero address. * - `from` must have a balance of at least `amount`. * - the caller must have allowance for ``from``'s tokens of at least * `amount`. */ function transferFrom( address from, address to, uint256 amount ) public virtual override returns (bool) { address spender = _msgSender(); _spendAllowance(from, spender, amount); _transfer(from, to, amount); return true; } /** * @dev Atomically increases the allowance granted to `spender` by the caller. * * This is an alternative to {approve} that can be used as a mitigation for * problems described in {IERC20-approve}. * * Emits an {Approval} event indicating the updated allowance. * * Requirements: * * - `spender` cannot be the zero address. */ function increaseAllowance(address spender, uint256 addedValue) public virtual returns (bool) { address owner = _msgSender(); _approve(owner, spender, allowance(owner, spender) + addedValue); return true; } /** * @dev Atomically decreases the allowance granted to `spender` by the caller. * * This is an alternative to {approve} that can be used as a mitigation for * problems described in {IERC20-approve}. * * Emits an {Approval} event indicating the updated allowance. * * Requirements: * * - `spender` cannot be the zero address. * - `spender` must have allowance for the caller of at least * `subtractedValue`. */ function decreaseAllowance(address spender, uint256 subtractedValue) public virtual returns (bool) { address owner = _msgSender(); uint256 currentAllowance = allowance(owner, spender); require(currentAllowance >= subtractedValue, "ERC20: decreased allowance below zero"); unchecked { _approve(owner, spender, currentAllowance - subtractedValue); } return true; } /** * @dev Moves `amount` of tokens from `from` to `to`. * * This internal function is equivalent to {transfer}, and can be used to * e.g. implement automatic token fees, slashing mechanisms, etc. * * Emits a {Transfer} event. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `from` must have a balance of at least `amount`. */ function _transfer( address from, address to, uint256 amount ) internal virtual { require(from != address(0), "ERC20: transfer from the zero address"); require(to != address(0), "ERC20: transfer to the zero address"); _beforeTokenTransfer(from, to, amount); uint256 fromBalance = _balances[from]; require(fromBalance >= amount, "ERC20: transfer amount exceeds balance"); unchecked { _balances[from] = fromBalance - amount; // Overflow not possible: the sum of all balances is capped by totalSupply, and the sum is preserved by // decrementing then incrementing. _balances[to] += amount; } emit Transfer(from, to, amount); _afterTokenTransfer(from, to, amount); } /** @dev Creates `amount` tokens and assigns them to `account`, increasing * the total supply. * * Emits a {Transfer} event with `from` set to the zero address. * * Requirements: * * - `account` cannot be the zero address. */ function _mint(address account, uint256 amount) internal virtual { require(account != address(0), "ERC20: mint to the zero address"); _beforeTokenTransfer(address(0), account, amount); _totalSupply += amount; unchecked { // Overflow not possible: balance + amount is at most totalSupply + amount, which is checked above. _balances[account] += amount; } emit Transfer(address(0), account, amount); _afterTokenTransfer(address(0), account, amount); } /** * @dev Destroys `amount` tokens from `account`, reducing the * total supply. * * Emits a {Transfer} event with `to` set to the zero address. * * Requirements: * * - `account` cannot be the zero address. * - `account` must have at least `amount` tokens. */ function _burn(address account, uint256 amount) internal virtual { require(account != address(0), "ERC20: burn from the zero address"); _beforeTokenTransfer(account, address(0), amount); uint256 accountBalance = _balances[account]; require(accountBalance >= amount, "ERC20: burn amount exceeds balance"); unchecked { _balances[account] = accountBalance - amount; // Overflow not possible: amount <= accountBalance <= totalSupply. _totalSupply -= amount; } emit Transfer(account, address(0), amount); _afterTokenTransfer(account, address(0), amount); } /** * @dev Sets `amount` as the allowance of `spender` over the `owner` s tokens. * * This internal function is equivalent to `approve`, and can be used to * e.g. set automatic allowances for certain subsystems, etc. * * Emits an {Approval} event. * * Requirements: * * - `owner` cannot be the zero address. * - `spender` cannot be the zero address. */ 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); } /** * @dev Updates `owner` s allowance for `spender` based on spent `amount`. * * Does not update the allowance amount in case of infinite allowance. * Revert if not enough allowance is available. * * Might emit an {Approval} event. */ function _spendAllowance( address owner, address spender, uint256 amount ) internal virtual { uint256 currentAllowance = allowance(owner, spender); if (currentAllowance != type(uint256).max) { require(currentAllowance >= amount, "ERC20: insufficient allowance"); unchecked { _approve(owner, spender, currentAllowance - amount); } } } /** * @dev Hook that is called before any transfer of tokens. This includes * minting and burning. * * Calling conditions: * * - when `from` and `to` are both non-zero, `amount` of ``from``'s tokens * will be transferred to `to`. * - when `from` is zero, `amount` tokens will be minted for `to`. * - when `to` is zero, `amount` of ``from``'s tokens will be burned. * - `from` and `to` are never both zero. * * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks]. */ function _beforeTokenTransfer( address from, address to, uint256 amount ) internal virtual {} /** * @dev Hook that is called after any transfer of tokens. This includes * minting and burning. * * Calling conditions: * * - when `from` and `to` are both non-zero, `amount` of ``from``'s tokens * has been transferred to `to`. * - when `from` is zero, `amount` tokens have been minted for `to`. * - when `to` is zero, `amount` of ``from``'s tokens have been burned. * - `from` and `to` are never both zero. * * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks]. */ function _afterTokenTransfer( address from, address to, uint256 amount ) internal virtual {} }
// 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.6.0) (token/ERC20/IERC20.sol) pragma solidity ^0.8.0; /** * @dev Interface of the ERC20 standard as defined in the EIP. */ interface IERC20 { /** * @dev Emitted when `value` tokens are moved from one account (`from`) to * another (`to`). * * Note that `value` may be zero. */ event Transfer(address indexed from, address indexed to, uint256 value); /** * @dev Emitted when the allowance of a `spender` for an `owner` is set by * a call to {approve}. `value` is the new allowance. */ event Approval(address indexed owner, address indexed spender, uint256 value); /** * @dev Returns the amount of tokens in existence. */ function totalSupply() external view returns (uint256); /** * @dev Returns the amount of tokens owned by `account`. */ function balanceOf(address account) external view returns (uint256); /** * @dev Moves `amount` tokens from the caller's account to `to`. * * Returns a boolean value indicating whether the operation succeeded. * * Emits a {Transfer} event. */ function transfer(address to, uint256 amount) external returns (bool); /** * @dev Returns the remaining number of tokens that `spender` will be * allowed to spend on behalf of `owner` through {transferFrom}. This is * zero by default. * * This value changes when {approve} or {transferFrom} are called. */ function allowance(address owner, address spender) external view returns (uint256); /** * @dev Sets `amount` as the allowance of `spender` over the caller's tokens. * * Returns a boolean value indicating whether the operation succeeded. * * IMPORTANT: Beware that changing an allowance with this method brings the risk * that someone may use both the old and the new allowance by unfortunate * transaction ordering. One possible solution to mitigate this race * condition is to first reduce the spender's allowance to 0 and set the * desired value afterwards: * https://github.com/ethereum/EIPs/issues/20#issuecomment-263524729 * * Emits an {Approval} event. */ function approve(address spender, uint256 amount) external returns (bool); /** * @dev Moves `amount` tokens from `from` to `to` using the * allowance mechanism. `amount` is then deducted from the caller's * allowance. * * Returns a boolean value indicating whether the operation succeeded. * * Emits a {Transfer} event. */ function transferFrom( address from, address to, uint256 amount ) external returns (bool); }
// 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" ] } }, "libraries": { "contracts/RichieRich.sol": { "IterableMapping": "0x14195574349cF1D4266A7dBf6bC962574dcdFdEc" } } }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"inputs":[],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"spender","type":"address"},{"indexed":false,"internalType":"uint256","name":"value","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"account","type":"address"},{"indexed":false,"internalType":"bool","name":"isExcluded","type":"bool"}],"name":"ExcludeFromFees","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":"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":[{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"SendDividends","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"bnbSend","type":"uint256"}],"name":"SendMarketing","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":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":false,"internalType":"uint256","name":"value","type":"uint256"}],"name":"Transfer","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"newAddress","type":"address"},{"indexed":true,"internalType":"address","name":"oldAddress","type":"address"}],"name":"UpdateDividendTracker","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"newAddress","type":"address"},{"indexed":true,"internalType":"address","name":"oldAddress","type":"address"}],"name":"UpdatePancakeswapV2Router","type":"event"},{"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":"claim","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"claimee","type":"address"}],"name":"claimAddress","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"token","type":"address"}],"name":"claimStuckTokens","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":[{"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":"enableTrade","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":[],"name":"gasForProcessing","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"account","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"}],"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":"getTotalDividendsDistributed","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","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":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"gas","type":"uint256"}],"name":"processDividendTracker","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"rewardFeeOnSell","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"rewardToken","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"index","type":"uint256"}],"name":"setLastProcessedIndex","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"newAmount","type":"uint256"}],"name":"setSwapTokensAtAmount","outputs":[],"stateMutability":"nonpayable","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":[{"internalType":"address","name":"account","type":"address"}],"name":"totalRewardsEarned","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"transfer","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","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 UniswapV2Router02","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"newClaimWait","type":"uint256"}],"name":"updateClaimWait","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"withdrawableDividendOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"stateMutability":"payable","type":"receive"}]
Contract Creation Code
60a06040526d106f4216d9dbb8f58c1cc834000060065560056007556008805460ff19169055610258600a55600d805460ff60a01b1916905569d3c21bcecceda1000000600e5573dac17f958d2ee523a2206206994597c13d831ec7608052620493e06012553480156200007257600080fd5b506040518060400160405280600b81526020016a0a4d2c6d0d2ca40a4d2c6d60ab1b81525060405180604001604052806005815260200164048a49286960db1b8152508160039081620000c6919062000b03565b506004620000d5828262000b03565b505050620000f2620000ec6200069460201b60201c565b62000698565b6032608051604051620001059062000a51565b9182526001600160a01b03166020820152604001604051809103906000f08015801562000136573d6000803e3d6000fd5b50601160006101000a8154816001600160a01b0302191690836001600160a01b031602179055506000737a250d5630b4cf539739df2c5dacb4c659f2488d90506000816001600160a01b031663c45a01556040518163ffffffff1660e01b8152600401602060405180830381865afa158015620001b7573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190620001dd919062000bcf565b6001600160a01b031663c9c6539630846001600160a01b031663ad5c46486040518163ffffffff1660e01b8152600401602060405180830381865afa1580156200022b573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019062000251919062000bcf565b6040516001600160e01b031960e085901b1681526001600160a01b039283166004820152911660248201526044016020604051808303816000875af11580156200029f573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190620002c5919062000bcf565b600c80546001600160a01b038086166001600160a01b03199283168117909355600d80549185169190921617905590915062000306903090600019620006ea565b6200031381600162000816565b60115460405163031e79db60e41b81526001600160a01b0390911660048201819052906331e79db090602401600060405180830381600087803b1580156200035a57600080fd5b505af11580156200036f573d6000803e3d6000fd5b505060115460405163031e79db60e41b81523060048201526001600160a01b0390911692506331e79db09150602401600060405180830381600087803b158015620003b957600080fd5b505af1158015620003ce573d6000803e3d6000fd5b505060115460405163031e79db60e41b81526001600160a01b03868116600483015290911692506331e79db09150602401600060405180830381600087803b1580156200041a57600080fd5b505af11580156200042f573d6000803e3d6000fd5b505050506001600f6000620004496200097a60201b60201c565b6001600160a01b0316815260208082019290925260409081016000908120805494151560ff19958616179055308152600f90925290208054909116600117905562000678600b6020527f54848acf08a183012b12f641b196ff790bd35a1ce7a5f50779451338462cc4fb8054600160ff1991821681179092557f5c9b564037d7116467626d073f2c9c45151401950c6611c71565c82cba2606e480548216831790557f27f422defe1cdc749fba28579be5362477c496d4826e136a35bb0f9724bdc74d80548216831790557f3426c02eecc58ddd5908f877ee3039055d4ec00f3b1e1fe8f6150295cf605a1980548216831790557fdf32c9a33063a5c965001fcaca5891d9ca970055993ca60a81c3271df52aea7880548216831790557fa1f4d0ffcbcbfe39c172c04512f5e703b7a54d28464cd62c66fc65931e1c425680548216831790557fc7b801eecaf97dd1bb9f2bd563192deb5d29a1d2981712b97d34b164645a1c4b80548216831790557f1b71ac3ad1d5ce2a30cabd4126023c3c5c097041813bfeae9b4497cd758e89da80548216831790557fbe31b0b3765ecc1f4b9cc38d100be7a19eaf25dac1402b6f76bfa5b1b42457b180548216831790557f74feb2530f55bb31867d1e3c8f2955b244ac62a40dd24b6e0e8c4dbf515e048880548216831790557336497bead8f2f7ad88dbb3402af4e67c8307e4a06000527f5d5bbcd21baa7fcdaf4233e1d96697adeeee21d06435592d1427557fc3190cf780549091169091179055565b6200068c336006546200098960201b60201c565b505062000c29565b3390565b600580546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b6001600160a01b038316620007525760405162461bcd60e51b8152602060048201526024808201527f45524332303a20617070726f76652066726f6d20746865207a65726f206164646044820152637265737360e01b60648201526084015b60405180910390fd5b6001600160a01b038216620007b55760405162461bcd60e51b815260206004820152602260248201527f45524332303a20617070726f766520746f20746865207a65726f206164647265604482015261737360f01b606482015260840162000749565b6001600160a01b0383811660008181526001602090815260408083209487168084529482529182902085905590518481527f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925910160405180910390a3505050565b6001600160a01b03821660009081526010602052604090205481151560ff909116151503620008ae5760405162461bcd60e51b815260206004820152603860248201527f4175746f6d61746564206d61726b6574206d616b65722070616972206973206160448201527f6c72656164792073657420746f20746861742076616c75650000000000000000606482015260840162000749565b6001600160a01b0382166000908152601060205260409020805460ff191682158015919091179091556200093e5760115460405163031e79db60e41b81526001600160a01b038481166004830152909116906331e79db090602401600060405180830381600087803b1580156200092457600080fd5b505af115801562000939573d6000803e3d6000fd5b505050505b604051811515906001600160a01b038416907fffa9187bf1f18bf477bd0ea1bcbb64e93b6a98132473929edfce215cd9b16fab90600090a35050565b6005546001600160a01b031690565b6001600160a01b038216620009e15760405162461bcd60e51b815260206004820152601f60248201527f45524332303a206d696e7420746f20746865207a65726f206164647265737300604482015260640162000749565b8060026000828254620009f5919062000c01565b90915550506001600160a01b038216600081815260208181526040808320805486019055518481527fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef910160405180910390a35050565b505050565b6121b9806200314383390190565b634e487b7160e01b600052604160045260246000fd5b600181811c9082168062000a8a57607f821691505b60208210810362000aab57634e487b7160e01b600052602260045260246000fd5b50919050565b601f82111562000a4c57600081815260208120601f850160051c8101602086101562000ada5750805b601f850160051c820191505b8181101562000afb5782815560010162000ae6565b505050505050565b81516001600160401b0381111562000b1f5762000b1f62000a5f565b62000b378162000b30845462000a75565b8462000ab1565b602080601f83116001811462000b6f576000841562000b565750858301515b600019600386901b1c1916600185901b17855562000afb565b600085815260208120601f198616915b8281101562000ba05788860151825594840194600190910190840162000b7f565b508582101562000bbf5787850151600019600388901b60f8161c191681555b5050505050600190811b01905550565b60006020828403121562000be257600080fd5b81516001600160a01b038116811462000bfa57600080fd5b9392505050565b8082018082111562000c2357634e487b7160e01b600052601160045260246000fd5b92915050565b6080516124e962000c5a600039600081816107ae01528181611ca201528181611d620152611e0601526124e96000f3fe6080604052600436106102545760003560e01c8063715018a611610139578063b62496f5116100b6578063e7841ec01161007a578063e7841ec014610727578063e98030c71461073c578063f27fd2541461075c578063f2fde38b1461077c578063f7c618c11461079c578063f9d0831a146107d057600080fd5b8063b62496f514610681578063c0246668146106b1578063dd62ed3e146106d1578063e2f45605146106f1578063e4f24cb01461070757600080fd5b8063a457c2d7116100fd578063a457c2d71461059c578063a8b9d240146105bc578063a9059cbb146105dc578063ad56c13c146105fc578063afa4f3b21461066157600080fd5b8063715018a6146105295780638da5cb5b1461053e57806395d89b411461055c5780639c1b8af514610571578063a26579ad1461058757600080fd5b8063313ce567116101d25780634e71d92d116101965780634e71d92d146104505780634fbee1931461046557806364b0f6531461049e5780636843cd84146104b3578063700bb191146104d357806370a08231146104f357600080fd5b8063313ce567146103b457806331e79db0146103d057806339509351146103f05780633f249df01461041057806349bd5a5e1461043057600080fd5b806318160ddd1161021957806318160ddd1461032a57806323b872dd1461033f578063286b3aa01461035f5780632c1f52161461037f57806330bb4cff1461039f57600080fd5b806299d3861461026057806305452b871461027757806306fdde03146102a0578063095ea7b3146102c25780631694505e146102f257600080fd5b3661025b57005b600080fd5b34801561026c57600080fd5b506102756107f0565b005b34801561028357600080fd5b5061028d60075481565b6040519081526020015b60405180910390f35b3480156102ac57600080fd5b506102b561080b565b6040516102979190612044565b3480156102ce57600080fd5b506102e26102dd3660046120a7565b61089d565b6040519015158152602001610297565b3480156102fe57600080fd5b50600c54610312906001600160a01b031681565b6040516001600160a01b039091168152602001610297565b34801561033657600080fd5b5060025461028d565b34801561034b57600080fd5b506102e261035a3660046120d3565b6108b7565b34801561036b57600080fd5b5061027561037a366004612114565b6108db565b34801561038b57600080fd5b50601154610312906001600160a01b031681565b3480156103ab57600080fd5b5061028d610945565b3480156103c057600080fd5b5060405160128152602001610297565b3480156103dc57600080fd5b506102756103eb36600461212d565b6109b8565b3480156103fc57600080fd5b506102e261040b3660046120a7565b6109f2565b34801561041c57600080fd5b5061027561042b36600461212d565b610a14565b34801561043c57600080fd5b50600d54610312906001600160a01b031681565b34801561045c57600080fd5b50610275610a97565b34801561047157600080fd5b506102e261048036600461212d565b6001600160a01b03166000908152600f602052604090205460ff1690565b3480156104aa57600080fd5b5061028d610b0f565b3480156104bf57600080fd5b5061028d6104ce36600461212d565b610b59565b3480156104df57600080fd5b506102756104ee366004612114565b610bc9565b3480156104ff57600080fd5b5061028d61050e36600461212d565b6001600160a01b031660009081526020819052604090205490565b34801561053557600080fd5b50610275610c9b565b34801561054a57600080fd5b506005546001600160a01b0316610312565b34801561056857600080fd5b506102b5610caf565b34801561057d57600080fd5b5061028d60125481565b34801561059357600080fd5b5061028d610cbe565b3480156105a857600080fd5b506102e26105b73660046120a7565b610d08565b3480156105c857600080fd5b5061028d6105d736600461212d565b610d88565b3480156105e857600080fd5b506102e26105f73660046120a7565b610dbb565b34801561060857600080fd5b5061061c61061736600461212d565b610dc9565b604080516001600160a01b0390991689526020890197909752958701949094526060860192909252608085015260a084015260c083015260e082015261010001610297565b34801561066d57600080fd5b5061027561067c366004612114565b610e64565b34801561068d57600080fd5b506102e261069c36600461212d565b60106020526000908152604090205460ff1681565b3480156106bd57600080fd5b506102756106cc36600461215f565b610e71565b3480156106dd57600080fd5b5061028d6106ec366004612198565b610f54565b3480156106fd57600080fd5b5061028d600e5481565b34801561071357600080fd5b5061028d61072236600461212d565b610f7f565b34801561073357600080fd5b5061028d610fb2565b34801561074857600080fd5b50610275610757366004612114565b610ffc565b34801561076857600080fd5b5061061c610777366004612114565b6110b2565b34801561078857600080fd5b5061027561079736600461212d565b6110f4565b3480156107a857600080fd5b506103127f000000000000000000000000000000000000000000000000000000000000000081565b3480156107dc57600080fd5b506102756107eb36600461212d565b61116a565b6107f86112eb565b6008805460ff1916600117905542600955565b60606003805461081a906121c6565b80601f0160208091040260200160405190810160405280929190818152602001828054610846906121c6565b80156108935780601f1061086857610100808354040283529160200191610893565b820191906000526020600020905b81548152906001019060200180831161087657829003601f168201915b5050505050905090565b6000336108ab818585611345565b60019150505b92915050565b6000336108c5858285611469565b6108d08585856114dd565b506001949350505050565b6108e36112eb565b60115460405163014359d560e51b8152600481018390526001600160a01b039091169063286b3aa0906024015b600060405180830381600087803b15801561092a57600080fd5b505af115801561093e573d6000803e3d6000fd5b5050505050565b601154604080516342d359d760e11b815290516000926001600160a01b0316916385a6b3ae9160048083019260209291908290030181865afa15801561098f573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906109b39190612200565b905090565b6109c06112eb565b60115460405163031e79db60e41b81526001600160a01b038381166004830152909116906331e79db090602401610910565b6000336108ab818585610a058383610f54565b610a0f919061222f565b611345565b610a1c6112eb565b60115460405163bc4c4b3760e01b81526001600160a01b038381166004830152600060248301529091169063bc4c4b37906044016020604051808303816000875af1158015610a6f573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610a939190612242565b5050565b60115460405163bc4c4b3760e01b8152336004820152600060248201526001600160a01b039091169063bc4c4b37906044016020604051808303816000875af1158015610ae8573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610b0c9190612242565b50565b601154604080516304ddf6ef60e11b815290516000926001600160a01b0316916309bbedde9160048083019260209291908290030181865afa15801561098f573d6000803e3d6000fd5b6011546040516370a0823160e01b81526001600160a01b03838116600483015260009216906370a08231906024015b602060405180830381865afa158015610ba5573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906108b19190612200565b6011546040516001624d3b8760e01b0319815260048101839052600091829182916001600160a01b03169063ffb2c479906024016060604051808303816000875af1158015610c1c573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610c40919061225f565b604080518481526020810184905290810182905260608101889052929550909350915032906000907fc864333d6121033635ab41b29ae52f10a22cf4438c3e4f1c4c68518feb2f8a989060800160405180910390a350505050565b610ca36112eb565b610cad6000611b8d565b565b60606004805461081a906121c6565b60115460408051631bc9e27b60e21b815290516000926001600160a01b031691636f2789ec9160048083019260209291908290030181865afa15801561098f573d6000803e3d6000fd5b60003381610d168286610f54565b905083811015610d7b5760405162461bcd60e51b815260206004820152602560248201527f45524332303a2064656372656173656420616c6c6f77616e63652062656c6f77604482015264207a65726f60d81b60648201526084015b60405180910390fd5b6108d08286868403611345565b6011546040516302a2e74960e61b81526001600160a01b038381166004830152600092169063a8b9d24090602401610b88565b6000336108ab8185856114dd565b60115460405163fbcbc0f160e01b81526001600160a01b038381166004830152600092839283928392839283928392839291169063fbcbc0f1906024015b61010060405180830381865afa158015610e25573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610e49919061228d565b97509750975097509750975097509750919395975091939597565b610e6c6112eb565b600e55565b610e796112eb565b6001600160a01b0382166000908152600f602052604090205481151560ff909116151503610ef55760405162461bcd60e51b8152602060048201526024808201527f4163636f756e7420697320616c72656164792073657420746f207468617420736044820152637461746560e01b6064820152608401610d72565b6001600160a01b0382166000818152600f6020908152604091829020805460ff191685151590811790915591519182527f9d8f7706ea1113d1a167b526eca956215946dd36cc7df39eb16180222d8b5df7910160405180910390a25050565b6001600160a01b03918216600090815260016020908152604080832093909416825291909152205490565b6011546040516327ce014760e01b81526001600160a01b03838116600483015260009216906327ce014790602401610b88565b6011546040805163039e107b60e61b815290516000926001600160a01b03169163e7841ec09160048083019260209291908290030181865afa15801561098f573d6000803e3d6000fd5b6110046112eb565b610e1081101580156110195750620151808111155b6110815760405162461bcd60e51b815260206004820152603360248201527f636c61696d57616974206d757374206265207570646174656420746f206265746044820152727765656e203120616e6420323420686f75727360681b6064820152608401610d72565b60115460405163e98030c760e01b8152600481018390526001600160a01b039091169063e98030c790602401610910565b601154604051635183d6fd60e01b81526004810183905260009182918291829182918291829182916001600160a01b0390911690635183d6fd90602401610e07565b6110fc6112eb565b6001600160a01b0381166111615760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610d72565b610b0c81611b8d565b6111726112eb565b306001600160a01b038216036111ca5760405162461bcd60e51b815260206004820181905260248201527f4f776e65722063616e6e6f7420636c61696d206e617469766520746f6b656e736044820152606401610d72565b6001600160a01b0381166112045760405133904780156108fc02916000818181858888f19350505050158015610a93573d6000803e3d6000fd5b6040516370a0823160e01b815230600482015281906000906001600160a01b038316906370a0823190602401602060405180830381865afa15801561124d573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906112719190612200565b60405163a9059cbb60e01b8152336004820152602481018290529091506001600160a01b0383169063a9059cbb906044016020604051808303816000875af11580156112c1573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906112e59190612242565b50505050565b6005546001600160a01b03163314610cad5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610d72565b6001600160a01b0383166113a75760405162461bcd60e51b8152602060048201526024808201527f45524332303a20617070726f76652066726f6d20746865207a65726f206164646044820152637265737360e01b6064820152608401610d72565b6001600160a01b0382166114085760405162461bcd60e51b815260206004820152602260248201527f45524332303a20617070726f766520746f20746865207a65726f206164647265604482015261737360f01b6064820152608401610d72565b6001600160a01b0383811660008181526001602090815260408083209487168084529482529182902085905590518481527f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925910160405180910390a3505050565b60006114758484610f54565b905060001981146112e557818110156114d05760405162461bcd60e51b815260206004820152601d60248201527f45524332303a20696e73756666696369656e7420616c6c6f77616e63650000006044820152606401610d72565b6112e58484848403611345565b6001600160a01b0383166115035760405162461bcd60e51b8152600401610d72906122f7565b6001600160a01b0382166115295760405162461bcd60e51b8152600401610d729061233c565b6000811161158b5760405162461bcd60e51b815260206004820152602960248201527f5472616e7366657220616d6f756e74206d7573742062652067726561746572206044820152687468616e207a65726f60b81b6064820152608401610d72565b6005546001600160a01b038481169116148015906115b757506005546001600160a01b03838116911614155b156116a25760085460ff166116075760405162461bcd60e51b815260206004820152601660248201527527379030b63637bb903a37903a3930b232903cb2ba1760511b6044820152606401610d72565b6001600160a01b03831660009081526010602052604090205460ff16801561163d5750600a5460095461163a919061222f565b42105b156116a2576001600160a01b0382166000908152600b602052604090205460ff166116a25760405162461bcd60e51b81526020600482015260156024820152742737903bb434ba32b634b9ba1030b2323932b9b99760591b6044820152606401610d72565b30600090815260208190526040902054600e54811080159081906116d05750600d54600160a01b900460ff16155b80156116f457506001600160a01b03841660009081526010602052604090205460ff165b801561170257506000600754115b156118a557600d805460ff60a01b1916600160a01b179055811580159061172b57506000600754115b15611897576040805160028082526060820183524792600092919060208301908036833701905050905030816000815181106117695761176961237f565b6001600160a01b03928316602091820292909201810191909152600c54604080516315ab88c960e31b81529051919093169263ad5c46489260048083019391928290030181865afa1580156117c2573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906117e69190612395565b816001815181106117f9576117f961237f565b6001600160a01b039283166020918202929092010152600c5460405163791ac94760e01b815291169063791ac9479061183f9087906000908690309042906004016123f6565b600060405180830381600087803b15801561185957600080fd5b505af115801561186d573d6000803e3d6000fd5b505050506000824761187f9190612432565b600754909150156118935761189381611bdf565b5050505b600d805460ff60a01b191690555b600d546001600160a01b0386166000908152600f602052604090205460ff600160a01b9092048216159116806118f357506001600160a01b0385166000908152600f602052604090205460ff165b156118fc575060005b600d546001600160a01b038781169116148015906119285750600d546001600160a01b03868116911614155b15611931575060005b80801561195657506001600160a01b03851660009081526010602052604090205460ff165b1561199257600060646007548661196d9190612445565b611977919061245c565b90506119838186612432565b9450611990873083611f1a565b505b61199d868686611f1a565b6011546001600160a01b031663e30443bc876119ce816001600160a01b031660009081526020819052604090205490565b6040516001600160e01b031960e085901b1681526001600160a01b0390921660048301526024820152604401600060405180830381600087803b158015611a1457600080fd5b505af1925050508015611a25575060015b506011546001600160a01b031663e30443bc86611a57816001600160a01b031660009081526020819052604090205490565b6040516001600160e01b031960e085901b1681526001600160a01b0390921660048301526024820152604401600060405180830381600087803b158015611a9d57600080fd5b505af1925050508015611aae575060015b50600d54600160a01b900460ff16611b85576012546011546040516001624d3b8760e01b03198152600481018390526001600160a01b039091169063ffb2c479906024016060604051808303816000875af1925050508015611b2d575060408051601f3d908101601f19168201909252611b2a9181019061225f565b60015b15611b835760408051848152602081018490529081018290526060810185905232906001907fc864333d6121033635ab41b29ae52f10a22cf4438c3e4f1c4c68518feb2f8a989060800160405180910390a35050505b505b505050505050565b600580546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b6040805160028082526060820183526000926020830190803683375050600c54604080516315ab88c960e31b815290519394506001600160a01b039091169263ad5c4648925060048083019260209291908290030181865afa158015611c49573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611c6d9190612395565b81600081518110611c8057611c8061237f565b60200260200101906001600160a01b031690816001600160a01b0316815250507f000000000000000000000000000000000000000000000000000000000000000081600181518110611cd457611cd461237f565b6001600160a01b039283166020918202929092010152600c5460405163b6f9de9560e01b815291169063b6f9de95908490611d1a9060009086903090429060040161247e565b6000604051808303818588803b158015611d3357600080fd5b505af1158015611d47573d6000803e3d6000fd5b50506040516370a0823160e01b8152306004820152600093507f00000000000000000000000000000000000000000000000000000000000000006001600160a01b031692506370a082319150602401602060405180830381865afa158015611db3573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611dd79190612200565b60115460405163a9059cbb60e01b81526001600160a01b039182166004820152602481018390529192506000917f00000000000000000000000000000000000000000000000000000000000000009091169063a9059cbb906044016020604051808303816000875af1158015611e51573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611e759190612242565b905080156112e557601154604051633243c79160e01b8152600481018490526001600160a01b0390911690633243c79190602401600060405180830381600087803b158015611ec357600080fd5b505af1158015611ed7573d6000803e3d6000fd5b505050507fb0cc2628d6d644cf6be9d8110e142297ac910d6d8026d795a99f272fd9ad60b182604051611f0c91815260200190565b60405180910390a150505050565b6001600160a01b038316611f405760405162461bcd60e51b8152600401610d72906122f7565b6001600160a01b038216611f665760405162461bcd60e51b8152600401610d729061233c565b6001600160a01b03831660009081526020819052604090205481811015611fde5760405162461bcd60e51b815260206004820152602660248201527f45524332303a207472616e7366657220616d6f756e7420657863656564732062604482015265616c616e636560d01b6064820152608401610d72565b6001600160a01b03848116600081815260208181526040808320878703905593871680835291849020805487019055925185815290927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef910160405180910390a36112e5565b600060208083528351808285015260005b8181101561207157858101830151858201604001528201612055565b506000604082860101526040601f19601f8301168501019250505092915050565b6001600160a01b0381168114610b0c57600080fd5b600080604083850312156120ba57600080fd5b82356120c581612092565b946020939093013593505050565b6000806000606084860312156120e857600080fd5b83356120f381612092565b9250602084013561210381612092565b929592945050506040919091013590565b60006020828403121561212657600080fd5b5035919050565b60006020828403121561213f57600080fd5b813561214a81612092565b9392505050565b8015158114610b0c57600080fd5b6000806040838503121561217257600080fd5b823561217d81612092565b9150602083013561218d81612151565b809150509250929050565b600080604083850312156121ab57600080fd5b82356121b681612092565b9150602083013561218d81612092565b600181811c908216806121da57607f821691505b6020821081036121fa57634e487b7160e01b600052602260045260246000fd5b50919050565b60006020828403121561221257600080fd5b5051919050565b634e487b7160e01b600052601160045260246000fd5b808201808211156108b1576108b1612219565b60006020828403121561225457600080fd5b815161214a81612151565b60008060006060848603121561227457600080fd5b8351925060208401519150604084015190509250925092565b600080600080600080600080610100898b0312156122aa57600080fd5b88516122b581612092565b809850506020890151965060408901519550606089015194506080890151935060a0890151925060c0890151915060e089015190509295985092959890939650565b60208082526025908201527f45524332303a207472616e736665722066726f6d20746865207a65726f206164604082015264647265737360d81b606082015260800190565b60208082526023908201527f45524332303a207472616e7366657220746f20746865207a65726f206164647260408201526265737360e81b606082015260800190565b634e487b7160e01b600052603260045260246000fd5b6000602082840312156123a757600080fd5b815161214a81612092565b600081518084526020808501945080840160005b838110156123eb5781516001600160a01b0316875295820195908201906001016123c6565b509495945050505050565b85815284602082015260a06040820152600061241560a08301866123b2565b6001600160a01b0394909416606083015250608001529392505050565b818103818111156108b1576108b1612219565b80820281158282048414176108b1576108b1612219565b60008261247957634e487b7160e01b600052601260045260246000fd5b500490565b84815260806020820152600061249760808301866123b2565b6001600160a01b0394909416604083015250606001529291505056fea26469706673582212203203696d655556c243e2dce6c34ec69181c1ff655294a9dc2afc4c9b3ec7197364736f6c6343000811003360a06040523480156200001157600080fd5b50604051620021b9380380620021b9833981016040819052620000349162000149565b6040518060400160405280600e81526020016d2932bbb0b932102a3930b1b5b2b960911b8152506040518060400160405280600f81526020016e2234bb34b232b7322a3930b1b5b2b960891b81525082828281600390816200009791906200022d565b506004620000a682826200022d565b505050620000c3620000bd620000f360201b60201c565b620000f7565b6001600160a01b03166080525050610e10601155620000e782633b9aca00620002f9565b60125550620003259050565b3390565b600580546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b600080604083850312156200015d57600080fd5b825160208401519092506001600160a01b03811681146200017d57600080fd5b809150509250929050565b634e487b7160e01b600052604160045260246000fd5b600181811c90821680620001b357607f821691505b602082108103620001d457634e487b7160e01b600052602260045260246000fd5b50919050565b601f8211156200022857600081815260208120601f850160051c81016020861015620002035750805b601f850160051c820191505b8181101562000224578281556001016200020f565b5050505b505050565b81516001600160401b0381111562000249576200024962000188565b62000261816200025a84546200019e565b84620001da565b602080601f831160018114620002995760008415620002805750858301515b600019600386901b1c1916600185901b17855562000224565b600085815260208120601f198616915b82811015620002ca57888601518255948401946001909101908401620002a9565b5085821015620002e95787850151600019600388901b60f8161c191681555b5050505050600190811b01905550565b80820281158282048414176200031f57634e487b7160e01b600052601160045260246000fd5b92915050565b608051611e71620003486000396000818161052e015261171b0152611e716000f3fe608060405234801561001057600080fd5b50600436106102325760003560e01c8063715018a611610130578063bc4c4b37116100b8578063e98030c71161007c578063e98030c714610503578063f2fde38b14610516578063f7c618c114610529578063fbcbc0f114610550578063ffb2c4791461056357600080fd5b8063bc4c4b37146104b9578063be10b614146104cc578063dd62ed3e146104d5578063e30443bc146104e8578063e7841ec0146104fb57600080fd5b806395d89b41116100ff57806395d89b411461044f578063a457c2d714610457578063a8b9d2401461046a578063a9059cbb1461047d578063aafd847a1461049057600080fd5b8063715018a61461040657806385a6b3ae1461040e5780638da5cb5b1461041757806391b89fba1461043c57600080fd5b80633009a609116101be5780634e7b827f116101825780634e7b827f146103515780635183d6fd146103745780636a474002146103cc5780636f2789ec146103d457806370a08231146103dd57600080fd5b80633009a60914610300578063313ce5671461030957806331e79db0146103185780633243c7911461032b578063395093511461033e57600080fd5b806318160ddd1161020557806318160ddd1461029f578063226cfa3d146102a757806323b872dd146102c757806327ce0147146102da578063286b3aa0146102ed57600080fd5b806306fdde0314610237578063095ea7b31461025557806309bbedde146102785780630dcb2e891461028a575b600080fd5b61023f610591565b60405161024c9190611b47565b60405180910390f35b610268610263366004611baa565b610623565b604051901515815260200161024c565b600a545b60405190815260200161024c565b61029d610298366004611bd6565b61063d565b005b60025461027c565b61027c6102b5366004611bef565b60106020526000908152604090205481565b6102686102d5366004611c0c565b6106d9565b61027c6102e8366004611bef565b6106fd565b61029d6102fb366004611bd6565b610759565b61027c600e5481565b6040516012815260200161024c565b61029d610326366004611bef565b610766565b61029d610339366004611bd6565b61086b565b61026861034c366004611baa565b610907565b61026861035f366004611bef565b600f6020526000908152604090205460ff1681565b610387610382366004611bd6565b610929565b604080516001600160a01b0390991689526020890197909752958701949094526060860192909252608085015260a084015260c083015260e08201526101000161024c565b61029d610a7d565b61027c60115481565b61027c6103eb366004611bef565b6001600160a01b031660009081526020819052604090205490565b61029d610aff565b61027c60075481565b6005546001600160a01b03165b6040516001600160a01b03909116815260200161024c565b61027c61044a366004611bef565b610b11565b61023f610b1c565b610268610465366004611baa565b610b2b565b61027c610478366004611bef565b610ba6565b61026861048b366004611baa565b610bd2565b61027c61049e366004611bef565b6001600160a01b031660009081526009602052604090205490565b6102686104c7366004611c5b565b610be0565b61027c60125481565b61027c6104e3366004611c94565b610c6b565b61029d6104f6366004611baa565b610c96565b600e5461027c565b61029d610511366004611bd6565b610dde565b61029d610524366004611bef565b610ef5565b6104247f000000000000000000000000000000000000000000000000000000000000000081565b61038761055e366004611bef565b610f6b565b610576610571366004611bd6565b6110d4565b6040805193845260208401929092529082015260600161024c565b6060600380546105a090611cc2565b80601f01602080910402602001604051908101604052809291908181526020018280546105cc90611cc2565b80156106195780601f106105ee57610100808354040283529160200191610619565b820191906000526020600020905b8154815290600101906020018083116105fc57829003601f168201915b5050505050905090565b6000336106318185856111f1565b60019150505b92915050565b610645611315565b60125481036106d45760405162461bcd60e51b815260206004820152604a60248201527f4e6577206d696d696d756d2062616c616e636520666f72206469766964656e6460448201527f2063616e6e6f742062652073616d652061732063757272656e74206d696e696d606482015269756d2062616c616e636560b01b608482015260a4015b60405180910390fd5b601255565b6000336106e785828561136f565b6106f28585856113e9565b506001949350505050565b6001600160a01b03811660009081526008602090815260408083205491839052822054600654600160801b9261074f9261074a926107449161073f9190611428565b6114b1565b906114c1565b6114ff565b6106379190611d12565b610761611315565b600e55565b61076e611315565b6001600160a01b0381166000908152600f602052604090205460ff161561079457600080fd5b6001600160a01b0381166000908152600f60205260408120805460ff191660011790556107c2908290611512565b60405163131836e760e21b8152600a60048201526001600160a01b03821660248201527314195574349cf1d4266a7dbf6bc962574dcdfdec90634c60db9c9060440160006040518083038186803b15801561081c57600080fd5b505af4158015610830573d6000803e3d6000fd5b50506040516001600160a01b03841692507fa878b31040b2e6d0a9a3d3361209db3908ba62014b0dca52adbaee451d128b259150600090a250565b610873611315565b600061087e60025490565b1161088857600080fd5b8015610904576108bb61089a60025490565b6108a883600160801b611428565b6108b29190611d12565b60065490611571565b60065560405181815233907fa493a9229478c3fcd73f66d2cdeb7f94fd0f341da924d1054236d784541165119060200160405180910390a26007546109009082611571565b6007555b50565b60003361063181858561091a8383610c6b565b6109249190611d34565b6111f1565b600080600080600080600080600a7314195574349cf1d4266a7dbf6bc962574dcdfdec63deb3d89690916040518263ffffffff1660e01b815260040161097191815260200190565b602060405180830381865af415801561098e573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906109b29190611d47565b89106109d7575060009650600019955085945086935083925082915081905080610a72565b6040516368d54f3f60e11b8152600a6004820152602481018a90526000907314195574349cf1d4266a7dbf6bc962574dcdfdec9063d1aa9e7e90604401602060405180830381865af4158015610a31573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610a559190611d60565b9050610a6081610f6b565b98509850985098509850985098509850505b919395975091939597565b60405162461bcd60e51b815260206004820152604960248201527f77697468647261774469766964656e642064697361626c65642e20557365207460448201527f68652027636c61696d272066756e6374696f6e206f6e20746865206d61696e2060648201526831b7b73a3930b1ba1760b91b608482015260a4016106cb565b565b610b07611315565b610afd60006115d0565b600061063782610ba6565b6060600480546105a090611cc2565b60003381610b398286610c6b565b905083811015610b995760405162461bcd60e51b815260206004820152602560248201527f45524332303a2064656372656173656420616c6c6f77616e63652062656c6f77604482015264207a65726f60d81b60648201526084016106cb565b6106f282868684036111f1565b6001600160a01b03811660009081526009602052604081205461063790610bcc846106fd565b90611622565b6000336106318185856113e9565b6000610bea611315565b6000610bf584611664565b90508015610c61576001600160a01b038416600081815260106020526040908190204290555184151591907fa2c38e2d2fb7e3e1912d937fd1ca11ed6d51864dee4cfa7a7bf02becd7acf09290610c4f9085815260200190565b60405180910390a36001915050610637565b5060009392505050565b6001600160a01b03918216600090815260016020908152604080832093909416825291909152205490565b610c9e611315565b6001600160a01b0382166000908152600f602052604090205460ff16610dda576012548110610d4f57610cd18282611512565b604051632f0ad01760e21b8152600a60048201526001600160a01b0383166024820152604481018290527314195574349cf1d4266a7dbf6bc962574dcdfdec9063bc2b405c9060640160006040518083038186803b158015610d3257600080fd5b505af4158015610d46573d6000803e3d6000fd5b50505050610dcd565b610d5a826000611512565b60405163131836e760e21b8152600a60048201526001600160a01b03831660248201527314195574349cf1d4266a7dbf6bc962574dcdfdec90634c60db9c9060440160006040518083038186803b158015610db457600080fd5b505af4158015610dc8573d6000803e3d6000fd5b505050505b610dd8826001610be0565b505b5050565b610de6611315565b610e108110158015610dfb5750620151808111155b610e635760405162461bcd60e51b815260206004820152603360248201527f636c61696d57616974206d757374206265207570646174656420746f206265746044820152727765656e203120616e6420323420686f75727360681b60648201526084016106cb565b6011548103610ec25760405162461bcd60e51b815260206004820152602560248201527f43616e6e6f742075706461746520636c61696d5761697420746f2073616d652060448201526476616c756560d81b60648201526084016106cb565b60115460405182907f474ea64804364a1e29a4487ddb63c3342a2dd826ccd8acf48825e680a0e6f20f90600090a3601155565b610efd611315565b6001600160a01b038116610f625760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b60648201526084016106cb565b610904816115d0565b6040516317e142d160e01b8152600a60048201526001600160a01b038216602482015281906000908190819081908190819081907314195574349cf1d4266a7dbf6bc962574dcdfdec906317e142d190604401602060405180830381865af4158015610fdb573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610fff9190611d47565b965060001995506000871261106157600e5487111561102d57600e546110269088906117e9565b9550611061565b600e54600a5460009110611042576000611051565b600e54600a5461105191611622565b905061105d88826114c1565b9650505b61106a88610ba6565b9450611075886106fd565b6001600160a01b03891660009081526010602052604090205490945092508261109f5760006110ad565b6011546110ad908490611571565b91504282116110bd5760006110c7565b6110c78242611622565b9050919395975091939597565b600a54600090819081908082036110f6575050600e54600092508291506111ea565b600e546000805a90506000805b898410801561111157508582105b156111d9578461112081611d7d565b600a549096508610905061113357600094505b6000600a600001868154811061114b5761114b611d96565b60009182526020808320909101546001600160a01b0316808352601090915260409091205490915061117c90611826565b1561119f5761118c816001610be0565b1561119f578161119b81611d7d565b9250505b826111a981611d7d565b93505060005a9050808511156111d0576111cd6111c68683611622565b8790611571565b95505b93506111039050565b600e85905590975095509193505050505b9193909250565b6001600160a01b0383166112535760405162461bcd60e51b8152602060048201526024808201527f45524332303a20617070726f76652066726f6d20746865207a65726f206164646044820152637265737360e01b60648201526084016106cb565b6001600160a01b0382166112b45760405162461bcd60e51b815260206004820152602260248201527f45524332303a20617070726f766520746f20746865207a65726f206164647265604482015261737360f01b60648201526084016106cb565b6001600160a01b0383811660008181526001602090815260408083209487168084529482529182902085905590518481527f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925910160405180910390a3505050565b6005546001600160a01b03163314610afd5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064016106cb565b600061137b8484610c6b565b905060001981146113e357818110156113d65760405162461bcd60e51b815260206004820152601d60248201527f45524332303a20696e73756666696369656e7420616c6c6f77616e636500000060448201526064016106cb565b6113e384848484036111f1565b50505050565b60405162461bcd60e51b8152602060048201526014602482015273139bc81d1c985b9cd9995c9cc8185b1b1bddd95960621b60448201526064016106cb565b60008260000361143a57506000610637565b60006114468385611dac565b9050826114538583611d12565b146114aa5760405162461bcd60e51b815260206004820152602160248201527f536166654d6174683a206d756c7469706c69636174696f6e206f766572666c6f6044820152607760f81b60648201526084016106cb565b9392505050565b6000818181121561063757600080fd5b6000806114ce8385611dc3565b9050600083121580156114e15750838112155b806114f657506000831280156114f657508381125b6114aa57600080fd5b60008082121561150e57600080fd5b5090565b6001600160a01b0382166000908152602081905260409020548082111561155157600061153f8383611622565b905061154b848261184d565b50610dd8565b80821015610dd85760006115658284611622565b90506113e384826118b1565b60008061157e8385611d34565b9050838110156114aa5760405162461bcd60e51b815260206004820152601b60248201527f536166654d6174683a206164646974696f6e206f766572666c6f77000000000060448201526064016106cb565b600580546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b60006114aa83836040518060400160405280601e81526020017f536166654d6174683a207375627472616374696f6e206f766572666c6f7700008152506118f5565b60008061167083610ba6565b905080156117e0576001600160a01b03831660009081526009602052604090205461169b9082611571565b6001600160a01b038416600081815260096020526040908190209290925590517fee503bee2bb6a87e57bc57db795f98137327401a0e7b7ce42e37926cc1a9ca4d906116ea9084815260200190565b60405180910390a260405163a9059cbb60e01b81526001600160a01b038481166004830152602482018390526000917f00000000000000000000000000000000000000000000000000000000000000009091169063a9059cbb906044016020604051808303816000875af1158015611766573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061178a9190611deb565b9050806117d9576001600160a01b0384166000908152600960205260409020546117b49083611622565b6001600160a01b03909416600090815260096020526040812094909455509192915050565b5092915050565b50600092915050565b6000806117f68385611e08565b9050600083121580156118095750838113155b806114f657506000831280156114f657508381136114aa57600080fd5b60004282111561183857506000919050565b6011546118454284611622565b101592915050565b611857828261192f565b61189161187261073f8360065461142890919063ffffffff16565b6001600160a01b038416600090815260086020526040902054906117e9565b6001600160a01b0390921660009081526008602052604090209190915550565b6118bb8282611a02565b6118916118d661073f8360065461142890919063ffffffff16565b6001600160a01b038416600090815260086020526040902054906114c1565b600081848411156119195760405162461bcd60e51b81526004016106cb9190611b47565b5060006119268486611e28565b95945050505050565b6001600160a01b0382166119855760405162461bcd60e51b815260206004820152601f60248201527f45524332303a206d696e7420746f20746865207a65726f20616464726573730060448201526064016106cb565b61199160008383610dd8565b80600260008282546119a39190611d34565b90915550506001600160a01b038216600081815260208181526040808320805486019055518481527fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef910160405180910390a3610dda60008383610dd8565b6001600160a01b038216611a625760405162461bcd60e51b815260206004820152602160248201527f45524332303a206275726e2066726f6d20746865207a65726f206164647265736044820152607360f81b60648201526084016106cb565b611a6e82600083610dd8565b6001600160a01b03821660009081526020819052604090205481811015611ae25760405162461bcd60e51b815260206004820152602260248201527f45524332303a206275726e20616d6f756e7420657863656564732062616c616e604482015261636560f01b60648201526084016106cb565b6001600160a01b0383166000818152602081815260408083208686039055600280548790039055518581529192917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef910160405180910390a3610dd883600084610dd8565b600060208083528351808285015260005b81811015611b7457858101830151858201604001528201611b58565b506000604082860101526040601f19601f8301168501019250505092915050565b6001600160a01b038116811461090457600080fd5b60008060408385031215611bbd57600080fd5b8235611bc881611b95565b946020939093013593505050565b600060208284031215611be857600080fd5b5035919050565b600060208284031215611c0157600080fd5b81356114aa81611b95565b600080600060608486031215611c2157600080fd5b8335611c2c81611b95565b92506020840135611c3c81611b95565b929592945050506040919091013590565b801515811461090457600080fd5b60008060408385031215611c6e57600080fd5b8235611c7981611b95565b91506020830135611c8981611c4d565b809150509250929050565b60008060408385031215611ca757600080fd5b8235611cb281611b95565b91506020830135611c8981611b95565b600181811c90821680611cd657607f821691505b602082108103611cf657634e487b7160e01b600052602260045260246000fd5b50919050565b634e487b7160e01b600052601160045260246000fd5b600082611d2f57634e487b7160e01b600052601260045260246000fd5b500490565b8082018082111561063757610637611cfc565b600060208284031215611d5957600080fd5b5051919050565b600060208284031215611d7257600080fd5b81516114aa81611b95565b600060018201611d8f57611d8f611cfc565b5060010190565b634e487b7160e01b600052603260045260246000fd5b808202811582820484141761063757610637611cfc565b8082018281126000831280158216821582161715611de357611de3611cfc565b505092915050565b600060208284031215611dfd57600080fd5b81516114aa81611c4d565b81810360008312801583831316838312821617156117d9576117d9611cfc565b8181038181111561063757610637611cfc56fea26469706673582212207b18c3a857c177582042b3e439874a0a1639af11dbb35669d33687cd6e84f35d64736f6c63430008110033
Deployed Bytecode
0x6080604052600436106102545760003560e01c8063715018a611610139578063b62496f5116100b6578063e7841ec01161007a578063e7841ec014610727578063e98030c71461073c578063f27fd2541461075c578063f2fde38b1461077c578063f7c618c11461079c578063f9d0831a146107d057600080fd5b8063b62496f514610681578063c0246668146106b1578063dd62ed3e146106d1578063e2f45605146106f1578063e4f24cb01461070757600080fd5b8063a457c2d7116100fd578063a457c2d71461059c578063a8b9d240146105bc578063a9059cbb146105dc578063ad56c13c146105fc578063afa4f3b21461066157600080fd5b8063715018a6146105295780638da5cb5b1461053e57806395d89b411461055c5780639c1b8af514610571578063a26579ad1461058757600080fd5b8063313ce567116101d25780634e71d92d116101965780634e71d92d146104505780634fbee1931461046557806364b0f6531461049e5780636843cd84146104b3578063700bb191146104d357806370a08231146104f357600080fd5b8063313ce567146103b457806331e79db0146103d057806339509351146103f05780633f249df01461041057806349bd5a5e1461043057600080fd5b806318160ddd1161021957806318160ddd1461032a57806323b872dd1461033f578063286b3aa01461035f5780632c1f52161461037f57806330bb4cff1461039f57600080fd5b806299d3861461026057806305452b871461027757806306fdde03146102a0578063095ea7b3146102c25780631694505e146102f257600080fd5b3661025b57005b600080fd5b34801561026c57600080fd5b506102756107f0565b005b34801561028357600080fd5b5061028d60075481565b6040519081526020015b60405180910390f35b3480156102ac57600080fd5b506102b561080b565b6040516102979190612044565b3480156102ce57600080fd5b506102e26102dd3660046120a7565b61089d565b6040519015158152602001610297565b3480156102fe57600080fd5b50600c54610312906001600160a01b031681565b6040516001600160a01b039091168152602001610297565b34801561033657600080fd5b5060025461028d565b34801561034b57600080fd5b506102e261035a3660046120d3565b6108b7565b34801561036b57600080fd5b5061027561037a366004612114565b6108db565b34801561038b57600080fd5b50601154610312906001600160a01b031681565b3480156103ab57600080fd5b5061028d610945565b3480156103c057600080fd5b5060405160128152602001610297565b3480156103dc57600080fd5b506102756103eb36600461212d565b6109b8565b3480156103fc57600080fd5b506102e261040b3660046120a7565b6109f2565b34801561041c57600080fd5b5061027561042b36600461212d565b610a14565b34801561043c57600080fd5b50600d54610312906001600160a01b031681565b34801561045c57600080fd5b50610275610a97565b34801561047157600080fd5b506102e261048036600461212d565b6001600160a01b03166000908152600f602052604090205460ff1690565b3480156104aa57600080fd5b5061028d610b0f565b3480156104bf57600080fd5b5061028d6104ce36600461212d565b610b59565b3480156104df57600080fd5b506102756104ee366004612114565b610bc9565b3480156104ff57600080fd5b5061028d61050e36600461212d565b6001600160a01b031660009081526020819052604090205490565b34801561053557600080fd5b50610275610c9b565b34801561054a57600080fd5b506005546001600160a01b0316610312565b34801561056857600080fd5b506102b5610caf565b34801561057d57600080fd5b5061028d60125481565b34801561059357600080fd5b5061028d610cbe565b3480156105a857600080fd5b506102e26105b73660046120a7565b610d08565b3480156105c857600080fd5b5061028d6105d736600461212d565b610d88565b3480156105e857600080fd5b506102e26105f73660046120a7565b610dbb565b34801561060857600080fd5b5061061c61061736600461212d565b610dc9565b604080516001600160a01b0390991689526020890197909752958701949094526060860192909252608085015260a084015260c083015260e082015261010001610297565b34801561066d57600080fd5b5061027561067c366004612114565b610e64565b34801561068d57600080fd5b506102e261069c36600461212d565b60106020526000908152604090205460ff1681565b3480156106bd57600080fd5b506102756106cc36600461215f565b610e71565b3480156106dd57600080fd5b5061028d6106ec366004612198565b610f54565b3480156106fd57600080fd5b5061028d600e5481565b34801561071357600080fd5b5061028d61072236600461212d565b610f7f565b34801561073357600080fd5b5061028d610fb2565b34801561074857600080fd5b50610275610757366004612114565b610ffc565b34801561076857600080fd5b5061061c610777366004612114565b6110b2565b34801561078857600080fd5b5061027561079736600461212d565b6110f4565b3480156107a857600080fd5b506103127f000000000000000000000000dac17f958d2ee523a2206206994597c13d831ec781565b3480156107dc57600080fd5b506102756107eb36600461212d565b61116a565b6107f86112eb565b6008805460ff1916600117905542600955565b60606003805461081a906121c6565b80601f0160208091040260200160405190810160405280929190818152602001828054610846906121c6565b80156108935780601f1061086857610100808354040283529160200191610893565b820191906000526020600020905b81548152906001019060200180831161087657829003601f168201915b5050505050905090565b6000336108ab818585611345565b60019150505b92915050565b6000336108c5858285611469565b6108d08585856114dd565b506001949350505050565b6108e36112eb565b60115460405163014359d560e51b8152600481018390526001600160a01b039091169063286b3aa0906024015b600060405180830381600087803b15801561092a57600080fd5b505af115801561093e573d6000803e3d6000fd5b5050505050565b601154604080516342d359d760e11b815290516000926001600160a01b0316916385a6b3ae9160048083019260209291908290030181865afa15801561098f573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906109b39190612200565b905090565b6109c06112eb565b60115460405163031e79db60e41b81526001600160a01b038381166004830152909116906331e79db090602401610910565b6000336108ab818585610a058383610f54565b610a0f919061222f565b611345565b610a1c6112eb565b60115460405163bc4c4b3760e01b81526001600160a01b038381166004830152600060248301529091169063bc4c4b37906044016020604051808303816000875af1158015610a6f573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610a939190612242565b5050565b60115460405163bc4c4b3760e01b8152336004820152600060248201526001600160a01b039091169063bc4c4b37906044016020604051808303816000875af1158015610ae8573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610b0c9190612242565b50565b601154604080516304ddf6ef60e11b815290516000926001600160a01b0316916309bbedde9160048083019260209291908290030181865afa15801561098f573d6000803e3d6000fd5b6011546040516370a0823160e01b81526001600160a01b03838116600483015260009216906370a08231906024015b602060405180830381865afa158015610ba5573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906108b19190612200565b6011546040516001624d3b8760e01b0319815260048101839052600091829182916001600160a01b03169063ffb2c479906024016060604051808303816000875af1158015610c1c573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610c40919061225f565b604080518481526020810184905290810182905260608101889052929550909350915032906000907fc864333d6121033635ab41b29ae52f10a22cf4438c3e4f1c4c68518feb2f8a989060800160405180910390a350505050565b610ca36112eb565b610cad6000611b8d565b565b60606004805461081a906121c6565b60115460408051631bc9e27b60e21b815290516000926001600160a01b031691636f2789ec9160048083019260209291908290030181865afa15801561098f573d6000803e3d6000fd5b60003381610d168286610f54565b905083811015610d7b5760405162461bcd60e51b815260206004820152602560248201527f45524332303a2064656372656173656420616c6c6f77616e63652062656c6f77604482015264207a65726f60d81b60648201526084015b60405180910390fd5b6108d08286868403611345565b6011546040516302a2e74960e61b81526001600160a01b038381166004830152600092169063a8b9d24090602401610b88565b6000336108ab8185856114dd565b60115460405163fbcbc0f160e01b81526001600160a01b038381166004830152600092839283928392839283928392839291169063fbcbc0f1906024015b61010060405180830381865afa158015610e25573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610e49919061228d565b97509750975097509750975097509750919395975091939597565b610e6c6112eb565b600e55565b610e796112eb565b6001600160a01b0382166000908152600f602052604090205481151560ff909116151503610ef55760405162461bcd60e51b8152602060048201526024808201527f4163636f756e7420697320616c72656164792073657420746f207468617420736044820152637461746560e01b6064820152608401610d72565b6001600160a01b0382166000818152600f6020908152604091829020805460ff191685151590811790915591519182527f9d8f7706ea1113d1a167b526eca956215946dd36cc7df39eb16180222d8b5df7910160405180910390a25050565b6001600160a01b03918216600090815260016020908152604080832093909416825291909152205490565b6011546040516327ce014760e01b81526001600160a01b03838116600483015260009216906327ce014790602401610b88565b6011546040805163039e107b60e61b815290516000926001600160a01b03169163e7841ec09160048083019260209291908290030181865afa15801561098f573d6000803e3d6000fd5b6110046112eb565b610e1081101580156110195750620151808111155b6110815760405162461bcd60e51b815260206004820152603360248201527f636c61696d57616974206d757374206265207570646174656420746f206265746044820152727765656e203120616e6420323420686f75727360681b6064820152608401610d72565b60115460405163e98030c760e01b8152600481018390526001600160a01b039091169063e98030c790602401610910565b601154604051635183d6fd60e01b81526004810183905260009182918291829182918291829182916001600160a01b0390911690635183d6fd90602401610e07565b6110fc6112eb565b6001600160a01b0381166111615760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610d72565b610b0c81611b8d565b6111726112eb565b306001600160a01b038216036111ca5760405162461bcd60e51b815260206004820181905260248201527f4f776e65722063616e6e6f7420636c61696d206e617469766520746f6b656e736044820152606401610d72565b6001600160a01b0381166112045760405133904780156108fc02916000818181858888f19350505050158015610a93573d6000803e3d6000fd5b6040516370a0823160e01b815230600482015281906000906001600160a01b038316906370a0823190602401602060405180830381865afa15801561124d573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906112719190612200565b60405163a9059cbb60e01b8152336004820152602481018290529091506001600160a01b0383169063a9059cbb906044016020604051808303816000875af11580156112c1573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906112e59190612242565b50505050565b6005546001600160a01b03163314610cad5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610d72565b6001600160a01b0383166113a75760405162461bcd60e51b8152602060048201526024808201527f45524332303a20617070726f76652066726f6d20746865207a65726f206164646044820152637265737360e01b6064820152608401610d72565b6001600160a01b0382166114085760405162461bcd60e51b815260206004820152602260248201527f45524332303a20617070726f766520746f20746865207a65726f206164647265604482015261737360f01b6064820152608401610d72565b6001600160a01b0383811660008181526001602090815260408083209487168084529482529182902085905590518481527f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925910160405180910390a3505050565b60006114758484610f54565b905060001981146112e557818110156114d05760405162461bcd60e51b815260206004820152601d60248201527f45524332303a20696e73756666696369656e7420616c6c6f77616e63650000006044820152606401610d72565b6112e58484848403611345565b6001600160a01b0383166115035760405162461bcd60e51b8152600401610d72906122f7565b6001600160a01b0382166115295760405162461bcd60e51b8152600401610d729061233c565b6000811161158b5760405162461bcd60e51b815260206004820152602960248201527f5472616e7366657220616d6f756e74206d7573742062652067726561746572206044820152687468616e207a65726f60b81b6064820152608401610d72565b6005546001600160a01b038481169116148015906115b757506005546001600160a01b03838116911614155b156116a25760085460ff166116075760405162461bcd60e51b815260206004820152601660248201527527379030b63637bb903a37903a3930b232903cb2ba1760511b6044820152606401610d72565b6001600160a01b03831660009081526010602052604090205460ff16801561163d5750600a5460095461163a919061222f565b42105b156116a2576001600160a01b0382166000908152600b602052604090205460ff166116a25760405162461bcd60e51b81526020600482015260156024820152742737903bb434ba32b634b9ba1030b2323932b9b99760591b6044820152606401610d72565b30600090815260208190526040902054600e54811080159081906116d05750600d54600160a01b900460ff16155b80156116f457506001600160a01b03841660009081526010602052604090205460ff165b801561170257506000600754115b156118a557600d805460ff60a01b1916600160a01b179055811580159061172b57506000600754115b15611897576040805160028082526060820183524792600092919060208301908036833701905050905030816000815181106117695761176961237f565b6001600160a01b03928316602091820292909201810191909152600c54604080516315ab88c960e31b81529051919093169263ad5c46489260048083019391928290030181865afa1580156117c2573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906117e69190612395565b816001815181106117f9576117f961237f565b6001600160a01b039283166020918202929092010152600c5460405163791ac94760e01b815291169063791ac9479061183f9087906000908690309042906004016123f6565b600060405180830381600087803b15801561185957600080fd5b505af115801561186d573d6000803e3d6000fd5b505050506000824761187f9190612432565b600754909150156118935761189381611bdf565b5050505b600d805460ff60a01b191690555b600d546001600160a01b0386166000908152600f602052604090205460ff600160a01b9092048216159116806118f357506001600160a01b0385166000908152600f602052604090205460ff165b156118fc575060005b600d546001600160a01b038781169116148015906119285750600d546001600160a01b03868116911614155b15611931575060005b80801561195657506001600160a01b03851660009081526010602052604090205460ff165b1561199257600060646007548661196d9190612445565b611977919061245c565b90506119838186612432565b9450611990873083611f1a565b505b61199d868686611f1a565b6011546001600160a01b031663e30443bc876119ce816001600160a01b031660009081526020819052604090205490565b6040516001600160e01b031960e085901b1681526001600160a01b0390921660048301526024820152604401600060405180830381600087803b158015611a1457600080fd5b505af1925050508015611a25575060015b506011546001600160a01b031663e30443bc86611a57816001600160a01b031660009081526020819052604090205490565b6040516001600160e01b031960e085901b1681526001600160a01b0390921660048301526024820152604401600060405180830381600087803b158015611a9d57600080fd5b505af1925050508015611aae575060015b50600d54600160a01b900460ff16611b85576012546011546040516001624d3b8760e01b03198152600481018390526001600160a01b039091169063ffb2c479906024016060604051808303816000875af1925050508015611b2d575060408051601f3d908101601f19168201909252611b2a9181019061225f565b60015b15611b835760408051848152602081018490529081018290526060810185905232906001907fc864333d6121033635ab41b29ae52f10a22cf4438c3e4f1c4c68518feb2f8a989060800160405180910390a35050505b505b505050505050565b600580546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b6040805160028082526060820183526000926020830190803683375050600c54604080516315ab88c960e31b815290519394506001600160a01b039091169263ad5c4648925060048083019260209291908290030181865afa158015611c49573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611c6d9190612395565b81600081518110611c8057611c8061237f565b60200260200101906001600160a01b031690816001600160a01b0316815250507f000000000000000000000000dac17f958d2ee523a2206206994597c13d831ec781600181518110611cd457611cd461237f565b6001600160a01b039283166020918202929092010152600c5460405163b6f9de9560e01b815291169063b6f9de95908490611d1a9060009086903090429060040161247e565b6000604051808303818588803b158015611d3357600080fd5b505af1158015611d47573d6000803e3d6000fd5b50506040516370a0823160e01b8152306004820152600093507f000000000000000000000000dac17f958d2ee523a2206206994597c13d831ec76001600160a01b031692506370a082319150602401602060405180830381865afa158015611db3573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611dd79190612200565b60115460405163a9059cbb60e01b81526001600160a01b039182166004820152602481018390529192506000917f000000000000000000000000dac17f958d2ee523a2206206994597c13d831ec79091169063a9059cbb906044016020604051808303816000875af1158015611e51573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611e759190612242565b905080156112e557601154604051633243c79160e01b8152600481018490526001600160a01b0390911690633243c79190602401600060405180830381600087803b158015611ec357600080fd5b505af1158015611ed7573d6000803e3d6000fd5b505050507fb0cc2628d6d644cf6be9d8110e142297ac910d6d8026d795a99f272fd9ad60b182604051611f0c91815260200190565b60405180910390a150505050565b6001600160a01b038316611f405760405162461bcd60e51b8152600401610d72906122f7565b6001600160a01b038216611f665760405162461bcd60e51b8152600401610d729061233c565b6001600160a01b03831660009081526020819052604090205481811015611fde5760405162461bcd60e51b815260206004820152602660248201527f45524332303a207472616e7366657220616d6f756e7420657863656564732062604482015265616c616e636560d01b6064820152608401610d72565b6001600160a01b03848116600081815260208181526040808320878703905593871680835291849020805487019055925185815290927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef910160405180910390a36112e5565b600060208083528351808285015260005b8181101561207157858101830151858201604001528201612055565b506000604082860101526040601f19601f8301168501019250505092915050565b6001600160a01b0381168114610b0c57600080fd5b600080604083850312156120ba57600080fd5b82356120c581612092565b946020939093013593505050565b6000806000606084860312156120e857600080fd5b83356120f381612092565b9250602084013561210381612092565b929592945050506040919091013590565b60006020828403121561212657600080fd5b5035919050565b60006020828403121561213f57600080fd5b813561214a81612092565b9392505050565b8015158114610b0c57600080fd5b6000806040838503121561217257600080fd5b823561217d81612092565b9150602083013561218d81612151565b809150509250929050565b600080604083850312156121ab57600080fd5b82356121b681612092565b9150602083013561218d81612092565b600181811c908216806121da57607f821691505b6020821081036121fa57634e487b7160e01b600052602260045260246000fd5b50919050565b60006020828403121561221257600080fd5b5051919050565b634e487b7160e01b600052601160045260246000fd5b808201808211156108b1576108b1612219565b60006020828403121561225457600080fd5b815161214a81612151565b60008060006060848603121561227457600080fd5b8351925060208401519150604084015190509250925092565b600080600080600080600080610100898b0312156122aa57600080fd5b88516122b581612092565b809850506020890151965060408901519550606089015194506080890151935060a0890151925060c0890151915060e089015190509295985092959890939650565b60208082526025908201527f45524332303a207472616e736665722066726f6d20746865207a65726f206164604082015264647265737360d81b606082015260800190565b60208082526023908201527f45524332303a207472616e7366657220746f20746865207a65726f206164647260408201526265737360e81b606082015260800190565b634e487b7160e01b600052603260045260246000fd5b6000602082840312156123a757600080fd5b815161214a81612092565b600081518084526020808501945080840160005b838110156123eb5781516001600160a01b0316875295820195908201906001016123c6565b509495945050505050565b85815284602082015260a06040820152600061241560a08301866123b2565b6001600160a01b0394909416606083015250608001529392505050565b818103818111156108b1576108b1612219565b80820281158282048414176108b1576108b1612219565b60008261247957634e487b7160e01b600052601260045260246000fd5b500490565b84815260806020820152600061249760808301866123b2565b6001600160a01b0394909416604083015250606001529291505056fea26469706673582212203203696d655556c243e2dce6c34ec69181c1ff655294a9dc2afc4c9b3ec7197364736f6c63430008110033
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.