More Info
Private Name Tags
ContractCreator
TokenTracker
Latest 25 from a total of 99 transactions
Transaction Hash |
Method
|
Block
|
From
|
To
|
|||||
---|---|---|---|---|---|---|---|---|---|
Transfer Ownersh... | 20427766 | 43 days ago | IN | 0 ETH | 0.00041544 | ||||
Approve | 20393671 | 47 days ago | IN | 0 ETH | 0.00007756 | ||||
Swipe | 20393604 | 47 days ago | IN | 0 ETH | 0.00005761 | ||||
Approve | 20393589 | 47 days ago | IN | 0 ETH | 0.00008926 | ||||
Transfer | 20393579 | 47 days ago | IN | 0 ETH | 0.00046886 | ||||
Transfer | 20393563 | 47 days ago | IN | 0 ETH | 0.00041774 | ||||
Transfer | 20393556 | 47 days ago | IN | 0 ETH | 0.0003877 | ||||
Transfer | 20393551 | 47 days ago | IN | 0 ETH | 0.00041407 | ||||
Transfer | 20393546 | 47 days ago | IN | 0 ETH | 0.00041375 | ||||
Transfer | 20393539 | 47 days ago | IN | 0 ETH | 0.00083349 | ||||
Transfer | 20393536 | 47 days ago | IN | 0 ETH | 0.00084966 | ||||
Transfer | 20393532 | 47 days ago | IN | 0 ETH | 0.00072877 | ||||
Transfer | 20393530 | 47 days ago | IN | 0 ETH | 0.00083875 | ||||
Transfer | 20393525 | 47 days ago | IN | 0 ETH | 0.0012375 | ||||
Approve | 20393286 | 47 days ago | IN | 0 ETH | 0.00012541 | ||||
Approve | 20392945 | 47 days ago | IN | 0 ETH | 0.00004329 | ||||
Approve | 20392929 | 47 days ago | IN | 0 ETH | 0.00013816 | ||||
Approve | 20392910 | 47 days ago | IN | 0 ETH | 0.00009077 | ||||
Approve | 20392910 | 47 days ago | IN | 0 ETH | 0.00013006 | ||||
Approve | 20392894 | 47 days ago | IN | 0 ETH | 0.00012731 | ||||
Approve | 20392859 | 47 days ago | IN | 0 ETH | 0.00017634 | ||||
Transfer | 20392857 | 47 days ago | IN | 0 ETH | 0.00225797 | ||||
Approve | 20392810 | 47 days ago | IN | 0 ETH | 0.00014024 | ||||
Approve | 20392799 | 47 days ago | IN | 0 ETH | 0.00032584 | ||||
Approve | 20392799 | 47 days ago | IN | 0 ETH | 0.00032584 |
Latest 25 internal transactions (View All)
Advanced mode:
Parent Transaction Hash | Block | From | To | |||
---|---|---|---|---|---|---|
20393604 | 47 days ago | 0.35750861 ETH | ||||
20393525 | 47 days ago | 0.00072986 ETH | ||||
20393525 | 47 days ago | 0.00912331 ETH | ||||
20393525 | 47 days ago | 0.01915895 ETH | ||||
20392814 | 47 days ago | 0.00077943 ETH | ||||
20392814 | 47 days ago | 0.00974293 ETH | ||||
20392814 | 47 days ago | 0.02046016 ETH | ||||
20392797 | 47 days ago | 0.0015963 ETH | ||||
20392797 | 47 days ago | 0.01995386 ETH | ||||
20392797 | 47 days ago | 0.04190311 ETH | ||||
20392796 | 47 days ago | 0.03340576 ETH | ||||
20392796 | 47 days ago | 0.0417572 ETH | ||||
20392775 | 47 days ago | 0.04381237 ETH | ||||
20392775 | 47 days ago | 0.05476547 ETH | ||||
20392767 | 47 days ago | 0.01822033 ETH | ||||
20392767 | 47 days ago | 0.02277541 ETH | ||||
20392766 | 47 days ago | 0.01822033 ETH | ||||
20392766 | 47 days ago | 0.02277541 ETH | ||||
20392764 | 47 days ago | 0.01010614 ETH | ||||
20392764 | 47 days ago | 0.01263267 ETH | ||||
20392761 | 47 days ago | 0.02127195 ETH | ||||
20392761 | 47 days ago | 0.02658994 ETH | ||||
20392750 | 47 days ago | 0.06345439 ETH | ||||
20392750 | 47 days ago | 0.07931799 ETH | ||||
20392743 | 47 days ago | 0.02108145 ETH |
Loading...
Loading
Contract Name:
TRUMPO
Compiler Version
v0.8.19+commit.7dd6d404
Optimization Enabled:
Yes with 200 runs
Other Settings:
default evmVersion
Contract Source Code (Solidity Standard Json-Input format)
//SPDX-License-Identifier: UNLICENSED pragma solidity ^0.8.19; //solhint-disable import "@openzeppelin/contracts/interfaces/IERC20.sol"; import "./DividendPayingToken.sol"; import "@openzeppelin/contracts/utils/math/SafeMath.sol"; import "./IterableMapping.sol"; import "@uniswap/v2-core/contracts/interfaces/IUniswapV2Factory.sol"; import "@uniswap/v2-periphery/contracts/interfaces/IUniswapV2Router02.sol"; import "@uniswap/v2-core/contracts/interfaces/IUniswapV2Pair.sol"; import "@openzeppelin/contracts/access/Ownable.sol"; abstract contract ERC20Detailed is IERC20 { string private _name; string private _symbol; uint8 private _decimals; constructor(string memory name_, string memory symbol_, uint8 decimals_) { _name = name_; _symbol = symbol_; _decimals = decimals_; } function name() public view returns (string memory) { return _name; } function symbol() public view returns (string memory) { return _symbol; } function decimals() public view returns (uint8) { return _decimals; } } contract TRUMPO is ERC20Detailed, Ownable { struct Fee { uint256 liquidity; uint256 treasury; uint256 firepit; uint256 reward; } using SafeMath for uint256; event LogRebase(uint256 indexed epoch, uint256 totalSupply); event NewNextRebase(uint256 nextRebase); event NewRewardYield(uint256 _rewardYield, uint256 _rewardYieldDenominator); event NewAutoRebase(bool _autoRebase); event NewMaxWalletEnable(bool _isMaxWalletEnabled); event NewRebaseFrequency(uint256 _rebaseFrequency); event DustSwiped(address _receiver, uint256 balance); event ManualRebase(); event NewLPSet(address _address); event InitialDistributionFinished(); event AddressExemptedFromTransferLock(address _addr); event AddressExemptedFromFee(address _addr); event NewSwapBackSet(bool _enabled, uint256 _num, uint256 _denom); event NewTargetLiquiditySet(uint256 target, uint256 accuracy); event NewFeeReceiversSet(address _autoLiquidityReceiver, address _treasuryReceiver); event NewBuyFeesSet( uint256 _liquidityFee, uint256 _treasuryFee, uint256 _firepitFee, uint256 _rewardFee, uint256 _feeDenominator ); event NewSellFeesSet( uint256 _liquidityFee, uint256 _treasuryFee, uint256 _firepitFee, uint256 _rewardFee, uint256 _feeDenominator ); IUniswapV2Pair public pairContract; IUniswapV2Router02 public immutable router; TokenDividendTracker public dividendTracker; bool public initialDistributionFinished; mapping(address => bool) internal allowTransfer; mapping(address => bool) public _isFeeExempt; mapping(address => bool) public _isLimitExempt; uint256 private constant DECIMALS = 18; uint256 private constant MAX_UINT256 = type(uint256).max; uint256 private constant INITIAL_FRAGMENTS_SUPPLY = 47000000 * 10 ** DECIMALS; Fee public buyFee; Fee public sellFee; uint256 private totalBuyFee; uint256 private totalSellFee; uint256 public feeDenominator = 1000; uint256 public rewardYield = 2000000000; uint256 public rewardYieldDenominator = 100000000000; uint256 public rebaseFrequency = 7 days; uint256 public nextRebase = block.timestamp + rebaseFrequency; bool public autoRebase = false; address internal constant DEAD = 0x000000000000000000000000000000000000dEaD; address internal constant ZERO = 0x0000000000000000000000000000000000000000; address public constant MAGA = address(0x576e2BeD8F7b46D34016198911Cdf9886f78bea7); //MAGA address public autoLiquidityReceiver; address public treasuryReceiver; uint256 private targetLiquidity = 50; uint256 private targetLiquidityDenominator = 100; bool public swapEnabled = true; bool internal inSwap; uint256 private constant TOTAL_GONS = MAX_UINT256 - (MAX_UINT256 % INITIAL_FRAGMENTS_SUPPLY); uint256 private constant MAX_SUPPLY = 1000000000000 * 10 ** DECIMALS; uint256 private gonSwapThreshold = TOTAL_GONS / 5000; uint256 private maxWalletDivisor = 50; bool public isMaxWalletEnabled = false; uint256 public gasForProcessing = 300000; uint256 private _totalSupply; uint256 private _gonsPerFragment; mapping(address => uint256) private _gonBalances; mapping(address => mapping(address => uint256)) private _allowedFragments; mapping(address => bool) public automatedMarketMakerPairs; event SetAutomatedMarketMakerPair(address indexed pair, bool indexed value); 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 ); modifier swapping() { inSwap = true; _; inSwap = false; } modifier initialDistributionLock() { require(initialDistributionFinished || allowTransfer[tx.origin], "Initial distribution lock"); _; } modifier validRecipient(address to) { require(to != address(0x0), "Zero address"); _; } constructor( address _router, address _autoLiquidityReceiver, address _treasuryReceiver ) ERC20Detailed("Trumponomics", "TRUMPO", uint8(DECIMALS)) { router = IUniswapV2Router02(_router); address _pair = IUniswapV2Factory(router.factory()).createPair(router.WETH(), address(this)); buyFee = Fee(0, 0, 10, 40); sellFee = Fee(0, 0, 10, 40); totalSellFee = 50; totalBuyFee = 50; autoLiquidityReceiver = _autoLiquidityReceiver; treasuryReceiver = _treasuryReceiver; _allowedFragments[address(this)][address(_router)] = type(uint256).max; pairContract = IUniswapV2Pair(_pair); dividendTracker = new TokenDividendTracker(); _setAutomatedMarketMakerPair(_pair, true); _totalSupply = INITIAL_FRAGMENTS_SUPPLY; _gonBalances[treasuryReceiver] = TOTAL_GONS; _gonsPerFragment = TOTAL_GONS.div(_totalSupply); initialDistributionFinished = false; _isFeeExempt[treasuryReceiver] = true; _isFeeExempt[DEAD] = true; _isFeeExempt[address(this)] = true; allowTransfer[msg.sender] = true; dividendTracker.excludeFromDividends(address(dividendTracker)); dividendTracker.excludeFromDividends(address(this)); dividendTracker.excludeFromDividends(owner()); dividendTracker.excludeFromDividends(address(router)); emit Transfer(address(0x0), treasuryReceiver, _totalSupply); } function setAutomatedMarketMakerPair(address pair, bool value) public onlyOwner { _setAutomatedMarketMakerPair(pair, value); } function _setAutomatedMarketMakerPair(address pair, bool value) private { automatedMarketMakerPairs[pair] = value; if (value) { dividendTracker.excludeFromDividends(pair); } emit SetAutomatedMarketMakerPair(pair, value); } function updateGasForProcessing(uint256 newValue) public onlyOwner { require( newValue >= 200000 && newValue <= 500000, "Token: gasForProcessing must be between 200,000 and 500,000" ); require(newValue != gasForProcessing, "Token: Cannot update gasForProcessing to same value"); emit GasForProcessingUpdated(newValue, gasForProcessing); gasForProcessing = newValue; } function setNextRebase(uint256 _nextRebase) external onlyOwner { nextRebase = _nextRebase; emit NewNextRebase(_nextRebase); } function setRewardYield(uint256 _rewardYield, uint256 _rewardYieldDenominator) external onlyOwner { rewardYield = _rewardYield; rewardYieldDenominator = _rewardYieldDenominator; emit NewRewardYield(_rewardYield, _rewardYieldDenominator); } function setLimitExempt(address user, bool status) external onlyOwner { _isLimitExempt[user] = status; } function setAutoRebase(bool _autoRebase) external onlyOwner { autoRebase = _autoRebase; emit NewAutoRebase(_autoRebase); } function setRebaseFrequency(uint256 _rebaseFrequency) external onlyOwner { rebaseFrequency = _rebaseFrequency; emit NewRebaseFrequency(_rebaseFrequency); } function shouldRebase() public view returns (bool) { return nextRebase <= block.timestamp; } function swipe(address _receiver) external onlyOwner { uint256 balance = address(this).balance; payable(_receiver).transfer(balance); emit DustSwiped(_receiver, balance); } function coreRebase(uint256 epoch, int256 supplyDelta) private returns (uint256) { if (supplyDelta == 0) { emit LogRebase(epoch, _totalSupply); return _totalSupply; } if (supplyDelta < 0) { _totalSupply = _totalSupply.sub(uint256(-supplyDelta)); } else { _totalSupply = _totalSupply.add(uint256(supplyDelta)); } if (_totalSupply > MAX_SUPPLY) { _totalSupply = MAX_SUPPLY; } _gonsPerFragment = TOTAL_GONS.div(_totalSupply); pairContract.sync(); emit LogRebase(epoch, _totalSupply); return _totalSupply; } function _rebase() private { if (!inSwap) { uint256 epoch = block.timestamp; uint256 circulatingSupply = getCirculatingSupply(); int256 supplyDelta = int256(circulatingSupply.mul(rewardYield).div(rewardYieldDenominator)); coreRebase(epoch, supplyDelta); nextRebase = epoch + rebaseFrequency; } } function rebase() external onlyOwner { require(!inSwap && shouldRebase(), "Try again"); _rebase(); emit ManualRebase(); } function totalSupply() external view override returns (uint256) { return _totalSupply; } function updateClaimWait(uint256 claimWait) external onlyOwner { dividendTracker.updateClaimWait(claimWait); } 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 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 getLastProcessedIndex() external view returns (uint256) { return dividendTracker.getLastProcessedIndex(); } function getNumberOfDividendTokenHolders() external view returns (uint256) { return dividendTracker.getNumberOfTokenHolders(); } 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 transfer( address to, uint256 value ) external override validRecipient(to) initialDistributionLock returns (bool) { _transferFrom(msg.sender, to, value); return true; } function setLP(address _address) external onlyOwner { pairContract = IUniswapV2Pair(_address); emit NewLPSet(_address); } function setMaxWallet(uint256 divisor) external onlyOwner { maxWalletDivisor = divisor; } function allowance(address owner_, address spender) public view override returns (uint256) { return _allowedFragments[owner_][spender]; } function balanceOf(address who) public view override returns (uint256) { return _gonBalances[who].div(_gonsPerFragment); } function scaledBalanceOf(address who) external view returns (uint256) { return _gonBalances[who]; } function _basicTransfer(address from, address to, uint256 amount) internal returns (bool) { uint256 gonAmount = amount.mul(_gonsPerFragment); _gonBalances[from] = _gonBalances[from].sub(gonAmount); _gonBalances[to] = _gonBalances[to].add(gonAmount); return true; } function _transferFrom(address sender, address recipient, uint256 amount) internal returns (bool) { if (inSwap) { return _basicTransfer(sender, recipient, amount); } uint256 gonAmount = amount.mul(_gonsPerFragment); if (shouldSwapBack()) { swapBack(); } if (recipient != address(pairContract) && !_isLimitExempt[recipient] && isMaxWalletEnabled) { uint256 max = getMaxWallet(); require(balanceOf(recipient) + amount <= max, "Balance exceeds max wallet limit"); } _gonBalances[sender] = _gonBalances[sender].sub(gonAmount); uint256 gonAmountReceived = shouldTakeFee(sender, recipient) ? takeFee(sender, recipient, gonAmount) : gonAmount; _gonBalances[recipient] = _gonBalances[recipient].add(gonAmountReceived); emit Transfer(sender, recipient, gonAmountReceived.div(_gonsPerFragment)); if (shouldRebase() && autoRebase) { _rebase(); } try dividendTracker.setBalance(payable(sender), balanceOf(sender)) {} catch {} try dividendTracker.setBalance(payable(recipient), balanceOf(recipient)) {} catch {} if (!inSwap) { uint256 gas = gasForProcessing; try dividendTracker.process(gas) returns (uint256 iterations, uint256 claims, uint256 lastProcessedIndex) { emit ProcessedDividendTracker(iterations, claims, lastProcessedIndex, true, gas, tx.origin); } catch {} } return true; } function transferFrom(address from, address to, uint256 value) external override validRecipient(to) returns (bool) { if (_allowedFragments[from][msg.sender] != ~uint256(0)) { _allowedFragments[from][msg.sender] = _allowedFragments[from][msg.sender].sub( value, "Insufficient Allowance" ); } _transferFrom(from, to, value); return true; } function swapBack() internal swapping { uint256 dynamicLiquidityFee = isOverLiquified(targetLiquidity, targetLiquidityDenominator) ? 0 : buyFee.liquidity + sellFee.liquidity; uint256 contractTokenBalance = _gonBalances[address(this)].div(_gonsPerFragment); uint256 amountToLiquify = contractTokenBalance.mul(dynamicLiquidityFee).div(totalBuyFee + totalSellFee).div(2); uint256 amountToSwap = contractTokenBalance.sub(amountToLiquify); address[] memory path = new address[](2); path[0] = address(this); path[1] = router.WETH(); uint256 balanceBefore = address(this).balance; router.swapExactTokensForETHSupportingFeeOnTransferTokens( amountToSwap, 0, path, address(this), block.timestamp + 100 ); uint256 amountETH = address(this).balance.sub(balanceBefore); uint256 totalETHFee = (totalBuyFee + totalSellFee).sub(dynamicLiquidityFee.div(2)); uint256 amountETHLiquidity = amountETH.mul(dynamicLiquidityFee).div(totalETHFee).div(2); uint256 amountETHTreasury = amountETH.mul(buyFee.treasury + sellFee.treasury).div(totalETHFee); uint256 amountETHReward = amountETH.mul(buyFee.reward + sellFee.reward).div(totalETHFee); if (amountETHTreasury > 0) { (bool success, ) = treasuryReceiver.call{ value: amountETHTreasury }(""); require(success, "ETH transfer failed"); } if (amountETHReward > 0) { path = new address[](2); path[0] = router.WETH(); path[1] = MAGA; // make the swap router.swapExactETHForTokensSupportingFeeOnTransferTokens{ value: amountETHReward }( 0, path, address(this), block.timestamp ); uint256 dividends = IERC20(MAGA).balanceOf(address(this)); bool success = IERC20(MAGA).transfer(address(dividendTracker), dividends); if (success) { dividendTracker.distributeETHDividends(dividends); emit SendDividends(dividends); } } if (amountToLiquify > 0) { router.addLiquidityETH{ value: amountETHLiquidity }( address(this), amountToLiquify, 0, 0, autoLiquidityReceiver, block.timestamp + 100 ); } } function takeFee(address sender, address recipient, uint256 gonAmount) internal returns (uint256) { uint256 _totalFee; uint256 _firePitFee; if (automatedMarketMakerPairs[sender]) { _totalFee = totalBuyFee; _firePitFee = buyFee.firepit; } else if (automatedMarketMakerPairs[recipient]) { _totalFee = totalSellFee; _firePitFee = sellFee.firepit; } if (_totalFee > 0) { uint256 feeAmount = gonAmount.mul(_totalFee).div(feeDenominator); uint256 firePitAmount = gonAmount.mul(_firePitFee).div(feeDenominator); feeAmount -= firePitAmount; _gonBalances[address(this)] = _gonBalances[address(this)].add(feeAmount); emit Transfer(sender, address(this), feeAmount.div(_gonsPerFragment)); _gonBalances[DEAD] = _gonBalances[DEAD].add(firePitAmount); emit Transfer(sender, DEAD, firePitAmount.div(_gonsPerFragment)); return gonAmount.sub(feeAmount).sub(firePitAmount); } return gonAmount; } function decreaseAllowance( address spender, uint256 subtractedValue ) external initialDistributionLock returns (bool) { uint256 oldValue = _allowedFragments[msg.sender][spender]; if (subtractedValue >= oldValue) { _allowedFragments[msg.sender][spender] = 0; } else { _allowedFragments[msg.sender][spender] = oldValue.sub(subtractedValue); } emit Approval(msg.sender, spender, _allowedFragments[msg.sender][spender]); return true; } function increaseAllowance(address spender, uint256 addedValue) external initialDistributionLock returns (bool) { _allowedFragments[msg.sender][spender] = _allowedFragments[msg.sender][spender].add(addedValue); emit Approval(msg.sender, spender, _allowedFragments[msg.sender][spender]); return true; } function approve( address spender, uint256 value ) external override validRecipient(spender) initialDistributionLock returns (bool) { _allowedFragments[msg.sender][spender] = value; emit Approval(msg.sender, spender, value); return true; } function checkFeeExempt(address _addr) external view returns (bool) { return _isFeeExempt[_addr]; } function setInitialDistributionFinished() external onlyOwner { initialDistributionFinished = true; emit InitialDistributionFinished(); } function enableTransfer(address _addr) external onlyOwner { allowTransfer[_addr] = true; emit AddressExemptedFromTransferLock(_addr); } function setFeeExempt(address _addr) external onlyOwner { _isFeeExempt[_addr] = true; emit AddressExemptedFromFee(_addr); } function shouldTakeFee(address from, address to) internal view returns (bool) { return ((address(pairContract) == from || address(pairContract) == to) && (!_isFeeExempt[from] && !_isFeeExempt[to])); } function setSwapBackSettings(bool _enabled, uint256 _num, uint256 _denom) external onlyOwner { swapEnabled = _enabled; gonSwapThreshold = TOTAL_GONS.div(_denom).mul(_num); emit NewSwapBackSet(_enabled, _num, _denom); } function shouldSwapBack() internal view returns (bool) { return msg.sender != address(pairContract) && !inSwap && swapEnabled && _gonBalances[address(this)] >= gonSwapThreshold; } function setMaxWalletEnable(bool _isMaxWalletEnabled) external onlyOwner { isMaxWalletEnabled = _isMaxWalletEnabled; emit NewMaxWalletEnable(_isMaxWalletEnabled); } function getCirculatingSupply() public view returns (uint256) { return (TOTAL_GONS.sub(_gonBalances[DEAD]).sub(_gonBalances[ZERO])).div(_gonsPerFragment); } function setTargetLiquidity(uint256 target, uint256 accuracy) external onlyOwner { targetLiquidity = target; targetLiquidityDenominator = accuracy; emit NewTargetLiquiditySet(target, accuracy); } function isNotInSwap() external view returns (bool) { return !inSwap; } function checkSwapThreshold() external view returns (uint256) { return gonSwapThreshold.div(_gonsPerFragment); } function getMaxWallet() public view returns (uint256 amount) { amount = getCirculatingSupply() / maxWalletDivisor; } function manualSync() external { pairContract.sync(); } function setFeeReceivers(address _autoLiquidityReceiver, address _treasuryReceiver) external onlyOwner { autoLiquidityReceiver = _autoLiquidityReceiver; treasuryReceiver = _treasuryReceiver; emit NewFeeReceiversSet(_autoLiquidityReceiver, _treasuryReceiver); } function setBuyFees( uint256 _liquidityFee, uint256 _treasuryFee, uint256 _firepitFee, uint256 _rewardFee, uint256 _feeDenominator ) external onlyOwner { buyFee = Fee(_liquidityFee, _treasuryFee, _firepitFee, _rewardFee); feeDenominator = _feeDenominator; totalBuyFee = _liquidityFee + _treasuryFee + _firepitFee + _rewardFee; emit NewBuyFeesSet(_liquidityFee, _treasuryFee, _firepitFee, _rewardFee, _feeDenominator); } function setSellFees( uint256 _liquidityFee, uint256 _treasuryFee, uint256 _firepitFee, uint256 _rewardFee, uint256 _feeDenominator ) external onlyOwner { sellFee = Fee(_liquidityFee, _treasuryFee, _firepitFee, _rewardFee); feeDenominator = _feeDenominator; totalSellFee = _liquidityFee + _treasuryFee + _firepitFee + _rewardFee; emit NewSellFeesSet(_liquidityFee, _treasuryFee, _firepitFee, _rewardFee, _feeDenominator); } function getLiquidityBacking(uint256 accuracy) public view returns (uint256) { uint256 liquidityBalance = _gonBalances[address(pairContract)].div(_gonsPerFragment); return accuracy.mul(liquidityBalance.mul(2)).div(getCirculatingSupply()); } function isOverLiquified(uint256 target, uint256 accuracy) public view returns (bool) { return getLiquidityBacking(accuracy) > target; } receive() external payable { this; } } contract TokenDividendTracker 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 immutable 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() DividendPayingToken("Token_Dividend_Tracker", "Token_Dividend_Tracker") { claimWait = 600; minimumTokenBalanceForDividends = 20000 * (10 ** 18); //must hold 100 tokens } function _transfer(address, address, uint256) internal pure override { require(false, "Token_Dividend_Tracker: No transfers allowed"); } function withdrawDividend() public pure override { require( false, "Token_Dividend_Tracker: withdrawDividend disabled. Use the 'claim' function on the main Token contract." ); } 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 >= 1800 && newClaimWait <= 86400, "Token_Dividend_Tracker: claimWait must be updated to between 30mins and 24 hours" ); require(newClaimWait != claimWait, "Token_Dividend_Tracker: Cannot update claimWait to same value"); emit ClaimWaitUpdated(newClaimWait, claimWait); claimWait = newClaimWait; } function getLastProcessedIndex() external view returns (uint256) { return lastProcessedIndex; } function getNumberOfTokenHolders() external view returns (uint256) { return tokenHoldersMap.keys.length; } 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; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.9.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. Can only be called by the current owner. * * NOTE: Renouncing ownership will leave the contract without an owner, * thereby disabling 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 v4.4.1 (interfaces/IERC20.sol) pragma solidity ^0.8.0; import "../token/ERC20/IERC20.sol";
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.9.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]. * * The default value of {decimals} is 18. To change this, you should override * this function so it returns a different value. * * 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}. * * 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 default value returned by this function, unless * it's 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.9.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; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.9.0) (utils/math/SafeMath.sol) pragma solidity ^0.8.0; // CAUTION // This version of SafeMath should only be used with Solidity 0.8 or later, // because it relies on the compiler's built in overflow checks. /** * @dev Wrappers over Solidity's arithmetic operations. * * NOTE: `SafeMath` is generally not needed starting with Solidity 0.8, since the compiler * now has built in overflow checking. */ library SafeMath { /** * @dev Returns the addition of two unsigned integers, with an overflow flag. * * _Available since v3.4._ */ function tryAdd(uint256 a, uint256 b) internal pure returns (bool, uint256) { unchecked { uint256 c = a + b; if (c < a) return (false, 0); return (true, c); } } /** * @dev Returns the subtraction of two unsigned integers, with an overflow flag. * * _Available since v3.4._ */ function trySub(uint256 a, uint256 b) internal pure returns (bool, uint256) { unchecked { if (b > a) return (false, 0); return (true, a - b); } } /** * @dev Returns the multiplication of two unsigned integers, with an overflow flag. * * _Available since v3.4._ */ function tryMul(uint256 a, uint256 b) internal pure returns (bool, uint256) { unchecked { // Gas optimization: this is cheaper than requiring 'a' not being zero, but the // benefit is lost if 'b' is also tested. // See: https://github.com/OpenZeppelin/openzeppelin-contracts/pull/522 if (a == 0) return (true, 0); uint256 c = a * b; if (c / a != b) return (false, 0); return (true, c); } } /** * @dev Returns the division of two unsigned integers, with a division by zero flag. * * _Available since v3.4._ */ function tryDiv(uint256 a, uint256 b) internal pure returns (bool, uint256) { unchecked { if (b == 0) return (false, 0); return (true, a / b); } } /** * @dev Returns the remainder of dividing two unsigned integers, with a division by zero flag. * * _Available since v3.4._ */ function tryMod(uint256 a, uint256 b) internal pure returns (bool, uint256) { unchecked { if (b == 0) return (false, 0); return (true, a % b); } } /** * @dev Returns the addition of two unsigned integers, reverting on * overflow. * * Counterpart to Solidity's `+` operator. * * Requirements: * * - Addition cannot overflow. */ function add(uint256 a, uint256 b) internal pure returns (uint256) { return a + b; } /** * @dev Returns the subtraction of two unsigned integers, reverting on * overflow (when the result is negative). * * Counterpart to Solidity's `-` operator. * * Requirements: * * - Subtraction cannot overflow. */ function sub(uint256 a, uint256 b) internal pure returns (uint256) { return a - b; } /** * @dev Returns the multiplication of two unsigned integers, reverting on * overflow. * * Counterpart to Solidity's `*` operator. * * Requirements: * * - Multiplication cannot overflow. */ function mul(uint256 a, uint256 b) internal pure returns (uint256) { return a * b; } /** * @dev Returns the integer division of two unsigned integers, reverting on * division by zero. The result is rounded towards zero. * * Counterpart to Solidity's `/` operator. * * Requirements: * * - The divisor cannot be zero. */ function div(uint256 a, uint256 b) internal pure returns (uint256) { return a / b; } /** * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo), * reverting when dividing by zero. * * Counterpart to Solidity's `%` operator. This function uses a `revert` * opcode (which leaves remaining gas untouched) while Solidity uses an * invalid opcode to revert (consuming all remaining gas). * * Requirements: * * - The divisor cannot be zero. */ function mod(uint256 a, uint256 b) internal pure returns (uint256) { return a % b; } /** * @dev Returns the subtraction of two unsigned integers, reverting with custom message on * overflow (when the result is negative). * * CAUTION: This function is deprecated because it requires allocating memory for the error * message unnecessarily. For custom revert reasons use {trySub}. * * Counterpart to Solidity's `-` operator. * * Requirements: * * - Subtraction cannot overflow. */ function sub(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) { unchecked { require(b <= a, errorMessage); return a - b; } } /** * @dev Returns the integer division of two unsigned integers, reverting with custom message on * division by zero. The result is rounded towards zero. * * Counterpart to Solidity's `/` operator. Note: this function uses a * `revert` opcode (which leaves remaining gas untouched) while Solidity * uses an invalid opcode to revert (consuming all remaining gas). * * Requirements: * * - The divisor cannot be zero. */ function div(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) { unchecked { require(b > 0, errorMessage); return a / b; } } /** * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo), * reverting with custom message when dividing by zero. * * CAUTION: This function is deprecated because it requires allocating memory for the error * message unnecessarily. For custom revert reasons use {tryMod}. * * Counterpart to Solidity's `%` operator. This function uses a `revert` * opcode (which leaves remaining gas untouched) while Solidity uses an * invalid opcode to revert (consuming all remaining gas). * * Requirements: * * - The divisor cannot be zero. */ function mod(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) { unchecked { require(b > 0, errorMessage); return a % b; } } }
pragma solidity >=0.5.0; interface IUniswapV2Factory { event PairCreated(address indexed token0, address indexed token1, address pair, uint); function feeTo() external view returns (address); function feeToSetter() external view returns (address); function getPair(address tokenA, address tokenB) external view returns (address pair); function allPairs(uint) external view returns (address pair); function allPairsLength() external view returns (uint); function createPair(address tokenA, address tokenB) external returns (address pair); function setFeeTo(address) external; function setFeeToSetter(address) external; }
pragma solidity >=0.5.0; interface IUniswapV2Pair { event Approval(address indexed owner, address indexed spender, uint value); event Transfer(address indexed from, address indexed to, uint value); function name() external pure returns (string memory); function symbol() external pure returns (string memory); function decimals() external pure returns (uint8); function totalSupply() external view returns (uint); function balanceOf(address owner) external view returns (uint); function allowance(address owner, address spender) external view returns (uint); function approve(address spender, uint value) external returns (bool); function transfer(address to, uint value) external returns (bool); function transferFrom(address from, address to, uint value) external returns (bool); function DOMAIN_SEPARATOR() external view returns (bytes32); function PERMIT_TYPEHASH() external pure returns (bytes32); function nonces(address owner) external view returns (uint); function permit(address owner, address spender, uint value, uint deadline, uint8 v, bytes32 r, bytes32 s) external; event Mint(address indexed sender, uint amount0, uint amount1); event Burn(address indexed sender, uint amount0, uint amount1, address indexed to); event Swap( address indexed sender, uint amount0In, uint amount1In, uint amount0Out, uint amount1Out, address indexed to ); event Sync(uint112 reserve0, uint112 reserve1); function MINIMUM_LIQUIDITY() external pure returns (uint); function factory() external view returns (address); function token0() external view returns (address); function token1() external view returns (address); function getReserves() external view returns (uint112 reserve0, uint112 reserve1, uint32 blockTimestampLast); function price0CumulativeLast() external view returns (uint); function price1CumulativeLast() external view returns (uint); function kLast() external view returns (uint); function mint(address to) external returns (uint liquidity); function burn(address to) external returns (uint amount0, uint amount1); function swap(uint amount0Out, uint amount1Out, address to, bytes calldata data) external; function skim(address to) external; function sync() external; function initialize(address, address) external; }
pragma solidity >=0.6.2; interface IUniswapV2Router01 { function factory() external pure returns (address); function WETH() external pure returns (address); function addLiquidity( address tokenA, address tokenB, uint amountADesired, uint amountBDesired, uint amountAMin, uint amountBMin, address to, uint deadline ) external returns (uint amountA, uint amountB, uint liquidity); function addLiquidityETH( address token, uint amountTokenDesired, uint amountTokenMin, uint amountETHMin, address to, uint deadline ) external payable returns (uint amountToken, uint amountETH, uint liquidity); function removeLiquidity( address tokenA, address tokenB, uint liquidity, uint amountAMin, uint amountBMin, address to, uint deadline ) external returns (uint amountA, uint amountB); function removeLiquidityETH( address token, uint liquidity, uint amountTokenMin, uint amountETHMin, address to, uint deadline ) external returns (uint amountToken, uint amountETH); function removeLiquidityWithPermit( address tokenA, address tokenB, uint liquidity, uint amountAMin, uint amountBMin, address to, uint deadline, bool approveMax, uint8 v, bytes32 r, bytes32 s ) external returns (uint amountA, uint amountB); function removeLiquidityETHWithPermit( address token, uint liquidity, uint amountTokenMin, uint amountETHMin, address to, uint deadline, bool approveMax, uint8 v, bytes32 r, bytes32 s ) external returns (uint amountToken, uint amountETH); function swapExactTokensForTokens( uint amountIn, uint amountOutMin, address[] calldata path, address to, uint deadline ) external returns (uint[] memory amounts); function swapTokensForExactTokens( uint amountOut, uint amountInMax, address[] calldata path, address to, uint deadline ) external returns (uint[] memory amounts); function swapExactETHForTokens(uint amountOutMin, address[] calldata path, address to, uint deadline) external payable returns (uint[] memory amounts); function swapTokensForExactETH(uint amountOut, uint amountInMax, address[] calldata path, address to, uint deadline) external returns (uint[] memory amounts); function swapExactTokensForETH(uint amountIn, uint amountOutMin, address[] calldata path, address to, uint deadline) external returns (uint[] memory amounts); function swapETHForExactTokens(uint amountOut, address[] calldata path, address to, uint deadline) external payable returns (uint[] memory amounts); function quote(uint amountA, uint reserveA, uint reserveB) external pure returns (uint amountB); function getAmountOut(uint amountIn, uint reserveIn, uint reserveOut) external pure returns (uint amountOut); function getAmountIn(uint amountOut, uint reserveIn, uint reserveOut) external pure returns (uint amountIn); function getAmountsOut(uint amountIn, address[] calldata path) external view returns (uint[] memory amounts); function getAmountsIn(uint amountOut, address[] calldata path) external view returns (uint[] memory amounts); }
pragma solidity >=0.6.2; import './IUniswapV2Router01.sol'; interface IUniswapV2Router02 is IUniswapV2Router01 { function removeLiquidityETHSupportingFeeOnTransferTokens( address token, uint liquidity, uint amountTokenMin, uint amountETHMin, address to, uint deadline ) external returns (uint amountETH); function removeLiquidityETHWithPermitSupportingFeeOnTransferTokens( address token, uint liquidity, uint amountTokenMin, uint amountETHMin, address to, uint deadline, bool approveMax, uint8 v, bytes32 r, bytes32 s ) external returns (uint amountETH); function swapExactTokensForTokensSupportingFeeOnTransferTokens( uint amountIn, uint amountOutMin, address[] calldata path, address to, uint deadline ) external; function swapExactETHForTokensSupportingFeeOnTransferTokens( uint amountOutMin, address[] calldata path, address to, uint deadline ) external payable; function swapExactTokensForETHSupportingFeeOnTransferTokens( uint amountIn, uint amountOutMin, address[] calldata path, address to, uint deadline ) external; }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.8; import "@openzeppelin/contracts/token/ERC20/ERC20.sol"; import "@openzeppelin/contracts/access/Ownable.sol"; import "@openzeppelin/contracts/utils/math/SafeMath.sol"; import "./SafeMathUint.sol"; import "./SafeMathInt.sol"; import "./DividendPayingTokenInterface.sol"; import "./DividendPayingTokenOptionalInterface.sol"; /// @title Dividend-Paying Token /// @author Roger Wu (https://github.com/roger-wu) /// @dev A mintable ERC20 token that allows anyone to pay and distribute ether /// to token holders as dividends and allows token holders to withdraw their dividends. /// Reference: the source code of PoWH3D: https://etherscan.io/address/0xB3775fB83F7D12A36E0475aBdD1FCA35c091efBe#code contract DividendPayingToken is ERC20, Ownable, DividendPayingTokenInterface, DividendPayingTokenOptionalInterface { using SafeMath for uint256; using SafeMathUint for uint256; using SafeMathInt for int256; address public constant MAGA = address(0x576e2BeD8F7b46D34016198911Cdf9886f78bea7); // MAGA // With `magnitude`, we can properly distribute dividends even if the amount of received ether is small. // For more discussion about choosing the value of `magnitude`, // see https://github.com/ethereum/EIPs/issues/1726#issuecomment-472352728 uint256 constant internal magnitude = 2**128; uint256 internal magnifiedDividendPerShare; // About dividendCorrection: // If the token balance of a `_user` is never changed, the dividend of `_user` can be computed with: // `dividendOf(_user) = dividendPerShare * balanceOf(_user)`. // When `balanceOf(_user)` is changed (via minting/burning/transferring tokens), // `dividendOf(_user)` should not be changed, // but the computed value of `dividendPerShare * balanceOf(_user)` is changed. // To keep the `dividendOf(_user)` unchanged, we add a correction term: // `dividendOf(_user) = dividendPerShare * balanceOf(_user) + dividendCorrectionOf(_user)`, // where `dividendCorrectionOf(_user)` is updated whenever `balanceOf(_user)` is changed: // `dividendCorrectionOf(_user) = dividendPerShare * (old balanceOf(_user)) - (new balanceOf(_user))`. // So now `dividendOf(_user)` returns the same value before and after `balanceOf(_user)` is changed. mapping(address => int256) internal magnifiedDividendCorrections; mapping(address => uint256) internal withdrawnDividends; uint256 public totalDividendsDistributed; constructor (string memory _name, string memory _symbol) ERC20(_name, _symbol) { } function distributeETHDividends(uint256 amount) public onlyOwner{ require(totalSupply() > 0,"No reward"); if (amount > 0) { magnifiedDividendPerShare = magnifiedDividendPerShare.add( (amount).mul(magnitude) / totalSupply() ); emit DividendsDistributed(msg.sender, amount); totalDividendsDistributed = totalDividendsDistributed.add(amount); } } /// @notice Withdraws the ether distributed to the sender. /// @dev It emits a `DividendWithdrawn` event if the amount of withdrawn ether is greater than 0. function withdrawDividend() public virtual override { _withdrawDividendOfUser(payable(msg.sender)); } /// @notice Withdraws the ether distributed to the sender. /// @dev It emits a `DividendWithdrawn` event if the amount of withdrawn ether is greater than 0. function _withdrawDividendOfUser(address payable user) internal returns (uint256) { uint256 _withdrawableDividend = withdrawableDividendOf(user); if (_withdrawableDividend > 0) { withdrawnDividends[user] = withdrawnDividends[user].add(_withdrawableDividend); emit DividendWithdrawn(user, _withdrawableDividend); bool success = IERC20(MAGA).transfer(user, _withdrawableDividend); if(!success) { withdrawnDividends[user] = withdrawnDividends[user].sub(_withdrawableDividend); return 0; } return _withdrawableDividend; } return 0; } /// @notice View the amount of dividend in wei that an address can withdraw. /// @param _owner The address of a token holder. /// @return The amount of dividend in wei that `_owner` can withdraw. function dividendOf(address _owner) public view override returns(uint256) { return withdrawableDividendOf(_owner); } /// @notice View the amount of dividend in wei that an address can withdraw. /// @param _owner The address of a token holder. /// @return The amount of dividend in wei that `_owner` can withdraw. function withdrawableDividendOf(address _owner) public view override returns(uint256) { return accumulativeDividendOf(_owner).sub(withdrawnDividends[_owner]); } /// @notice View the amount of dividend in wei that an address has withdrawn. /// @param _owner The address of a token holder. /// @return The amount of dividend in wei that `_owner` has withdrawn. function withdrawnDividendOf(address _owner) public view override returns(uint256) { return withdrawnDividends[_owner]; } /// @notice View the amount of dividend in wei that an address has earned in total. /// @dev accumulativeDividendOf(_owner) = withdrawableDividendOf(_owner) + withdrawnDividendOf(_owner) /// = (magnifiedDividendPerShare * balanceOf(_owner) + magnifiedDividendCorrections[_owner]) / magnitude /// @param _owner The address of a token holder. /// @return The amount of dividend in wei that `_owner` has earned in total. function accumulativeDividendOf(address _owner) public view override returns(uint256) { return magnifiedDividendPerShare.mul(balanceOf(_owner)).toInt256Safe() .add(magnifiedDividendCorrections[_owner]).toUint256Safe() / magnitude; } /// @dev Internal function that transfer tokens from one address to another. /// Update magnifiedDividendCorrections to keep dividends unchanged. /// @param from The address to transfer from. /// @param to The address to transfer to. /// @param value The amount to be transferred. 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); } /// @dev Internal function that mints tokens to an account. /// Update magnifiedDividendCorrections to keep dividends unchanged. /// @param account The account that will receive the created tokens. /// @param value The amount that will be created. function _mint(address account, uint256 value) internal override { super._mint(account, value); magnifiedDividendCorrections[account] = magnifiedDividendCorrections[account] .sub( (magnifiedDividendPerShare.mul(value)).toInt256Safe() ); } /// @dev Internal function that burns an amount of the token of a given account. /// Update magnifiedDividendCorrections to keep dividends unchanged. /// @param account The account whose tokens will be burnt. /// @param value The amount that will be burnt. function _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); } } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.19; /// @title Dividend-Paying Token Interface /// @author Roger Wu (https://github.com/roger-wu) /// @dev An interface for a dividend-paying token contract. interface DividendPayingTokenInterface { /// @notice View the amount of dividend in wei that an address can withdraw. /// @param _owner The address of a token holder. /// @return The amount of dividend in wei that `_owner` can withdraw. function dividendOf(address _owner) external view returns(uint256); /// @notice Withdraws the ether distributed to the sender. /// @dev SHOULD transfer `dividendOf(msg.sender)` wei to `msg.sender`, and `dividendOf(msg.sender)` SHOULD be 0 after the transfer. /// MUST emit a `DividendWithdrawn` event if the amount of ether transferred is greater than 0. function withdrawDividend() external; /// @dev This event MUST emit when ether is distributed to token holders. /// @param from The address which sends ether to this contract. /// @param weiAmount The amount of distributed ether in wei. event DividendsDistributed( address indexed from, uint256 weiAmount ); /// @dev This event MUST emit when an address withdraws their dividend. /// @param to The address which withdraws ether from this contract. /// @param weiAmount The amount of withdrawn ether in wei. event DividendWithdrawn( address indexed to, uint256 weiAmount ); }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.8; /// @title Dividend-Paying Token Optional Interface /// @author Roger Wu (https://github.com/roger-wu) /// @dev OPTIONAL functions for a dividend-paying token contract. interface DividendPayingTokenOptionalInterface { /// @notice View the amount of dividend in wei that an address can withdraw. /// @param _owner The address of a token holder. /// @return The amount of dividend in wei that `_owner` can withdraw. function withdrawableDividendOf(address _owner) external view returns(uint256); /// @notice View the amount of dividend in wei that an address has withdrawn. /// @param _owner The address of a token holder. /// @return The amount of dividend in wei that `_owner` has withdrawn. function withdrawnDividendOf(address _owner) external view returns(uint256); /// @notice View the amount of dividend in wei that an address has earned in total. /// @dev accumulativeDividendOf(_owner) = withdrawableDividendOf(_owner) + withdrawnDividendOf(_owner) /// @param _owner The address of a token holder. /// @return The amount of dividend in wei that `_owner` has earned in total. function accumulativeDividendOf(address _owner) external view returns(uint256); }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.6; library IterableMapping { // Iterable mapping from address to uint; struct Map { address[] keys; mapping(address => uint) values; mapping(address => uint) indexOf; mapping(address => bool) inserted; } function get(Map storage map, address key) internal view returns (uint) { return map.values[key]; } function getIndexOfKey(Map storage map, address key) internal view returns (int) { if(!map.inserted[key]) { return -1; } return int(map.indexOf[key]); } function getKeyAtIndex(Map storage map, uint index) internal view returns (address) { return map.keys[index]; } function size(Map storage map) internal view returns (uint) { return map.keys.length; } function set(Map storage map, address key, uint val) internal { 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) internal { 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(); } }
// SPDX-License-Identifier: MIT /* MIT License Copyright (c) 2018 requestnetwork Copyright (c) 2018 Fragments, Inc. Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */ pragma solidity ^0.8.6; /** * @title SafeMathInt * @dev Math operations for int256 with overflow safety checks. */ library SafeMathInt { int256 private constant MIN_INT256 = int256(1) << 255; int256 private constant MAX_INT256 = ~(int256(1) << 255); /** * @dev Multiplies two int256 variables and fails on overflow. */ function mul(int256 a, int256 b) internal pure returns (int256) { int256 c = a * b; // Detect overflow when multiplying MIN_INT256 with -1 require(c != MIN_INT256 || (a & MIN_INT256) != (b & MIN_INT256)); require((b == 0) || (c / b == a)); return c; } /** * @dev Division of two int256 variables and fails on overflow. */ function div(int256 a, int256 b) internal pure returns (int256) { // Prevent overflow when dividing MIN_INT256 by -1 require(b != -1 || a != MIN_INT256); // Solidity already throws when dividing by 0. return a / b; } /** * @dev Subtracts two int256 variables and fails on overflow. */ function sub(int256 a, int256 b) internal pure returns (int256) { int256 c = a - b; require((b >= 0 && c <= a) || (b < 0 && c > a)); return c; } /** * @dev Adds two int256 variables and fails on overflow. */ function add(int256 a, int256 b) internal pure returns (int256) { int256 c = a + b; require((b >= 0 && c >= a) || (b < 0 && c < a)); return c; } /** * @dev Converts to absolute value, and fails on overflow. */ function abs(int256 a) internal pure returns (int256) { require(a != MIN_INT256); return a < 0 ? -a : a; } function toUint256Safe(int256 a) internal pure returns (uint256) { require(a >= 0); return uint256(a); } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.6; /** * @title SafeMathUint * @dev Math operations with safety checks that revert on error */ library SafeMathUint { function toInt256Safe(uint256 a) internal pure returns (int256) { int256 b = int256(a); require(b >= 0); return b; } }
{ "optimizer": { "enabled": true, "runs": 200 }, "outputSelection": { "*": { "*": [ "evm.bytecode", "evm.deployedBytecode", "devdoc", "userdoc", "metadata", "abi" ] } }, "libraries": {} }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"inputs":[{"internalType":"address","name":"_router","type":"address"},{"internalType":"address","name":"_autoLiquidityReceiver","type":"address"},{"internalType":"address","name":"_treasuryReceiver","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"_addr","type":"address"}],"name":"AddressExemptedFromFee","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"_addr","type":"address"}],"name":"AddressExemptedFromTransferLock","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"spender","type":"address"},{"indexed":false,"internalType":"uint256","name":"value","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"_receiver","type":"address"},{"indexed":false,"internalType":"uint256","name":"balance","type":"uint256"}],"name":"DustSwiped","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":[],"name":"InitialDistributionFinished","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint256","name":"epoch","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"totalSupply","type":"uint256"}],"name":"LogRebase","type":"event"},{"anonymous":false,"inputs":[],"name":"ManualRebase","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"bool","name":"_autoRebase","type":"bool"}],"name":"NewAutoRebase","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"_liquidityFee","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"_treasuryFee","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"_firepitFee","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"_rewardFee","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"_feeDenominator","type":"uint256"}],"name":"NewBuyFeesSet","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"_autoLiquidityReceiver","type":"address"},{"indexed":false,"internalType":"address","name":"_treasuryReceiver","type":"address"}],"name":"NewFeeReceiversSet","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"_address","type":"address"}],"name":"NewLPSet","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"bool","name":"_isMaxWalletEnabled","type":"bool"}],"name":"NewMaxWalletEnable","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"nextRebase","type":"uint256"}],"name":"NewNextRebase","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"_rebaseFrequency","type":"uint256"}],"name":"NewRebaseFrequency","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"_rewardYield","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"_rewardYieldDenominator","type":"uint256"}],"name":"NewRewardYield","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"_liquidityFee","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"_treasuryFee","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"_firepitFee","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"_rewardFee","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"_feeDenominator","type":"uint256"}],"name":"NewSellFeesSet","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"bool","name":"_enabled","type":"bool"},{"indexed":false,"internalType":"uint256","name":"_num","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"_denom","type":"uint256"}],"name":"NewSwapBackSet","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"target","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"accuracy","type":"uint256"}],"name":"NewTargetLiquiditySet","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":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"},{"inputs":[],"name":"MAGA","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"_isFeeExempt","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"_isLimitExempt","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner_","type":"address"},{"internalType":"address","name":"spender","type":"address"}],"name":"allowance","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"value","type":"uint256"}],"name":"approve","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"autoLiquidityReceiver","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"autoRebase","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"automatedMarketMakerPairs","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"who","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"buyFee","outputs":[{"internalType":"uint256","name":"liquidity","type":"uint256"},{"internalType":"uint256","name":"treasury","type":"uint256"},{"internalType":"uint256","name":"firepit","type":"uint256"},{"internalType":"uint256","name":"reward","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_addr","type":"address"}],"name":"checkFeeExempt","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"checkSwapThreshold","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"claim","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"decimals","outputs":[{"internalType":"uint8","name":"","type":"uint8"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"subtractedValue","type":"uint256"}],"name":"decreaseAllowance","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"dividendTokenBalanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"dividendTracker","outputs":[{"internalType":"contract TokenDividendTracker","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_addr","type":"address"}],"name":"enableTransfer","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"feeDenominator","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"gasForProcessing","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"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":"getCirculatingSupply","outputs":[{"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":[{"internalType":"uint256","name":"accuracy","type":"uint256"}],"name":"getLiquidityBacking","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getMaxWallet","outputs":[{"internalType":"uint256","name":"amount","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":[],"name":"initialDistributionFinished","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"isMaxWalletEnabled","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"isNotInSwap","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"target","type":"uint256"},{"internalType":"uint256","name":"accuracy","type":"uint256"}],"name":"isOverLiquified","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"manualSync","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"nextRebase","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"pairContract","outputs":[{"internalType":"contract IUniswapV2Pair","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"gas","type":"uint256"}],"name":"processDividendTracker","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"rebase","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"rebaseFrequency","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"rewardYield","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"rewardYieldDenominator","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"router","outputs":[{"internalType":"contract IUniswapV2Router02","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"who","type":"address"}],"name":"scaledBalanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"sellFee","outputs":[{"internalType":"uint256","name":"liquidity","type":"uint256"},{"internalType":"uint256","name":"treasury","type":"uint256"},{"internalType":"uint256","name":"firepit","type":"uint256"},{"internalType":"uint256","name":"reward","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bool","name":"_autoRebase","type":"bool"}],"name":"setAutoRebase","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"pair","type":"address"},{"internalType":"bool","name":"value","type":"bool"}],"name":"setAutomatedMarketMakerPair","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_liquidityFee","type":"uint256"},{"internalType":"uint256","name":"_treasuryFee","type":"uint256"},{"internalType":"uint256","name":"_firepitFee","type":"uint256"},{"internalType":"uint256","name":"_rewardFee","type":"uint256"},{"internalType":"uint256","name":"_feeDenominator","type":"uint256"}],"name":"setBuyFees","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_addr","type":"address"}],"name":"setFeeExempt","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_autoLiquidityReceiver","type":"address"},{"internalType":"address","name":"_treasuryReceiver","type":"address"}],"name":"setFeeReceivers","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"setInitialDistributionFinished","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_address","type":"address"}],"name":"setLP","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"user","type":"address"},{"internalType":"bool","name":"status","type":"bool"}],"name":"setLimitExempt","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"divisor","type":"uint256"}],"name":"setMaxWallet","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"_isMaxWalletEnabled","type":"bool"}],"name":"setMaxWalletEnable","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_nextRebase","type":"uint256"}],"name":"setNextRebase","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_rebaseFrequency","type":"uint256"}],"name":"setRebaseFrequency","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_rewardYield","type":"uint256"},{"internalType":"uint256","name":"_rewardYieldDenominator","type":"uint256"}],"name":"setRewardYield","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_liquidityFee","type":"uint256"},{"internalType":"uint256","name":"_treasuryFee","type":"uint256"},{"internalType":"uint256","name":"_firepitFee","type":"uint256"},{"internalType":"uint256","name":"_rewardFee","type":"uint256"},{"internalType":"uint256","name":"_feeDenominator","type":"uint256"}],"name":"setSellFees","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"_enabled","type":"bool"},{"internalType":"uint256","name":"_num","type":"uint256"},{"internalType":"uint256","name":"_denom","type":"uint256"}],"name":"setSwapBackSettings","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"target","type":"uint256"},{"internalType":"uint256","name":"accuracy","type":"uint256"}],"name":"setTargetLiquidity","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"shouldRebase","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"swapEnabled","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_receiver","type":"address"}],"name":"swipe","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"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":"value","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":"value","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":"treasuryReceiver","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"claimWait","type":"uint256"}],"name":"updateClaimWait","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"newValue","type":"uint256"}],"name":"updateGasForProcessing","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"withdrawableDividendOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"stateMutability":"payable","type":"receive"}]
Contract Creation Code
60a06040526103e8601255637735940060135564174876e80060145562093a806015819055620000309042620008af565b6016556017805460ff1990811690915560326019556064601a55601b80549091166001179055611388620000676012600a620009c2565b62000077906302cd29c0620009d0565b620000859060001962000a00565b620000939060001962000a17565b6200009f919062000a2d565b601c556032601d55601e805460ff19169055620493e0601f55348015620000c557600080fd5b506040516200670938038062006709833981016040819052620000e89162000a61565b6040518060400160405280600c81526020016b5472756d706f6e6f6d69637360a01b815250604051806040016040528060068152602001655452554d504f60d01b815250601282600090816200013f919062000b50565b5060016200014e838262000b50565b506002805460ff191660ff9290921691909117905550620001789050620001723390565b6200074c565b6001600160a01b03831660808190526040805163c45a015560e01b815290516000929163c45a01559160048083019260209291908290030181865afa158015620001c6573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190620001ec919062000c1c565b6001600160a01b031663c9c653966080516001600160a01b031663ad5c46486040518163ffffffff1660e01b8152600401602060405180830381865afa1580156200023b573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019062000261919062000c1c565b6040516001600160e01b031960e084901b1681526001600160a01b0390911660048201523060248201526044016020604051808303816000875af1158015620002ae573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190620002d4919062000c1c565b604080516080808201835260008083526020808401829052600a8486018190526028606095860181905260088490556009849055818055600b8190558651948501875283855284830184905284870182905293909401839052600c829055600d829055600e93909355600f9190915560326011819055601055601780546001600160a01b03808a1661010002610100600160a81b031990921691909117909155601880548883166001600160a01b031991821617909155308352602384528483208a83168452909352908390206000199055600380549185169190921617905551909150620003c3906200088b565b604051809103906000f080158015620003e0573d6000803e3d6000fd5b50600480546001600160a01b0319166001600160a01b03929092169190911790556200040e816001620007a6565b6200041c6012600a620009c2565b6200042c906302cd29c0620009d0565b6020556200043d6012600a620009c2565b6200044d906302cd29c0620009d0565b6200045b9060001962000a00565b620004699060001962000a17565b6018546001600160a01b031660009081526022602090815260409091209190915554620004d1906200049e6012600a620009c2565b620004ae906302cd29c0620009d0565b620004bc9060001962000a00565b620004ca9060001962000a17565b9062000874565b6021556004805460ff60a01b191681556018546001600160a01b039081166000908152600660209081526040808320805460ff1990811660019081179092557f1aecba4ebe7a4e0673e4891b2b092b2228e4322380b579fb494fad3da8586e2280548216831790553085528285208054821683179055338552600590935292819020805490921690921790558254905163031e79db60e41b815291169181018290526331e79db090602401600060405180830381600087803b1580156200059757600080fd5b505af1158015620005ac573d6000803e3d6000fd5b50506004805460405163031e79db60e41b815230928101929092526001600160a01b031692506331e79db09150602401600060405180830381600087803b158015620005f757600080fd5b505af11580156200060c573d6000803e3d6000fd5b50506004546001600160a01b031691506331e79db090506200063b60025461010090046001600160a01b031690565b6040516001600160e01b031960e084901b1681526001600160a01b039091166004820152602401600060405180830381600087803b1580156200067d57600080fd5b505af115801562000692573d6000803e3d6000fd5b50506004805460805160405163031e79db60e41b81526001600160a01b03918216938101939093521692506331e79db09150602401600060405180830381600087803b158015620006e257600080fd5b505af1158015620006f7573d6000803e3d6000fd5b5050601854602080546040519081526001600160a01b039092169350600092507fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef910160405180910390a35050505062000c3a565b600280546001600160a01b03838116610100818102610100600160a81b031985161790945560405193909204169182907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b6001600160a01b0382166000908152602460205260409020805460ff1916821580159190911790915562000838576004805460405163031e79db60e41b81526001600160a01b03858116938201939093529116906331e79db090602401600060405180830381600087803b1580156200081e57600080fd5b505af115801562000833573d6000803e3d6000fd5b505050505b604051811515906001600160a01b038416907fffa9187bf1f18bf477bd0ea1bcbb64e93b6a98132473929edfce215cd9b16fab90600090a35050565b600062000882828462000a2d565b90505b92915050565b611f6080620047a983390190565b634e487b7160e01b600052601160045260246000fd5b8082018082111562000885576200088562000899565b600181815b8085111562000906578160001904821115620008ea57620008ea62000899565b80851615620008f857918102915b93841c9390800290620008ca565b509250929050565b6000826200091f5750600162000885565b816200092e5750600062000885565b8160018114620009475760028114620009525762000972565b600191505062000885565b60ff84111562000966576200096662000899565b50506001821b62000885565b5060208310610133831016604e8410600b841016171562000997575081810a62000885565b620009a38383620008c5565b8060001904821115620009ba57620009ba62000899565b029392505050565b60006200088283836200090e565b808202811582820484141762000885576200088562000899565b634e487b7160e01b600052601260045260246000fd5b60008262000a125762000a12620009ea565b500690565b8181038181111562000885576200088562000899565b60008262000a3f5762000a3f620009ea565b500490565b80516001600160a01b038116811462000a5c57600080fd5b919050565b60008060006060848603121562000a7757600080fd5b62000a828462000a44565b925062000a926020850162000a44565b915062000aa26040850162000a44565b90509250925092565b634e487b7160e01b600052604160045260246000fd5b600181811c9082168062000ad657607f821691505b60208210810362000af757634e487b7160e01b600052602260045260246000fd5b50919050565b601f82111562000b4b57600081815260208120601f850160051c8101602086101562000b265750805b601f850160051c820191505b8181101562000b475782815560010162000b32565b5050505b505050565b81516001600160401b0381111562000b6c5762000b6c62000aab565b62000b848162000b7d845462000ac1565b8462000afd565b602080601f83116001811462000bbc576000841562000ba35750858301515b600019600386901b1c1916600185901b17855562000b47565b600085815260208120601f198616915b8281101562000bed5788860151825594840194600190910190840162000bcc565b508582101562000c0c5787850151600019600388901b60f8161c191681555b5050505050600190811b01905550565b60006020828403121562000c2f57600080fd5b620008828262000a44565b608051613b3062000c7960003960008181610df101528181612a3201528181612adf01528181612ccd01528181612dcd0152612ff00152613b306000f3fe60806040526004361061044b5760003560e01c8063715018a611610234578063b62496f51161012e578063d5938aac116100b6578063e98030c71161007a578063e98030c714610d7f578063f27fd25414610d9f578063f2fde38b14610dbf578063f887ea4014610ddf578063f970836714610e1357600080fd5b8063d5938aac14610cce578063d7832b1114610cee578063dd62ed3e14610d04578063e15beb8014610d4a578063e7841ec014610d6a57600080fd5b8063cce7db58116100fd578063cce7db5814610c14578063d088935814610c34578063d1fce26414610c54578063d439979014610c75578063d51ed1c814610cae57600080fd5b8063b62496f514610b89578063bc7e68a314610bb9578063c1cf53c414610bcf578063ca33e64c14610bef57600080fd5b80639a7a23d6116101bc578063a4b45c0011610180578063a4b45c0014610aaf578063a8b9d24014610acf578063a9059cbb14610aef578063ad56c13c14610b0f578063af14052c14610b7457600080fd5b80639a7a23d614610a245780639ae7372d14610a445780639c1b8af514610a64578063a26579ad14610a7a578063a457c2d714610a8f57600080fd5b8063871c128d11610203578063871c128d1461099c57806389375abf146109bc5780638da5cb5b146109d25780639079f932146109f557806395d89b4114610a0f57600080fd5b8063715018a614610934578063749796a514610949578063753d02a11461096957806383b4ac681461097e57600080fd5b80632f34d282116103455780634e71d92d116102cd5780636843cd84116102915780636843cd84146108a55780636d351d1a146108c55780636ddd1713146108da578063700bb191146108f457806370a082311461091457600080fd5b80634e71d92d146108235780635ae21e6c146108385780635d0044ca1461085857806363eab10a1461087857806364b0f6531461089057600080fd5b806340a24e6c1161031457806340a24e6c1461078057806347062402146107a057806347a28b79146107c35780634cd9ddf2146107e35780634d709adf1461080357600080fd5b80632f34d2821461070957806330bb4cff14610729578063313ce5671461073e578063395093511461076057600080fd5b8063180b0d7e116103d357806327fa7b181161039757806327fa7b181461064c5780632b112e491461067c5780632b14ca56146106915780632be6937d146106d45780632c1f5216146106e957600080fd5b8063180b0d7e146105ab57806318160ddd146105c15780631da24f3e146105d6578063201e79911461060c57806323b872dd1461062c57600080fd5b8063095ea7b31161041a578063095ea7b3146105025780630af08314146105225780630fa604e4146105465780631161ae391461055b578063175bf3ce1461057b57600080fd5b806301b1682714610457578063046a2a801461047957806306fdde03146104a857806308b1fd8f146104ca57600080fd5b3661045257005b600080fd5b34801561046357600080fd5b506104776104723660046134e6565b610e3b565b005b34801561048557600080fd5b50601e546104939060ff1681565b60405190151581526020015b60405180910390f35b3480156104b457600080fd5b506104bd610e8b565b60405161049f9190613508565b3480156104d657600080fd5b506018546104ea906001600160a01b031681565b6040516001600160a01b03909116815260200161049f565b34801561050e57600080fd5b5061049361051d36600461356b565b610f1d565b34801561052e57600080fd5b5061053860135481565b60405190815260200161049f565b34801561055257600080fd5b50610538610ff8565b34801561056757600080fd5b506104936105763660046134e6565b611014565b34801561058757600080fd5b50610493610596366004613597565b60076020526000908152604090205460ff1681565b3480156105b757600080fd5b5061053860125481565b3480156105cd57600080fd5b50602054610538565b3480156105e257600080fd5b506105386105f1366004613597565b6001600160a01b031660009081526022602052604090205490565b34801561061857600080fd5b506104776106273660046134e6565b61102a565b34801561063857600080fd5b506104936106473660046135b4565b611072565b34801561065857600080fd5b50610493610667366004613597565b60066020526000908152604090205460ff1681565b34801561068857600080fd5b5061053861115f565b34801561069d57600080fd5b50600c54600d54600e54600f546106b49392919084565b60408051948552602085019390935291830152606082015260800161049f565b3480156106e057600080fd5b50610477611202565b3480156106f557600080fd5b506004546104ea906001600160a01b031681565b34801561071557600080fd5b50610477610724366004613597565b611248565b34801561073557600080fd5b506105386112a5565b34801561074a57600080fd5b5060025460405160ff909116815260200161049f565b34801561076c57600080fd5b5061049361077b36600461356b565b61131e565b34801561078c57600080fd5b5061047761079b366004613603565b6113f5565b3480156107ac57600080fd5b50600854600954600a54600b546106b49392919084565b3480156107cf57600080fd5b506104776107de36600461363c565b611428565b3480156107ef57600080fd5b506104776107fe366004613677565b6114e3565b34801561080f57600080fd5b506003546104ea906001600160a01b031681565b34801561082f57600080fd5b50610477611520565b34801561084457600080fd5b50610477610853366004613690565b611599565b34801561086457600080fd5b50610477610873366004613677565b6115e2565b34801561088457600080fd5b50601654421015610493565b34801561089c57600080fd5b506105386115ef565b3480156108b157600080fd5b506105386108c0366004613597565b611644565b3480156108d157600080fd5b506105386116b9565b3480156108e657600080fd5b50601b546104939060ff1681565b34801561090057600080fd5b5061047761090f366004613677565b6116d2565b34801561092057600080fd5b5061053861092f366004613597565b6117a6565b34801561094057600080fd5b506104776117ce565b34801561095557600080fd5b50610477610964366004613597565b6117e2565b34801561097557600080fd5b5061047761183e565b34801561098a57600080fd5b50601b54610100900460ff1615610493565b3480156109a857600080fd5b506104776109b7366004613677565b6118a8565b3480156109c857600080fd5b5061053860155481565b3480156109de57600080fd5b5060025461010090046001600160a01b03166104ea565b348015610a0157600080fd5b506017546104939060ff1681565b348015610a1b57600080fd5b506104bd6119d8565b348015610a3057600080fd5b50610477610a3f366004613603565b6119e7565b348015610a5057600080fd5b50610477610a5f366004613677565b6119fd565b348015610a7057600080fd5b50610538601f5481565b348015610a8657600080fd5b50610538611a3a565b348015610a9b57600080fd5b50610493610aaa36600461356b565b611a8f565b348015610abb57600080fd5b50610477610aca3660046136ad565b611baf565b348015610adb57600080fd5b50610538610aea366004613597565b611c2b565b348015610afb57600080fd5b50610493610b0a36600461356b565b611c63565b348015610b1b57600080fd5b50610b2f610b2a366004613597565b611ce5565b604080516001600160a01b0390991689526020890197909752958701949094526060860192909252608085015260a084015260c083015260e08201526101000161049f565b348015610b8057600080fd5b50610477611d82565b348015610b9557600080fd5b50610493610ba4366004613597565b60246020526000908152604090205460ff1681565b348015610bc557600080fd5b5061053860165481565b348015610bdb57600080fd5b50610477610bea36600461363c565b611e0f565b348015610bfb57600080fd5b506017546104ea9061010090046001600160a01b031681565b348015610c2057600080fd5b50610477610c2f366004613597565b611ebf565b348015610c4057600080fd5b50610477610c4f3660046136db565b611f3f565b348015610c6057600080fd5b5060045461049390600160a01b900460ff1681565b348015610c8157600080fd5b50610493610c90366004613597565b6001600160a01b031660009081526006602052604090205460ff1690565b348015610cba57600080fd5b50610538610cc9366004613677565b611fe0565b348015610cda57600080fd5b50610477610ce9366004613597565b612034565b348015610cfa57600080fd5b5061053860145481565b348015610d1057600080fd5b50610538610d1f3660046136ad565b6001600160a01b03918216600090815260236020908152604080832093909416825291909152205490565b348015610d5657600080fd5b50610477610d65366004613690565b612090565b348015610d7657600080fd5b506105386120d9565b348015610d8b57600080fd5b50610477610d9a366004613677565b61212e565b348015610dab57600080fd5b50610b2f610dba366004613677565b612195565b348015610dcb57600080fd5b50610477610dda366004613597565b6121d5565b348015610deb57600080fd5b506104ea7f000000000000000000000000000000000000000000000000000000000000000081565b348015610e1f57600080fd5b506104ea73576e2bed8f7b46d34016198911cdf9886f78bea781565b610e4361224b565b6013829055601481905560408051838152602081018390527f22c4859cbe685717a6474106727f15898d2a50ebbec3c4b8e78e17d51041f9e291015b60405180910390a15050565b606060008054610e9a90613710565b80601f0160208091040260200160405190810160405280929190818152602001828054610ec690613710565b8015610f135780601f10610ee857610100808354040283529160200191610f13565b820191906000526020600020905b815481529060010190602001808311610ef657829003601f168201915b5050505050905090565b6000826001600160a01b038116610f4f5760405162461bcd60e51b8152600401610f469061374a565b60405180910390fd5b600454600160a01b900460ff1680610f7657503260009081526005602052604090205460ff165b610f925760405162461bcd60e51b8152600401610f4690613770565b3360008181526023602090815260408083206001600160a01b03891680855290835292819020879055518681529192917f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92591015b60405180910390a35060019392505050565b6000601d5461100561115f565b61100f91906137d3565b905090565b60008261102083611fe0565b1190505b92915050565b61103261224b565b6019829055601a81905560408051838152602081018390527faf4c7b1dbe87649b4a09d12e4fea2d8f7086b07913a76c3add0570d49080d0709101610e7f565b6000826001600160a01b03811661109b5760405162461bcd60e51b8152600401610f469061374a565b6001600160a01b038516600090815260236020908152604080832033845290915290205460001914611148576040805180820182526016815275496e73756666696369656e7420416c6c6f77616e636560501b6020808301919091526001600160a01b03881660009081526023825283812033825290915291909120546111239185906122ab565b6001600160a01b03861660009081526023602090815260408083203384529091529020555b6111538585856122d7565b50600195945050505050565b60215460226020527fb84cf808d0d5b1ad44962c9bfddd3cfce67763c49ab557cfd0e9f6804faade995461dead60009081527fb3dad1d3e53c1132e958712e36d3ff32b0d9b9088698eb172c6b4faa7ff6d22e54909261100f9290916111fc91906111f6906111d06012600a6138cb565b6111de906302cd29c06138d7565b6111ea906000196138ee565b6111f690600019613902565b906126af565b906126bb565b61120a61224b565b6004805460ff60a01b1916600160a01b1790556040517fc8c54f70f4fd274a3f41ef99f8cf8a1f0bcb08a163df0c9dbf89f9ecc040213b90600090a1565b61125061224b565b600380546001600160a01b0319166001600160a01b0383169081179091556040519081527f6cedd5f50351efbc40be01a919f6320ffe3e8270d9d277b886a78f30e3d08768906020015b60405180910390a150565b6000600460009054906101000a90046001600160a01b03166001600160a01b03166385a6b3ae6040518163ffffffff1660e01b8152600401602060405180830381865afa1580156112fa573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061100f9190613915565b600454600090600160a01b900460ff168061134857503260009081526005602052604090205460ff165b6113645760405162461bcd60e51b8152600401610f4690613770565b3360009081526023602090815260408083206001600160a01b038716845290915290205461139290836126c7565b3360008181526023602090815260408083206001600160a01b038916808552908352928190208590555193845290927f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925910160405180910390a350600192915050565b6113fd61224b565b6001600160a01b03919091166000908152600760205260409020805460ff1916911515919091179055565b61143061224b565b604080516080810182528681526020810186905290810184905260600182905260088590556009849055600a839055600b82905560128190558183611475868861392e565b61147f919061392e565b611489919061392e565b601055604080518681526020810186905290810184905260608101839052608081018290527fbe77f0ff3e38555aa3ca05891e69529ac4ae0b2fb08d4e03ae5495317e0f93ec9060a0015b60405180910390a15050505050565b6114eb61224b565b60158190556040518181527ffec4e86e9afe69e18641695805d49ee4e48c9e25ac483d7fcec03508c19073f69060200161129a565b6004805460405163bc4c4b3760e01b81523392810192909252600060248301526001600160a01b03169063bc4c4b37906044016020604051808303816000875af1158015611572573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906115969190613941565b50565b6115a161224b565b601e805460ff19168215159081179091556040519081527f1eed3bbd2da9ed45d0adc72d9b71ec477a9f1e858de75246a3b16a308609fdae9060200161129a565b6115ea61224b565b601d55565b6000600460009054906101000a90046001600160a01b03166001600160a01b03166309bbedde6040518163ffffffff1660e01b8152600401602060405180830381865afa1580156112fa573d6000803e3d6000fd5b600480546040516370a0823160e01b81526001600160a01b0384811693820193909352600092909116906370a08231906024015b602060405180830381865afa158015611695573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906110249190613915565b600061100f602154601c546126bb90919063ffffffff16565b600480546040516001624d3b8760e01b03198152918201839052600091829182916001600160a01b039091169063ffb2c479906024016060604051808303816000875af1158015611727573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061174b919061395e565b604080518481526020810184905290810182905260608101889052929550909350915032906000907fc864333d6121033635ab41b29ae52f10a22cf4438c3e4f1c4c68518feb2f8a989060800160405180910390a350505050565b6021546001600160a01b038216600090815260226020526040812054909161102491906126bb565b6117d661224b565b6117e060006126d3565b565b6117ea61224b565b6001600160a01b038116600081815260066020908152604091829020805460ff1916600117905590519182527f23c82dfc7128d260a240c76ad95ae807ed0f3cdc1774176bec1d6d6ff5bbd178910161129a565b600360009054906101000a90046001600160a01b03166001600160a01b031663fff6cae96040518163ffffffff1660e01b8152600401600060405180830381600087803b15801561188e57600080fd5b505af11580156118a2573d6000803e3d6000fd5b50505050565b6118b061224b565b62030d4081101580156118c657506207a1208111155b6119385760405162461bcd60e51b815260206004820152603b60248201527f546f6b656e3a20676173466f7250726f63657373696e67206d7573742062652060448201527f6265747765656e203230302c30303020616e64203530302c30303000000000006064820152608401610f46565b601f5481036119a55760405162461bcd60e51b815260206004820152603360248201527f546f6b656e3a2043616e6e6f742075706461746520676173466f7250726f63656044820152727373696e6720746f2073616d652076616c756560681b6064820152608401610f46565b601f5460405182907f40d7e40e79af4e8e5a9b3c57030d8ea93f13d669c06d448c4d631d4ae7d23db790600090a3601f55565b606060018054610e9a90613710565b6119ef61224b565b6119f9828261272d565b5050565b611a0561224b565b60168190556040518181527f84622aeb2c70c8d58df0a965c98e4de2994b09dc2bb96d4b2cdee09b147b1be79060200161129a565b6000600460009054906101000a90046001600160a01b03166001600160a01b0316636f2789ec6040518163ffffffff1660e01b8152600401602060405180830381865afa1580156112fa573d6000803e3d6000fd5b600454600090600160a01b900460ff1680611ab957503260009081526005602052604090205460ff165b611ad55760405162461bcd60e51b8152600401610f4690613770565b3360009081526023602090815260408083206001600160a01b0387168452909152902054808310611b29573360009081526023602090815260408083206001600160a01b0388168452909152812055611b58565b611b3381846126af565b3360009081526023602090815260408083206001600160a01b03891684529091529020555b3360008181526023602090815260408083206001600160a01b038916808552908352928190205490519081529192917f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b9259101610fe6565b611bb761224b565b60178054610100600160a81b0319166101006001600160a01b0385811691820292909217909255601880546001600160a01b03191691841691821790556040805192835260208301919091527f34e77fcf4a3214630fdde01f35b9ec10a409da44ba236dbd0fe24d28e1ae6fa49101610e7f565b600480546040516302a2e74960e61b81526001600160a01b03848116938201939093526000929091169063a8b9d24090602401611678565b6000826001600160a01b038116611c8c5760405162461bcd60e51b8152600401610f469061374a565b600454600160a01b900460ff1680611cb357503260009081526005602052604090205460ff165b611ccf5760405162461bcd60e51b8152600401610f4690613770565b611cda3385856122d7565b506001949350505050565b6004805460405163fbcbc0f160e01b81526001600160a01b03848116938201939093526000928392839283928392839283928392169063fbcbc0f1906024015b61010060405180830381865afa158015611d43573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611d67919061398c565b97509750975097509750975097509750919395975091939597565b611d8a61224b565b601b54610100900460ff16158015611da457506016544210155b611ddc5760405162461bcd60e51b81526020600482015260096024820152682a393c9030b3b0b4b760b91b6044820152606401610f46565b611de46127f8565b6040517f2a265bb18876d864fab8fce71f88ea1cdfc44a85da7924a2e50e29c45fa15e7790600090a1565b611e1761224b565b6040805160808101825286815260208101869052908101849052606001829052600c859055600d849055600e839055600f82905560128190558183611e5c868861392e565b611e66919061392e565b611e70919061392e565b601155604080518681526020810186905290810184905260608101839052608081018290527fe8304a476c997860e2d45c11feab55178c0f8f8002ad4a8f5762dfce9706a7b19060a0016114d4565b611ec761224b565b60405147906001600160a01b0383169082156108fc029083906000818181858888f19350505050158015611eff573d6000803e3d6000fd5b50604080516001600160a01b0384168152602081018390527f5169bf78d41c0bdef351d6c6d2beb3771899702f45be84e80606f00c744f82339101610e7f565b611f4761224b565b601b805460ff1916841515179055611f9582611f8f83611f696012600a6138cb565b611f77906302cd29c06138d7565b611f83906000196138ee565b6111fc90600019613902565b90612853565b601c55604080518415158152602081018490529081018290527fcbfd35a2b333f650f597e29718eb862c0670d146b662d8dd1d83ec4bcde0c4ac9060600160405180910390a1505050565b6021546003546001600160a01b03166000908152602260205260408120549091829161200b916126bb565b905061202d61201861115f565b6111fc612026846002612853565b8690612853565b9392505050565b61203c61224b565b6001600160a01b038116600081815260056020908152604091829020805460ff1916600117905590519182527f743cc7b65502c800c9ea4fe97c705035a32f51d73b3fd1cee18e0af42995b4b1910161129a565b61209861224b565b6017805460ff19168215159081179091556040519081527fee4bce7deca9263a3b246f9aea788f95a0abb66c093a5ae1b25d192abf11fc169060200161129a565b6000600460009054906101000a90046001600160a01b03166001600160a01b031663e7841ec06040518163ffffffff1660e01b8152600401602060405180830381865afa1580156112fa573d6000803e3d6000fd5b61213661224b565b6004805460405163e98030c760e01b81529182018390526001600160a01b03169063e98030c790602401600060405180830381600087803b15801561217a57600080fd5b505af115801561218e573d6000803e3d6000fd5b5050505050565b60048054604051635183d6fd60e01b815291820183905260009182918291829182918291829182916001600160a01b031690635183d6fd90602401611d25565b6121dd61224b565b6001600160a01b0381166122425760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610f46565b611596816126d3565b6002546001600160a01b036101009091041633146117e05760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610f46565b600081848411156122cf5760405162461bcd60e51b8152600401610f469190613508565b505050900390565b601b54600090610100900460ff16156122fc576122f584848461285f565b905061202d565b60006123136021548461285390919063ffffffff16565b905061231d6128f1565b1561232a5761232a612945565b6003546001600160a01b0385811691161480159061236157506001600160a01b03841660009081526007602052604090205460ff16155b801561236f5750601e5460ff165b156123e557600061237e610ff8565b9050808461238b876117a6565b612395919061392e565b11156123e35760405162461bcd60e51b815260206004820181905260248201527f42616c616e63652065786365656473206d61782077616c6c6574206c696d69746044820152606401610f46565b505b6001600160a01b03851660009081526022602052604090205461240890826126af565b6001600160a01b03861660009081526022602052604081209190915561242e86866130f4565b6124385781612443565b61244386868461316d565b6001600160a01b03861660009081526022602052604090205490915061246990826126c7565b6001600160a01b03808716600081815260226020526040902092909255602154908816907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef906124ba9085906126bb565b60405190815260200160405180910390a360165442101580156124df575060175460ff165b156124ec576124ec6127f8565b6004546001600160a01b031663e30443bc87612507816117a6565b6040516001600160e01b031960e085901b1681526001600160a01b0390921660048301526024820152604401600060405180830381600087803b15801561254d57600080fd5b505af192505050801561255e575060015b506004546001600160a01b031663e30443bc8661257a816117a6565b6040516001600160e01b031960e085901b1681526001600160a01b0390921660048301526024820152604401600060405180830381600087803b1580156125c057600080fd5b505af19250505080156125d1575060015b50601b54610100900460ff1661115357601f54600480546040516001624d3b8760e01b031981529182018390526001600160a01b03169063ffb2c479906024016060604051808303816000875af192505050801561264c575060408051601f3d908101601f191682019092526126499181019061395e565b60015b156126a25760408051848152602081018490529081018290526060810185905232906001907fc864333d6121033635ab41b29ae52f10a22cf4438c3e4f1c4c68518feb2f8a989060800160405180910390a35050505b5050600195945050505050565b600061202d8284613902565b600061202d82846137d3565b600061202d828461392e565b600280546001600160a01b03838116610100818102610100600160a81b031985161790945560405193909204169182907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b6001600160a01b0382166000908152602460205260409020805460ff191682158015919091179091556127bc576004805460405163031e79db60e41b81526001600160a01b03858116938201939093529116906331e79db090602401600060405180830381600087803b1580156127a357600080fd5b505af11580156127b7573d6000803e3d6000fd5b505050505b604051811515906001600160a01b038416907fffa9187bf1f18bf477bd0ea1bcbb64e93b6a98132473929edfce215cd9b16fab90600090a35050565b601b54610100900460ff166117e05742600061281261115f565b905060006128316014546111fc6013548561285390919063ffffffff16565b905061283d8382613360565b5060155461284b908461392e565b601655505050565b600061202d82846138d7565b6000806128776021548461285390919063ffffffff16565b6001600160a01b03861660009081526022602052604090205490915061289d90826126af565b6001600160a01b0380871660009081526022602052604080822093909355908616815220546128cc90826126c7565b6001600160a01b03851660009081526022602052604090205550600190509392505050565b6003546000906001600160a01b031633148015906129175750601b54610100900460ff16155b80156129255750601b5460ff165b801561100f575050601c5430600090815260226020526040902054101590565b601b805461ff001916610100179055601954601a5460009161296691611014565b61297f57600c5460085461297a919061392e565b612982565b60005b60215430600090815260226020526040812054929350916129a2916126bb565b905060006129c860026111fc6011546010546129be919061392e565b6111fc8688612853565b905060006129d683836126af565b60408051600280825260608201835292935060009290916020830190803683370190505090503081600081518110612a1057612a106139f6565b60200260200101906001600160a01b031690816001600160a01b0316815250507f00000000000000000000000000000000000000000000000000000000000000006001600160a01b031663ad5c46486040518163ffffffff1660e01b8152600401602060405180830381865afa158015612a8e573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612ab29190613a0c565b81600181518110612ac557612ac56139f6565b6001600160a01b03928316602091820292909201015247907f00000000000000000000000000000000000000000000000000000000000000001663791ac9478460008530612b1442606461392e565b6040518663ffffffff1660e01b8152600401612b34959493929190613a6d565b600060405180830381600087803b158015612b4e57600080fd5b505af1158015612b62573d6000803e3d6000fd5b505050506000612b7b82476126af90919063ffffffff16565b90506000612b9d612b8d8960026126bb565b6011546010546111f6919061392e565b90506000612bb260026111fc8481878e612853565b90506000612bda836111fc600c60010154600860010154612bd3919061392e565b8790612853565b90506000612c02846111fc600c60030154600860030154612bfb919061392e565b8890612853565b90508115612ca5576018546040516000916001600160a01b03169084908381818185875af1925050503d8060008114612c57576040519150601f19603f3d011682016040523d82523d6000602084013e612c5c565b606091505b5050905080612ca35760405162461bcd60e51b8152602060048201526013602482015272115512081d1c985b9cd9995c8819985a5b1959606a1b6044820152606401610f46565b505b8015612fe85760408051600280825260608201835290916020830190803683370190505096507f00000000000000000000000000000000000000000000000000000000000000006001600160a01b031663ad5c46486040518163ffffffff1660e01b8152600401602060405180830381865afa158015612d29573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612d4d9190613a0c565b87600081518110612d6057612d606139f6565b60200260200101906001600160a01b031690816001600160a01b03168152505073576e2bed8f7b46d34016198911cdf9886f78bea787600181518110612da857612da86139f6565b6001600160a01b03928316602091820292909201015260405163b6f9de9560e01b81527f00000000000000000000000000000000000000000000000000000000000000009091169063b6f9de95908390612e0d906000908c9030904290600401613aa9565b6000604051808303818588803b158015612e2657600080fd5b505af1158015612e3a573d6000803e3d6000fd5b50506040516370a0823160e01b81523060048201526000935073576e2bed8f7b46d34016198911cdf9886f78bea792506370a082319150602401602060405180830381865afa158015612e91573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612eb59190613915565b6004805460405163a9059cbb60e01b81526001600160a01b03909116918101919091526024810182905290915060009073576e2bed8f7b46d34016198911cdf9886f78bea79063a9059cbb906044016020604051808303816000875af1158015612f23573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612f479190613941565b90508015612fe557600480546040516351c2a0e360e01b81529182018490526001600160a01b0316906351c2a0e390602401600060405180830381600087803b158015612f9357600080fd5b505af1158015612fa7573d6000803e3d6000fd5b505050507fb0cc2628d6d644cf6be9d8110e142297ac910d6d8026d795a99f272fd9ad60b182604051612fdc91815260200190565b60405180910390a15b50505b88156130dc577f00000000000000000000000000000000000000000000000000000000000000006001600160a01b031663f305d71984308c600080601760019054906101000a90046001600160a01b0316426064613046919061392e565b60405160e089901b6001600160e01b03191681526001600160a01b039687166004820152602481019590955260448501939093526064840191909152909216608482015260a481019190915260c40160606040518083038185885af11580156130b3573d6000803e3d6000fd5b50505050506040513d601f19601f820116820180604052508101906130d8919061395e565b5050505b5050601b805461ff0019169055505050505050505050565b6003546000906001600160a01b038481169116148061312057506003546001600160a01b038381169116145b801561202d57506001600160a01b03831660009081526006602052604090205460ff1615801561202d5750506001600160a01b031660009081526006602052604090205460ff1615919050565b6001600160a01b0383166000908152602460205260408120548190819060ff161561319f575050601054600a546131c9565b6001600160a01b03851660009081526024602052604090205460ff16156131c9575050601154600e545b8115613356576012546000906131e3906111fc8786612853565b905060006132006012546111fc858961285390919063ffffffff16565b905061320c8183613902565b3060009081526022602052604090205490925061322990836126c7565b306000818152602260205260409020919091556021546001600160a01b038a16907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef906132779086906126bb565b60405190815260200160405180910390a361dead60005260226020527fb3dad1d3e53c1132e958712e36d3ff32b0d9b9088698eb172c6b4faa7ff6d22e546132bf90826126c7565b61dead600081905260226020527fb3dad1d3e53c1132e958712e36d3ff32b0d9b9088698eb172c6b4faa7ff6d22e919091556021546001600160a01b038a16907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9061332c9085906126bb565b60405190815260200160405180910390a361334b816111f688856126af565b94505050505061202d565b5091949350505050565b6000816000036133af57827f72725a3b1e5bd622d6bcd1339bb31279c351abe8f541ac7fd320f24e1b1641f260205460405161339e91815260200190565b60405180910390a250602054611024565b60008212156133d5576133cd6133c483613ade565b602054906126af565b6020556133e6565b6020546133e290836126c7565b6020555b6133f26012600a6138cb565b6134019064e8d4a510006138d7565b6020541115613429576134166012600a6138cb565b6134259064e8d4a510006138d7565b6020555b60205461343c90611f696012600a6138cb565b6021556003546040805160016209351760e01b0319815290516001600160a01b039092169163fff6cae99160048082019260009290919082900301818387803b15801561348857600080fd5b505af115801561349c573d6000803e3d6000fd5b50505050827f72725a3b1e5bd622d6bcd1339bb31279c351abe8f541ac7fd320f24e1b1641f26020546040516134d491815260200190565b60405180910390a25060205492915050565b600080604083850312156134f957600080fd5b50508035926020909101359150565b600060208083528351808285015260005b8181101561353557858101830151858201604001528201613519565b506000604082860101526040601f19601f8301168501019250505092915050565b6001600160a01b038116811461159657600080fd5b6000806040838503121561357e57600080fd5b823561358981613556565b946020939093013593505050565b6000602082840312156135a957600080fd5b813561202d81613556565b6000806000606084860312156135c957600080fd5b83356135d481613556565b925060208401356135e481613556565b929592945050506040919091013590565b801515811461159657600080fd5b6000806040838503121561361657600080fd5b823561362181613556565b91506020830135613631816135f5565b809150509250929050565b600080600080600060a0868803121561365457600080fd5b505083359560208501359550604085013594606081013594506080013592509050565b60006020828403121561368957600080fd5b5035919050565b6000602082840312156136a257600080fd5b813561202d816135f5565b600080604083850312156136c057600080fd5b82356136cb81613556565b9150602083013561363181613556565b6000806000606084860312156136f057600080fd5b83356136fb816135f5565b95602085013595506040909401359392505050565b600181811c9082168061372457607f821691505b60208210810361374457634e487b7160e01b600052602260045260246000fd5b50919050565b6020808252600c908201526b5a65726f206164647265737360a01b604082015260600190565b60208082526019908201527f496e697469616c20646973747269627574696f6e206c6f636b00000000000000604082015260600190565b634e487b7160e01b600052601260045260246000fd5b634e487b7160e01b600052601160045260246000fd5b6000826137e2576137e26137a7565b500490565b600181815b80851115613822578160001904821115613808576138086137bd565b8085161561381557918102915b93841c93908002906137ec565b509250929050565b60008261383957506001611024565b8161384657506000611024565b816001811461385c576002811461386657613882565b6001915050611024565b60ff841115613877576138776137bd565b50506001821b611024565b5060208310610133831016604e8410600b84101617156138a5575081810a611024565b6138af83836137e7565b80600019048211156138c3576138c36137bd565b029392505050565b600061202d838361382a565b8082028115828204841417611024576110246137bd565b6000826138fd576138fd6137a7565b500690565b81810381811115611024576110246137bd565b60006020828403121561392757600080fd5b5051919050565b80820180821115611024576110246137bd565b60006020828403121561395357600080fd5b815161202d816135f5565b60008060006060848603121561397357600080fd5b8351925060208401519150604084015190509250925092565b600080600080600080600080610100898b0312156139a957600080fd5b88516139b481613556565b809850506020890151965060408901519550606089015194506080890151935060a0890151925060c0890151915060e089015190509295985092959890939650565b634e487b7160e01b600052603260045260246000fd5b600060208284031215613a1e57600080fd5b815161202d81613556565b600081518084526020808501945080840160005b83811015613a625781516001600160a01b031687529582019590820190600101613a3d565b509495945050505050565b85815284602082015260a060408201526000613a8c60a0830186613a29565b6001600160a01b0394909416606083015250608001529392505050565b848152608060208201526000613ac26080830186613a29565b6001600160a01b03949094166040830152506060015292915050565b6000600160ff1b8201613af357613af36137bd565b506000039056fea2646970667358221220a1952e6f1150486b32dc460db6ad738b5bdb0cb95158e2693e760745b5b3a8ad64736f6c6343000813003360a06040523480156200001157600080fd5b5060408051808201825260168082527f546f6b656e5f4469766964656e645f547261636b65720000000000000000000060208084018290528451808601909552918452908301529081816003620000698382620001ac565b506004620000788282620001ac565b505050620000956200008f620000b160201b60201c565b620000b5565b505061025860115569043c33c193756480000060805262000278565b3390565b600580546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b634e487b7160e01b600052604160045260246000fd5b600181811c908216806200013257607f821691505b6020821081036200015357634e487b7160e01b600052602260045260246000fd5b50919050565b601f821115620001a757600081815260208120601f850160051c81016020861015620001825750805b601f850160051c820191505b81811015620001a3578281556001016200018e565b5050505b505050565b81516001600160401b03811115620001c857620001c862000107565b620001e081620001d984546200011d565b8462000159565b602080601f831160018114620002185760008415620001ff5750858301515b600019600386901b1c1916600185901b178555620001a3565b600085815260208120601f198616915b82811015620002495788860151825594840194600190910190840162000228565b5085821015620002685787850151600019600388901b60f8161c191681555b5050505050600190811b01905550565b608051611cc56200029b600039600081816104950152610af90152611cc56000f3fe608060405234801561001057600080fd5b506004361061021c5760003560e01c806385a6b3ae11610125578063be10b614116100ad578063e98030c71161007c578063e98030c7146104e5578063f2fde38b146104f8578063f97083671461050b578063fbcbc0f114610526578063ffb2c4791461053957600080fd5b8063be10b61414610490578063dd62ed3e146104b7578063e30443bc146104ca578063e7841ec0146104dd57600080fd5b8063a457c2d7116100f4578063a457c2d71461041b578063a8b9d2401461042e578063a9059cbb14610441578063aafd847a14610454578063bc4c4b371461047d57600080fd5b806385a6b3ae146103d25780638da5cb5b146103db57806391b89fba1461040057806395d89b411461041357600080fd5b806331e79db0116101a857806351c2a0e31161017757806351c2a0e31461037d5780636a474002146103905780636f2789ec1461039857806370a08231146103a1578063715018a6146103ca57600080fd5b806331e79db0146102da57806339509351146102ef5780634e7b827f146103025780635183d6fd1461032557600080fd5b8063226cfa3d116101ef578063226cfa3d1461027c57806323b872dd1461029c57806327ce0147146102af5780633009a609146102c2578063313ce567146102cb57600080fd5b806306fdde0314610221578063095ea7b31461023f57806309bbedde1461026257806318160ddd14610274575b600080fd5b610229610567565b60405161023691906119bb565b60405180910390f35b61025261024d366004611a1e565b6105f9565b6040519015158152602001610236565b600a545b604051908152602001610236565b600254610266565b61026661028a366004611a4a565b60106020526000908152604090205481565b6102526102aa366004611a67565b610613565b6102666102bd366004611a4a565b610637565b610266600e5481565b60405160128152602001610236565b6102ed6102e8366004611a4a565b610693565b005b6102526102fd366004611a1e565b610731565b610252610310366004611a4a565b600f6020526000908152604090205460ff1681565b610338610333366004611aa8565b610753565b604080516001600160a01b0390991689526020890197909752958701949094526060860192909252608085015260a084015260c083015260e082015261010001610236565b6102ed61038b366004611aa8565b6107c2565b6102ed610892565b61026660115481565b6102666103af366004611a4a565b6001600160a01b031660009081526020819052604090205490565b6102ed610938565b61026660095481565b6005546001600160a01b03165b6040516001600160a01b039091168152602001610236565b61026661040e366004611a4a565b61094a565b610229610955565b610252610429366004611a1e565b610964565b61026661043c366004611a4a565b6109df565b61025261044f366004611a1e565b610a0b565b610266610462366004611a4a565b6001600160a01b031660009081526008602052604090205490565b61025261048b366004611acf565b610a19565b6102667f000000000000000000000000000000000000000000000000000000000000000081565b6102666104c5366004611b08565b610aa4565b6102ed6104d8366004611a1e565b610acf565b600e54610266565b6102ed6104f3366004611aa8565b610b60565b6102ed610506366004611a4a565b610cb2565b6103e873576e2bed8f7b46d34016198911cdf9886f78bea781565b610338610534366004611a4a565b610d28565b61054c610547366004611aa8565b610e11565b60408051938452602084019290925290820152606001610236565b60606003805461057690611b36565b80601f01602080910402602001604051908101604052809291908181526020018280546105a290611b36565b80156105ef5780601f106105c4576101008083540402835291602001916105ef565b820191906000526020600020905b8154815290600101906020018083116105d257829003601f168201915b5050505050905090565b600033610607818585610f2e565b60019150505b92915050565b600033610621858285611052565b61062c8585856110cc565b506001949350505050565b6001600160a01b03811660009081526007602090815260408083205491839052822054600654600160801b92610689926106849261067e916106799190611129565b61113c565b9061114c565b61118a565b61060d9190611b86565b61069b61119d565b6001600160a01b0381166000908152600f602052604090205460ff16156106c157600080fd5b6001600160a01b0381166000908152600f60205260408120805460ff191660011790556106ef9082906111f7565b6106fa600a82611256565b6040516001600160a01b038216907fa878b31040b2e6d0a9a3d3361209db3908ba62014b0dca52adbaee451d128b2590600090a250565b6000336106078185856107448383610aa4565b61074e9190611ba8565b610f2e565b600080600080600080600080610768600a5490565b891061078d5750600096506000199550859450869350839250829150819050806107b7565b600061079a600a8b611391565b90506107a581610d28565b98509850985098509850985098509850505b919395975091939597565b6107ca61119d565b60006107d560025490565b116108135760405162461bcd60e51b8152602060048201526009602482015268139bc81c995dd85c9960ba1b60448201526064015b60405180910390fd5b801561088f5761084661082560025490565b61083383600160801b611129565b61083d9190611b86565b600654906113c4565b60065560405181815233907fa493a9229478c3fcd73f66d2cdeb7f94fd0f341da924d1054236d784541165119060200160405180910390a260095461088b90826113c4565b6009555b50565b60405162461bcd60e51b815260206004820152606760248201527f546f6b656e5f4469766964656e645f547261636b65723a20776974686472617760448201527f4469766964656e642064697361626c65642e20557365207468652027636c616960648201527f6d272066756e6374696f6e206f6e20746865206d61696e20546f6b656e20636f608482015266373a3930b1ba1760c91b60a482015260c40161080a565b565b61094061119d565b61093660006113d0565b600061060d826109df565b60606004805461057690611b36565b600033816109728286610aa4565b9050838110156109d25760405162461bcd60e51b815260206004820152602560248201527f45524332303a2064656372656173656420616c6c6f77616e63652062656c6f77604482015264207a65726f60d81b606482015260840161080a565b61062c8286868403610f2e565b6001600160a01b03811660009081526008602052604081205461060d90610a0584610637565b90611422565b6000336106078185856110cc565b6000610a2361119d565b6000610a2e8461142e565b90508015610a9a576001600160a01b038416600081815260106020526040908190204290555184151591907fa2c38e2d2fb7e3e1912d937fd1ca11ed6d51864dee4cfa7a7bf02becd7acf09290610a889085815260200190565b60405180910390a3600191505061060d565b5060009392505050565b6001600160a01b03918216600090815260016020908152604080832093909416825291909152205490565b610ad761119d565b6001600160a01b0382166000908152600f602052604090205460ff16610b5c577f00000000000000000000000000000000000000000000000000000000000000008110610b3957610b2882826111f7565b610b34600a83836115a3565b610b4f565b610b448260006111f7565b610b4f600a83611256565b610b5a826001610a19565b505b5050565b610b6861119d565b6107088110158015610b7d5750620151808111155b610c085760405162461bcd60e51b815260206004820152605060248201527f546f6b656e5f4469766964656e645f547261636b65723a20636c61696d57616960448201527f74206d757374206265207570646174656420746f206265747765656e2033306d60648201526f696e7320616e6420323420686f75727360801b608482015260a40161080a565b6011548103610c7f5760405162461bcd60e51b815260206004820152603d60248201527f546f6b656e5f4469766964656e645f547261636b65723a2043616e6e6f74207560448201527f706461746520636c61696d5761697420746f2073616d652076616c7565000000606482015260840161080a565b60115460405182907f474ea64804364a1e29a4487ddb63c3342a2dd826ccd8acf48825e680a0e6f20f90600090a3601155565b610cba61119d565b6001600160a01b038116610d1f5760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b606482015260840161080a565b61088f816113d0565b806000808080808080610d3c600a8961164c565b9650600019955060008712610d9e57600e54871115610d6a57600e54610d63908890611697565b9550610d9e565b600e54600a5460009110610d7f576000610d8e565b600e54600a54610d8e91611422565b9050610d9a888261114c565b9650505b610da7886109df565b9450610db288610637565b6001600160a01b038916600090815260106020526040902054909450925082610ddc576000610dea565b601154610dea9084906113c4565b9150428211610dfa576000610e04565b610e048242611422565b9050919395975091939597565b600a5460009081908190808203610e33575050600e5460009250829150610f27565b600e546000805a90506000805b8984108015610e4e57508582105b15610f165784610e5d81611bbb565b600a5490965086109050610e7057600094505b6000600a6000018681548110610e8857610e88611bd4565b60009182526020808320909101546001600160a01b03168083526010909152604090912054909150610eb9906116d4565b15610edc57610ec9816001610a19565b15610edc5781610ed881611bbb565b9250505b82610ee681611bbb565b93505060005a905080851115610f0d57610f0a610f038683611422565b87906113c4565b95505b9350610e409050565b600e85905590975095509193505050505b9193909250565b6001600160a01b038316610f905760405162461bcd60e51b8152602060048201526024808201527f45524332303a20617070726f76652066726f6d20746865207a65726f206164646044820152637265737360e01b606482015260840161080a565b6001600160a01b038216610ff15760405162461bcd60e51b815260206004820152602260248201527f45524332303a20617070726f766520746f20746865207a65726f206164647265604482015261737360f01b606482015260840161080a565b6001600160a01b0383811660008181526001602090815260408083209487168084529482529182902085905590518481527f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925910160405180910390a3505050565b600061105e8484610aa4565b905060001981146110c657818110156110b95760405162461bcd60e51b815260206004820152601d60248201527f45524332303a20696e73756666696369656e7420616c6c6f77616e6365000000604482015260640161080a565b6110c68484848403610f2e565b50505050565b60405162461bcd60e51b815260206004820152602c60248201527f546f6b656e5f4469766964656e645f547261636b65723a204e6f207472616e7360448201526b19995c9cc8185b1b1bddd95960a21b606482015260840161080a565b60006111358284611bea565b9392505050565b6000818181121561060d57600080fd5b6000806111598385611c01565b90506000831215801561116c5750838112155b80611181575060008312801561118157508381125b61113557600080fd5b60008082121561119957600080fd5b5090565b6005546001600160a01b031633146109365760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015260640161080a565b6001600160a01b038216600090815260208190526040902054808211156112365760006112248383611422565b905061123084826116fb565b50610b5a565b80821015610b5a57600061124a8284611422565b90506110c6848261175f565b6001600160a01b038116600090815260038301602052604090205460ff1661127c575050565b6001600160a01b03811660009081526003830160209081526040808320805460ff19169055600180860183528184208490556002860190925282205484549092916112c691611c29565b905060008460000182815481106112df576112df611bd4565b60009182526020808320909101546001600160a01b0390811680845260028901909252604080842087905590871683528220919091558554909150819086908590811061132e5761132e611bd4565b600091825260209091200180546001600160a01b0319166001600160a01b0392909216919091179055845485908061136857611368611c3c565b600082815260209020810160001990810180546001600160a01b03191690550190555050505050565b60008260000182815481106113a8576113a8611bd4565b6000918252602090912001546001600160a01b03169392505050565b60006111358284611ba8565b600580546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b60006111358284611c29565b60008061143a836109df565b9050801561159a576001600160a01b03831660009081526008602052604090205461146590826113c4565b6001600160a01b038416600081815260086020526040908190209290925590517fee503bee2bb6a87e57bc57db795f98137327401a0e7b7ce42e37926cc1a9ca4d906114b49084815260200190565b60405180910390a260405163a9059cbb60e01b81526001600160a01b03841660048201526024810182905260009073576e2bed8f7b46d34016198911cdf9886f78bea79063a9059cbb906044016020604051808303816000875af1158015611520573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906115449190611c52565b905080611593576001600160a01b03841660009081526008602052604090205461156e9083611422565b6001600160a01b03909416600090815260086020526040812094909455509192915050565b5092915050565b50600092915050565b6001600160a01b038216600090815260038401602052604090205460ff16156115e8576001600160a01b03821660009081526001840160205260409020819055610b5a565b6001600160a01b03821660008181526003850160209081526040808320805460ff19166001908117909155878101835281842086905587546002890184529184208290558101875586835291200180546001600160a01b0319169091179055505050565b6001600160a01b038116600090815260038301602052604081205460ff16611677575060001961060d565b506001600160a01b03166000908152600291909101602052604090205490565b6000806116a48385611c6f565b9050600083121580156116b75750838113155b806111815750600083128015611181575083811361113557600080fd5b6000428211156116e657506000919050565b6011546116f34284611422565b101592915050565b61170582826117a3565b61173f6117206106798360065461112990919063ffffffff16565b6001600160a01b03841660009081526007602052604090205490611697565b6001600160a01b0390921660009081526007602052604090209190915550565b6117698282611876565b61173f6117846106798360065461112990919063ffffffff16565b6001600160a01b0384166000908152600760205260409020549061114c565b6001600160a01b0382166117f95760405162461bcd60e51b815260206004820152601f60248201527f45524332303a206d696e7420746f20746865207a65726f206164647265737300604482015260640161080a565b61180560008383610b5a565b80600260008282546118179190611ba8565b90915550506001600160a01b038216600081815260208181526040808320805486019055518481527fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef910160405180910390a3610b5c60008383610b5a565b6001600160a01b0382166118d65760405162461bcd60e51b815260206004820152602160248201527f45524332303a206275726e2066726f6d20746865207a65726f206164647265736044820152607360f81b606482015260840161080a565b6118e282600083610b5a565b6001600160a01b038216600090815260208190526040902054818110156119565760405162461bcd60e51b815260206004820152602260248201527f45524332303a206275726e20616d6f756e7420657863656564732062616c616e604482015261636560f01b606482015260840161080a565b6001600160a01b0383166000818152602081815260408083208686039055600280548790039055518581529192917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef910160405180910390a3610b5a83600084610b5a565b600060208083528351808285015260005b818110156119e8578581018301518582016040015282016119cc565b506000604082860101526040601f19601f8301168501019250505092915050565b6001600160a01b038116811461088f57600080fd5b60008060408385031215611a3157600080fd5b8235611a3c81611a09565b946020939093013593505050565b600060208284031215611a5c57600080fd5b813561113581611a09565b600080600060608486031215611a7c57600080fd5b8335611a8781611a09565b92506020840135611a9781611a09565b929592945050506040919091013590565b600060208284031215611aba57600080fd5b5035919050565b801515811461088f57600080fd5b60008060408385031215611ae257600080fd5b8235611aed81611a09565b91506020830135611afd81611ac1565b809150509250929050565b60008060408385031215611b1b57600080fd5b8235611b2681611a09565b91506020830135611afd81611a09565b600181811c90821680611b4a57607f821691505b602082108103611b6a57634e487b7160e01b600052602260045260246000fd5b50919050565b634e487b7160e01b600052601160045260246000fd5b600082611ba357634e487b7160e01b600052601260045260246000fd5b500490565b8082018082111561060d5761060d611b70565b600060018201611bcd57611bcd611b70565b5060010190565b634e487b7160e01b600052603260045260246000fd5b808202811582820484141761060d5761060d611b70565b8082018281126000831280158216821582161715611c2157611c21611b70565b505092915050565b8181038181111561060d5761060d611b70565b634e487b7160e01b600052603160045260246000fd5b600060208284031215611c6457600080fd5b815161113581611ac1565b818103600083128015838313168383128216171561159357611593611b7056fea264697066735822122067cca77d4f51ee484b937eb5ce15e5b118a9e50e3d8ce0ca965f10f21fbd72e064736f6c634300081300330000000000000000000000007a250d5630b4cf539739df2c5dacb4c659f2488d000000000000000000000000df41763fac26ea57e6fc7ab1fe04f7c2fe77d939000000000000000000000000df41763fac26ea57e6fc7ab1fe04f7c2fe77d939
Deployed Bytecode
0x60806040526004361061044b5760003560e01c8063715018a611610234578063b62496f51161012e578063d5938aac116100b6578063e98030c71161007a578063e98030c714610d7f578063f27fd25414610d9f578063f2fde38b14610dbf578063f887ea4014610ddf578063f970836714610e1357600080fd5b8063d5938aac14610cce578063d7832b1114610cee578063dd62ed3e14610d04578063e15beb8014610d4a578063e7841ec014610d6a57600080fd5b8063cce7db58116100fd578063cce7db5814610c14578063d088935814610c34578063d1fce26414610c54578063d439979014610c75578063d51ed1c814610cae57600080fd5b8063b62496f514610b89578063bc7e68a314610bb9578063c1cf53c414610bcf578063ca33e64c14610bef57600080fd5b80639a7a23d6116101bc578063a4b45c0011610180578063a4b45c0014610aaf578063a8b9d24014610acf578063a9059cbb14610aef578063ad56c13c14610b0f578063af14052c14610b7457600080fd5b80639a7a23d614610a245780639ae7372d14610a445780639c1b8af514610a64578063a26579ad14610a7a578063a457c2d714610a8f57600080fd5b8063871c128d11610203578063871c128d1461099c57806389375abf146109bc5780638da5cb5b146109d25780639079f932146109f557806395d89b4114610a0f57600080fd5b8063715018a614610934578063749796a514610949578063753d02a11461096957806383b4ac681461097e57600080fd5b80632f34d282116103455780634e71d92d116102cd5780636843cd84116102915780636843cd84146108a55780636d351d1a146108c55780636ddd1713146108da578063700bb191146108f457806370a082311461091457600080fd5b80634e71d92d146108235780635ae21e6c146108385780635d0044ca1461085857806363eab10a1461087857806364b0f6531461089057600080fd5b806340a24e6c1161031457806340a24e6c1461078057806347062402146107a057806347a28b79146107c35780634cd9ddf2146107e35780634d709adf1461080357600080fd5b80632f34d2821461070957806330bb4cff14610729578063313ce5671461073e578063395093511461076057600080fd5b8063180b0d7e116103d357806327fa7b181161039757806327fa7b181461064c5780632b112e491461067c5780632b14ca56146106915780632be6937d146106d45780632c1f5216146106e957600080fd5b8063180b0d7e146105ab57806318160ddd146105c15780631da24f3e146105d6578063201e79911461060c57806323b872dd1461062c57600080fd5b8063095ea7b31161041a578063095ea7b3146105025780630af08314146105225780630fa604e4146105465780631161ae391461055b578063175bf3ce1461057b57600080fd5b806301b1682714610457578063046a2a801461047957806306fdde03146104a857806308b1fd8f146104ca57600080fd5b3661045257005b600080fd5b34801561046357600080fd5b506104776104723660046134e6565b610e3b565b005b34801561048557600080fd5b50601e546104939060ff1681565b60405190151581526020015b60405180910390f35b3480156104b457600080fd5b506104bd610e8b565b60405161049f9190613508565b3480156104d657600080fd5b506018546104ea906001600160a01b031681565b6040516001600160a01b03909116815260200161049f565b34801561050e57600080fd5b5061049361051d36600461356b565b610f1d565b34801561052e57600080fd5b5061053860135481565b60405190815260200161049f565b34801561055257600080fd5b50610538610ff8565b34801561056757600080fd5b506104936105763660046134e6565b611014565b34801561058757600080fd5b50610493610596366004613597565b60076020526000908152604090205460ff1681565b3480156105b757600080fd5b5061053860125481565b3480156105cd57600080fd5b50602054610538565b3480156105e257600080fd5b506105386105f1366004613597565b6001600160a01b031660009081526022602052604090205490565b34801561061857600080fd5b506104776106273660046134e6565b61102a565b34801561063857600080fd5b506104936106473660046135b4565b611072565b34801561065857600080fd5b50610493610667366004613597565b60066020526000908152604090205460ff1681565b34801561068857600080fd5b5061053861115f565b34801561069d57600080fd5b50600c54600d54600e54600f546106b49392919084565b60408051948552602085019390935291830152606082015260800161049f565b3480156106e057600080fd5b50610477611202565b3480156106f557600080fd5b506004546104ea906001600160a01b031681565b34801561071557600080fd5b50610477610724366004613597565b611248565b34801561073557600080fd5b506105386112a5565b34801561074a57600080fd5b5060025460405160ff909116815260200161049f565b34801561076c57600080fd5b5061049361077b36600461356b565b61131e565b34801561078c57600080fd5b5061047761079b366004613603565b6113f5565b3480156107ac57600080fd5b50600854600954600a54600b546106b49392919084565b3480156107cf57600080fd5b506104776107de36600461363c565b611428565b3480156107ef57600080fd5b506104776107fe366004613677565b6114e3565b34801561080f57600080fd5b506003546104ea906001600160a01b031681565b34801561082f57600080fd5b50610477611520565b34801561084457600080fd5b50610477610853366004613690565b611599565b34801561086457600080fd5b50610477610873366004613677565b6115e2565b34801561088457600080fd5b50601654421015610493565b34801561089c57600080fd5b506105386115ef565b3480156108b157600080fd5b506105386108c0366004613597565b611644565b3480156108d157600080fd5b506105386116b9565b3480156108e657600080fd5b50601b546104939060ff1681565b34801561090057600080fd5b5061047761090f366004613677565b6116d2565b34801561092057600080fd5b5061053861092f366004613597565b6117a6565b34801561094057600080fd5b506104776117ce565b34801561095557600080fd5b50610477610964366004613597565b6117e2565b34801561097557600080fd5b5061047761183e565b34801561098a57600080fd5b50601b54610100900460ff1615610493565b3480156109a857600080fd5b506104776109b7366004613677565b6118a8565b3480156109c857600080fd5b5061053860155481565b3480156109de57600080fd5b5060025461010090046001600160a01b03166104ea565b348015610a0157600080fd5b506017546104939060ff1681565b348015610a1b57600080fd5b506104bd6119d8565b348015610a3057600080fd5b50610477610a3f366004613603565b6119e7565b348015610a5057600080fd5b50610477610a5f366004613677565b6119fd565b348015610a7057600080fd5b50610538601f5481565b348015610a8657600080fd5b50610538611a3a565b348015610a9b57600080fd5b50610493610aaa36600461356b565b611a8f565b348015610abb57600080fd5b50610477610aca3660046136ad565b611baf565b348015610adb57600080fd5b50610538610aea366004613597565b611c2b565b348015610afb57600080fd5b50610493610b0a36600461356b565b611c63565b348015610b1b57600080fd5b50610b2f610b2a366004613597565b611ce5565b604080516001600160a01b0390991689526020890197909752958701949094526060860192909252608085015260a084015260c083015260e08201526101000161049f565b348015610b8057600080fd5b50610477611d82565b348015610b9557600080fd5b50610493610ba4366004613597565b60246020526000908152604090205460ff1681565b348015610bc557600080fd5b5061053860165481565b348015610bdb57600080fd5b50610477610bea36600461363c565b611e0f565b348015610bfb57600080fd5b506017546104ea9061010090046001600160a01b031681565b348015610c2057600080fd5b50610477610c2f366004613597565b611ebf565b348015610c4057600080fd5b50610477610c4f3660046136db565b611f3f565b348015610c6057600080fd5b5060045461049390600160a01b900460ff1681565b348015610c8157600080fd5b50610493610c90366004613597565b6001600160a01b031660009081526006602052604090205460ff1690565b348015610cba57600080fd5b50610538610cc9366004613677565b611fe0565b348015610cda57600080fd5b50610477610ce9366004613597565b612034565b348015610cfa57600080fd5b5061053860145481565b348015610d1057600080fd5b50610538610d1f3660046136ad565b6001600160a01b03918216600090815260236020908152604080832093909416825291909152205490565b348015610d5657600080fd5b50610477610d65366004613690565b612090565b348015610d7657600080fd5b506105386120d9565b348015610d8b57600080fd5b50610477610d9a366004613677565b61212e565b348015610dab57600080fd5b50610b2f610dba366004613677565b612195565b348015610dcb57600080fd5b50610477610dda366004613597565b6121d5565b348015610deb57600080fd5b506104ea7f0000000000000000000000007a250d5630b4cf539739df2c5dacb4c659f2488d81565b348015610e1f57600080fd5b506104ea73576e2bed8f7b46d34016198911cdf9886f78bea781565b610e4361224b565b6013829055601481905560408051838152602081018390527f22c4859cbe685717a6474106727f15898d2a50ebbec3c4b8e78e17d51041f9e291015b60405180910390a15050565b606060008054610e9a90613710565b80601f0160208091040260200160405190810160405280929190818152602001828054610ec690613710565b8015610f135780601f10610ee857610100808354040283529160200191610f13565b820191906000526020600020905b815481529060010190602001808311610ef657829003601f168201915b5050505050905090565b6000826001600160a01b038116610f4f5760405162461bcd60e51b8152600401610f469061374a565b60405180910390fd5b600454600160a01b900460ff1680610f7657503260009081526005602052604090205460ff165b610f925760405162461bcd60e51b8152600401610f4690613770565b3360008181526023602090815260408083206001600160a01b03891680855290835292819020879055518681529192917f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92591015b60405180910390a35060019392505050565b6000601d5461100561115f565b61100f91906137d3565b905090565b60008261102083611fe0565b1190505b92915050565b61103261224b565b6019829055601a81905560408051838152602081018390527faf4c7b1dbe87649b4a09d12e4fea2d8f7086b07913a76c3add0570d49080d0709101610e7f565b6000826001600160a01b03811661109b5760405162461bcd60e51b8152600401610f469061374a565b6001600160a01b038516600090815260236020908152604080832033845290915290205460001914611148576040805180820182526016815275496e73756666696369656e7420416c6c6f77616e636560501b6020808301919091526001600160a01b03881660009081526023825283812033825290915291909120546111239185906122ab565b6001600160a01b03861660009081526023602090815260408083203384529091529020555b6111538585856122d7565b50600195945050505050565b60215460226020527fb84cf808d0d5b1ad44962c9bfddd3cfce67763c49ab557cfd0e9f6804faade995461dead60009081527fb3dad1d3e53c1132e958712e36d3ff32b0d9b9088698eb172c6b4faa7ff6d22e54909261100f9290916111fc91906111f6906111d06012600a6138cb565b6111de906302cd29c06138d7565b6111ea906000196138ee565b6111f690600019613902565b906126af565b906126bb565b61120a61224b565b6004805460ff60a01b1916600160a01b1790556040517fc8c54f70f4fd274a3f41ef99f8cf8a1f0bcb08a163df0c9dbf89f9ecc040213b90600090a1565b61125061224b565b600380546001600160a01b0319166001600160a01b0383169081179091556040519081527f6cedd5f50351efbc40be01a919f6320ffe3e8270d9d277b886a78f30e3d08768906020015b60405180910390a150565b6000600460009054906101000a90046001600160a01b03166001600160a01b03166385a6b3ae6040518163ffffffff1660e01b8152600401602060405180830381865afa1580156112fa573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061100f9190613915565b600454600090600160a01b900460ff168061134857503260009081526005602052604090205460ff165b6113645760405162461bcd60e51b8152600401610f4690613770565b3360009081526023602090815260408083206001600160a01b038716845290915290205461139290836126c7565b3360008181526023602090815260408083206001600160a01b038916808552908352928190208590555193845290927f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925910160405180910390a350600192915050565b6113fd61224b565b6001600160a01b03919091166000908152600760205260409020805460ff1916911515919091179055565b61143061224b565b604080516080810182528681526020810186905290810184905260600182905260088590556009849055600a839055600b82905560128190558183611475868861392e565b61147f919061392e565b611489919061392e565b601055604080518681526020810186905290810184905260608101839052608081018290527fbe77f0ff3e38555aa3ca05891e69529ac4ae0b2fb08d4e03ae5495317e0f93ec9060a0015b60405180910390a15050505050565b6114eb61224b565b60158190556040518181527ffec4e86e9afe69e18641695805d49ee4e48c9e25ac483d7fcec03508c19073f69060200161129a565b6004805460405163bc4c4b3760e01b81523392810192909252600060248301526001600160a01b03169063bc4c4b37906044016020604051808303816000875af1158015611572573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906115969190613941565b50565b6115a161224b565b601e805460ff19168215159081179091556040519081527f1eed3bbd2da9ed45d0adc72d9b71ec477a9f1e858de75246a3b16a308609fdae9060200161129a565b6115ea61224b565b601d55565b6000600460009054906101000a90046001600160a01b03166001600160a01b03166309bbedde6040518163ffffffff1660e01b8152600401602060405180830381865afa1580156112fa573d6000803e3d6000fd5b600480546040516370a0823160e01b81526001600160a01b0384811693820193909352600092909116906370a08231906024015b602060405180830381865afa158015611695573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906110249190613915565b600061100f602154601c546126bb90919063ffffffff16565b600480546040516001624d3b8760e01b03198152918201839052600091829182916001600160a01b039091169063ffb2c479906024016060604051808303816000875af1158015611727573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061174b919061395e565b604080518481526020810184905290810182905260608101889052929550909350915032906000907fc864333d6121033635ab41b29ae52f10a22cf4438c3e4f1c4c68518feb2f8a989060800160405180910390a350505050565b6021546001600160a01b038216600090815260226020526040812054909161102491906126bb565b6117d661224b565b6117e060006126d3565b565b6117ea61224b565b6001600160a01b038116600081815260066020908152604091829020805460ff1916600117905590519182527f23c82dfc7128d260a240c76ad95ae807ed0f3cdc1774176bec1d6d6ff5bbd178910161129a565b600360009054906101000a90046001600160a01b03166001600160a01b031663fff6cae96040518163ffffffff1660e01b8152600401600060405180830381600087803b15801561188e57600080fd5b505af11580156118a2573d6000803e3d6000fd5b50505050565b6118b061224b565b62030d4081101580156118c657506207a1208111155b6119385760405162461bcd60e51b815260206004820152603b60248201527f546f6b656e3a20676173466f7250726f63657373696e67206d7573742062652060448201527f6265747765656e203230302c30303020616e64203530302c30303000000000006064820152608401610f46565b601f5481036119a55760405162461bcd60e51b815260206004820152603360248201527f546f6b656e3a2043616e6e6f742075706461746520676173466f7250726f63656044820152727373696e6720746f2073616d652076616c756560681b6064820152608401610f46565b601f5460405182907f40d7e40e79af4e8e5a9b3c57030d8ea93f13d669c06d448c4d631d4ae7d23db790600090a3601f55565b606060018054610e9a90613710565b6119ef61224b565b6119f9828261272d565b5050565b611a0561224b565b60168190556040518181527f84622aeb2c70c8d58df0a965c98e4de2994b09dc2bb96d4b2cdee09b147b1be79060200161129a565b6000600460009054906101000a90046001600160a01b03166001600160a01b0316636f2789ec6040518163ffffffff1660e01b8152600401602060405180830381865afa1580156112fa573d6000803e3d6000fd5b600454600090600160a01b900460ff1680611ab957503260009081526005602052604090205460ff165b611ad55760405162461bcd60e51b8152600401610f4690613770565b3360009081526023602090815260408083206001600160a01b0387168452909152902054808310611b29573360009081526023602090815260408083206001600160a01b0388168452909152812055611b58565b611b3381846126af565b3360009081526023602090815260408083206001600160a01b03891684529091529020555b3360008181526023602090815260408083206001600160a01b038916808552908352928190205490519081529192917f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b9259101610fe6565b611bb761224b565b60178054610100600160a81b0319166101006001600160a01b0385811691820292909217909255601880546001600160a01b03191691841691821790556040805192835260208301919091527f34e77fcf4a3214630fdde01f35b9ec10a409da44ba236dbd0fe24d28e1ae6fa49101610e7f565b600480546040516302a2e74960e61b81526001600160a01b03848116938201939093526000929091169063a8b9d24090602401611678565b6000826001600160a01b038116611c8c5760405162461bcd60e51b8152600401610f469061374a565b600454600160a01b900460ff1680611cb357503260009081526005602052604090205460ff165b611ccf5760405162461bcd60e51b8152600401610f4690613770565b611cda3385856122d7565b506001949350505050565b6004805460405163fbcbc0f160e01b81526001600160a01b03848116938201939093526000928392839283928392839283928392169063fbcbc0f1906024015b61010060405180830381865afa158015611d43573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611d67919061398c565b97509750975097509750975097509750919395975091939597565b611d8a61224b565b601b54610100900460ff16158015611da457506016544210155b611ddc5760405162461bcd60e51b81526020600482015260096024820152682a393c9030b3b0b4b760b91b6044820152606401610f46565b611de46127f8565b6040517f2a265bb18876d864fab8fce71f88ea1cdfc44a85da7924a2e50e29c45fa15e7790600090a1565b611e1761224b565b6040805160808101825286815260208101869052908101849052606001829052600c859055600d849055600e839055600f82905560128190558183611e5c868861392e565b611e66919061392e565b611e70919061392e565b601155604080518681526020810186905290810184905260608101839052608081018290527fe8304a476c997860e2d45c11feab55178c0f8f8002ad4a8f5762dfce9706a7b19060a0016114d4565b611ec761224b565b60405147906001600160a01b0383169082156108fc029083906000818181858888f19350505050158015611eff573d6000803e3d6000fd5b50604080516001600160a01b0384168152602081018390527f5169bf78d41c0bdef351d6c6d2beb3771899702f45be84e80606f00c744f82339101610e7f565b611f4761224b565b601b805460ff1916841515179055611f9582611f8f83611f696012600a6138cb565b611f77906302cd29c06138d7565b611f83906000196138ee565b6111fc90600019613902565b90612853565b601c55604080518415158152602081018490529081018290527fcbfd35a2b333f650f597e29718eb862c0670d146b662d8dd1d83ec4bcde0c4ac9060600160405180910390a1505050565b6021546003546001600160a01b03166000908152602260205260408120549091829161200b916126bb565b905061202d61201861115f565b6111fc612026846002612853565b8690612853565b9392505050565b61203c61224b565b6001600160a01b038116600081815260056020908152604091829020805460ff1916600117905590519182527f743cc7b65502c800c9ea4fe97c705035a32f51d73b3fd1cee18e0af42995b4b1910161129a565b61209861224b565b6017805460ff19168215159081179091556040519081527fee4bce7deca9263a3b246f9aea788f95a0abb66c093a5ae1b25d192abf11fc169060200161129a565b6000600460009054906101000a90046001600160a01b03166001600160a01b031663e7841ec06040518163ffffffff1660e01b8152600401602060405180830381865afa1580156112fa573d6000803e3d6000fd5b61213661224b565b6004805460405163e98030c760e01b81529182018390526001600160a01b03169063e98030c790602401600060405180830381600087803b15801561217a57600080fd5b505af115801561218e573d6000803e3d6000fd5b5050505050565b60048054604051635183d6fd60e01b815291820183905260009182918291829182918291829182916001600160a01b031690635183d6fd90602401611d25565b6121dd61224b565b6001600160a01b0381166122425760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610f46565b611596816126d3565b6002546001600160a01b036101009091041633146117e05760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610f46565b600081848411156122cf5760405162461bcd60e51b8152600401610f469190613508565b505050900390565b601b54600090610100900460ff16156122fc576122f584848461285f565b905061202d565b60006123136021548461285390919063ffffffff16565b905061231d6128f1565b1561232a5761232a612945565b6003546001600160a01b0385811691161480159061236157506001600160a01b03841660009081526007602052604090205460ff16155b801561236f5750601e5460ff165b156123e557600061237e610ff8565b9050808461238b876117a6565b612395919061392e565b11156123e35760405162461bcd60e51b815260206004820181905260248201527f42616c616e63652065786365656473206d61782077616c6c6574206c696d69746044820152606401610f46565b505b6001600160a01b03851660009081526022602052604090205461240890826126af565b6001600160a01b03861660009081526022602052604081209190915561242e86866130f4565b6124385781612443565b61244386868461316d565b6001600160a01b03861660009081526022602052604090205490915061246990826126c7565b6001600160a01b03808716600081815260226020526040902092909255602154908816907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef906124ba9085906126bb565b60405190815260200160405180910390a360165442101580156124df575060175460ff165b156124ec576124ec6127f8565b6004546001600160a01b031663e30443bc87612507816117a6565b6040516001600160e01b031960e085901b1681526001600160a01b0390921660048301526024820152604401600060405180830381600087803b15801561254d57600080fd5b505af192505050801561255e575060015b506004546001600160a01b031663e30443bc8661257a816117a6565b6040516001600160e01b031960e085901b1681526001600160a01b0390921660048301526024820152604401600060405180830381600087803b1580156125c057600080fd5b505af19250505080156125d1575060015b50601b54610100900460ff1661115357601f54600480546040516001624d3b8760e01b031981529182018390526001600160a01b03169063ffb2c479906024016060604051808303816000875af192505050801561264c575060408051601f3d908101601f191682019092526126499181019061395e565b60015b156126a25760408051848152602081018490529081018290526060810185905232906001907fc864333d6121033635ab41b29ae52f10a22cf4438c3e4f1c4c68518feb2f8a989060800160405180910390a35050505b5050600195945050505050565b600061202d8284613902565b600061202d82846137d3565b600061202d828461392e565b600280546001600160a01b03838116610100818102610100600160a81b031985161790945560405193909204169182907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b6001600160a01b0382166000908152602460205260409020805460ff191682158015919091179091556127bc576004805460405163031e79db60e41b81526001600160a01b03858116938201939093529116906331e79db090602401600060405180830381600087803b1580156127a357600080fd5b505af11580156127b7573d6000803e3d6000fd5b505050505b604051811515906001600160a01b038416907fffa9187bf1f18bf477bd0ea1bcbb64e93b6a98132473929edfce215cd9b16fab90600090a35050565b601b54610100900460ff166117e05742600061281261115f565b905060006128316014546111fc6013548561285390919063ffffffff16565b905061283d8382613360565b5060155461284b908461392e565b601655505050565b600061202d82846138d7565b6000806128776021548461285390919063ffffffff16565b6001600160a01b03861660009081526022602052604090205490915061289d90826126af565b6001600160a01b0380871660009081526022602052604080822093909355908616815220546128cc90826126c7565b6001600160a01b03851660009081526022602052604090205550600190509392505050565b6003546000906001600160a01b031633148015906129175750601b54610100900460ff16155b80156129255750601b5460ff165b801561100f575050601c5430600090815260226020526040902054101590565b601b805461ff001916610100179055601954601a5460009161296691611014565b61297f57600c5460085461297a919061392e565b612982565b60005b60215430600090815260226020526040812054929350916129a2916126bb565b905060006129c860026111fc6011546010546129be919061392e565b6111fc8688612853565b905060006129d683836126af565b60408051600280825260608201835292935060009290916020830190803683370190505090503081600081518110612a1057612a106139f6565b60200260200101906001600160a01b031690816001600160a01b0316815250507f0000000000000000000000007a250d5630b4cf539739df2c5dacb4c659f2488d6001600160a01b031663ad5c46486040518163ffffffff1660e01b8152600401602060405180830381865afa158015612a8e573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612ab29190613a0c565b81600181518110612ac557612ac56139f6565b6001600160a01b03928316602091820292909201015247907f0000000000000000000000007a250d5630b4cf539739df2c5dacb4c659f2488d1663791ac9478460008530612b1442606461392e565b6040518663ffffffff1660e01b8152600401612b34959493929190613a6d565b600060405180830381600087803b158015612b4e57600080fd5b505af1158015612b62573d6000803e3d6000fd5b505050506000612b7b82476126af90919063ffffffff16565b90506000612b9d612b8d8960026126bb565b6011546010546111f6919061392e565b90506000612bb260026111fc8481878e612853565b90506000612bda836111fc600c60010154600860010154612bd3919061392e565b8790612853565b90506000612c02846111fc600c60030154600860030154612bfb919061392e565b8890612853565b90508115612ca5576018546040516000916001600160a01b03169084908381818185875af1925050503d8060008114612c57576040519150601f19603f3d011682016040523d82523d6000602084013e612c5c565b606091505b5050905080612ca35760405162461bcd60e51b8152602060048201526013602482015272115512081d1c985b9cd9995c8819985a5b1959606a1b6044820152606401610f46565b505b8015612fe85760408051600280825260608201835290916020830190803683370190505096507f0000000000000000000000007a250d5630b4cf539739df2c5dacb4c659f2488d6001600160a01b031663ad5c46486040518163ffffffff1660e01b8152600401602060405180830381865afa158015612d29573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612d4d9190613a0c565b87600081518110612d6057612d606139f6565b60200260200101906001600160a01b031690816001600160a01b03168152505073576e2bed8f7b46d34016198911cdf9886f78bea787600181518110612da857612da86139f6565b6001600160a01b03928316602091820292909201015260405163b6f9de9560e01b81527f0000000000000000000000007a250d5630b4cf539739df2c5dacb4c659f2488d9091169063b6f9de95908390612e0d906000908c9030904290600401613aa9565b6000604051808303818588803b158015612e2657600080fd5b505af1158015612e3a573d6000803e3d6000fd5b50506040516370a0823160e01b81523060048201526000935073576e2bed8f7b46d34016198911cdf9886f78bea792506370a082319150602401602060405180830381865afa158015612e91573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612eb59190613915565b6004805460405163a9059cbb60e01b81526001600160a01b03909116918101919091526024810182905290915060009073576e2bed8f7b46d34016198911cdf9886f78bea79063a9059cbb906044016020604051808303816000875af1158015612f23573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612f479190613941565b90508015612fe557600480546040516351c2a0e360e01b81529182018490526001600160a01b0316906351c2a0e390602401600060405180830381600087803b158015612f9357600080fd5b505af1158015612fa7573d6000803e3d6000fd5b505050507fb0cc2628d6d644cf6be9d8110e142297ac910d6d8026d795a99f272fd9ad60b182604051612fdc91815260200190565b60405180910390a15b50505b88156130dc577f0000000000000000000000007a250d5630b4cf539739df2c5dacb4c659f2488d6001600160a01b031663f305d71984308c600080601760019054906101000a90046001600160a01b0316426064613046919061392e565b60405160e089901b6001600160e01b03191681526001600160a01b039687166004820152602481019590955260448501939093526064840191909152909216608482015260a481019190915260c40160606040518083038185885af11580156130b3573d6000803e3d6000fd5b50505050506040513d601f19601f820116820180604052508101906130d8919061395e565b5050505b5050601b805461ff0019169055505050505050505050565b6003546000906001600160a01b038481169116148061312057506003546001600160a01b038381169116145b801561202d57506001600160a01b03831660009081526006602052604090205460ff1615801561202d5750506001600160a01b031660009081526006602052604090205460ff1615919050565b6001600160a01b0383166000908152602460205260408120548190819060ff161561319f575050601054600a546131c9565b6001600160a01b03851660009081526024602052604090205460ff16156131c9575050601154600e545b8115613356576012546000906131e3906111fc8786612853565b905060006132006012546111fc858961285390919063ffffffff16565b905061320c8183613902565b3060009081526022602052604090205490925061322990836126c7565b306000818152602260205260409020919091556021546001600160a01b038a16907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef906132779086906126bb565b60405190815260200160405180910390a361dead60005260226020527fb3dad1d3e53c1132e958712e36d3ff32b0d9b9088698eb172c6b4faa7ff6d22e546132bf90826126c7565b61dead600081905260226020527fb3dad1d3e53c1132e958712e36d3ff32b0d9b9088698eb172c6b4faa7ff6d22e919091556021546001600160a01b038a16907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9061332c9085906126bb565b60405190815260200160405180910390a361334b816111f688856126af565b94505050505061202d565b5091949350505050565b6000816000036133af57827f72725a3b1e5bd622d6bcd1339bb31279c351abe8f541ac7fd320f24e1b1641f260205460405161339e91815260200190565b60405180910390a250602054611024565b60008212156133d5576133cd6133c483613ade565b602054906126af565b6020556133e6565b6020546133e290836126c7565b6020555b6133f26012600a6138cb565b6134019064e8d4a510006138d7565b6020541115613429576134166012600a6138cb565b6134259064e8d4a510006138d7565b6020555b60205461343c90611f696012600a6138cb565b6021556003546040805160016209351760e01b0319815290516001600160a01b039092169163fff6cae99160048082019260009290919082900301818387803b15801561348857600080fd5b505af115801561349c573d6000803e3d6000fd5b50505050827f72725a3b1e5bd622d6bcd1339bb31279c351abe8f541ac7fd320f24e1b1641f26020546040516134d491815260200190565b60405180910390a25060205492915050565b600080604083850312156134f957600080fd5b50508035926020909101359150565b600060208083528351808285015260005b8181101561353557858101830151858201604001528201613519565b506000604082860101526040601f19601f8301168501019250505092915050565b6001600160a01b038116811461159657600080fd5b6000806040838503121561357e57600080fd5b823561358981613556565b946020939093013593505050565b6000602082840312156135a957600080fd5b813561202d81613556565b6000806000606084860312156135c957600080fd5b83356135d481613556565b925060208401356135e481613556565b929592945050506040919091013590565b801515811461159657600080fd5b6000806040838503121561361657600080fd5b823561362181613556565b91506020830135613631816135f5565b809150509250929050565b600080600080600060a0868803121561365457600080fd5b505083359560208501359550604085013594606081013594506080013592509050565b60006020828403121561368957600080fd5b5035919050565b6000602082840312156136a257600080fd5b813561202d816135f5565b600080604083850312156136c057600080fd5b82356136cb81613556565b9150602083013561363181613556565b6000806000606084860312156136f057600080fd5b83356136fb816135f5565b95602085013595506040909401359392505050565b600181811c9082168061372457607f821691505b60208210810361374457634e487b7160e01b600052602260045260246000fd5b50919050565b6020808252600c908201526b5a65726f206164647265737360a01b604082015260600190565b60208082526019908201527f496e697469616c20646973747269627574696f6e206c6f636b00000000000000604082015260600190565b634e487b7160e01b600052601260045260246000fd5b634e487b7160e01b600052601160045260246000fd5b6000826137e2576137e26137a7565b500490565b600181815b80851115613822578160001904821115613808576138086137bd565b8085161561381557918102915b93841c93908002906137ec565b509250929050565b60008261383957506001611024565b8161384657506000611024565b816001811461385c576002811461386657613882565b6001915050611024565b60ff841115613877576138776137bd565b50506001821b611024565b5060208310610133831016604e8410600b84101617156138a5575081810a611024565b6138af83836137e7565b80600019048211156138c3576138c36137bd565b029392505050565b600061202d838361382a565b8082028115828204841417611024576110246137bd565b6000826138fd576138fd6137a7565b500690565b81810381811115611024576110246137bd565b60006020828403121561392757600080fd5b5051919050565b80820180821115611024576110246137bd565b60006020828403121561395357600080fd5b815161202d816135f5565b60008060006060848603121561397357600080fd5b8351925060208401519150604084015190509250925092565b600080600080600080600080610100898b0312156139a957600080fd5b88516139b481613556565b809850506020890151965060408901519550606089015194506080890151935060a0890151925060c0890151915060e089015190509295985092959890939650565b634e487b7160e01b600052603260045260246000fd5b600060208284031215613a1e57600080fd5b815161202d81613556565b600081518084526020808501945080840160005b83811015613a625781516001600160a01b031687529582019590820190600101613a3d565b509495945050505050565b85815284602082015260a060408201526000613a8c60a0830186613a29565b6001600160a01b0394909416606083015250608001529392505050565b848152608060208201526000613ac26080830186613a29565b6001600160a01b03949094166040830152506060015292915050565b6000600160ff1b8201613af357613af36137bd565b506000039056fea2646970667358221220a1952e6f1150486b32dc460db6ad738b5bdb0cb95158e2693e760745b5b3a8ad64736f6c63430008130033
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
0000000000000000000000007a250d5630b4cf539739df2c5dacb4c659f2488d000000000000000000000000df41763fac26ea57e6fc7ab1fe04f7c2fe77d939000000000000000000000000df41763fac26ea57e6fc7ab1fe04f7c2fe77d939
-----Decoded View---------------
Arg [0] : _router (address): 0x7a250d5630B4cF539739dF2C5dAcb4c659F2488D
Arg [1] : _autoLiquidityReceiver (address): 0xdF41763fac26Ea57e6fc7aB1Fe04f7c2FE77D939
Arg [2] : _treasuryReceiver (address): 0xdF41763fac26Ea57e6fc7aB1Fe04f7c2FE77D939
-----Encoded View---------------
3 Constructor Arguments found :
Arg [0] : 0000000000000000000000007a250d5630b4cf539739df2c5dacb4c659f2488d
Arg [1] : 000000000000000000000000df41763fac26ea57e6fc7ab1fe04f7c2fe77d939
Arg [2] : 000000000000000000000000df41763fac26ea57e6fc7ab1fe04f7c2fe77d939
Loading...
Loading
Loading...
Loading
Multichain Portfolio | 26 Chains
Chain | Token | Portfolio % | Price | Amount | Value |
---|
Loading...
Loading
[ Download: CSV Export ]
[ Download: CSV Export ]
A contract address hosts a smart contract, which is a set of code stored on the blockchain that runs when predetermined conditions are met. Learn more about addresses in our Knowledge Base.