Transactions
Token Transfers
Tokens
Internal Transactions
Coin Balance History
Logs
Code
Read Contract
Write Contract
Warning! Contract bytecode has been changed and doesn't match the verified one. Therefore, interaction with this smart contract may be risky.
This contract has been verified via Sourcify.
View contract in Sourcify repository
- Contract name:
- TGC
- Optimization enabled
- true
- Compiler version
- v0.8.2+commit.661d1103
- Optimization runs
- 200
- EVM Version
- istanbul
- Verified at
- 2024-10-17T07:36:45.147570Z
Constructor Arguments
60a060405234801561001057600080fd5b503360601b608052600080546001600160a01b031916737a250d5630b4cf539739df2c5dacb4c659f2488d17905560805160601c6105666100776000396000818160900152818161010001528181610220015281816102d3015261039301526105666000f3fe608060405234801561001057600080fd5b50600436106100575760003560e01c80631694505e1461005c5780635416995e1461008b5780637a16af7f146100b257806389a30271146100c7578063d015ed6a146100e2575b600080fd5b60005461006f906001600160a01b031681565b6040516001600160a01b03909116815260200160405180910390f35b61006f7f000000000000000000000000000000000000000000000000000000000000000081565b6100c56100c03660046104e2565b6100f5565b005b61006f73a0b86991c6218b36c1d19d4a2e9eb0ce3606eb4881565b6100c56100f0366004610485565b610388565b336001600160a01b037f0000000000000000000000000000000000000000000000000000000000000000161461015e5760405162461bcd60e51b815260206004820152600960248201526810aa23a1aa37b5b2b760b91b60448201526064015b60405180910390fd5b60005460405163095ea7b360e01b81526001600160a01b0390911660048201526024810183905273a0b86991c6218b36c1d19d4a2e9eb0ce3606eb489063095ea7b390604401602060405180830381600087803b1580156101be57600080fd5b505af11580156101d2573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906101f691906104bb565b5060005460405163095ea7b360e01b81526001600160a01b039182166004820152602481018390527f00000000000000000000000000000000000000000000000000000000000000009091169063095ea7b390604401602060405180830381600087803b15801561026657600080fd5b505af115801561027a573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061029e91906104bb565b506000805460405162e8e33760e81b815273a0b86991c6218b36c1d19d4a2e9eb0ce3606eb4860048201526001600160a01b037f00000000000000000000000000000000000000000000000000000000000000008116602483015260448201869052606482018590526084820184905260a48201939093523060c48201524260e482015291169063e8e337009061010401606060405180830381600087803b15801561034957600080fd5b505af115801561035d573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906103819190610503565b5050505050565b336001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016146103ec5760405162461bcd60e51b815260206004820152600960248201526810aa23a1aa37b5b2b760b91b6044820152606401610155565b60405163a9059cbb60e01b81526001600160a01b03831660048201526024810182905273a0b86991c6218b36c1d19d4a2e9eb0ce3606eb489063a9059cbb90604401602060405180830381600087803b15801561044857600080fd5b505af115801561045c573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061048091906104bb565b505050565b60008060408385031215610497578182fd5b82356001600160a01b03811681146104ad578283fd5b946020939093013593505050565b6000602082840312156104cc578081fd5b815180151581146104db578182fd5b9392505050565b600080604083850312156104f4578182fd5b50508035926020909101359150565b600080600060608486031215610517578081fd5b835192506020840151915060408401519050925092509256fea26469706673582212202b5cb31214072aed82a697be371757db30f5b23f427a66bf4b5c6b79c246180964736f6c63430008020033000000000000000000000000440773b5104a102c00ef26979a5c897155336a34
Arg [0] (address) : 0x600080fd5b503360601b60805260008054600160
contracts/TGC.sol
pragma solidity 0.8.2;
// SPDX-License-Identifier: Unlicensed
import "@openzeppelin/contracts/access/Ownable.sol";
import "@openzeppelin/contracts/token/ERC20/ERC20.sol";
import "@openzeppelin/contracts/utils/math/SafeMath.sol";
interface IUniswapV2Factory {
function createPair(address tokenA, address tokenB) external returns (address pair);
}
interface IUniswapV2Router {
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 getAmountsOut(uint amountIn, address[] memory path) external view returns (uint[] memory amounts);
function swapExactTokensForTokensSupportingFeeOnTransferTokens(uint amountIn, uint amountOutMin, address[] calldata path, address to, uint deadline) external;
}
interface IStaking {
function updatePool(uint256 amount) external;
}
interface ILiquidityProvider {
function provideLiquidity(uint256 USDCAmount, uint256 TGCAmount) external;
function transferUSDT(address marketing, uint256 amount) external;
}
contract LiquidityProvider is ILiquidityProvider {
using SafeMath for uint256;
address public immutable TGCToken;
address public constant USDC = address(0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48);
IUniswapV2Router public uniswapV2Router;
modifier onlyToken() {
require(msg.sender == TGCToken, "!TGCToken"); _;
}
constructor () {
TGCToken = msg.sender;
uniswapV2Router = IUniswapV2Router(0x7a250d5630B4cF539739dF2C5dAcb4c659F2488D);
}
function provideLiquidity(uint256 USDCAmount, uint256 TGCAmount) external override onlyToken {
IERC20(USDC).approve(address(uniswapV2Router), USDCAmount);
IERC20(TGCToken).approve(address(uniswapV2Router), TGCAmount);
uniswapV2Router.addLiquidity(
address(USDC),
address(TGCToken),
USDCAmount,
TGCAmount,
0,
0,
address(this),
block.timestamp
);
}
function transferUSDT(address marketing, uint256 amount) external override onlyToken {
IERC20(USDC).transfer(address(marketing), amount);
}
}
contract TGC is Ownable, ERC20 {
using SafeMath for uint256;
mapping (address => uint256) public _rOwned;
mapping (address => uint256) public _tOwned;
mapping (address => uint256) public totalSend;
mapping (address => uint256) public totalReceived;
mapping (address => uint256) public lockedAmount;
mapping (address => bool) public _isExcludedFromFee;
mapping (address => bool) public _isExcludedFromMaxBuyPerWallet;
mapping (address => bool) public _isExcludedFromReward;
mapping (address => bool) public _automatedMarketMakerPairs;
mapping (address => bool) public _isHolder;
address[] private _excluded;
address public constant burnWallet = address(0x000000000000000000000000000000000000dEaD);
address public constant USDC = address(0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48);
address public constant marketingWallet = address(0x79c059c6d44DfF4f21944D9D65CF0873597e1185);
IStaking public stakingContract;
address public LPProviderAddress;
uint256 private constant MAX = ~uint256(0);
uint256 private constant _tTotal = 1000000000 * (10**18);
uint256 private _rTotal = (MAX - (MAX % _tTotal));
uint256 private _tFeeTotal;
uint256 public liquidityFeeTotal;
uint256 public marketingFeeTotal;
uint256 public holders;
uint256[] public liquidityFee;
uint256[] public marketingFee;
uint256[] public reflectionFee;
uint256[] public stakingFee;
uint256[] public burnFee;
uint256 private _liquidityFee;
uint256 private _marketingFee;
uint256 private _reflectionFee;
uint256 private _stakingFee;
uint256 private _burnFee;
IUniswapV2Router public uniswapV2Router;
address public uniswapV2Pair;
LiquidityProvider public LPProvider;
bool private swapping;
uint256 public swapTokensAtAmount = 1250000 * (10**18);
uint256 public maxBuyPerWallet = 20000000 * (10**18);
event LockToken(uint256 amount, address user);
event UnLockToken(uint256 amount, address user);
event SwapTokensAmountUpdated(uint256 amount);
constructor (address owner) ERC20("The Grays Currency", "TGC") {
_rOwned[owner] = _rTotal;
uniswapV2Router = IUniswapV2Router(0x7a250d5630B4cF539739dF2C5dAcb4c659F2488D);
uniswapV2Pair = IUniswapV2Factory(uniswapV2Router.factory()).createPair(address(this), address(USDC));
LPProvider = new LiquidityProvider();
LPProviderAddress = address(LPProvider);
_setAutomatedMarketMakerPair(uniswapV2Pair, true);
_isExcludedFromFee[owner] = true;
_isExcludedFromFee[address(this)] = true;
_isExcludedFromFee[address(LPProviderAddress)] = true;
_isExcludedFromMaxBuyPerWallet[address(uniswapV2Pair)] = true;
_isExcludedFromMaxBuyPerWallet[address(this)] = true;
_isExcludedFromMaxBuyPerWallet[owner] = true;
_isExcludedFromMaxBuyPerWallet[address(LPProviderAddress)] = true;
liquidityFee.push(50);
liquidityFee.push(0);
liquidityFee.push(0);
liquidityFee.push(50);
liquidityFee.push(0);
marketingFee.push(250);
marketingFee.push(150);
marketingFee.push(100);
marketingFee.push(200);
marketingFee.push(0);
reflectionFee.push(200);
reflectionFee.push(100);
reflectionFee.push(100);
reflectionFee.push(500);
reflectionFee.push(0);
stakingFee.push(200);
stakingFee.push(200);
stakingFee.push(200);
stakingFee.push(300);
stakingFee.push(0);
burnFee.push(300);
burnFee.push(200);
burnFee.push(100);
burnFee.push(250);
burnFee.push(0);
_excludeFromReward(address(burnWallet));
_excludeFromReward(address(uniswapV2Pair));
_excludeFromReward(address(this));
_excludeFromReward(address(LPProviderAddress));
_isHolder[owner] = true;
holders += 1;
totalReceived[owner] +=_tTotal;
emit Transfer(address(0), owner, _tTotal);
}
receive() external payable {}
function totalSupply() public override pure returns (uint256) {
return _tTotal;
}
function balanceOf(address account) public override view returns (uint256) {
if (_isExcludedFromReward[account]) return _tOwned[account];
return tokenFromReflection(_rOwned[account]);
}
function tokenFromReflection(uint256 rAmount) public view returns(uint256) {
require(rAmount <= _rTotal, "Amount must be less than total reflections");
uint256 currentRate = _getRate();
return rAmount.div(currentRate);
}
function _excludeFromReward(address account) internal {
if(_rOwned[account] > 0) {
_tOwned[account] = tokenFromReflection(_rOwned[account]);
}
_isExcludedFromReward[account] = true;
_excluded.push(account);
}
function _setAutomatedMarketMakerPair(address pair, bool value) private {
require(_automatedMarketMakerPairs[pair] != value, "Automated market maker pair is already set to that value");
_automatedMarketMakerPairs[pair] = value;
}
function setStakingContract(IStaking contractAddress) external onlyOwner{
require(address(contractAddress) != address(0), "Zero address");
require(address(stakingContract) == address(0), "Staking contract already set");
stakingContract = IStaking(contractAddress);
_excludeFromReward(address(stakingContract));
_isExcludedFromFee[address(stakingContract)] = true;
}
function lockToken(uint256 amount, address user) external {
require(msg.sender == address(stakingContract), "sender not allowed");
uint256 unlockBalance = balanceOf(user) - lockedAmount[user];
require(unlockBalance >= amount, "locking amount exceeds balance");
lockedAmount[user] += amount;
emit LockToken(amount, user);
}
function unlockToken(uint256 amount, address user) external {
require(msg.sender == address(stakingContract), "sender not allowed");
require(lockedAmount[user] >= amount, "amount is not correct");
lockedAmount[user] -= amount;
emit UnLockToken(amount, user);
}
function unlockSend(uint256 amount, address user) external {
require(msg.sender == address(stakingContract), "sender not allowed");
require(lockedAmount[user] >= amount, "amount is not correct");
lockedAmount[user] -= amount;
IERC20(address(this)).transferFrom(address(user), address(stakingContract), amount);
emit UnLockToken(amount, user);
}
function airdropToken(uint256 amount) external {
require(amount > 0, "Transfer amount must be greater than zero");
require(balanceOf(msg.sender) - lockedAmount[msg.sender] >= amount, "transfer amount exceeds balance");
_tokenTransfer(msg.sender, address(this), amount, true, true);
}
function _reflectFee(uint256 rFee, uint256 tFee) private {
_rTotal = _rTotal.sub(rFee);
_tFeeTotal = _tFeeTotal.add(tFee);
}
function _getValues(uint256 tAmount) private view returns (uint256, uint256, uint256, uint256, uint256, uint256, uint256) {
(uint256 tTransferAmount, uint256 tFee, uint256 tLiquidity, uint256 tMarketing) = _getTValues(tAmount);
(uint256 rAmount, uint256 rTransferAmount, uint256 rFee) = _getRValues(tAmount, tFee, tLiquidity, tMarketing, _getRate());
return (rAmount, rTransferAmount, rFee, tTransferAmount, tFee, tLiquidity, tMarketing);
}
function _getTValues(uint256 tAmount) private view returns (uint256, uint256, uint256, uint256) {
uint256 tFee = calculateReflectionFee(tAmount);
uint256 tLiquidity = calculateLiquidityFee(tAmount);
uint256 tMarketing = calculateMarketingFee(tAmount);
uint256 tTransferAmount = tAmount.sub(tFee).sub(tLiquidity).sub(tMarketing);
return (tTransferAmount, tFee, tLiquidity, tMarketing);
}
function _getRValues(uint256 tAmount, uint256 tFee, uint256 tLiquidity, uint256 tMarketing, uint256 currentRate) private pure returns (uint256, uint256, uint256) {
uint256 rAmount = tAmount.mul(currentRate);
uint256 rFee = tFee.mul(currentRate);
uint256 rLiquidity = tLiquidity.mul(currentRate);
uint256 rMarketing = tMarketing.mul(currentRate);
uint256 rTransferAmount = rAmount.sub(rFee).sub(rLiquidity).sub(rMarketing);
return (rAmount, rTransferAmount, rFee);
}
function _getRate() private view returns(uint256) {
(uint256 rSupply, uint256 tSupply) = _getCurrentSupply();
return rSupply.div(tSupply);
}
function _getCurrentSupply() private view returns(uint256, uint256) {
uint256 rSupply = _rTotal;
uint256 tSupply = _tTotal;
for (uint256 i = 0; i < _excluded.length; i++) {
if (_rOwned[_excluded[i]] > rSupply || _tOwned[_excluded[i]] > tSupply) return (_rTotal, _tTotal);
rSupply = rSupply.sub(_rOwned[_excluded[i]]);
tSupply = tSupply.sub(_tOwned[_excluded[i]]);
}
if (rSupply < _rTotal.div(_tTotal)) return (_rTotal, _tTotal);
return (rSupply, tSupply);
}
function _takeLiquidity(uint256 tLiquidity) private {
uint256 currentRate = _getRate();
uint256 rLiquidity = tLiquidity.mul(currentRate);
_rOwned[address(this)] = _rOwned[address(this)].add(rLiquidity);
if(_isExcludedFromReward[address(this)])
_tOwned[address(this)] = _tOwned[address(this)].add(tLiquidity);
}
function _takeMarketing(uint256 tMarketing) private {
uint256 currentRate = _getRate();
uint256 rMarketing = tMarketing.mul(currentRate);
_rOwned[address(this)] = _rOwned[address(this)].add(rMarketing);
if(_isExcludedFromReward[address(this)])
_tOwned[address(this)] = _tOwned[address(this)].add(tMarketing);
}
function _takeStaking(uint256 tStaking) private {
uint256 currentRate = _getRate();
uint256 rStaking = tStaking.mul(currentRate);
_rOwned[address(stakingContract)] = _rOwned[address(stakingContract)].add(rStaking);
if(_isExcludedFromReward[address(stakingContract)])
_tOwned[address(stakingContract)] = _tOwned[address(stakingContract)].add(tStaking);
}
function _takeBurn(uint256 tBurn) private {
uint256 currentRate = _getRate();
uint256 rBurn = tBurn.mul(currentRate);
_rOwned[burnWallet] = _rOwned[burnWallet].add(rBurn);
if(_isExcludedFromReward[burnWallet])
_tOwned[burnWallet] = _tOwned[burnWallet].add(tBurn);
}
function calculateReflectionFee(uint256 _amount) private view returns (uint256) {
return _amount.mul(_reflectionFee).div(10000);
}
function calculateMarketingFee(uint256 _amount) private view returns (uint256) {
return _amount.mul(_marketingFee).div(10000);
}
function calculateStakingFee(uint256 _amount) private view returns (uint256) {
return _amount.mul(_stakingFee).div(10000);
}
function calculateLiquidityFee(uint256 _amount) private view returns (uint256) {
return _amount.mul(_liquidityFee).div(10000);
}
function calculateBurnFee(uint256 _amount) private view returns (uint256) {
return _amount.mul(_burnFee).div(10000);
}
function removeAllFee() private {
_reflectionFee = 0;
_stakingFee = 0;
_marketingFee = 0;
_liquidityFee = 0;
_burnFee = 0;
}
function applyBuyFeeTierOne() private {
_reflectionFee = reflectionFee[0];
_stakingFee = stakingFee[0];
_marketingFee = marketingFee[0];
_liquidityFee = liquidityFee[0];
_burnFee = burnFee[0];
}
function applyBuyFeeTierTwo() private {
_reflectionFee = reflectionFee[1];
_stakingFee = stakingFee[1];
_marketingFee = marketingFee[1];
_liquidityFee = liquidityFee[1];
_burnFee = burnFee[1];
}
function applyBuyFeeTierThree() private {
_reflectionFee = reflectionFee[2];
_stakingFee = stakingFee[2];
_marketingFee = marketingFee[2];
_liquidityFee = liquidityFee[2];
_burnFee = burnFee[2];
}
function applySellFee() private {
_reflectionFee = reflectionFee[3];
_stakingFee = stakingFee[3];
_marketingFee = marketingFee[3];
_liquidityFee = liquidityFee[3];
_burnFee = burnFee[3];
}
function applyP2PFee() private {
_reflectionFee = reflectionFee[4];
_stakingFee = stakingFee[4];
_marketingFee = marketingFee[4];
_liquidityFee = liquidityFee[4];
_burnFee = burnFee[4];
}
function applyAirdropFee() private {
_reflectionFee = 10000;
_stakingFee = 0;
_marketingFee = 0;
_liquidityFee = 0;
_burnFee = 0;
}
function _transfer(address from, address to, uint256 amount) internal override{
require(from != address(0), "ERC20: transfer from the zero address");
require(to != address(0), "ERC20: transfer to the zero address");
require(amount > 0, "Transfer amount must be greater than zero");
require(balanceOf(from) - lockedAmount[from] >= amount, "transfer amount exceeds balance");
if(!_isHolder[address(to)]) {
_isHolder[to] = true;
holders += 1;
}
if((balanceOf(from) - amount) == 0) {
_isHolder[from] = false;
holders -= 1;
}
if(!_isExcludedFromMaxBuyPerWallet[to] && _automatedMarketMakerPairs[from])
{
uint256 balanceRecepient = balanceOf(to);
require(balanceRecepient + amount <= maxBuyPerWallet, "Exceeds maximum buy per wallet limit");
}
uint256 contractTokenBalance = balanceOf(address(this));
bool canSwap = contractTokenBalance >= swapTokensAtAmount;
if (canSwap && !swapping && _automatedMarketMakerPairs[to])
{
uint256 tokenToLiqudity = liquidityFeeTotal.div(2);
uint256 tokenToMarketing = marketingFeeTotal;
uint256 tokenToSwap = tokenToLiqudity.add(tokenToMarketing);
if(tokenToSwap >= swapTokensAtAmount)
{
swapping = true;
address[] memory path = new address[](2);
path[0] = address(this);
path[1] = address(USDC);
uint256 USDCInitial = IERC20(USDC).balanceOf(address(LPProviderAddress));
_approve(address(this), address(uniswapV2Router), swapTokensAtAmount);
uniswapV2Router.swapExactTokensForTokensSupportingFeeOnTransferTokens(
swapTokensAtAmount,
0,
path,
address(LPProviderAddress),
block.timestamp.add(300)
);
uint256 USDCFinal = IERC20(USDC).balanceOf(address(LPProviderAddress)) - USDCInitial;
uint256 liqudityPart = USDCFinal.mul(tokenToLiqudity).div(tokenToSwap);
uint256 marketingPart = USDCFinal - liqudityPart;
if(liqudityPart > 0)
{
uint256 liqudityToken = swapTokensAtAmount.mul(tokenToLiqudity).div(tokenToSwap);
IERC20(address(this)).transfer(address(LPProviderAddress), liqudityToken);
LPProvider.provideLiquidity(liqudityPart, liqudityToken);
liquidityFeeTotal = liquidityFeeTotal.sub(liqudityToken).sub(liqudityToken);
}
if(marketingPart > 0)
{
LPProvider.transferUSDT(address(marketingWallet), marketingPart);
marketingFeeTotal = marketingFeeTotal.sub(swapTokensAtAmount.mul(tokenToMarketing).div(tokenToSwap));
}
swapping = false;
}
}
bool takeFee = true;
if(_isExcludedFromFee[from] || _isExcludedFromFee[to])
{
takeFee = false;
}
else
{
if(!_isHolder[address(this)]) {
_isHolder[address(this)] = true;
holders += 1;
}
if(!_isHolder[address(stakingContract)]) {
_isHolder[address(stakingContract)] = true;
holders += 1;
}
if(!_isHolder[address(burnWallet)]) {
_isHolder[address(burnWallet)] = true;
holders += 1;
}
}
_tokenTransfer(from,to,amount,takeFee,false);
}
function getQuotes(uint256 amountIn) public view returns (uint256){
address[] memory path = new address[](2);
path[0] = address(this);
path[1] = address(USDC);
uint256[] memory USDCRequired = uniswapV2Router.getAmountsOut(amountIn, path);
return USDCRequired[1];
}
function _tokenTransfer(address sender, address recipient, uint256 amount, bool takeFee, bool airdrop) private {
totalSend[sender] += amount;
if(!takeFee)
{
removeAllFee();
}
else if(airdrop)
{
applyAirdropFee();
}
else if(!_automatedMarketMakerPairs[sender] && !_automatedMarketMakerPairs[recipient])
{
applyP2PFee();
}
else if(_automatedMarketMakerPairs[recipient])
{
applySellFee();
}
else
{
uint256 USDCRequired = getQuotes(amount);
if(USDCRequired >= 20000 * 10**6)
{
applyBuyFeeTierThree();
}
else if(USDCRequired >= 10000 * 10**6)
{
applyBuyFeeTierTwo();
}
else
{
applyBuyFeeTierOne();
}
}
uint256 _totalFee = _reflectionFee + _stakingFee + _marketingFee + _liquidityFee + _burnFee;
if(_totalFee > 0)
{
uint256 _feeAmount = amount.mul(_totalFee).div(10000);
totalReceived[recipient] += amount.sub(_feeAmount);
}
else
{
totalReceived[recipient] += amount;
}
uint256 tBurn = calculateBurnFee(amount);
if(tBurn > 0)
{
_takeBurn(tBurn);
emit Transfer(sender, address(burnWallet), tBurn);
}
uint256 tStaking = calculateStakingFee(amount);
if(tStaking > 0)
{
_takeStaking(tStaking);
stakingContract.updatePool(tStaking);
emit Transfer(sender, address(stakingContract), tStaking);
}
if (_isExcludedFromReward[sender] && !_isExcludedFromReward[recipient])
{
_transferFromExcluded(sender, recipient, amount, tStaking, tBurn);
}
else if (!_isExcludedFromReward[sender] && _isExcludedFromReward[recipient])
{
_transferToExcluded(sender, recipient, amount, tStaking, tBurn);
}
else if (!_isExcludedFromReward[sender] && !_isExcludedFromReward[recipient])
{
_transferStandard(sender, recipient, amount, tStaking, tBurn);
}
else if (_isExcludedFromReward[sender] && _isExcludedFromReward[recipient])
{
_transferBothExcluded(sender, recipient, amount, tStaking, tBurn);
}
else
{
_transferStandard(sender, recipient, amount, tStaking, tBurn);
}
}
function _transferStandard(address sender, address recipient, uint256 tAmount, uint256 tStaking, uint256 tBurn) private {
(uint256 rAmount, uint256 rTransferAmount, uint256 rFee, uint256 tTransferAmount, uint256 tFee, uint256 tLiquidity, uint256 tMarketing) = _getValues(tAmount);
tTransferAmount = tTransferAmount.sub(tStaking).sub(tBurn);
rTransferAmount = rTransferAmount.sub(tStaking.mul(_getRate())).sub(tBurn.mul(_getRate()));
_rOwned[sender] = _rOwned[sender].sub(rAmount);
_rOwned[recipient] = _rOwned[recipient].add(rTransferAmount);
_takeLiquidity(tLiquidity);
_takeMarketing(tMarketing);
_reflectFee(rFee, tFee);
liquidityFeeTotal += tLiquidity;
marketingFeeTotal += tMarketing;
if(tMarketing.add(tLiquidity) > 0)
{
emit Transfer(sender, address(this), tMarketing.add(tLiquidity));
}
emit Transfer(sender, recipient, tTransferAmount);
}
function _transferToExcluded(address sender, address recipient, uint256 tAmount, uint256 tStaking, uint256 tBurn) private {
(uint256 rAmount, uint256 rTransferAmount, uint256 rFee, uint256 tTransferAmount, uint256 tFee, uint256 tLiquidity, uint256 tMarketing) = _getValues(tAmount);
tTransferAmount = tTransferAmount.sub(tStaking).sub(tBurn);
rTransferAmount = rTransferAmount.sub(tStaking.mul(_getRate())).sub(tBurn.mul(_getRate()));
_rOwned[sender] = _rOwned[sender].sub(rAmount);
_tOwned[recipient] = _tOwned[recipient].add(tTransferAmount);
_rOwned[recipient] = _rOwned[recipient].add(rTransferAmount);
_takeLiquidity(tLiquidity);
_takeMarketing(tMarketing);
_reflectFee(rFee, tFee);
liquidityFeeTotal += tLiquidity;
marketingFeeTotal += tMarketing;
if(tMarketing.add(tLiquidity) > 0)
{
emit Transfer(sender, address(this), tMarketing.add(tLiquidity));
}
emit Transfer(sender, recipient, tTransferAmount);
}
function _transferFromExcluded(address sender, address recipient, uint256 tAmount, uint256 tStaking, uint256 tBurn) private {
(uint256 rAmount, uint256 rTransferAmount, uint256 rFee, uint256 tTransferAmount, uint256 tFee, uint256 tLiquidity, uint256 tMarketing) = _getValues(tAmount);
tTransferAmount = tTransferAmount.sub(tStaking).sub(tBurn);
rTransferAmount = rTransferAmount.sub(tStaking.mul(_getRate())).sub(tBurn.mul(_getRate()));
_tOwned[sender] = _tOwned[sender].sub(tAmount);
_rOwned[sender] = _rOwned[sender].sub(rAmount);
_rOwned[recipient] = _rOwned[recipient].add(rTransferAmount);
_takeLiquidity(tLiquidity);
_takeMarketing(tMarketing);
_reflectFee(rFee, tFee);
liquidityFeeTotal += tLiquidity;
marketingFeeTotal += tMarketing;
if(tMarketing.add(tLiquidity) > 0)
{
emit Transfer(sender, address(this), tMarketing.add(tLiquidity));
}
emit Transfer(sender, recipient, tTransferAmount);
}
function _transferBothExcluded(address sender, address recipient, uint256 tAmount, uint256 tStaking, uint256 tBurn) private {
(uint256 rAmount, uint256 rTransferAmount, uint256 rFee, uint256 tTransferAmount, uint256 tFee, uint256 tLiquidity, uint256 tMarketing) = _getValues(tAmount);
tTransferAmount = tTransferAmount.sub(tStaking).sub(tBurn);
rTransferAmount = rTransferAmount.sub(tStaking.mul(_getRate())).sub(tBurn.mul(_getRate()));
_tOwned[sender] = _tOwned[sender].sub(tAmount);
_rOwned[sender] = _rOwned[sender].sub(rAmount);
_tOwned[recipient] = _tOwned[recipient].add(tTransferAmount);
_rOwned[recipient] = _rOwned[recipient].add(rTransferAmount);
_takeLiquidity(tLiquidity);
_takeMarketing(tMarketing);
_reflectFee(rFee, tFee);
liquidityFeeTotal += tLiquidity;
marketingFeeTotal += tMarketing;
if(tMarketing.add(tLiquidity) > 0)
{
emit Transfer(sender, address(this), tMarketing.add(tLiquidity));
}
emit Transfer(sender, recipient, tTransferAmount);
}
function setSwapTokensAtAmount(uint256 amount) external {
require(msg.sender == address(marketingWallet), "Incorrect request");
require(amount <= totalSupply(), "Amount cannot be over the total supply.");
swapTokensAtAmount = amount;
emit SwapTokensAmountUpdated(amount);
}
}
/extensions/IERC20Metadata.sol
// 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);
}
/SafeMath.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.6.0) (utils/math/SafeMath.sol)
pragma solidity ^0.8.0;
// CAUTION
// This version of SafeMath should only be used with Solidity 0.8 or later,
// because it relies on the compiler's built in overflow checks.
/**
* @dev Wrappers over Solidity's arithmetic operations.
*
* NOTE: `SafeMath` is generally not needed starting with Solidity 0.8, since the compiler
* now has built in overflow checking.
*/
library SafeMath {
/**
* @dev Returns the addition of two unsigned integers, with an overflow flag.
*
* _Available since v3.4._
*/
function tryAdd(uint256 a, uint256 b) internal pure returns (bool, uint256) {
unchecked {
uint256 c = a + b;
if (c < a) return (false, 0);
return (true, c);
}
}
/**
* @dev Returns the subtraction of two unsigned integers, with an overflow flag.
*
* _Available since v3.4._
*/
function trySub(uint256 a, uint256 b) internal pure returns (bool, uint256) {
unchecked {
if (b > a) return (false, 0);
return (true, a - b);
}
}
/**
* @dev Returns the multiplication of two unsigned integers, with an overflow flag.
*
* _Available since v3.4._
*/
function tryMul(uint256 a, uint256 b) internal pure returns (bool, uint256) {
unchecked {
// Gas optimization: this is cheaper than requiring 'a' not being zero, but the
// benefit is lost if 'b' is also tested.
// See: https://github.com/OpenZeppelin/openzeppelin-contracts/pull/522
if (a == 0) return (true, 0);
uint256 c = a * b;
if (c / a != b) return (false, 0);
return (true, c);
}
}
/**
* @dev Returns the division of two unsigned integers, with a division by zero flag.
*
* _Available since v3.4._
*/
function tryDiv(uint256 a, uint256 b) internal pure returns (bool, uint256) {
unchecked {
if (b == 0) return (false, 0);
return (true, a / b);
}
}
/**
* @dev Returns the remainder of dividing two unsigned integers, with a division by zero flag.
*
* _Available since v3.4._
*/
function tryMod(uint256 a, uint256 b) internal pure returns (bool, uint256) {
unchecked {
if (b == 0) return (false, 0);
return (true, a % b);
}
}
/**
* @dev Returns the addition of two unsigned integers, reverting on
* overflow.
*
* Counterpart to Solidity's `+` operator.
*
* Requirements:
*
* - Addition cannot overflow.
*/
function add(uint256 a, uint256 b) internal pure returns (uint256) {
return a + b;
}
/**
* @dev Returns the subtraction of two unsigned integers, reverting on
* overflow (when the result is negative).
*
* Counterpart to Solidity's `-` operator.
*
* Requirements:
*
* - Subtraction cannot overflow.
*/
function sub(uint256 a, uint256 b) internal pure returns (uint256) {
return a - b;
}
/**
* @dev Returns the multiplication of two unsigned integers, reverting on
* overflow.
*
* Counterpart to Solidity's `*` operator.
*
* Requirements:
*
* - Multiplication cannot overflow.
*/
function mul(uint256 a, uint256 b) internal pure returns (uint256) {
return a * b;
}
/**
* @dev Returns the integer division of two unsigned integers, reverting on
* division by zero. The result is rounded towards zero.
*
* Counterpart to Solidity's `/` operator.
*
* Requirements:
*
* - The divisor cannot be zero.
*/
function div(uint256 a, uint256 b) internal pure returns (uint256) {
return a / b;
}
/**
* @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo),
* reverting when dividing by zero.
*
* Counterpart to Solidity's `%` operator. This function uses a `revert`
* opcode (which leaves remaining gas untouched) while Solidity uses an
* invalid opcode to revert (consuming all remaining gas).
*
* Requirements:
*
* - The divisor cannot be zero.
*/
function mod(uint256 a, uint256 b) internal pure returns (uint256) {
return a % b;
}
/**
* @dev Returns the subtraction of two unsigned integers, reverting with custom message on
* overflow (when the result is negative).
*
* CAUTION: This function is deprecated because it requires allocating memory for the error
* message unnecessarily. For custom revert reasons use {trySub}.
*
* Counterpart to Solidity's `-` operator.
*
* Requirements:
*
* - Subtraction cannot overflow.
*/
function sub(
uint256 a,
uint256 b,
string memory errorMessage
) internal pure returns (uint256) {
unchecked {
require(b <= a, errorMessage);
return a - b;
}
}
/**
* @dev Returns the integer division of two unsigned integers, reverting with custom message on
* division by zero. The result is rounded towards zero.
*
* Counterpart to Solidity's `/` operator. Note: this function uses a
* `revert` opcode (which leaves remaining gas untouched) while Solidity
* uses an invalid opcode to revert (consuming all remaining gas).
*
* Requirements:
*
* - The divisor cannot be zero.
*/
function div(
uint256 a,
uint256 b,
string memory errorMessage
) internal pure returns (uint256) {
unchecked {
require(b > 0, errorMessage);
return a / b;
}
}
/**
* @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo),
* reverting with custom message when dividing by zero.
*
* CAUTION: This function is deprecated because it requires allocating memory for the error
* message unnecessarily. For custom revert reasons use {tryMod}.
*
* Counterpart to Solidity's `%` operator. This function uses a `revert`
* opcode (which leaves remaining gas untouched) while Solidity uses an
* invalid opcode to revert (consuming all remaining gas).
*
* Requirements:
*
* - The divisor cannot be zero.
*/
function mod(
uint256 a,
uint256 b,
string memory errorMessage
) internal pure returns (uint256) {
unchecked {
require(b > 0, errorMessage);
return a % b;
}
}
}
/IERC20.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.6.0) (token/ERC20/IERC20.sol)
pragma solidity ^0.8.0;
/**
* @dev Interface of the ERC20 standard as defined in the EIP.
*/
interface IERC20 {
/**
* @dev Emitted when `value` tokens are moved from one account (`from`) to
* another (`to`).
*
* Note that `value` may be zero.
*/
event Transfer(address indexed from, address indexed to, uint256 value);
/**
* @dev Emitted when the allowance of a `spender` for an `owner` is set by
* a call to {approve}. `value` is the new allowance.
*/
event Approval(address indexed owner, address indexed spender, uint256 value);
/**
* @dev Returns the amount of tokens in existence.
*/
function totalSupply() external view returns (uint256);
/**
* @dev Returns the amount of tokens owned by `account`.
*/
function balanceOf(address account) external view returns (uint256);
/**
* @dev Moves `amount` tokens from the caller's account to `to`.
*
* Returns a boolean value indicating whether the operation succeeded.
*
* Emits a {Transfer} event.
*/
function transfer(address to, uint256 amount) external returns (bool);
/**
* @dev Returns the remaining number of tokens that `spender` will be
* allowed to spend on behalf of `owner` through {transferFrom}. This is
* zero by default.
*
* This value changes when {approve} or {transferFrom} are called.
*/
function allowance(address owner, address spender) external view returns (uint256);
/**
* @dev Sets `amount` as the allowance of `spender` over the caller's tokens.
*
* Returns a boolean value indicating whether the operation succeeded.
*
* IMPORTANT: Beware that changing an allowance with this method brings the risk
* that someone may use both the old and the new allowance by unfortunate
* transaction ordering. One possible solution to mitigate this race
* condition is to first reduce the spender's allowance to 0 and set the
* desired value afterwards:
* https://github.com/ethereum/EIPs/issues/20#issuecomment-263524729
*
* Emits an {Approval} event.
*/
function approve(address spender, uint256 amount) external returns (bool);
/**
* @dev Moves `amount` tokens from `from` to `to` using the
* allowance mechanism. `amount` is then deducted from the caller's
* allowance.
*
* Returns a boolean value indicating whether the operation succeeded.
*
* Emits a {Transfer} event.
*/
function transferFrom(
address from,
address to,
uint256 amount
) external returns (bool);
}
/ERC20.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.7.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.zeppelin.solutions/t/how-to-implement-erc20-supply-mechanisms/226[How
* to implement supply mechanisms].
*
* We have followed general OpenZeppelin Contracts guidelines: functions revert
* instead returning `false` on failure. This behavior is nonetheless
* conventional and does not conflict with the expectations of ERC20
* applications.
*
* Additionally, an {Approval} event is emitted on calls to {transferFrom}.
* This allows applications to reconstruct the allowance for all accounts just
* by listening to said events. Other implementations of the EIP may not emit
* these events, as it isn't required by the specification.
*
* Finally, the non-standard {decreaseAllowance} and {increaseAllowance}
* functions have been added to mitigate the well-known issues around setting
* allowances. See {IERC20-approve}.
*/
contract ERC20 is Context, IERC20, IERC20Metadata {
mapping(address => uint256) private _balances;
mapping(address => mapping(address => uint256)) private _allowances;
uint256 private _totalSupply;
string private _name;
string private _symbol;
/**
* @dev Sets the values for {name} and {symbol}.
*
* The default value of {decimals} is 18. To select a different value for
* {decimals} you should overload it.
*
* All two of these values are immutable: they can only be set once during
* construction.
*/
constructor(string memory name_, string memory symbol_) {
_name = name_;
_symbol = symbol_;
}
/**
* @dev Returns the name of the token.
*/
function name() public view virtual override returns (string memory) {
return _name;
}
/**
* @dev Returns the symbol of the token, usually a shorter version of the
* name.
*/
function symbol() public view virtual override returns (string memory) {
return _symbol;
}
/**
* @dev Returns the number of decimals used to get its user representation.
* For example, if `decimals` equals `2`, a balance of `505` tokens should
* be displayed to a user as `5.05` (`505 / 10 ** 2`).
*
* Tokens usually opt for a value of 18, imitating the relationship between
* Ether and Wei. This is the value {ERC20} uses, unless this function is
* overridden;
*
* NOTE: This information is only used for _display_ purposes: it in
* no way affects any of the arithmetic of the contract, including
* {IERC20-balanceOf} and {IERC20-transfer}.
*/
function decimals() public view virtual override returns (uint8) {
return 18;
}
/**
* @dev See {IERC20-totalSupply}.
*/
function totalSupply() public view virtual override returns (uint256) {
return _totalSupply;
}
/**
* @dev See {IERC20-balanceOf}.
*/
function balanceOf(address account) public view virtual override returns (uint256) {
return _balances[account];
}
/**
* @dev See {IERC20-transfer}.
*
* Requirements:
*
* - `to` cannot be the zero address.
* - the caller must have a balance of at least `amount`.
*/
function transfer(address to, uint256 amount) public virtual override returns (bool) {
address owner = _msgSender();
_transfer(owner, to, amount);
return true;
}
/**
* @dev See {IERC20-allowance}.
*/
function allowance(address owner, address spender) public view virtual override returns (uint256) {
return _allowances[owner][spender];
}
/**
* @dev See {IERC20-approve}.
*
* NOTE: If `amount` is the maximum `uint256`, the allowance is not updated on
* `transferFrom`. This is semantically equivalent to an infinite approval.
*
* Requirements:
*
* - `spender` cannot be the zero address.
*/
function approve(address spender, uint256 amount) public virtual override returns (bool) {
address owner = _msgSender();
_approve(owner, spender, amount);
return true;
}
/**
* @dev See {IERC20-transferFrom}.
*
* Emits an {Approval} event indicating the updated allowance. This is not
* required by the EIP. See the note at the beginning of {ERC20}.
*
* NOTE: Does not update the allowance if the current allowance
* is the maximum `uint256`.
*
* Requirements:
*
* - `from` and `to` cannot be the zero address.
* - `from` must have a balance of at least `amount`.
* - the caller must have allowance for ``from``'s tokens of at least
* `amount`.
*/
function transferFrom(
address from,
address to,
uint256 amount
) public virtual override returns (bool) {
address spender = _msgSender();
_spendAllowance(from, spender, amount);
_transfer(from, to, amount);
return true;
}
/**
* @dev Atomically increases the allowance granted to `spender` by the caller.
*
* This is an alternative to {approve} that can be used as a mitigation for
* problems described in {IERC20-approve}.
*
* Emits an {Approval} event indicating the updated allowance.
*
* Requirements:
*
* - `spender` cannot be the zero address.
*/
function increaseAllowance(address spender, uint256 addedValue) public virtual returns (bool) {
address owner = _msgSender();
_approve(owner, spender, allowance(owner, spender) + addedValue);
return true;
}
/**
* @dev Atomically decreases the allowance granted to `spender` by the caller.
*
* This is an alternative to {approve} that can be used as a mitigation for
* problems described in {IERC20-approve}.
*
* Emits an {Approval} event indicating the updated allowance.
*
* Requirements:
*
* - `spender` cannot be the zero address.
* - `spender` must have allowance for the caller of at least
* `subtractedValue`.
*/
function decreaseAllowance(address spender, uint256 subtractedValue) public virtual returns (bool) {
address owner = _msgSender();
uint256 currentAllowance = allowance(owner, spender);
require(currentAllowance >= subtractedValue, "ERC20: decreased allowance below zero");
unchecked {
_approve(owner, spender, currentAllowance - subtractedValue);
}
return true;
}
/**
* @dev Moves `amount` of tokens from `from` to `to`.
*
* This internal function is equivalent to {transfer}, and can be used to
* e.g. implement automatic token fees, slashing mechanisms, etc.
*
* Emits a {Transfer} event.
*
* Requirements:
*
* - `from` cannot be the zero address.
* - `to` cannot be the zero address.
* - `from` must have a balance of at least `amount`.
*/
function _transfer(
address from,
address to,
uint256 amount
) internal virtual {
require(from != address(0), "ERC20: transfer from the zero address");
require(to != address(0), "ERC20: transfer to the zero address");
_beforeTokenTransfer(from, to, amount);
uint256 fromBalance = _balances[from];
require(fromBalance >= amount, "ERC20: transfer amount exceeds balance");
unchecked {
_balances[from] = fromBalance - amount;
}
_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;
_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;
}
_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 (last updated v4.7.0) (access/Ownable.sol)
pragma solidity ^0.8.0;
import "../utils/Context.sol";
/**
* @dev Contract module which provides a basic access control mechanism, where
* there is an account (an owner) that can be granted exclusive access to
* specific functions.
*
* By default, the owner account will be the one that deploys the contract. This
* can later be changed with {transferOwnership}.
*
* This module is used through inheritance. It will make available the modifier
* `onlyOwner`, which can be applied to your functions to restrict their use to
* the owner.
*/
abstract contract Ownable is Context {
address private _owner;
event OwnershipTransferred(address indexed previousOwner, address indexed newOwner);
/**
* @dev Initializes the contract setting the deployer as the initial owner.
*/
constructor() {
_transferOwnership(_msgSender());
}
/**
* @dev Throws if called by any account other than the owner.
*/
modifier onlyOwner() {
_checkOwner();
_;
}
/**
* @dev Returns the address of the current owner.
*/
function owner() public view virtual returns (address) {
return _owner;
}
/**
* @dev Throws if the sender is not the owner.
*/
function _checkOwner() internal view virtual {
require(owner() == _msgSender(), "Ownable: caller is not the owner");
}
/**
* @dev Leaves the contract without owner. It will not be possible to call
* `onlyOwner` functions anymore. Can only be called by the current owner.
*
* NOTE: Renouncing ownership will leave the contract without an owner,
* thereby removing any functionality that is only available to the owner.
*/
function renounceOwnership() public virtual onlyOwner {
_transferOwnership(address(0));
}
/**
* @dev Transfers ownership of the contract to a new account (`newOwner`).
* Can only be called by the current owner.
*/
function transferOwnership(address newOwner) public virtual onlyOwner {
require(newOwner != address(0), "Ownable: new owner is the zero address");
_transferOwnership(newOwner);
}
/**
* @dev Transfers ownership of the contract to a new account (`newOwner`).
* Internal function without access restriction.
*/
function _transferOwnership(address newOwner) internal virtual {
address oldOwner = _owner;
_owner = newOwner;
emit OwnershipTransferred(oldOwner, newOwner);
}
}
/
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts 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;
}
}
Compiler Settings
{"remappings":[],"optimizer":{"runs":200,"enabled":true},"metadata":{"bytecodeHash":"ipfs"},"libraries":{},"evmVersion":"istanbul","compilationTarget":{"contracts/TGC.sol":"TGC"}}
Contract ABI
[{"type":"constructor","stateMutability":"nonpayable","inputs":[{"type":"address","name":"owner","internalType":"address"}]},{"type":"event","name":"Approval","inputs":[{"type":"address","name":"owner","internalType":"address","indexed":true},{"type":"address","name":"spender","internalType":"address","indexed":true},{"type":"uint256","name":"value","internalType":"uint256","indexed":false}],"anonymous":false},{"type":"event","name":"LockToken","inputs":[{"type":"uint256","name":"amount","internalType":"uint256","indexed":false},{"type":"address","name":"user","internalType":"address","indexed":false}],"anonymous":false},{"type":"event","name":"OwnershipTransferred","inputs":[{"type":"address","name":"previousOwner","internalType":"address","indexed":true},{"type":"address","name":"newOwner","internalType":"address","indexed":true}],"anonymous":false},{"type":"event","name":"SwapTokensAmountUpdated","inputs":[{"type":"uint256","name":"amount","internalType":"uint256","indexed":false}],"anonymous":false},{"type":"event","name":"Transfer","inputs":[{"type":"address","name":"from","internalType":"address","indexed":true},{"type":"address","name":"to","internalType":"address","indexed":true},{"type":"uint256","name":"value","internalType":"uint256","indexed":false}],"anonymous":false},{"type":"event","name":"UnLockToken","inputs":[{"type":"uint256","name":"amount","internalType":"uint256","indexed":false},{"type":"address","name":"user","internalType":"address","indexed":false}],"anonymous":false},{"type":"function","stateMutability":"view","outputs":[{"type":"address","name":"","internalType":"contract LiquidityProvider"}],"name":"LPProvider","inputs":[]},{"type":"function","stateMutability":"view","outputs":[{"type":"address","name":"","internalType":"address"}],"name":"LPProviderAddress","inputs":[]},{"type":"function","stateMutability":"view","outputs":[{"type":"address","name":"","internalType":"address"}],"name":"USDC","inputs":[]},{"type":"function","stateMutability":"view","outputs":[{"type":"bool","name":"","internalType":"bool"}],"name":"_automatedMarketMakerPairs","inputs":[{"type":"address","name":"","internalType":"address"}]},{"type":"function","stateMutability":"view","outputs":[{"type":"bool","name":"","internalType":"bool"}],"name":"_isExcludedFromFee","inputs":[{"type":"address","name":"","internalType":"address"}]},{"type":"function","stateMutability":"view","outputs":[{"type":"bool","name":"","internalType":"bool"}],"name":"_isExcludedFromMaxBuyPerWallet","inputs":[{"type":"address","name":"","internalType":"address"}]},{"type":"function","stateMutability":"view","outputs":[{"type":"bool","name":"","internalType":"bool"}],"name":"_isExcludedFromReward","inputs":[{"type":"address","name":"","internalType":"address"}]},{"type":"function","stateMutability":"view","outputs":[{"type":"bool","name":"","internalType":"bool"}],"name":"_isHolder","inputs":[{"type":"address","name":"","internalType":"address"}]},{"type":"function","stateMutability":"view","outputs":[{"type":"uint256","name":"","internalType":"uint256"}],"name":"_rOwned","inputs":[{"type":"address","name":"","internalType":"address"}]},{"type":"function","stateMutability":"view","outputs":[{"type":"uint256","name":"","internalType":"uint256"}],"name":"_tOwned","inputs":[{"type":"address","name":"","internalType":"address"}]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"airdropToken","inputs":[{"type":"uint256","name":"amount","internalType":"uint256"}]},{"type":"function","stateMutability":"view","outputs":[{"type":"uint256","name":"","internalType":"uint256"}],"name":"allowance","inputs":[{"type":"address","name":"owner","internalType":"address"},{"type":"address","name":"spender","internalType":"address"}]},{"type":"function","stateMutability":"nonpayable","outputs":[{"type":"bool","name":"","internalType":"bool"}],"name":"approve","inputs":[{"type":"address","name":"spender","internalType":"address"},{"type":"uint256","name":"amount","internalType":"uint256"}]},{"type":"function","stateMutability":"view","outputs":[{"type":"uint256","name":"","internalType":"uint256"}],"name":"balanceOf","inputs":[{"type":"address","name":"account","internalType":"address"}]},{"type":"function","stateMutability":"view","outputs":[{"type":"uint256","name":"","internalType":"uint256"}],"name":"burnFee","inputs":[{"type":"uint256","name":"","internalType":"uint256"}]},{"type":"function","stateMutability":"view","outputs":[{"type":"address","name":"","internalType":"address"}],"name":"burnWallet","inputs":[]},{"type":"function","stateMutability":"view","outputs":[{"type":"uint8","name":"","internalType":"uint8"}],"name":"decimals","inputs":[]},{"type":"function","stateMutability":"nonpayable","outputs":[{"type":"bool","name":"","internalType":"bool"}],"name":"decreaseAllowance","inputs":[{"type":"address","name":"spender","internalType":"address"},{"type":"uint256","name":"subtractedValue","internalType":"uint256"}]},{"type":"function","stateMutability":"view","outputs":[{"type":"uint256","name":"","internalType":"uint256"}],"name":"getQuotes","inputs":[{"type":"uint256","name":"amountIn","internalType":"uint256"}]},{"type":"function","stateMutability":"view","outputs":[{"type":"uint256","name":"","internalType":"uint256"}],"name":"holders","inputs":[]},{"type":"function","stateMutability":"nonpayable","outputs":[{"type":"bool","name":"","internalType":"bool"}],"name":"increaseAllowance","inputs":[{"type":"address","name":"spender","internalType":"address"},{"type":"uint256","name":"addedValue","internalType":"uint256"}]},{"type":"function","stateMutability":"view","outputs":[{"type":"uint256","name":"","internalType":"uint256"}],"name":"liquidityFee","inputs":[{"type":"uint256","name":"","internalType":"uint256"}]},{"type":"function","stateMutability":"view","outputs":[{"type":"uint256","name":"","internalType":"uint256"}],"name":"liquidityFeeTotal","inputs":[]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"lockToken","inputs":[{"type":"uint256","name":"amount","internalType":"uint256"},{"type":"address","name":"user","internalType":"address"}]},{"type":"function","stateMutability":"view","outputs":[{"type":"uint256","name":"","internalType":"uint256"}],"name":"lockedAmount","inputs":[{"type":"address","name":"","internalType":"address"}]},{"type":"function","stateMutability":"view","outputs":[{"type":"uint256","name":"","internalType":"uint256"}],"name":"marketingFee","inputs":[{"type":"uint256","name":"","internalType":"uint256"}]},{"type":"function","stateMutability":"view","outputs":[{"type":"uint256","name":"","internalType":"uint256"}],"name":"marketingFeeTotal","inputs":[]},{"type":"function","stateMutability":"view","outputs":[{"type":"address","name":"","internalType":"address"}],"name":"marketingWallet","inputs":[]},{"type":"function","stateMutability":"view","outputs":[{"type":"uint256","name":"","internalType":"uint256"}],"name":"maxBuyPerWallet","inputs":[]},{"type":"function","stateMutability":"view","outputs":[{"type":"string","name":"","internalType":"string"}],"name":"name","inputs":[]},{"type":"function","stateMutability":"view","outputs":[{"type":"address","name":"","internalType":"address"}],"name":"owner","inputs":[]},{"type":"function","stateMutability":"view","outputs":[{"type":"uint256","name":"","internalType":"uint256"}],"name":"reflectionFee","inputs":[{"type":"uint256","name":"","internalType":"uint256"}]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"renounceOwnership","inputs":[]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"setStakingContract","inputs":[{"type":"address","name":"contractAddress","internalType":"contract IStaking"}]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"setSwapTokensAtAmount","inputs":[{"type":"uint256","name":"amount","internalType":"uint256"}]},{"type":"function","stateMutability":"view","outputs":[{"type":"address","name":"","internalType":"contract IStaking"}],"name":"stakingContract","inputs":[]},{"type":"function","stateMutability":"view","outputs":[{"type":"uint256","name":"","internalType":"uint256"}],"name":"stakingFee","inputs":[{"type":"uint256","name":"","internalType":"uint256"}]},{"type":"function","stateMutability":"view","outputs":[{"type":"uint256","name":"","internalType":"uint256"}],"name":"swapTokensAtAmount","inputs":[]},{"type":"function","stateMutability":"view","outputs":[{"type":"string","name":"","internalType":"string"}],"name":"symbol","inputs":[]},{"type":"function","stateMutability":"view","outputs":[{"type":"uint256","name":"","internalType":"uint256"}],"name":"tokenFromReflection","inputs":[{"type":"uint256","name":"rAmount","internalType":"uint256"}]},{"type":"function","stateMutability":"view","outputs":[{"type":"uint256","name":"","internalType":"uint256"}],"name":"totalReceived","inputs":[{"type":"address","name":"","internalType":"address"}]},{"type":"function","stateMutability":"view","outputs":[{"type":"uint256","name":"","internalType":"uint256"}],"name":"totalSend","inputs":[{"type":"address","name":"","internalType":"address"}]},{"type":"function","stateMutability":"pure","outputs":[{"type":"uint256","name":"","internalType":"uint256"}],"name":"totalSupply","inputs":[]},{"type":"function","stateMutability":"nonpayable","outputs":[{"type":"bool","name":"","internalType":"bool"}],"name":"transfer","inputs":[{"type":"address","name":"to","internalType":"address"},{"type":"uint256","name":"amount","internalType":"uint256"}]},{"type":"function","stateMutability":"nonpayable","outputs":[{"type":"bool","name":"","internalType":"bool"}],"name":"transferFrom","inputs":[{"type":"address","name":"from","internalType":"address"},{"type":"address","name":"to","internalType":"address"},{"type":"uint256","name":"amount","internalType":"uint256"}]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"transferOwnership","inputs":[{"type":"address","name":"newOwner","internalType":"address"}]},{"type":"function","stateMutability":"view","outputs":[{"type":"address","name":"","internalType":"address"}],"name":"uniswapV2Pair","inputs":[]},{"type":"function","stateMutability":"view","outputs":[{"type":"address","name":"","internalType":"contract IUniswapV2Router"}],"name":"uniswapV2Router","inputs":[]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"unlockSend","inputs":[{"type":"uint256","name":"amount","internalType":"uint256"},{"type":"address","name":"user","internalType":"address"}]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"unlockToken","inputs":[{"type":"uint256","name":"amount","internalType":"uint256"},{"type":"address","name":"user","internalType":"address"}]},{"type":"receive","stateMutability":"payable"}]
Contract Creation Code
0x60806040526200001e6b033b2e3c9fd0803ce800000060001962000cf2565b6200002c9060001962000c7d565b6013556a0108b2a2c28029094000006025556a108b2a2c280290940000006026553480156200005a57600080fd5b5060405162004c6e38038062004c6e8339810160408190526200007d9162000c22565b604051806040016040528060128152602001715468652047726179732043757272656e637960701b8152506040518060400160405280600381526020016254474360e81b815250620000de620000d86200068d60201b60201c565b62000691565b8151620000f390600490602085019062000b6e565b5080516200010990600590602084019062000b6e565b50506013546001600160a01b0380841660009081526006602090815260409182902093909355602280546001600160a01b031916737a250d5630b4cf539739df2c5dacb4c659f2488d1790819055815163c45a015560e01b815291519216935063c45a0155926004808301939192829003018186803b1580156200018c57600080fd5b505afa158015620001a1573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190620001c7919062000c22565b6040516364e329cb60e11b815230600482015273a0b86991c6218b36c1d19d4a2e9eb0ce3606eb4860248201526001600160a01b03919091169063c9c6539690604401602060405180830381600087803b1580156200022557600080fd5b505af11580156200023a573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019062000260919062000c22565b602380546001600160a01b0319166001600160a01b03929092169190911790556040516200028e9062000bfd565b604051809103906000f080158015620002ab573d6000803e3d6000fd5b50602480546001600160a01b039283166001600160a01b0319918216179182905560128054909116918316919091179055602354620002ed91166001620006e1565b6001600160a01b038181166000818152600b602090815260408083208054600160ff1991821681179092553080865283862080548316841790556012805489168752848720805484168517905560235489168752600c9095528386208054831684179055855282852080548216831790559484528184208054861682179055915490941682529281208054909216831790915560188054808401825560327fb13d2d76d1f4b7be834882e410b3e3a8afaf69f83600ae24db354391d2378d2e9182018190558254808601845582018490558254808601845582018490558254808601845582015581548085019092550181905560198054808401825560fa7f944998273e477b495144fb8794c914197f3ccb46be2900f4698fd0ef743c9695918201819055825480860184556096908301558254808601845560649083018190558354808701855560c8908401819055845480880190955593909201849055601a805480870182557f057c384a7d1c54f3a1b2e5e67b2617b8224fdfd1ea7234eea573a6ff665ff63e908101859055815480880183558101849055815480880183558101849055815480880183556101f490820155815480880190925501849055601b805480870182557f3ad8aa4f87544323a9d1e5dd902f40c356527a7955687113db5f9a85ad579dc19081018590558154808801835581018590558154808801835581018590558154808801835561012c90820181905582548089019093559101859055601c805480880182558187527f0e4562a10381dec21b205ed72637e6b1b523bdd0e4d4d50af5cd23dd4500a21190810192909255805480880182558201949094558354808701855581019290925582548086018455820155815493840190915591909101556200058561dead620007a7565b6023546200059c906001600160a01b0316620007a7565b620005a730620007a7565b601254620005be906001600160a01b0316620007a7565b6001600160a01b0381166000908152600f60205260408120805460ff191660019081179091556017805491929091620005f990849062000c4b565b90915550506001600160a01b038116600090815260096020526040812080546b033b2e3c9fd0803ce800000092906200063490849062000c4b565b90915550506040516b033b2e3c9fd0803ce800000081526001600160a01b038216906000907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9060200160405180910390a35062000d35565b3390565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b6001600160a01b0382166000908152600e602052604090205460ff16151581151514156200077c5760405162461bcd60e51b815260206004820152603860248201527f4175746f6d61746564206d61726b6574206d616b65722070616972206973206160448201527f6c72656164792073657420746f20746861742076616c7565000000000000000060648201526084015b60405180910390fd5b6001600160a01b03919091166000908152600e60205260409020805460ff1916911515919091179055565b6001600160a01b0381166000908152600660205260409020541562000804576001600160a01b038116600090815260066020526040902054620007ea906200086a565b6001600160a01b0382166000908152600760205260409020555b6001600160a01b03166000818152600d60205260408120805460ff191660019081179091556010805491820181559091527f1b6847dc741a1b0cd08d278845f9d819d87b734759afb55fe2de5cb82a9ae6720180546001600160a01b0319169091179055565b6000601354821115620008d35760405162461bcd60e51b815260206004820152602a60248201527f416d6f756e74206d757374206265206c657373207468616e20746f74616c207260448201526965666c656374696f6e7360b01b606482015260840162000773565b6000620008df62000902565b9050620008fb81846200093560201b620014cf1790919060201c565b9392505050565b600080806200091062000943565b915091506200092e81836200093560201b620014cf1790919060201c565b9250505090565b6000620008fb828462000c66565b60135460009081906b033b2e3c9fd0803ce8000000825b60105481101562000b09578260066000601084815481106200098c57634e487b7160e01b600052603260045260246000fd5b60009182526020808320909101546001600160a01b03168352820192909252604001902054118062000a075750816007600060108481548110620009e057634e487b7160e01b600052603260045260246000fd5b60009182526020808320909101546001600160a01b03168352820192909252604001902054115b1562000a2a576013546b033b2e3c9fd0803ce80000009450945050505062000b5c565b62000a8d600660006010848154811062000a5457634e487b7160e01b600052603260045260246000fd5b60009182526020808320909101546001600160a01b031683528281019390935260409091019020548591620014e262000b60821b17901c565b925062000af2600760006010848154811062000ab957634e487b7160e01b600052603260045260246000fd5b60009182526020808320909101546001600160a01b031683528281019390935260409091019020548491620014e262000b60821b17901c565b91508062000b008162000cd4565b9150506200095a565b5062000b326b033b2e3c9fd0803ce80000006013546200093560201b620014cf1790919060201c565b82101562000b56576013546b033b2e3c9fd0803ce800000093509350505062000b5c565b90925090505b9091565b6000620008fb828462000c7d565b82805462000b7c9062000c97565b90600052602060002090601f01602090048101928262000ba0576000855562000beb565b82601f1062000bbb57805160ff191683800117855562000beb565b8280016001018555821562000beb579182015b8281111562000beb57825182559160200191906001019062000bce565b5062000bf992915062000c0b565b5090565b6105dd806200469183390190565b5b8082111562000bf9576000815560010162000c0c565b60006020828403121562000c34578081fd5b81516001600160a01b0381168114620008fb578182fd5b6000821982111562000c615762000c6162000d09565b500190565b60008262000c785762000c7862000d1f565b500490565b60008282101562000c925762000c9262000d09565b500390565b60028104600182168062000cac57607f821691505b6020821081141562000cce57634e487b7160e01b600052602260045260246000fd5b50919050565b600060001982141562000ceb5762000ceb62000d09565b5060010190565b60008262000d045762000d0462000d1f565b500690565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052601260045260246000fd5b61394c8062000d456000396000f3fe6080604052600436106102cd5760003560e01c8063735039d111610175578063a153e708116100dc578063cec1460b11610095578063e2f456051161006f578063e2f456051461092a578063ee99205c14610940578063f2fde38b14610960578063fcef886714610980576102d4565b8063cec1460b146108ca578063d049bfef146108ea578063dd62ed3e1461090a576102d4565b8063a153e708146107e0578063a457c2d71461080d578063a9059cbb1461082d578063a9b232d91461084d578063afa4f3b21461087d578063c64a041b1461089d576102d4565b806389a302711161012e57806389a302711461072f5780638cadf61d146107575780638da5cb5b1461076d57806395d89b411461078b5780639dd373b9146107a0578063a046bc78146107c0576102d4565b8063735039d11461066b57806375f0a87414610681578063768dc710146106a95780638188f71c146106d957806382f2a18a146106ef57806382fb71191461070f576102d4565b80633b7e6d4a1161023457806357afa4c7116101ed5780636ba5b8b8116101c75780636ba5b8b81461060057806370a0823114610616578063715018a6146106365780637326afe01461064b576102d4565b806357afa4c71461058e5780635ee6d675146105b05780635f5cfb70146105e0576102d4565b80633b7e6d4a146104a45780633c6ca5c1146104d157806349ae028a1461050157806349bd5a5e146105215780634df9cfb3146105415780634ead1ef61461056e576102d4565b80631f366fd9116102865780631f366fd9146103d857806320bc08b6146103f857806323b872dd146104285780632d83811914610448578063313ce567146104685780633950935114610484576102d4565b806306228749146102d957806306fdde031461030c578063095ea7b31461032e5780630cfc15f91461035e5780631694505e1461039957806318160ddd146103b9576102d4565b366102d457005b600080fd5b3480156102e557600080fd5b506102ef61dead81565b6040516001600160a01b0390911681526020015b60405180910390f35b34801561031857600080fd5b506103216109a0565b60405161030391906136cc565b34801561033a57600080fd5b5061034e61034936600461352b565b610a32565b6040519015158152602001610303565b34801561036a57600080fd5b5061038b610379366004613497565b60066020526000908152604090205481565b604051908152602001610303565b3480156103a557600080fd5b506022546102ef906001600160a01b031681565b3480156103c557600080fd5b506b033b2e3c9fd0803ce800000061038b565b3480156103e457600080fd5b506012546102ef906001600160a01b031681565b34801561040457600080fd5b5061034e610413366004613497565b600c6020526000908152604090205460ff1681565b34801561043457600080fd5b5061034e6104433660046134eb565b610a4a565b34801561045457600080fd5b5061038b610463366004613635565b610a6e565b34801561047457600080fd5b5060405160128152602001610303565b34801561049057600080fd5b5061034e61049f36600461352b565b610af9565b3480156104b057600080fd5b5061038b6104bf366004613497565b60076020526000908152604090205481565b3480156104dd57600080fd5b5061034e6104ec366004613497565b600d6020526000908152604090205460ff1681565b34801561050d57600080fd5b5061038b61051c366004613635565b610b1b565b34801561052d57600080fd5b506023546102ef906001600160a01b031681565b34801561054d57600080fd5b5061038b61055c366004613497565b60096020526000908152604090205481565b34801561057a57600080fd5b5061038b610589366004613635565b610b3c565b34801561059a57600080fd5b506105ae6105a9366004613635565b610b4c565b005b3480156105bc57600080fd5b5061034e6105cb366004613497565b600f6020526000908152604090205460ff1681565b3480156105ec57600080fd5b506024546102ef906001600160a01b031681565b34801561060c57600080fd5b5061038b60155481565b34801561062257600080fd5b5061038b610631366004613497565b610bf0565b34801561064257600080fd5b506105ae610c58565b34801561065757600080fd5b506105ae610666366004613665565b610c6c565b34801561067757600080fd5b5061038b60165481565b34801561068d57600080fd5b506102ef7379c059c6d44dff4f21944d9d65cf0873597e118581565b3480156106b557600080fd5b5061034e6106c4366004613497565b600b6020526000908152604090205460ff1681565b3480156106e557600080fd5b5061038b60175481565b3480156106fb57600080fd5b506105ae61070a366004613665565b610d69565b34801561071b57600080fd5b5061038b61072a366004613635565b610eeb565b34801561073b57600080fd5b506102ef73a0b86991c6218b36c1d19d4a2e9eb0ce3606eb4881565b34801561076357600080fd5b5061038b60265481565b34801561077957600080fd5b506000546001600160a01b03166102ef565b34801561079757600080fd5b50610321610efb565b3480156107ac57600080fd5b506105ae6107bb366004613497565b610f0a565b3480156107cc57600080fd5b5061038b6107db366004613635565b611003565b3480156107ec57600080fd5b5061038b6107fb366004613497565b600a6020526000908152604090205481565b34801561081957600080fd5b5061034e61082836600461352b565b611013565b34801561083957600080fd5b5061034e61084836600461352b565b61108e565b34801561085957600080fd5b5061034e610868366004613497565b600e6020526000908152604090205460ff1681565b34801561088957600080fd5b506105ae610898366004613635565b61109c565b3480156108a957600080fd5b5061038b6108b8366004613497565b60086020526000908152604090205481565b3480156108d657600080fd5b506105ae6108e5366004613665565b61119a565b3480156108f657600080fd5b5061038b610905366004613635565b6112b5565b34801561091657600080fd5b5061038b6109253660046134b3565b61141e565b34801561093657600080fd5b5061038b60255481565b34801561094c57600080fd5b506011546102ef906001600160a01b031681565b34801561096c57600080fd5b506105ae61097b366004613497565b611449565b34801561098c57600080fd5b5061038b61099b366004613635565b6114bf565b6060600480546109af9061385f565b80601f01602080910402602001604051908101604052809291908181526020018280546109db9061385f565b8015610a285780601f106109fd57610100808354040283529160200191610a28565b820191906000526020600020905b815481529060010190602001808311610a0b57829003601f168201915b5050505050905090565b600033610a408185856114ee565b5060019392505050565b600033610a58858285611612565b610a6385858561168c565b506001949350505050565b6000601354821115610ada5760405162461bcd60e51b815260206004820152602a60248201527f416d6f756e74206d757374206265206c657373207468616e20746f74616c207260448201526965666c656374696f6e7360b01b60648201526084015b60405180910390fd5b6000610ae4612017565b9050610af083826114cf565b9150505b919050565b600033610a40818585610b0c838361141e565b610b1691906137f1565b6114ee565b601c8181548110610b2b57600080fd5b600091825260209091200154905081565b601b8181548110610b2b57600080fd5b60008111610b6c5760405162461bcd60e51b8152600401610ad19061374b565b336000818152600a60205260409020548291610b8790610bf0565b610b919190613848565b1015610bdf5760405162461bcd60e51b815260206004820152601f60248201527f7472616e7366657220616d6f756e7420657863656564732062616c616e6365006044820152606401610ad1565b610bed33308360018061203a565b50565b6001600160a01b0381166000908152600d602052604081205460ff1615610c3057506001600160a01b038116600090815260076020526040902054610af4565b6001600160a01b038216600090815260066020526040902054610c5290610a6e565b92915050565b610c60612496565b610c6a60006124f0565b565b6011546001600160a01b03163314610c965760405162461bcd60e51b8152600401610ad19061371f565b6001600160a01b0381166000908152600a6020526040902054821115610cf65760405162461bcd60e51b8152602060048201526015602482015274185b5bdd5b9d081a5cc81b9bdd0818dbdc9c9958dd605a1b6044820152606401610ad1565b6001600160a01b0381166000908152600a602052604081208054849290610d1e908490613848565b9091555050604080518381526001600160a01b03831660208201527f07f21a7b10dec6539c8130232c54cd2c270dfae3458016c8ddb4d29ac9d0a82b91015b60405180910390a15050565b6011546001600160a01b03163314610d935760405162461bcd60e51b8152600401610ad19061371f565b6001600160a01b0381166000908152600a6020526040902054821115610df35760405162461bcd60e51b8152602060048201526015602482015274185b5bdd5b9d081a5cc81b9bdd0818dbdc9c9958dd605a1b6044820152606401610ad1565b6001600160a01b0381166000908152600a602052604081208054849290610e1b908490613848565b90915550506011546040516323b872dd60e01b81526001600160a01b03808416600483015290911660248201526044810183905230906323b872dd90606401602060405180830381600087803b158015610e7457600080fd5b505af1158015610e88573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610eac9190613615565b50604080518381526001600160a01b03831660208201527f07f21a7b10dec6539c8130232c54cd2c270dfae3458016c8ddb4d29ac9d0a82b9101610d5d565b60198181548110610b2b57600080fd5b6060600580546109af9061385f565b610f12612496565b6001600160a01b038116610f575760405162461bcd60e51b815260206004820152600c60248201526b5a65726f206164647265737360a01b6044820152606401610ad1565b6011546001600160a01b031615610fb05760405162461bcd60e51b815260206004820152601c60248201527f5374616b696e6720636f6e747261637420616c726561647920736574000000006044820152606401610ad1565b601180546001600160a01b0319166001600160a01b038381169190911791829055610fdb9116612540565b506011546001600160a01b03166000908152600b60205260409020805460ff19166001179055565b60188181548110610b2b57600080fd5b60003381611021828661141e565b9050838110156110815760405162461bcd60e51b815260206004820152602560248201527f45524332303a2064656372656173656420616c6c6f77616e63652062656c6f77604482015264207a65726f60d81b6064820152608401610ad1565b610a6382868684036114ee565b600033610a4081858561168c565b337379c059c6d44dff4f21944d9d65cf0873597e1185146110f35760405162461bcd60e51b8152602060048201526011602482015270125b98dbdc9c9958dd081c995c5d595cdd607a1b6044820152606401610ad1565b6b033b2e3c9fd0803ce800000081111561115f5760405162461bcd60e51b815260206004820152602760248201527f416d6f756e742063616e6e6f74206265206f7665722074686520746f74616c2060448201526639bab838363c9760c91b6064820152608401610ad1565b60258190556040518181527f28ea3a80049e637c2f1bf658d47a07f688bea6e931f3c1930cf4a4daf97b18609060200160405180910390a150565b6011546001600160a01b031633146111c45760405162461bcd60e51b8152600401610ad19061371f565b6001600160a01b0381166000908152600a60205260408120546111e683610bf0565b6111f09190613848565b9050828110156112425760405162461bcd60e51b815260206004820152601e60248201527f6c6f636b696e6720616d6f756e7420657863656564732062616c616e636500006044820152606401610ad1565b6001600160a01b0382166000908152600a60205260408120805485929061126a9084906137f1565b9091555050604080518481526001600160a01b03841660208201527f73984e8db8b28e5bddacc2944750532e661c7b013e2cb7995f2e27cf54bb24d2910160405180910390a1505050565b6040805160028082526060820183526000928392919060208301908036833701905050905030816000815181106112fc57634e487b7160e01b600052603260045260246000fd5b60200260200101906001600160a01b031690816001600160a01b03168152505073a0b86991c6218b36c1d19d4a2e9eb0ce3606eb488160018151811061135257634e487b7160e01b600052603260045260246000fd5b6001600160a01b03928316602091820292909201015260225460405163d06ca61f60e01b8152600092919091169063d06ca61f906113969087908690600401613794565b60006040518083038186803b1580156113ae57600080fd5b505afa1580156113c2573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f191682016040526113ea9190810190613556565b90508060018151811061140d57634e487b7160e01b600052603260045260246000fd5b602002602001015192505050919050565b6001600160a01b03918216600090815260026020908152604080832093909416825291909152205490565b611451612496565b6001600160a01b0381166114b65760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610ad1565b610bed816124f0565b601a8181548110610b2b57600080fd5b60006114db8284613809565b9392505050565b60006114db8284613848565b6001600160a01b0383166115505760405162461bcd60e51b8152602060048201526024808201527f45524332303a20617070726f76652066726f6d20746865207a65726f206164646044820152637265737360e01b6064820152608401610ad1565b6001600160a01b0382166115b15760405162461bcd60e51b815260206004820152602260248201527f45524332303a20617070726f766520746f20746865207a65726f206164647265604482015261737360f01b6064820152608401610ad1565b6001600160a01b0383811660008181526002602090815260408083209487168084529482529182902085905590518481527f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925910160405180910390a3505050565b600061161e848461141e565b9050600019811461168657818110156116795760405162461bcd60e51b815260206004820152601d60248201527f45524332303a20696e73756666696369656e7420616c6c6f77616e63650000006044820152606401610ad1565b61168684848484036114ee565b50505050565b6001600160a01b0383166116f05760405162461bcd60e51b815260206004820152602560248201527f45524332303a207472616e736665722066726f6d20746865207a65726f206164604482015264647265737360d81b6064820152608401610ad1565b6001600160a01b0382166117525760405162461bcd60e51b815260206004820152602360248201527f45524332303a207472616e7366657220746f20746865207a65726f206164647260448201526265737360e81b6064820152608401610ad1565b600081116117725760405162461bcd60e51b8152600401610ad19061374b565b6001600160a01b0383166000908152600a6020526040902054819061179685610bf0565b6117a09190613848565b10156117ee5760405162461bcd60e51b815260206004820152601f60248201527f7472616e7366657220616d6f756e7420657863656564732062616c616e6365006044820152606401610ad1565b6001600160a01b0382166000908152600f602052604090205460ff1661184d576001600160a01b0382166000908152600f60205260408120805460ff1916600190811790915560178054919290916118479084906137f1565b90915550505b8061185784610bf0565b6118619190613848565b61189e576001600160a01b0383166000908152600f60205260408120805460ff191690556017805460019290611898908490613848565b90915550505b6001600160a01b0382166000908152600c602052604090205460ff161580156118df57506001600160a01b0383166000908152600e602052604090205460ff165b1561195b5760006118ef83610bf0565b6026549091506118ff83836137f1565b11156119595760405162461bcd60e51b8152602060048201526024808201527f45786365656473206d6178696d756d20627579207065722077616c6c6574206c6044820152631a5b5a5d60e21b6064820152608401610ad1565b505b600061196630610bf0565b602554909150811080159081906119875750602454600160a01b900460ff16155b80156119ab57506001600160a01b0384166000908152600e602052604090205460ff165b15611e79576015546000906119c19060026114cf565b60165490915060006119d38383612600565b90506025548110611e75576024805460ff60a01b1916600160a01b1790556040805160028082526060820183526000926020830190803683370190505090503081600081518110611a3457634e487b7160e01b600052603260045260246000fd5b60200260200101906001600160a01b031690816001600160a01b03168152505073a0b86991c6218b36c1d19d4a2e9eb0ce3606eb4881600181518110611a8a57634e487b7160e01b600052603260045260246000fd5b6001600160a01b0392831660209182029290920101526012546040516370a0823160e01b81529116600482015260009073a0b86991c6218b36c1d19d4a2e9eb0ce3606eb48906370a082319060240160206040518083038186803b158015611af157600080fd5b505afa158015611b05573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611b29919061364d565b602254602554919250611b479130916001600160a01b0316906114ee565b6022546025546012546001600160a01b0392831692635c11d7959291600091879116611b754261012c612600565b6040518663ffffffff1660e01b8152600401611b959594939291906137b5565b600060405180830381600087803b158015611baf57600080fd5b505af1158015611bc3573d6000803e3d6000fd5b50506012546040516370a0823160e01b81526001600160a01b0390911660048201526000925083915073a0b86991c6218b36c1d19d4a2e9eb0ce3606eb48906370a082319060240160206040518083038186803b158015611c2357600080fd5b505afa158015611c37573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611c5b919061364d565b611c659190613848565b90506000611c7d85611c77848a61260c565b906114cf565b90506000611c8b8284613848565b90508115611dbd576000611cae87611c778b60255461260c90919063ffffffff16565b60125460405163a9059cbb60e01b81526001600160a01b03909116600482015260248101829052909150309063a9059cbb90604401602060405180830381600087803b158015611cfd57600080fd5b505af1158015611d11573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611d359190613615565b5060248054604051637a16af7f60e01b8152600481018690529182018390526001600160a01b031690637a16af7f90604401600060405180830381600087803b158015611d8157600080fd5b505af1158015611d95573d6000803e3d6000fd5b50505050611db881611db2836015546114e290919063ffffffff16565b906114e2565b601555505b8015611e62576024805460405163680af6b560e11b81527379c059c6d44dff4f21944d9d65cf0873597e118560048201529182018390526001600160a01b03169063d015ed6a90604401600060405180830381600087803b158015611e2157600080fd5b505af1158015611e35573d6000803e3d6000fd5b50505050611e5e611e5587611c778a60255461260c90919063ffffffff16565b601654906114e2565b6016555b50506024805460ff60a01b191690555050505b5050505b6001600160a01b0385166000908152600b602052604090205460019060ff1680611ebb57506001600160a01b0385166000908152600b602052604090205460ff165b15611ec857506000612001565b306000908152600f602052604090205460ff16611f1557306000908152600f60205260408120805460ff191660019081179091556017805491929091611f0f9084906137f1565b90915550505b6011546001600160a01b03166000908152600f602052604090205460ff16611f78576011546001600160a01b03166000908152600f60205260408120805460ff191660019081179091556017805491929091611f729084906137f1565b90915550505b61dead600052600f6020527f99629f56119585bf27511b6b7d295dffb54757453fcc3dabcf51d92028301f105460ff166120015761dead6000908152600f6020527f99629f56119585bf27511b6b7d295dffb54757453fcc3dabcf51d92028301f10805460ff191660019081179091556017805491929091611ffb9084906137f1565b90915550505b61200f86868684600061203a565b505050505050565b6000806000612024612618565b909250905061203382826114cf565b9250505090565b6001600160a01b038516600090815260086020526040812080548592906120629084906137f1565b909155508290506120905761208b6000601f8190556020819055601e819055601d819055602155565b612171565b80156120b55761208b612710601f5560006020819055601e819055601d819055602155565b6001600160a01b0385166000908152600e602052604090205460ff161580156120f757506001600160a01b0384166000908152600e602052604090205460ff16155b156121045761208b6127fd565b6001600160a01b0384166000908152600e602052604090205460ff161561212d5761208b6128fc565b6000612138846112b5565b90506404a817c80081106121535761214e6129ea565b61216f565b6402540be40081106121675761214e612ad8565b61216f612bc6565b505b6000602154601d54601e54602054601f5461218c91906137f1565b61219691906137f1565b6121a091906137f1565b6121aa91906137f1565b905080156122045760006121c4612710611c77878561260c565b90506121d085826114e2565b6001600160a01b038716600090815260096020526040812080549091906121f89084906137f1565b90915550612232915050565b6001600160a01b0385166000908152600960205260408120805486929061222c9084906137f1565b90915550505b600061223d85612cb4565b9050801561227f5761224e81612cd1565b60405181815261dead906001600160a01b038916906000805160206138f78339815191529060200160405180910390a35b600061228a86612de4565b9050801561232e5761229b81612e01565b6011546040516328f582d360e11b8152600481018390526001600160a01b03909116906351eb05a690602401600060405180830381600087803b1580156122e157600080fd5b505af11580156122f5573d6000803e3d6000fd5b50506011546040518481526001600160a01b039182169350908b1691506000805160206138f78339815191529060200160405180910390a35b6001600160a01b0388166000908152600d602052604090205460ff16801561236f57506001600160a01b0387166000908152600d602052604090205460ff16155b15612386576123818888888486612ec0565b61248c565b6001600160a01b0388166000908152600d602052604090205460ff161580156123c757506001600160a01b0387166000908152600d602052604090205460ff165b156123d95761238188888884866130a7565b6001600160a01b0388166000908152600d602052604090205460ff1615801561241b57506001600160a01b0387166000908152600d602052604090205460ff16155b1561242d57612381888888848661317b565b6001600160a01b0388166000908152600d602052604090205460ff16801561246d57506001600160a01b0387166000908152600d602052604090205460ff165b1561247f5761238188888884866131ea565b61248c888888848661317b565b5050505050505050565b6000546001600160a01b03163314610c6a5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610ad1565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b6001600160a01b0381166000908152600660205260409020541561259a576001600160a01b03811660009081526006602052604090205461258090610a6e565b6001600160a01b0382166000908152600760205260409020555b6001600160a01b03166000818152600d60205260408120805460ff191660019081179091556010805491820181559091527f1b6847dc741a1b0cd08d278845f9d819d87b734759afb55fe2de5cb82a9ae6720180546001600160a01b0319169091179055565b60006114db82846137f1565b60006114db8284613829565b60135460009081906b033b2e3c9fd0803ce8000000825b6010548110156127b75782600660006010848154811061265f57634e487b7160e01b600052603260045260246000fd5b60009182526020808320909101546001600160a01b0316835282019290925260400190205411806126d857508160076000601084815481106126b157634e487b7160e01b600052603260045260246000fd5b60009182526020808320909101546001600160a01b03168352820192909252604001902054115b156126f9576013546b033b2e3c9fd0803ce8000000945094505050506127f9565b61274d600660006010848154811061272157634e487b7160e01b600052603260045260246000fd5b60009182526020808320909101546001600160a01b0316835282019290925260400190205484906114e2565b92506127a3600760006010848154811061277757634e487b7160e01b600052603260045260246000fd5b60009182526020808320909101546001600160a01b0316835282019290925260400190205483906114e2565b9150806127af8161389a565b91505061262f565b506013546127d1906b033b2e3c9fd0803ce80000006114cf565b8210156127f3576013546b033b2e3c9fd0803ce80000009350935050506127f9565b90925090505b9091565b601a60048154811061281f57634e487b7160e01b600052603260045260246000fd5b9060005260206000200154601f81905550601b60048154811061285257634e487b7160e01b600052603260045260246000fd5b9060005260206000200154602081905550601960048154811061288557634e487b7160e01b600052603260045260246000fd5b9060005260206000200154601e8190555060186004815481106128b857634e487b7160e01b600052603260045260246000fd5b9060005260206000200154601d81905550601c6004815481106128eb57634e487b7160e01b600052603260045260246000fd5b600091825260209091200154602155565b601a60038154811061291e57634e487b7160e01b600052603260045260246000fd5b9060005260206000200154601f81905550601b60038154811061295157634e487b7160e01b600052603260045260246000fd5b9060005260206000200154602081905550601960038154811061298457634e487b7160e01b600052603260045260246000fd5b9060005260206000200154601e8190555060186003815481106129b757634e487b7160e01b600052603260045260246000fd5b9060005260206000200154601d81905550601c6003815481106128eb57634e487b7160e01b600052603260045260246000fd5b601a600281548110612a0c57634e487b7160e01b600052603260045260246000fd5b9060005260206000200154601f81905550601b600281548110612a3f57634e487b7160e01b600052603260045260246000fd5b90600052602060002001546020819055506019600281548110612a7257634e487b7160e01b600052603260045260246000fd5b9060005260206000200154601e819055506018600281548110612aa557634e487b7160e01b600052603260045260246000fd5b9060005260206000200154601d81905550601c6002815481106128eb57634e487b7160e01b600052603260045260246000fd5b601a600181548110612afa57634e487b7160e01b600052603260045260246000fd5b9060005260206000200154601f81905550601b600181548110612b2d57634e487b7160e01b600052603260045260246000fd5b90600052602060002001546020819055506019600181548110612b6057634e487b7160e01b600052603260045260246000fd5b9060005260206000200154601e819055506018600181548110612b9357634e487b7160e01b600052603260045260246000fd5b9060005260206000200154601d81905550601c6001815481106128eb57634e487b7160e01b600052603260045260246000fd5b601a600081548110612be857634e487b7160e01b600052603260045260246000fd5b9060005260206000200154601f81905550601b600081548110612c1b57634e487b7160e01b600052603260045260246000fd5b90600052602060002001546020819055506019600081548110612c4e57634e487b7160e01b600052603260045260246000fd5b9060005260206000200154601e819055506018600081548110612c8157634e487b7160e01b600052603260045260246000fd5b9060005260206000200154601d81905550601c6000815481106128eb57634e487b7160e01b600052603260045260246000fd5b6000610c52612710611c776021548561260c90919063ffffffff16565b6000612cdb612017565b90506000612ce9838361260c565b61dead60005260066020527f1aecba4ebe7a4e0673e4891b2b092b2228e4322380b579fb494fad3da8586e2254909150612d239082612600565b61dead6000527f1aecba4ebe7a4e0673e4891b2b092b2228e4322380b579fb494fad3da8586e2255600d6020527fdc7fafdc41998a74ecacb8f8bd877011aba1f1d03a3a0d37a2e7879a393b1d6a5460ff1615612ddf5761dead60005260076020527fb0c2646e02af70b79e3fe9277b98373379f54150e4e26b2b5650139f7a75a65d54612db19084612600565b61dead60005260076020527fb0c2646e02af70b79e3fe9277b98373379f54150e4e26b2b5650139f7a75a65d555b505050565b6000610c52612710611c776020548561260c90919063ffffffff16565b6000612e0b612017565b90506000612e19838361260c565b6011546001600160a01b0316600090815260066020526040902054909150612e419082612600565b601180546001600160a01b0390811660009081526006602090815260408083209590955592549091168152600d909152205460ff1615612ddf576011546001600160a01b0316600090815260076020526040902054612ea09084612600565b6011546001600160a01b0316600090815260076020526040902055505050565b6000806000806000806000612ed48a613288565b9650965096509650965096509650612ef988611db28b876114e290919063ffffffff16565b9350612f2c612f10612f09612017565b8a9061260c565b611db2612f25612f1e612017565b8d9061260c565b89906114e2565b6001600160a01b038d16600090815260076020526040902054909650612f52908b6114e2565b6001600160a01b038d16600090815260076020908152604080832093909355600690522054612f8190886114e2565b6001600160a01b03808e1660009081526006602052604080822093909355908d1681522054612fb09087612600565b6001600160a01b038c16600090815260066020526040902055612fd2826132e3565b612fdb816132e3565b612fe5858461336b565b8160156000828254612ff791906137f1565b92505081905550806016600082825461301091906137f1565b90915550600090506130228284612600565b111561305e57306001600160a01b038d166000805160206138f783398151915261304c8486612600565b60405190815260200160405180910390a35b8a6001600160a01b03168c6001600160a01b03166000805160206138f78339815191528660405161309191815260200190565b60405180910390a3505050505050505050505050565b60008060008060008060006130bb8a613288565b96509650965096509650965096506130e088611db28b876114e290919063ffffffff16565b93506130f0612f10612f09612017565b6001600160a01b038d1660009081526006602052604090205490965061311690886114e2565b6001600160a01b03808e16600090815260066020908152604080832094909455918e1681526007909152205461314c9085612600565b6001600160a01b038c16600090815260076020908152604080832093909355600690522054612fb09087612600565b600080600080600080600061318f8a613288565b96509650965096509650965096506131b488611db28b876114e290919063ffffffff16565b93506131c4612f10612f09612017565b6001600160a01b038d16600090815260066020526040902054909650612f8190886114e2565b60008060008060008060006131fe8a613288565b965096509650965096509650965061322388611db28b876114e290919063ffffffff16565b9350613233612f10612f09612017565b6001600160a01b038d16600090815260076020526040902054909650613259908b6114e2565b6001600160a01b038d1660009081526007602090815260408083209390935560069052205461311690886114e2565b60008060008060008060008060008060006132a28c61338f565b935093509350935060008060006132c38f8787876132be612017565b6133de565b919f509d509b509599509397509195509350505050919395979092949650565b60006132ed612017565b905060006132fb838361260c565b306000908152600660205260409020549091506133189082612600565b30600090815260066020908152604080832093909355600d9052205460ff1615612ddf57306000908152600760205260409020546133569084612600565b30600090815260076020526040902055505050565b60135461337890836114e2565b6013556014546133889082612600565b6014555050565b60008060008060006133a086613440565b905060006133ad8761345d565b905060006133ba8861347a565b905060006133ce82611db285818d896114e2565b9993985091965094509092505050565b60008080806133ed898661260c565b905060006133fb898761260c565b90506000613409898861260c565b90506000613417898961260c565b9050600061342b82611db2858189896114e2565b949d949c50929a509298505050505050505050565b6000610c52612710611c77601f548561260c90919063ffffffff16565b6000610c52612710611c77601d548561260c90919063ffffffff16565b6000610c52612710611c77601e548561260c90919063ffffffff16565b6000602082840312156134a8578081fd5b81356114db816138e1565b600080604083850312156134c5578081fd5b82356134d0816138e1565b915060208301356134e0816138e1565b809150509250929050565b6000806000606084860312156134ff578081fd5b833561350a816138e1565b9250602084013561351a816138e1565b929592945050506040919091013590565b6000806040838503121561353d578182fd5b8235613548816138e1565b946020939093013593505050565b60006020808385031215613568578182fd5b825167ffffffffffffffff8082111561357f578384fd5b818501915085601f830112613592578384fd5b8151818111156135a4576135a46138cb565b838102604051601f19603f830116810181811085821117156135c8576135c86138cb565b604052828152858101935084860182860187018a10156135e6578788fd5b8795505b838610156136085780518552600195909501949386019386016135ea565b5098975050505050505050565b600060208284031215613626578081fd5b815180151581146114db578182fd5b600060208284031215613646578081fd5b5035919050565b60006020828403121561365e578081fd5b5051919050565b60008060408385031215613677578182fd5b8235915060208301356134e0816138e1565b6000815180845260208085019450808401835b838110156136c15781516001600160a01b03168752958201959082019060010161369c565b509495945050505050565b6000602080835283518082850152825b818110156136f8578581018301518582016040015282016136dc565b818111156137095783604083870101525b50601f01601f1916929092016040019392505050565b6020808252601290820152711cd95b99195c881b9bdd08185b1b1bddd95960721b604082015260600190565b60208082526029908201527f5472616e7366657220616d6f756e74206d7573742062652067726561746572206040820152687468616e207a65726f60b81b606082015260800190565b6000838252604060208301526137ad6040830184613689565b949350505050565b600086825285602083015260a060408301526137d460a0830186613689565b6001600160a01b0394909416606083015250608001529392505050565b60008219821115613804576138046138b5565b500190565b60008261382457634e487b7160e01b81526012600452602481fd5b500490565b6000816000190483118215151615613843576138436138b5565b500290565b60008282101561385a5761385a6138b5565b500390565b60028104600182168061387357607f821691505b6020821081141561389457634e487b7160e01b600052602260045260246000fd5b50919050565b60006000198214156138ae576138ae6138b5565b5060010190565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052604160045260246000fd5b6001600160a01b0381168114610bed57600080fdfeddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3efa264697066735822122011d85f3916b834ed0e0d8c09593db15140af873cc5a173f438d1ee453980e53764736f6c6343000802003360a060405234801561001057600080fd5b503360601b608052600080546001600160a01b031916737a250d5630b4cf539739df2c5dacb4c659f2488d17905560805160601c6105666100776000396000818160900152818161010001528181610220015281816102d3015261039301526105666000f3fe608060405234801561001057600080fd5b50600436106100575760003560e01c80631694505e1461005c5780635416995e1461008b5780637a16af7f146100b257806389a30271146100c7578063d015ed6a146100e2575b600080fd5b60005461006f906001600160a01b031681565b6040516001600160a01b03909116815260200160405180910390f35b61006f7f000000000000000000000000000000000000000000000000000000000000000081565b6100c56100c03660046104e2565b6100f5565b005b61006f73a0b86991c6218b36c1d19d4a2e9eb0ce3606eb4881565b6100c56100f0366004610485565b610388565b336001600160a01b037f0000000000000000000000000000000000000000000000000000000000000000161461015e5760405162461bcd60e51b815260206004820152600960248201526810aa23a1aa37b5b2b760b91b60448201526064015b60405180910390fd5b60005460405163095ea7b360e01b81526001600160a01b0390911660048201526024810183905273a0b86991c6218b36c1d19d4a2e9eb0ce3606eb489063095ea7b390604401602060405180830381600087803b1580156101be57600080fd5b505af11580156101d2573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906101f691906104bb565b5060005460405163095ea7b360e01b81526001600160a01b039182166004820152602481018390527f00000000000000000000000000000000000000000000000000000000000000009091169063095ea7b390604401602060405180830381600087803b15801561026657600080fd5b505af115801561027a573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061029e91906104bb565b506000805460405162e8e33760e81b815273a0b86991c6218b36c1d19d4a2e9eb0ce3606eb4860048201526001600160a01b037f00000000000000000000000000000000000000000000000000000000000000008116602483015260448201869052606482018590526084820184905260a48201939093523060c48201524260e482015291169063e8e337009061010401606060405180830381600087803b15801561034957600080fd5b505af115801561035d573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906103819190610503565b5050505050565b336001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016146103ec5760405162461bcd60e51b815260206004820152600960248201526810aa23a1aa37b5b2b760b91b6044820152606401610155565b60405163a9059cbb60e01b81526001600160a01b03831660048201526024810182905273a0b86991c6218b36c1d19d4a2e9eb0ce3606eb489063a9059cbb90604401602060405180830381600087803b15801561044857600080fd5b505af115801561045c573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061048091906104bb565b505050565b60008060408385031215610497578182fd5b82356001600160a01b03811681146104ad578283fd5b946020939093013593505050565b6000602082840312156104cc578081fd5b815180151581146104db578182fd5b9392505050565b600080604083850312156104f4578182fd5b50508035926020909101359150565b600080600060608486031215610517578081fd5b835192506020840151915060408401519050925092509256fea26469706673582212202b5cb31214072aed82a697be371757db30f5b23f427a66bf4b5c6b79c246180964736f6c63430008020033000000000000000000000000440773b5104a102c00ef26979a5c897155336a34
Deployed ByteCode
0x6080604052600436106102cd5760003560e01c8063735039d111610175578063a153e708116100dc578063cec1460b11610095578063e2f456051161006f578063e2f456051461092a578063ee99205c14610940578063f2fde38b14610960578063fcef886714610980576102d4565b8063cec1460b146108ca578063d049bfef146108ea578063dd62ed3e1461090a576102d4565b8063a153e708146107e0578063a457c2d71461080d578063a9059cbb1461082d578063a9b232d91461084d578063afa4f3b21461087d578063c64a041b1461089d576102d4565b806389a302711161012e57806389a302711461072f5780638cadf61d146107575780638da5cb5b1461076d57806395d89b411461078b5780639dd373b9146107a0578063a046bc78146107c0576102d4565b8063735039d11461066b57806375f0a87414610681578063768dc710146106a95780638188f71c146106d957806382f2a18a146106ef57806382fb71191461070f576102d4565b80633b7e6d4a1161023457806357afa4c7116101ed5780636ba5b8b8116101c75780636ba5b8b81461060057806370a0823114610616578063715018a6146106365780637326afe01461064b576102d4565b806357afa4c71461058e5780635ee6d675146105b05780635f5cfb70146105e0576102d4565b80633b7e6d4a146104a45780633c6ca5c1146104d157806349ae028a1461050157806349bd5a5e146105215780634df9cfb3146105415780634ead1ef61461056e576102d4565b80631f366fd9116102865780631f366fd9146103d857806320bc08b6146103f857806323b872dd146104285780632d83811914610448578063313ce567146104685780633950935114610484576102d4565b806306228749146102d957806306fdde031461030c578063095ea7b31461032e5780630cfc15f91461035e5780631694505e1461039957806318160ddd146103b9576102d4565b366102d457005b600080fd5b3480156102e557600080fd5b506102ef61dead81565b6040516001600160a01b0390911681526020015b60405180910390f35b34801561031857600080fd5b506103216109a0565b60405161030391906136cc565b34801561033a57600080fd5b5061034e61034936600461352b565b610a32565b6040519015158152602001610303565b34801561036a57600080fd5b5061038b610379366004613497565b60066020526000908152604090205481565b604051908152602001610303565b3480156103a557600080fd5b506022546102ef906001600160a01b031681565b3480156103c557600080fd5b506b033b2e3c9fd0803ce800000061038b565b3480156103e457600080fd5b506012546102ef906001600160a01b031681565b34801561040457600080fd5b5061034e610413366004613497565b600c6020526000908152604090205460ff1681565b34801561043457600080fd5b5061034e6104433660046134eb565b610a4a565b34801561045457600080fd5b5061038b610463366004613635565b610a6e565b34801561047457600080fd5b5060405160128152602001610303565b34801561049057600080fd5b5061034e61049f36600461352b565b610af9565b3480156104b057600080fd5b5061038b6104bf366004613497565b60076020526000908152604090205481565b3480156104dd57600080fd5b5061034e6104ec366004613497565b600d6020526000908152604090205460ff1681565b34801561050d57600080fd5b5061038b61051c366004613635565b610b1b565b34801561052d57600080fd5b506023546102ef906001600160a01b031681565b34801561054d57600080fd5b5061038b61055c366004613497565b60096020526000908152604090205481565b34801561057a57600080fd5b5061038b610589366004613635565b610b3c565b34801561059a57600080fd5b506105ae6105a9366004613635565b610b4c565b005b3480156105bc57600080fd5b5061034e6105cb366004613497565b600f6020526000908152604090205460ff1681565b3480156105ec57600080fd5b506024546102ef906001600160a01b031681565b34801561060c57600080fd5b5061038b60155481565b34801561062257600080fd5b5061038b610631366004613497565b610bf0565b34801561064257600080fd5b506105ae610c58565b34801561065757600080fd5b506105ae610666366004613665565b610c6c565b34801561067757600080fd5b5061038b60165481565b34801561068d57600080fd5b506102ef7379c059c6d44dff4f21944d9d65cf0873597e118581565b3480156106b557600080fd5b5061034e6106c4366004613497565b600b6020526000908152604090205460ff1681565b3480156106e557600080fd5b5061038b60175481565b3480156106fb57600080fd5b506105ae61070a366004613665565b610d69565b34801561071b57600080fd5b5061038b61072a366004613635565b610eeb565b34801561073b57600080fd5b506102ef73a0b86991c6218b36c1d19d4a2e9eb0ce3606eb4881565b34801561076357600080fd5b5061038b60265481565b34801561077957600080fd5b506000546001600160a01b03166102ef565b34801561079757600080fd5b50610321610efb565b3480156107ac57600080fd5b506105ae6107bb366004613497565b610f0a565b3480156107cc57600080fd5b5061038b6107db366004613635565b611003565b3480156107ec57600080fd5b5061038b6107fb366004613497565b600a6020526000908152604090205481565b34801561081957600080fd5b5061034e61082836600461352b565b611013565b34801561083957600080fd5b5061034e61084836600461352b565b61108e565b34801561085957600080fd5b5061034e610868366004613497565b600e6020526000908152604090205460ff1681565b34801561088957600080fd5b506105ae610898366004613635565b61109c565b3480156108a957600080fd5b5061038b6108b8366004613497565b60086020526000908152604090205481565b3480156108d657600080fd5b506105ae6108e5366004613665565b61119a565b3480156108f657600080fd5b5061038b610905366004613635565b6112b5565b34801561091657600080fd5b5061038b6109253660046134b3565b61141e565b34801561093657600080fd5b5061038b60255481565b34801561094c57600080fd5b506011546102ef906001600160a01b031681565b34801561096c57600080fd5b506105ae61097b366004613497565b611449565b34801561098c57600080fd5b5061038b61099b366004613635565b6114bf565b6060600480546109af9061385f565b80601f01602080910402602001604051908101604052809291908181526020018280546109db9061385f565b8015610a285780601f106109fd57610100808354040283529160200191610a28565b820191906000526020600020905b815481529060010190602001808311610a0b57829003601f168201915b5050505050905090565b600033610a408185856114ee565b5060019392505050565b600033610a58858285611612565b610a6385858561168c565b506001949350505050565b6000601354821115610ada5760405162461bcd60e51b815260206004820152602a60248201527f416d6f756e74206d757374206265206c657373207468616e20746f74616c207260448201526965666c656374696f6e7360b01b60648201526084015b60405180910390fd5b6000610ae4612017565b9050610af083826114cf565b9150505b919050565b600033610a40818585610b0c838361141e565b610b1691906137f1565b6114ee565b601c8181548110610b2b57600080fd5b600091825260209091200154905081565b601b8181548110610b2b57600080fd5b60008111610b6c5760405162461bcd60e51b8152600401610ad19061374b565b336000818152600a60205260409020548291610b8790610bf0565b610b919190613848565b1015610bdf5760405162461bcd60e51b815260206004820152601f60248201527f7472616e7366657220616d6f756e7420657863656564732062616c616e6365006044820152606401610ad1565b610bed33308360018061203a565b50565b6001600160a01b0381166000908152600d602052604081205460ff1615610c3057506001600160a01b038116600090815260076020526040902054610af4565b6001600160a01b038216600090815260066020526040902054610c5290610a6e565b92915050565b610c60612496565b610c6a60006124f0565b565b6011546001600160a01b03163314610c965760405162461bcd60e51b8152600401610ad19061371f565b6001600160a01b0381166000908152600a6020526040902054821115610cf65760405162461bcd60e51b8152602060048201526015602482015274185b5bdd5b9d081a5cc81b9bdd0818dbdc9c9958dd605a1b6044820152606401610ad1565b6001600160a01b0381166000908152600a602052604081208054849290610d1e908490613848565b9091555050604080518381526001600160a01b03831660208201527f07f21a7b10dec6539c8130232c54cd2c270dfae3458016c8ddb4d29ac9d0a82b91015b60405180910390a15050565b6011546001600160a01b03163314610d935760405162461bcd60e51b8152600401610ad19061371f565b6001600160a01b0381166000908152600a6020526040902054821115610df35760405162461bcd60e51b8152602060048201526015602482015274185b5bdd5b9d081a5cc81b9bdd0818dbdc9c9958dd605a1b6044820152606401610ad1565b6001600160a01b0381166000908152600a602052604081208054849290610e1b908490613848565b90915550506011546040516323b872dd60e01b81526001600160a01b03808416600483015290911660248201526044810183905230906323b872dd90606401602060405180830381600087803b158015610e7457600080fd5b505af1158015610e88573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610eac9190613615565b50604080518381526001600160a01b03831660208201527f07f21a7b10dec6539c8130232c54cd2c270dfae3458016c8ddb4d29ac9d0a82b9101610d5d565b60198181548110610b2b57600080fd5b6060600580546109af9061385f565b610f12612496565b6001600160a01b038116610f575760405162461bcd60e51b815260206004820152600c60248201526b5a65726f206164647265737360a01b6044820152606401610ad1565b6011546001600160a01b031615610fb05760405162461bcd60e51b815260206004820152601c60248201527f5374616b696e6720636f6e747261637420616c726561647920736574000000006044820152606401610ad1565b601180546001600160a01b0319166001600160a01b038381169190911791829055610fdb9116612540565b506011546001600160a01b03166000908152600b60205260409020805460ff19166001179055565b60188181548110610b2b57600080fd5b60003381611021828661141e565b9050838110156110815760405162461bcd60e51b815260206004820152602560248201527f45524332303a2064656372656173656420616c6c6f77616e63652062656c6f77604482015264207a65726f60d81b6064820152608401610ad1565b610a6382868684036114ee565b600033610a4081858561168c565b337379c059c6d44dff4f21944d9d65cf0873597e1185146110f35760405162461bcd60e51b8152602060048201526011602482015270125b98dbdc9c9958dd081c995c5d595cdd607a1b6044820152606401610ad1565b6b033b2e3c9fd0803ce800000081111561115f5760405162461bcd60e51b815260206004820152602760248201527f416d6f756e742063616e6e6f74206265206f7665722074686520746f74616c2060448201526639bab838363c9760c91b6064820152608401610ad1565b60258190556040518181527f28ea3a80049e637c2f1bf658d47a07f688bea6e931f3c1930cf4a4daf97b18609060200160405180910390a150565b6011546001600160a01b031633146111c45760405162461bcd60e51b8152600401610ad19061371f565b6001600160a01b0381166000908152600a60205260408120546111e683610bf0565b6111f09190613848565b9050828110156112425760405162461bcd60e51b815260206004820152601e60248201527f6c6f636b696e6720616d6f756e7420657863656564732062616c616e636500006044820152606401610ad1565b6001600160a01b0382166000908152600a60205260408120805485929061126a9084906137f1565b9091555050604080518481526001600160a01b03841660208201527f73984e8db8b28e5bddacc2944750532e661c7b013e2cb7995f2e27cf54bb24d2910160405180910390a1505050565b6040805160028082526060820183526000928392919060208301908036833701905050905030816000815181106112fc57634e487b7160e01b600052603260045260246000fd5b60200260200101906001600160a01b031690816001600160a01b03168152505073a0b86991c6218b36c1d19d4a2e9eb0ce3606eb488160018151811061135257634e487b7160e01b600052603260045260246000fd5b6001600160a01b03928316602091820292909201015260225460405163d06ca61f60e01b8152600092919091169063d06ca61f906113969087908690600401613794565b60006040518083038186803b1580156113ae57600080fd5b505afa1580156113c2573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f191682016040526113ea9190810190613556565b90508060018151811061140d57634e487b7160e01b600052603260045260246000fd5b602002602001015192505050919050565b6001600160a01b03918216600090815260026020908152604080832093909416825291909152205490565b611451612496565b6001600160a01b0381166114b65760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610ad1565b610bed816124f0565b601a8181548110610b2b57600080fd5b60006114db8284613809565b9392505050565b60006114db8284613848565b6001600160a01b0383166115505760405162461bcd60e51b8152602060048201526024808201527f45524332303a20617070726f76652066726f6d20746865207a65726f206164646044820152637265737360e01b6064820152608401610ad1565b6001600160a01b0382166115b15760405162461bcd60e51b815260206004820152602260248201527f45524332303a20617070726f766520746f20746865207a65726f206164647265604482015261737360f01b6064820152608401610ad1565b6001600160a01b0383811660008181526002602090815260408083209487168084529482529182902085905590518481527f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925910160405180910390a3505050565b600061161e848461141e565b9050600019811461168657818110156116795760405162461bcd60e51b815260206004820152601d60248201527f45524332303a20696e73756666696369656e7420616c6c6f77616e63650000006044820152606401610ad1565b61168684848484036114ee565b50505050565b6001600160a01b0383166116f05760405162461bcd60e51b815260206004820152602560248201527f45524332303a207472616e736665722066726f6d20746865207a65726f206164604482015264647265737360d81b6064820152608401610ad1565b6001600160a01b0382166117525760405162461bcd60e51b815260206004820152602360248201527f45524332303a207472616e7366657220746f20746865207a65726f206164647260448201526265737360e81b6064820152608401610ad1565b600081116117725760405162461bcd60e51b8152600401610ad19061374b565b6001600160a01b0383166000908152600a6020526040902054819061179685610bf0565b6117a09190613848565b10156117ee5760405162461bcd60e51b815260206004820152601f60248201527f7472616e7366657220616d6f756e7420657863656564732062616c616e6365006044820152606401610ad1565b6001600160a01b0382166000908152600f602052604090205460ff1661184d576001600160a01b0382166000908152600f60205260408120805460ff1916600190811790915560178054919290916118479084906137f1565b90915550505b8061185784610bf0565b6118619190613848565b61189e576001600160a01b0383166000908152600f60205260408120805460ff191690556017805460019290611898908490613848565b90915550505b6001600160a01b0382166000908152600c602052604090205460ff161580156118df57506001600160a01b0383166000908152600e602052604090205460ff165b1561195b5760006118ef83610bf0565b6026549091506118ff83836137f1565b11156119595760405162461bcd60e51b8152602060048201526024808201527f45786365656473206d6178696d756d20627579207065722077616c6c6574206c6044820152631a5b5a5d60e21b6064820152608401610ad1565b505b600061196630610bf0565b602554909150811080159081906119875750602454600160a01b900460ff16155b80156119ab57506001600160a01b0384166000908152600e602052604090205460ff165b15611e79576015546000906119c19060026114cf565b60165490915060006119d38383612600565b90506025548110611e75576024805460ff60a01b1916600160a01b1790556040805160028082526060820183526000926020830190803683370190505090503081600081518110611a3457634e487b7160e01b600052603260045260246000fd5b60200260200101906001600160a01b031690816001600160a01b03168152505073a0b86991c6218b36c1d19d4a2e9eb0ce3606eb4881600181518110611a8a57634e487b7160e01b600052603260045260246000fd5b6001600160a01b0392831660209182029290920101526012546040516370a0823160e01b81529116600482015260009073a0b86991c6218b36c1d19d4a2e9eb0ce3606eb48906370a082319060240160206040518083038186803b158015611af157600080fd5b505afa158015611b05573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611b29919061364d565b602254602554919250611b479130916001600160a01b0316906114ee565b6022546025546012546001600160a01b0392831692635c11d7959291600091879116611b754261012c612600565b6040518663ffffffff1660e01b8152600401611b959594939291906137b5565b600060405180830381600087803b158015611baf57600080fd5b505af1158015611bc3573d6000803e3d6000fd5b50506012546040516370a0823160e01b81526001600160a01b0390911660048201526000925083915073a0b86991c6218b36c1d19d4a2e9eb0ce3606eb48906370a082319060240160206040518083038186803b158015611c2357600080fd5b505afa158015611c37573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611c5b919061364d565b611c659190613848565b90506000611c7d85611c77848a61260c565b906114cf565b90506000611c8b8284613848565b90508115611dbd576000611cae87611c778b60255461260c90919063ffffffff16565b60125460405163a9059cbb60e01b81526001600160a01b03909116600482015260248101829052909150309063a9059cbb90604401602060405180830381600087803b158015611cfd57600080fd5b505af1158015611d11573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611d359190613615565b5060248054604051637a16af7f60e01b8152600481018690529182018390526001600160a01b031690637a16af7f90604401600060405180830381600087803b158015611d8157600080fd5b505af1158015611d95573d6000803e3d6000fd5b50505050611db881611db2836015546114e290919063ffffffff16565b906114e2565b601555505b8015611e62576024805460405163680af6b560e11b81527379c059c6d44dff4f21944d9d65cf0873597e118560048201529182018390526001600160a01b03169063d015ed6a90604401600060405180830381600087803b158015611e2157600080fd5b505af1158015611e35573d6000803e3d6000fd5b50505050611e5e611e5587611c778a60255461260c90919063ffffffff16565b601654906114e2565b6016555b50506024805460ff60a01b191690555050505b5050505b6001600160a01b0385166000908152600b602052604090205460019060ff1680611ebb57506001600160a01b0385166000908152600b602052604090205460ff165b15611ec857506000612001565b306000908152600f602052604090205460ff16611f1557306000908152600f60205260408120805460ff191660019081179091556017805491929091611f0f9084906137f1565b90915550505b6011546001600160a01b03166000908152600f602052604090205460ff16611f78576011546001600160a01b03166000908152600f60205260408120805460ff191660019081179091556017805491929091611f729084906137f1565b90915550505b61dead600052600f6020527f99629f56119585bf27511b6b7d295dffb54757453fcc3dabcf51d92028301f105460ff166120015761dead6000908152600f6020527f99629f56119585bf27511b6b7d295dffb54757453fcc3dabcf51d92028301f10805460ff191660019081179091556017805491929091611ffb9084906137f1565b90915550505b61200f86868684600061203a565b505050505050565b6000806000612024612618565b909250905061203382826114cf565b9250505090565b6001600160a01b038516600090815260086020526040812080548592906120629084906137f1565b909155508290506120905761208b6000601f8190556020819055601e819055601d819055602155565b612171565b80156120b55761208b612710601f5560006020819055601e819055601d819055602155565b6001600160a01b0385166000908152600e602052604090205460ff161580156120f757506001600160a01b0384166000908152600e602052604090205460ff16155b156121045761208b6127fd565b6001600160a01b0384166000908152600e602052604090205460ff161561212d5761208b6128fc565b6000612138846112b5565b90506404a817c80081106121535761214e6129ea565b61216f565b6402540be40081106121675761214e612ad8565b61216f612bc6565b505b6000602154601d54601e54602054601f5461218c91906137f1565b61219691906137f1565b6121a091906137f1565b6121aa91906137f1565b905080156122045760006121c4612710611c77878561260c565b90506121d085826114e2565b6001600160a01b038716600090815260096020526040812080549091906121f89084906137f1565b90915550612232915050565b6001600160a01b0385166000908152600960205260408120805486929061222c9084906137f1565b90915550505b600061223d85612cb4565b9050801561227f5761224e81612cd1565b60405181815261dead906001600160a01b038916906000805160206138f78339815191529060200160405180910390a35b600061228a86612de4565b9050801561232e5761229b81612e01565b6011546040516328f582d360e11b8152600481018390526001600160a01b03909116906351eb05a690602401600060405180830381600087803b1580156122e157600080fd5b505af11580156122f5573d6000803e3d6000fd5b50506011546040518481526001600160a01b039182169350908b1691506000805160206138f78339815191529060200160405180910390a35b6001600160a01b0388166000908152600d602052604090205460ff16801561236f57506001600160a01b0387166000908152600d602052604090205460ff16155b15612386576123818888888486612ec0565b61248c565b6001600160a01b0388166000908152600d602052604090205460ff161580156123c757506001600160a01b0387166000908152600d602052604090205460ff165b156123d95761238188888884866130a7565b6001600160a01b0388166000908152600d602052604090205460ff1615801561241b57506001600160a01b0387166000908152600d602052604090205460ff16155b1561242d57612381888888848661317b565b6001600160a01b0388166000908152600d602052604090205460ff16801561246d57506001600160a01b0387166000908152600d602052604090205460ff165b1561247f5761238188888884866131ea565b61248c888888848661317b565b5050505050505050565b6000546001600160a01b03163314610c6a5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610ad1565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b6001600160a01b0381166000908152600660205260409020541561259a576001600160a01b03811660009081526006602052604090205461258090610a6e565b6001600160a01b0382166000908152600760205260409020555b6001600160a01b03166000818152600d60205260408120805460ff191660019081179091556010805491820181559091527f1b6847dc741a1b0cd08d278845f9d819d87b734759afb55fe2de5cb82a9ae6720180546001600160a01b0319169091179055565b60006114db82846137f1565b60006114db8284613829565b60135460009081906b033b2e3c9fd0803ce8000000825b6010548110156127b75782600660006010848154811061265f57634e487b7160e01b600052603260045260246000fd5b60009182526020808320909101546001600160a01b0316835282019290925260400190205411806126d857508160076000601084815481106126b157634e487b7160e01b600052603260045260246000fd5b60009182526020808320909101546001600160a01b03168352820192909252604001902054115b156126f9576013546b033b2e3c9fd0803ce8000000945094505050506127f9565b61274d600660006010848154811061272157634e487b7160e01b600052603260045260246000fd5b60009182526020808320909101546001600160a01b0316835282019290925260400190205484906114e2565b92506127a3600760006010848154811061277757634e487b7160e01b600052603260045260246000fd5b60009182526020808320909101546001600160a01b0316835282019290925260400190205483906114e2565b9150806127af8161389a565b91505061262f565b506013546127d1906b033b2e3c9fd0803ce80000006114cf565b8210156127f3576013546b033b2e3c9fd0803ce80000009350935050506127f9565b90925090505b9091565b601a60048154811061281f57634e487b7160e01b600052603260045260246000fd5b9060005260206000200154601f81905550601b60048154811061285257634e487b7160e01b600052603260045260246000fd5b9060005260206000200154602081905550601960048154811061288557634e487b7160e01b600052603260045260246000fd5b9060005260206000200154601e8190555060186004815481106128b857634e487b7160e01b600052603260045260246000fd5b9060005260206000200154601d81905550601c6004815481106128eb57634e487b7160e01b600052603260045260246000fd5b600091825260209091200154602155565b601a60038154811061291e57634e487b7160e01b600052603260045260246000fd5b9060005260206000200154601f81905550601b60038154811061295157634e487b7160e01b600052603260045260246000fd5b9060005260206000200154602081905550601960038154811061298457634e487b7160e01b600052603260045260246000fd5b9060005260206000200154601e8190555060186003815481106129b757634e487b7160e01b600052603260045260246000fd5b9060005260206000200154601d81905550601c6003815481106128eb57634e487b7160e01b600052603260045260246000fd5b601a600281548110612a0c57634e487b7160e01b600052603260045260246000fd5b9060005260206000200154601f81905550601b600281548110612a3f57634e487b7160e01b600052603260045260246000fd5b90600052602060002001546020819055506019600281548110612a7257634e487b7160e01b600052603260045260246000fd5b9060005260206000200154601e819055506018600281548110612aa557634e487b7160e01b600052603260045260246000fd5b9060005260206000200154601d81905550601c6002815481106128eb57634e487b7160e01b600052603260045260246000fd5b601a600181548110612afa57634e487b7160e01b600052603260045260246000fd5b9060005260206000200154601f81905550601b600181548110612b2d57634e487b7160e01b600052603260045260246000fd5b90600052602060002001546020819055506019600181548110612b6057634e487b7160e01b600052603260045260246000fd5b9060005260206000200154601e819055506018600181548110612b9357634e487b7160e01b600052603260045260246000fd5b9060005260206000200154601d81905550601c6001815481106128eb57634e487b7160e01b600052603260045260246000fd5b601a600081548110612be857634e487b7160e01b600052603260045260246000fd5b9060005260206000200154601f81905550601b600081548110612c1b57634e487b7160e01b600052603260045260246000fd5b90600052602060002001546020819055506019600081548110612c4e57634e487b7160e01b600052603260045260246000fd5b9060005260206000200154601e819055506018600081548110612c8157634e487b7160e01b600052603260045260246000fd5b9060005260206000200154601d81905550601c6000815481106128eb57634e487b7160e01b600052603260045260246000fd5b6000610c52612710611c776021548561260c90919063ffffffff16565b6000612cdb612017565b90506000612ce9838361260c565b61dead60005260066020527f1aecba4ebe7a4e0673e4891b2b092b2228e4322380b579fb494fad3da8586e2254909150612d239082612600565b61dead6000527f1aecba4ebe7a4e0673e4891b2b092b2228e4322380b579fb494fad3da8586e2255600d6020527fdc7fafdc41998a74ecacb8f8bd877011aba1f1d03a3a0d37a2e7879a393b1d6a5460ff1615612ddf5761dead60005260076020527fb0c2646e02af70b79e3fe9277b98373379f54150e4e26b2b5650139f7a75a65d54612db19084612600565b61dead60005260076020527fb0c2646e02af70b79e3fe9277b98373379f54150e4e26b2b5650139f7a75a65d555b505050565b6000610c52612710611c776020548561260c90919063ffffffff16565b6000612e0b612017565b90506000612e19838361260c565b6011546001600160a01b0316600090815260066020526040902054909150612e419082612600565b601180546001600160a01b0390811660009081526006602090815260408083209590955592549091168152600d909152205460ff1615612ddf576011546001600160a01b0316600090815260076020526040902054612ea09084612600565b6011546001600160a01b0316600090815260076020526040902055505050565b6000806000806000806000612ed48a613288565b9650965096509650965096509650612ef988611db28b876114e290919063ffffffff16565b9350612f2c612f10612f09612017565b8a9061260c565b611db2612f25612f1e612017565b8d9061260c565b89906114e2565b6001600160a01b038d16600090815260076020526040902054909650612f52908b6114e2565b6001600160a01b038d16600090815260076020908152604080832093909355600690522054612f8190886114e2565b6001600160a01b03808e1660009081526006602052604080822093909355908d1681522054612fb09087612600565b6001600160a01b038c16600090815260066020526040902055612fd2826132e3565b612fdb816132e3565b612fe5858461336b565b8160156000828254612ff791906137f1565b92505081905550806016600082825461301091906137f1565b90915550600090506130228284612600565b111561305e57306001600160a01b038d166000805160206138f783398151915261304c8486612600565b60405190815260200160405180910390a35b8a6001600160a01b03168c6001600160a01b03166000805160206138f78339815191528660405161309191815260200190565b60405180910390a3505050505050505050505050565b60008060008060008060006130bb8a613288565b96509650965096509650965096506130e088611db28b876114e290919063ffffffff16565b93506130f0612f10612f09612017565b6001600160a01b038d1660009081526006602052604090205490965061311690886114e2565b6001600160a01b03808e16600090815260066020908152604080832094909455918e1681526007909152205461314c9085612600565b6001600160a01b038c16600090815260076020908152604080832093909355600690522054612fb09087612600565b600080600080600080600061318f8a613288565b96509650965096509650965096506131b488611db28b876114e290919063ffffffff16565b93506131c4612f10612f09612017565b6001600160a01b038d16600090815260066020526040902054909650612f8190886114e2565b60008060008060008060006131fe8a613288565b965096509650965096509650965061322388611db28b876114e290919063ffffffff16565b9350613233612f10612f09612017565b6001600160a01b038d16600090815260076020526040902054909650613259908b6114e2565b6001600160a01b038d1660009081526007602090815260408083209390935560069052205461311690886114e2565b60008060008060008060008060008060006132a28c61338f565b935093509350935060008060006132c38f8787876132be612017565b6133de565b919f509d509b509599509397509195509350505050919395979092949650565b60006132ed612017565b905060006132fb838361260c565b306000908152600660205260409020549091506133189082612600565b30600090815260066020908152604080832093909355600d9052205460ff1615612ddf57306000908152600760205260409020546133569084612600565b30600090815260076020526040902055505050565b60135461337890836114e2565b6013556014546133889082612600565b6014555050565b60008060008060006133a086613440565b905060006133ad8761345d565b905060006133ba8861347a565b905060006133ce82611db285818d896114e2565b9993985091965094509092505050565b60008080806133ed898661260c565b905060006133fb898761260c565b90506000613409898861260c565b90506000613417898961260c565b9050600061342b82611db2858189896114e2565b949d949c50929a509298505050505050505050565b6000610c52612710611c77601f548561260c90919063ffffffff16565b6000610c52612710611c77601d548561260c90919063ffffffff16565b6000610c52612710611c77601e548561260c90919063ffffffff16565b6000602082840312156134a8578081fd5b81356114db816138e1565b600080604083850312156134c5578081fd5b82356134d0816138e1565b915060208301356134e0816138e1565b809150509250929050565b6000806000606084860312156134ff578081fd5b833561350a816138e1565b9250602084013561351a816138e1565b929592945050506040919091013590565b6000806040838503121561353d578182fd5b8235613548816138e1565b946020939093013593505050565b60006020808385031215613568578182fd5b825167ffffffffffffffff8082111561357f578384fd5b818501915085601f830112613592578384fd5b8151818111156135a4576135a46138cb565b838102604051601f19603f830116810181811085821117156135c8576135c86138cb565b604052828152858101935084860182860187018a10156135e6578788fd5b8795505b838610156136085780518552600195909501949386019386016135ea565b5098975050505050505050565b600060208284031215613626578081fd5b815180151581146114db578182fd5b600060208284031215613646578081fd5b5035919050565b60006020828403121561365e578081fd5b5051919050565b60008060408385031215613677578182fd5b8235915060208301356134e0816138e1565b6000815180845260208085019450808401835b838110156136c15781516001600160a01b03168752958201959082019060010161369c565b509495945050505050565b6000602080835283518082850152825b818110156136f8578581018301518582016040015282016136dc565b818111156137095783604083870101525b50601f01601f1916929092016040019392505050565b6020808252601290820152711cd95b99195c881b9bdd08185b1b1bddd95960721b604082015260600190565b60208082526029908201527f5472616e7366657220616d6f756e74206d7573742062652067726561746572206040820152687468616e207a65726f60b81b606082015260800190565b6000838252604060208301526137ad6040830184613689565b949350505050565b600086825285602083015260a060408301526137d460a0830186613689565b6001600160a01b0394909416606083015250608001529392505050565b60008219821115613804576138046138b5565b500190565b60008261382457634e487b7160e01b81526012600452602481fd5b500490565b6000816000190483118215151615613843576138436138b5565b500290565b60008282101561385a5761385a6138b5565b500390565b60028104600182168061387357607f821691505b6020821081141561389457634e487b7160e01b600052602260045260246000fd5b50919050565b60006000198214156138ae576138ae6138b5565b5060010190565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052604160045260246000fd5b6001600160a01b0381168114610bed57600080fdfeddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3efa264697066735822122011d85f3916b834ed0e0d8c09593db15140af873cc5a173f438d1ee453980e53764736f6c63430008020033