Token AfterBackToken.Com

 

Overview [ERC-20]

Max Total Supply:
100,000,000 AFTRBCK

Holders:
91

Transfers:
-

Loading
[ Download CSV Export  ] 
Loading
[ Download CSV Export  ] 
Loading

Click here to update the token information / general information
# Exchange Pair Price  24H Volume % Volume
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
AfterBackToken

Compiler Version
v0.8.4+commit.c7e474f2

Optimization Enabled:
Yes with 200 runs

Other Settings:
default evmVersion
File 1 of 19 : AfterBackToken.sol
//SPDX-License-Identifier:  MIT

pragma solidity ^0.8.4;

/*
Name: AfterBackToken.Com
Symbol: AFTRBCK
Supply: 100 Million
Decimals: 9

8% for Dividends in ETH
3% to Dev Wallet in Tokens
4% to Dev Wallet in ETH

15% Total Fees
Whale Protection: 1%
*/

import "@openzeppelin/contracts/token/ERC20/ERC20.sol";
import "@openzeppelin/contracts/access/Ownable.sol";
import "@openzeppelin/contracts/utils/math/SafeMath.sol";
import "@openzeppelin/contracts/utils/Address.sol";
import "@uniswap/v2-core/contracts/interfaces/IUniswapV2Factory.sol";
import "@uniswap/v2-core/contracts/interfaces/IUniswapV2Pair.sol";
import "@uniswap/v2-periphery/contracts/interfaces/IUniswapV2Router01.sol";
import "@uniswap/v2-periphery/contracts/interfaces/IUniswapV2Router02.sol";

import "./AfterBackDividendTracker/AfterBackDividendTracker.sol";
import "./AfterBackDividendTracker/IterableMapping.sol";

contract AfterBackToken is ERC20, Ownable {
    using SafeMath for uint256;
    using Address for address;

    string private _name = "AfterBackToken.Com";
    string private _symbol = "AFTRBCK";
    uint8 private _decimals = 18;
    uint256 private  _totalSupply = 1e8 * 1e18;

    uint256 public ETHRewardsFee = 8;
    uint256 public devETHFee = 4;
    uint256 public devTokenFee = 3;
    uint256 public totalFees = ETHRewardsFee + devETHFee + devTokenFee; // 15%

    uint256 public maxSellTransactionAmount = 1e6 * 1e18; // (1mill)
    uint256 public swapTokensAtAmount = 1e5 * 1e18; // (100k)

    AfterBackDividendTracker public dividendTracker;

    address payable public devWallet;

    IUniswapV2Router02 public uniswapV2Router;
    address public uniswapV2Pair;

    // store addresses that a automatic market maker pairs. Any transfer *to* these addresses
    // could be subject to a maximum transfer amount
    mapping (address => bool) public automatedMarketMakerPairs;

    // exclude from fees and max transaction amount
    mapping (address => bool) private _isExcludedFromFees;


    bool private swapping;

    // use by default 300,000 gas to process auto-claiming dividends
    uint256 public gasForProcessing = 300000;

    event UpdateDividendTracker(address indexed newAddress, address indexed oldAddress);
    event UpdateUniswapV2Router(address indexed newAddress, address indexed oldAddress);
    event ExcludeFromFees(address indexed account, bool isExcluded);
    event ExcludeMultipleAccountsFromFees(address[] accounts, bool isExcluded);
    event SetAutomatedMarketMakerPair(address indexed pair, bool indexed value);
    event DevWalletUpdated(address indexed newDevWallet, address indexed oldDevWallet);
    event GasForProcessingUpdated(uint256 indexed newValue, uint256 indexed oldValue);
    event SwapAndLiquify(
        uint256 tokensSwapped,
        uint256 ethReceived,
        uint256 tokensIntoLiqudity
    );
    event SendDividends(
        uint256 tokensSwapped,
        uint256 amount
    );
    event ProcessedDividendTracker(
        uint256 iterations,
        uint256 claims,
        uint256 lastProcessedIndex,
        bool indexed automatic,
        uint256 gas,
        address indexed processor
    );


    constructor(address router, address _devWallet) ERC20(_name, _symbol) {

        dividendTracker = new AfterBackDividendTracker();

        devWallet = payable(_devWallet);

        // Initial Dex Router
        IUniswapV2Router02 _uniswapV2Router = IUniswapV2Router02(router);

        // Create a Dex pair for this new token on this Router
        uniswapV2Pair = IUniswapV2Factory(_uniswapV2Router.factory())
        .createPair(address(this), _uniswapV2Router.WETH());

        uniswapV2Router = _uniswapV2Router;

        _setAutomatedMarketMakerPair(uniswapV2Pair, true);

        // exclude from receiving dividends
        dividendTracker.excludeFromDividends(address(this));
        dividendTracker.excludeFromDividends(address(dividendTracker));
        dividendTracker.excludeFromDividends(owner());
        dividendTracker.excludeFromDividends(address(devWallet));
        dividendTracker.excludeFromDividends(address(_uniswapV2Router));

        // exclude from paying fees or having max transaction amount
        excludeFromFees(address(this), true);
        excludeFromFees(owner(), true);
        excludeFromFees(devWallet, true);

        /*
            _mint is an internal function in ERC20.sol that is only called here,
            and CANNOT be called ever again
        */
        _mint(owner(),  _totalSupply);
    }

    receive() external payable { }

    function updateDividendTracker(address newAddress) public onlyOwner {
        require(newAddress != address(dividendTracker), "AFTRBCK: The dividend tracker already has that address");

        AfterBackDividendTracker newDividendTracker = AfterBackDividendTracker(payable(newAddress));

        require(newDividendTracker.owner() == address(this), "AFTRBCK: The new dividend tracker must be owned by the AFTRBCK token contract");

        newDividendTracker.excludeFromDividends(address(newDividendTracker));
        newDividendTracker.excludeFromDividends(address(this));
        newDividendTracker.excludeFromDividends(owner());
        newDividendTracker.excludeFromDividends(address(uniswapV2Router));

        dividendTracker = newDividendTracker;

        emit UpdateDividendTracker(newAddress, address(dividendTracker));

    }

    function setNewRouterAddress(address _newRouterAddress) external onlyOwner {
        require(_newRouterAddress != address(0), "AFTRBCK: Router can not be the zero address");
        require(_newRouterAddress != address(uniswapV2Router), "AFTRBCK: This is the current router");

        IUniswapV2Router02 _uniswapV2Router = IUniswapV2Router02(_newRouterAddress);
        uniswapV2Router = _uniswapV2Router;

        uniswapV2Pair = IUniswapV2Factory(_uniswapV2Router.factory())
        .getPair(address(this), _uniswapV2Router.WETH());

        // If the pair doesn't exist on the new dex, create it.
        if(uniswapV2Pair == address(0))
        {
            // create the new pair for the new router
            uniswapV2Pair = IUniswapV2Factory(_uniswapV2Router.factory())
            .createPair(address(this), _uniswapV2Router.WETH());
        }

        emit UpdateUniswapV2Router(_newRouterAddress, address(uniswapV2Router));

    }

    function excludeFromFees(address account, bool excluded) public onlyOwner {
        require(_isExcludedFromFees[account] != excluded, "AFTRBCK: Account is already the value of 'excluded'");
        _isExcludedFromFees[account] = excluded;

        emit ExcludeFromFees(account, excluded);
    }

    function excludeMultipleAccountsFromFees(address[] calldata accounts, bool excluded) public onlyOwner {
        for(uint256 i = 0; i < accounts.length; i++) {
            _isExcludedFromFees[accounts[i]] = excluded;
        }

        emit ExcludeMultipleAccountsFromFees(accounts, excluded);
    }

    function setAutomatedMarketMakerPair(address pair, bool value) public onlyOwner {
        require(pair != uniswapV2Pair, "AFTRBCK: The UniSwap pair cannot be removed from automatedMarketMakerPairs");

        _setAutomatedMarketMakerPair(pair, value);
    }

    function _setAutomatedMarketMakerPair(address pair, bool value) private {
        require(automatedMarketMakerPairs[pair] != value, "AFTRBCK: Automated market maker pair is already set to that value");
        automatedMarketMakerPairs[pair] = value;

        if(value) {
            dividendTracker.excludeFromDividends(pair);
        }

        emit SetAutomatedMarketMakerPair(pair, value);
    }

    function updateDevWallet(address newDevWallet) public onlyOwner {
        require(newDevWallet != devWallet, "AFTRBCK: The development wallet is already this address");
        require(newDevWallet != address(0), "AFTRBCK: The development wallet can not be the zero address");
        excludeFromFees(newDevWallet, true);
        devWallet = payable(newDevWallet);
        emit DevWalletUpdated(newDevWallet, devWallet);
    }

    function updateGasForProcessing(uint256 newValue) public onlyOwner {
        require(newValue >= 200000, "AFTRBCK: gasForProcessing must be more than 200,000");
        require(newValue != gasForProcessing, "AFTRBCK: Cannot update gasForProcessing to same value");
        gasForProcessing = newValue;

        emit GasForProcessingUpdated(newValue, gasForProcessing);
    }

    function updateClaimWait(uint256 claimWait) external onlyOwner {
        dividendTracker.updateClaimWait(claimWait);
    }

    function getClaimWait() external view returns(uint256) {
        return dividendTracker.claimWait();
    }

    function getTotalDividendsDistributed() external view returns (uint256) {
        return dividendTracker.totalDividendsDistributed();
    }

    function isExcludedFromFees(address account) public view returns(bool) {
        return _isExcludedFromFees[account];
    }

    function withdrawableDividendOf(address account) public view returns(uint256) {
        return dividendTracker.withdrawableDividendOf(account);
    }

    function dividendTokenBalanceOf(address account) public view returns (uint256) {
        return dividendTracker.balanceOf(account);
    }

    function getAccountDividendsInfo(address account)
    external view returns (
        address,
        int256,
        int256,
        uint256,
        uint256,
        uint256,
        uint256,
        uint256) {
        return dividendTracker.getAccount(account);
    }

    function getAccountDividendsInfoAtIndex(uint256 index)
    external view returns (
        address,
        int256,
        int256,
        uint256,
        uint256,
        uint256,
        uint256,
        uint256) {
        return dividendTracker.getAccountAtIndex(index);
    }

    function processDividendTracker(uint256 gas) external {
        (uint256 iterations, uint256 claims, uint256 lastProcessedIndex) = dividendTracker.process(gas);
        emit ProcessedDividendTracker(iterations, claims, lastProcessedIndex, false, gas, tx.origin);
    }

    function claim() external {
        dividendTracker.processAccount(payable(msg.sender), false);
    }

    function getLastProcessedIndex() external view returns(uint256) {
        return dividendTracker.getLastProcessedIndex();
    }

    function getNumberOfDividendTokenHolders() external view returns(uint256) {
        return dividendTracker.getNumberOfTokenHolders();
    }

    function _transfer(
        address from,
        address to,
        uint256 amount
    ) internal override {
        require(from != address(0), "AFTRBCK: transfer from the zero address");
        require(to != address(0), "AFTRBCK: transfer to the zero address");

        if(amount == 0) {
            super._transfer(from, to, 0);
            return;
        }

        if(
            !swapping &&
        automatedMarketMakerPairs[to] && // sells only by detecting transfer to automated market maker pair
        from != address(uniswapV2Router) && //router -> pair is removing liquidity which shouldn't have max
        !_isExcludedFromFees[to] //no max for those excluded from fees
        ) {
            require(amount <= maxSellTransactionAmount, "Sell transfer amount exceeds the maxSellTransactionAmount.");
        }

        uint256 contractTokenBalance = balanceOf(address(this));

        bool canSwap = contractTokenBalance >= swapTokensAtAmount;

        if(
            canSwap &&
            !swapping &&
            !automatedMarketMakerPairs[from] &&
            from != devWallet &&
            to != devWallet
        ) {
            contractTokenBalance = swapTokensAtAmount;

            uint256 ETHForRewards = contractTokenBalance.mul(calculateFees(ETHRewardsFee)).div(1e2); // 53.33%
            uint256 tokensForDev = contractTokenBalance.mul(calculateFees(devTokenFee)).div(1e2); // 20%
            uint256 ETHForDev = contractTokenBalance.mul(calculateFees(devETHFee)).div(1e2); // 26.67%

            swapping = true;

            // ETH for development
            uint256 initialBalance = address(this).balance;
            swapTokensForEth(ETHForDev);
            uint256 swappedBalance = address(this).balance.sub(initialBalance);
            transferToAddressETH(devWallet, swappedBalance);

            // Transfer tokens for Development
            super._transfer(address(this), devWallet, tokensForDev);

            // Send ETH Dividends
            swapAndSendDividends(ETHForRewards);

            swapping = false;
        }


        bool takeFee = true;

        // if any account belongs to _isExcludedFromFee account then remove the fee
        if(_isExcludedFromFees[from] || _isExcludedFromFees[to]) {
            takeFee = false;
        }

        if(takeFee) {
            uint256 fees = amount.mul(totalFees).div(1e2);

            amount = amount.sub(fees);

            super._transfer(from, address(this), fees);
        }

        super._transfer(from, to, amount);

        try dividendTracker.setBalance(payable(from), balanceOf(from)) {} catch {}
        try dividendTracker.setBalance(payable(to), balanceOf(to)) {} catch {}

        if(!swapping) {
            uint256 gas = gasForProcessing;

            try dividendTracker.process(gas) returns (uint256 iterations, uint256 claims, uint256 lastProcessedIndex) {
                emit ProcessedDividendTracker(iterations, claims, lastProcessedIndex, true, gas, tx.origin);
            }
            catch { }
        }
    }

    function swapTokensForEth(uint256 tokenAmount) private {

        // generate the uniswap pair path of token -> weth
        address[] memory path = new address[](2);
        path[0] = address(this);
        path[1] = uniswapV2Router.WETH();

        _approve(address(this), address(uniswapV2Router), tokenAmount);

        // make the swap
        uniswapV2Router.swapExactTokensForETHSupportingFeeOnTransferTokens(
            tokenAmount,
            0, // accept any amount of ETH
            path,
            address(this),
            block.timestamp
        );

    }

    function swapAndSendDividends(uint256 tokens) private {
        swapTokensForEth(tokens);
        uint256 dividends = address(this).balance;
        (bool success,) = address(dividendTracker).call{value: dividends}("");

        if(success) {
            emit SendDividends(tokens, dividends);
        }
    }

    function calculateFees(uint256 fee) private view returns (uint256){
        return fee.mul(1e2).div(totalFees);
    }

    function transferToAddressETH(address payable recipient, uint256 amount) private {
        recipient.transfer(amount);
    }

    function setMaxSellTransactionAmount(uint256 TransactionAmount) external onlyOwner {
        maxSellTransactionAmount = TransactionAmount * 1e18;
    }

    function setSwapTokensAtAmount(uint256 _swapTokensAtAmount) external onlyOwner {
        swapTokensAtAmount = _swapTokensAtAmount * 1e18;
    }

    function setDevelopmentWallet(address _developmentWallet) external onlyOwner {
        devWallet = payable(_developmentWallet);
    }

    function setDevelopmentTokensFee(uint256 developmentTokensFee) external onlyOwner {
        devTokenFee = developmentTokensFee;
    }

    function setDevelopmentETHFee(uint256 developmentETHFee) external onlyOwner {
        devETHFee = developmentETHFee;
    }

    function prepareForILO() external onlyOwner {
        ETHRewardsFee = 0;
        devETHFee = 0;
        devTokenFee = 0;
        totalFees = 0;
        maxSellTransactionAmount = 1e8 * 1e18;
    }

    function afterILO() external onlyOwner {
        ETHRewardsFee = 8;
        devETHFee = 4;
        devTokenFee = 3;
        totalFees = ETHRewardsFee + devETHFee + devTokenFee;
        maxSellTransactionAmount = 1e6 * 1e18;
    }

}

File 2 of 19 : ERC20.sol
// SPDX-License-Identifier: MIT

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 guidelines: functions revert instead
 * of 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:
     *
     * - `recipient` cannot be the zero address.
     * - the caller must have a balance of at least `amount`.
     */
    function transfer(address recipient, uint256 amount) public virtual override returns (bool) {
        _transfer(_msgSender(), recipient, 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}.
     *
     * Requirements:
     *
     * - `spender` cannot be the zero address.
     */
    function approve(address spender, uint256 amount) public virtual override returns (bool) {
        _approve(_msgSender(), 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}.
     *
     * Requirements:
     *
     * - `sender` and `recipient` cannot be the zero address.
     * - `sender` must have a balance of at least `amount`.
     * - the caller must have allowance for ``sender``'s tokens of at least
     * `amount`.
     */
    function transferFrom(
        address sender,
        address recipient,
        uint256 amount
    ) public virtual override returns (bool) {
        _transfer(sender, recipient, amount);

        uint256 currentAllowance = _allowances[sender][_msgSender()];
        require(currentAllowance >= amount, "ERC20: transfer amount exceeds allowance");
        unchecked {
            _approve(sender, _msgSender(), currentAllowance - amount);
        }

        return true;
    }

    /**
     * @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) {
        _approve(_msgSender(), spender, _allowances[_msgSender()][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) {
        uint256 currentAllowance = _allowances[_msgSender()][spender];
        require(currentAllowance >= subtractedValue, "ERC20: decreased allowance below zero");
        unchecked {
            _approve(_msgSender(), spender, currentAllowance - subtractedValue);
        }

        return true;
    }

    /**
     * @dev Moves `amount` of tokens from `sender` to `recipient`.
     *
     * 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:
     *
     * - `sender` cannot be the zero address.
     * - `recipient` cannot be the zero address.
     * - `sender` must have a balance of at least `amount`.
     */
    function _transfer(
        address sender,
        address recipient,
        uint256 amount
    ) internal virtual {
        require(sender != address(0), "ERC20: transfer from the zero address");
        require(recipient != address(0), "ERC20: transfer to the zero address");

        _beforeTokenTransfer(sender, recipient, amount);

        uint256 senderBalance = _balances[sender];
        require(senderBalance >= amount, "ERC20: transfer amount exceeds balance");
        unchecked {
            _balances[sender] = senderBalance - amount;
        }
        _balances[recipient] += amount;

        emit Transfer(sender, recipient, amount);

        _afterTokenTransfer(sender, recipient, 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 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 {}
}

File 3 of 19 : Ownable.sol
// SPDX-License-Identifier: MIT

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() {
        _setOwner(_msgSender());
    }

    /**
     * @dev Returns the address of the current owner.
     */
    function owner() public view virtual returns (address) {
        return _owner;
    }

    /**
     * @dev Throws if called by any account other than the owner.
     */
    modifier onlyOwner() {
        require(owner() == _msgSender(), "Ownable: caller is not the owner");
        _;
    }

    /**
     * @dev Leaves the contract without owner. It will not be possible to call
     * `onlyOwner` functions anymore. Can only be called by the current owner.
     *
     * NOTE: Renouncing ownership will leave the contract without an owner,
     * thereby removing any functionality that is only available to the owner.
     */
    function renounceOwnership() public virtual onlyOwner {
        _setOwner(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");
        _setOwner(newOwner);
    }

    function _setOwner(address newOwner) private {
        address oldOwner = _owner;
        _owner = newOwner;
        emit OwnershipTransferred(oldOwner, newOwner);
    }
}

File 4 of 19 : SafeMath.sol
// SPDX-License-Identifier: MIT

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 no longer needed starting with Solidity 0.8. 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 substraction 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;
        }
    }
}

File 5 of 19 : Address.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

/**
 * @dev Collection of functions related to the address type
 */
library Address {
    /**
     * @dev Returns true if `account` is a contract.
     *
     * [IMPORTANT]
     * ====
     * It is unsafe to assume that an address for which this function returns
     * false is an externally-owned account (EOA) and not a contract.
     *
     * Among others, `isContract` will return false for the following
     * types of addresses:
     *
     *  - an externally-owned account
     *  - a contract in construction
     *  - an address where a contract will be created
     *  - an address where a contract lived, but was destroyed
     * ====
     */
    function isContract(address account) internal view returns (bool) {
        // This method relies on extcodesize, which returns 0 for contracts in
        // construction, since the code is only stored at the end of the
        // constructor execution.

        uint256 size;
        assembly {
            size := extcodesize(account)
        }
        return size > 0;
    }

    /**
     * @dev Replacement for Solidity's `transfer`: sends `amount` wei to
     * `recipient`, forwarding all available gas and reverting on errors.
     *
     * https://eips.ethereum.org/EIPS/eip-1884[EIP1884] increases the gas cost
     * of certain opcodes, possibly making contracts go over the 2300 gas limit
     * imposed by `transfer`, making them unable to receive funds via
     * `transfer`. {sendValue} removes this limitation.
     *
     * https://diligence.consensys.net/posts/2019/09/stop-using-soliditys-transfer-now/[Learn more].
     *
     * IMPORTANT: because control is transferred to `recipient`, care must be
     * taken to not create reentrancy vulnerabilities. Consider using
     * {ReentrancyGuard} or the
     * https://solidity.readthedocs.io/en/v0.5.11/security-considerations.html#use-the-checks-effects-interactions-pattern[checks-effects-interactions pattern].
     */
    function sendValue(address payable recipient, uint256 amount) internal {
        require(address(this).balance >= amount, "Address: insufficient balance");

        (bool success, ) = recipient.call{value: amount}("");
        require(success, "Address: unable to send value, recipient may have reverted");
    }

    /**
     * @dev Performs a Solidity function call using a low level `call`. A
     * plain `call` is an unsafe replacement for a function call: use this
     * function instead.
     *
     * If `target` reverts with a revert reason, it is bubbled up by this
     * function (like regular Solidity function calls).
     *
     * Returns the raw returned data. To convert to the expected return value,
     * use https://solidity.readthedocs.io/en/latest/units-and-global-variables.html?highlight=abi.decode#abi-encoding-and-decoding-functions[`abi.decode`].
     *
     * Requirements:
     *
     * - `target` must be a contract.
     * - calling `target` with `data` must not revert.
     *
     * _Available since v3.1._
     */
    function functionCall(address target, bytes memory data) internal returns (bytes memory) {
        return functionCall(target, data, "Address: low-level call failed");
    }

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], but with
     * `errorMessage` as a fallback revert reason when `target` reverts.
     *
     * _Available since v3.1._
     */
    function functionCall(
        address target,
        bytes memory data,
        string memory errorMessage
    ) internal returns (bytes memory) {
        return functionCallWithValue(target, data, 0, errorMessage);
    }

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],
     * but also transferring `value` wei to `target`.
     *
     * Requirements:
     *
     * - the calling contract must have an ETH balance of at least `value`.
     * - the called Solidity function must be `payable`.
     *
     * _Available since v3.1._
     */
    function functionCallWithValue(
        address target,
        bytes memory data,
        uint256 value
    ) internal returns (bytes memory) {
        return functionCallWithValue(target, data, value, "Address: low-level call with value failed");
    }

    /**
     * @dev Same as {xref-Address-functionCallWithValue-address-bytes-uint256-}[`functionCallWithValue`], but
     * with `errorMessage` as a fallback revert reason when `target` reverts.
     *
     * _Available since v3.1._
     */
    function functionCallWithValue(
        address target,
        bytes memory data,
        uint256 value,
        string memory errorMessage
    ) internal returns (bytes memory) {
        require(address(this).balance >= value, "Address: insufficient balance for call");
        require(isContract(target), "Address: call to non-contract");

        (bool success, bytes memory returndata) = target.call{value: value}(data);
        return _verifyCallResult(success, returndata, errorMessage);
    }

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],
     * but performing a static call.
     *
     * _Available since v3.3._
     */
    function functionStaticCall(address target, bytes memory data) internal view returns (bytes memory) {
        return functionStaticCall(target, data, "Address: low-level static call failed");
    }

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`],
     * but performing a static call.
     *
     * _Available since v3.3._
     */
    function functionStaticCall(
        address target,
        bytes memory data,
        string memory errorMessage
    ) internal view returns (bytes memory) {
        require(isContract(target), "Address: static call to non-contract");

        (bool success, bytes memory returndata) = target.staticcall(data);
        return _verifyCallResult(success, returndata, errorMessage);
    }

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],
     * but performing a delegate call.
     *
     * _Available since v3.4._
     */
    function functionDelegateCall(address target, bytes memory data) internal returns (bytes memory) {
        return functionDelegateCall(target, data, "Address: low-level delegate call failed");
    }

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`],
     * but performing a delegate call.
     *
     * _Available since v3.4._
     */
    function functionDelegateCall(
        address target,
        bytes memory data,
        string memory errorMessage
    ) internal returns (bytes memory) {
        require(isContract(target), "Address: delegate call to non-contract");

        (bool success, bytes memory returndata) = target.delegatecall(data);
        return _verifyCallResult(success, returndata, errorMessage);
    }

    function _verifyCallResult(
        bool success,
        bytes memory returndata,
        string memory errorMessage
    ) private pure returns (bytes memory) {
        if (success) {
            return returndata;
        } else {
            // Look for revert reason and bubble it up if present
            if (returndata.length > 0) {
                // The easiest way to bubble the revert reason is using memory via assembly

                assembly {
                    let returndata_size := mload(returndata)
                    revert(add(32, returndata), returndata_size)
                }
            } else {
                revert(errorMessage);
            }
        }
    }
}

File 6 of 19 : IUniswapV2Factory.sol
pragma solidity >=0.5.0;

interface IUniswapV2Factory {
    event PairCreated(address indexed token0, address indexed token1, address pair, uint);

    function feeTo() external view returns (address);
    function feeToSetter() external view returns (address);

    function getPair(address tokenA, address tokenB) external view returns (address pair);
    function allPairs(uint) external view returns (address pair);
    function allPairsLength() external view returns (uint);

    function createPair(address tokenA, address tokenB) external returns (address pair);

    function setFeeTo(address) external;
    function setFeeToSetter(address) external;
}

File 7 of 19 : IUniswapV2Pair.sol
pragma solidity >=0.5.0;

interface IUniswapV2Pair {
    event Approval(address indexed owner, address indexed spender, uint value);
    event Transfer(address indexed from, address indexed to, uint value);

    function name() external pure returns (string memory);
    function symbol() external pure returns (string memory);
    function decimals() external pure returns (uint8);
    function totalSupply() external view returns (uint);
    function balanceOf(address owner) external view returns (uint);
    function allowance(address owner, address spender) external view returns (uint);

    function approve(address spender, uint value) external returns (bool);
    function transfer(address to, uint value) external returns (bool);
    function transferFrom(address from, address to, uint value) external returns (bool);

    function DOMAIN_SEPARATOR() external view returns (bytes32);
    function PERMIT_TYPEHASH() external pure returns (bytes32);
    function nonces(address owner) external view returns (uint);

    function permit(address owner, address spender, uint value, uint deadline, uint8 v, bytes32 r, bytes32 s) external;

    event Mint(address indexed sender, uint amount0, uint amount1);
    event Burn(address indexed sender, uint amount0, uint amount1, address indexed to);
    event Swap(
        address indexed sender,
        uint amount0In,
        uint amount1In,
        uint amount0Out,
        uint amount1Out,
        address indexed to
    );
    event Sync(uint112 reserve0, uint112 reserve1);

    function MINIMUM_LIQUIDITY() external pure returns (uint);
    function factory() external view returns (address);
    function token0() external view returns (address);
    function token1() external view returns (address);
    function getReserves() external view returns (uint112 reserve0, uint112 reserve1, uint32 blockTimestampLast);
    function price0CumulativeLast() external view returns (uint);
    function price1CumulativeLast() external view returns (uint);
    function kLast() external view returns (uint);

    function mint(address to) external returns (uint liquidity);
    function burn(address to) external returns (uint amount0, uint amount1);
    function swap(uint amount0Out, uint amount1Out, address to, bytes calldata data) external;
    function skim(address to) external;
    function sync() external;

    function initialize(address, address) external;
}

File 8 of 19 : IUniswapV2Router01.sol
pragma solidity >=0.6.2;

interface IUniswapV2Router01 {
    function factory() external pure returns (address);
    function WETH() external pure returns (address);

    function addLiquidity(
        address tokenA,
        address tokenB,
        uint amountADesired,
        uint amountBDesired,
        uint amountAMin,
        uint amountBMin,
        address to,
        uint deadline
    ) external returns (uint amountA, uint amountB, uint liquidity);
    function addLiquidityETH(
        address token,
        uint amountTokenDesired,
        uint amountTokenMin,
        uint amountETHMin,
        address to,
        uint deadline
    ) external payable returns (uint amountToken, uint amountETH, uint liquidity);
    function removeLiquidity(
        address tokenA,
        address tokenB,
        uint liquidity,
        uint amountAMin,
        uint amountBMin,
        address to,
        uint deadline
    ) external returns (uint amountA, uint amountB);
    function removeLiquidityETH(
        address token,
        uint liquidity,
        uint amountTokenMin,
        uint amountETHMin,
        address to,
        uint deadline
    ) external returns (uint amountToken, uint amountETH);
    function removeLiquidityWithPermit(
        address tokenA,
        address tokenB,
        uint liquidity,
        uint amountAMin,
        uint amountBMin,
        address to,
        uint deadline,
        bool approveMax, uint8 v, bytes32 r, bytes32 s
    ) external returns (uint amountA, uint amountB);
    function removeLiquidityETHWithPermit(
        address token,
        uint liquidity,
        uint amountTokenMin,
        uint amountETHMin,
        address to,
        uint deadline,
        bool approveMax, uint8 v, bytes32 r, bytes32 s
    ) external returns (uint amountToken, uint amountETH);
    function swapExactTokensForTokens(
        uint amountIn,
        uint amountOutMin,
        address[] calldata path,
        address to,
        uint deadline
    ) external returns (uint[] memory amounts);
    function swapTokensForExactTokens(
        uint amountOut,
        uint amountInMax,
        address[] calldata path,
        address to,
        uint deadline
    ) external returns (uint[] memory amounts);
    function swapExactETHForTokens(uint amountOutMin, address[] calldata path, address to, uint deadline)
        external
        payable
        returns (uint[] memory amounts);
    function swapTokensForExactETH(uint amountOut, uint amountInMax, address[] calldata path, address to, uint deadline)
        external
        returns (uint[] memory amounts);
    function swapExactTokensForETH(uint amountIn, uint amountOutMin, address[] calldata path, address to, uint deadline)
        external
        returns (uint[] memory amounts);
    function swapETHForExactTokens(uint amountOut, address[] calldata path, address to, uint deadline)
        external
        payable
        returns (uint[] memory amounts);

    function quote(uint amountA, uint reserveA, uint reserveB) external pure returns (uint amountB);
    function getAmountOut(uint amountIn, uint reserveIn, uint reserveOut) external pure returns (uint amountOut);
    function getAmountIn(uint amountOut, uint reserveIn, uint reserveOut) external pure returns (uint amountIn);
    function getAmountsOut(uint amountIn, address[] calldata path) external view returns (uint[] memory amounts);
    function getAmountsIn(uint amountOut, address[] calldata path) external view returns (uint[] memory amounts);
}

File 9 of 19 : IUniswapV2Router02.sol
pragma solidity >=0.6.2;

import './IUniswapV2Router01.sol';

interface IUniswapV2Router02 is IUniswapV2Router01 {
    function removeLiquidityETHSupportingFeeOnTransferTokens(
        address token,
        uint liquidity,
        uint amountTokenMin,
        uint amountETHMin,
        address to,
        uint deadline
    ) external returns (uint amountETH);
    function removeLiquidityETHWithPermitSupportingFeeOnTransferTokens(
        address token,
        uint liquidity,
        uint amountTokenMin,
        uint amountETHMin,
        address to,
        uint deadline,
        bool approveMax, uint8 v, bytes32 r, bytes32 s
    ) external returns (uint amountETH);

    function swapExactTokensForTokensSupportingFeeOnTransferTokens(
        uint amountIn,
        uint amountOutMin,
        address[] calldata path,
        address to,
        uint deadline
    ) external;
    function swapExactETHForTokensSupportingFeeOnTransferTokens(
        uint amountOutMin,
        address[] calldata path,
        address to,
        uint deadline
    ) external payable;
    function swapExactTokensForETHSupportingFeeOnTransferTokens(
        uint amountIn,
        uint amountOutMin,
        address[] calldata path,
        address to,
        uint deadline
    ) external;
}

File 10 of 19 : AfterBackDividendTracker.sol
//SPDX-License-Identifier:  MIT

pragma solidity ^0.8.4;

import "@openzeppelin/contracts/access/Ownable.sol";
import "@openzeppelin/contracts/utils/math/SafeMath.sol";

import "./DividendPayingToken.sol";
import "./DividendPayingTokenInterface.sol";
import "./DividendPayingTokenOptionalInterface.sol";

import "./SafeMathInt.sol";
import "./IterableMapping.sol";


contract AfterBackDividendTracker is DividendPayingToken, Ownable {
    using SafeMath for uint256;
    using SafeMathInt for int256;
    using IterableMapping for IterableMapping.Map;

    IterableMapping.Map private tokenHoldersMap;
    uint256 public lastProcessedIndex;

    mapping (address => bool) public excludedFromDividends;

    mapping (address => uint256) public lastClaimTimes;

    uint256 public claimWait;
    uint256 public immutable minimumTokenBalanceForDividends;

    event ExcludeFromDividends(address indexed account);
    event ClaimWaitUpdated(uint256 indexed newValue, uint256 indexed oldValue);

    event Claim(address indexed account, uint256 amount, bool indexed automatic);

    constructor() DividendPayingToken("Track AFTRBCK", "TRKR_AFTRBCK") {
        claimWait = 3600;
        minimumTokenBalanceForDividends = 10000 * (10**18);
    }

    function _transfer(address, address, uint256) internal override pure {
        require(false, "AFTRBCK_TRKR: No transfers allowed");
    }

    function withdrawDividend() public override pure {
        require(false, "AFTRBCK_TRKR: withdrawDividend disabled. Use the 'claim' function on the main AfterBack contract.");
    }

    function excludeFromDividends(address account) external onlyOwner {
        require(!excludedFromDividends[account]);
        excludedFromDividends[account] = true;

        _setBalance(account, 0);
        tokenHoldersMap.remove(account);

        emit ExcludeFromDividends(account);
    }

    function updateClaimWait(uint256 newClaimWait) external onlyOwner {
        require(newClaimWait >= 3600 && newClaimWait <= 86400, "AFTRBCK_TRKR: claimWait must be updated to between 1 and 24 hours");
        require(newClaimWait != claimWait, "AFTRBCK_TRKR: Cannot update claimWait to same value");
        emit ClaimWaitUpdated(newClaimWait, claimWait);
        claimWait = newClaimWait;
    }

    function getLastProcessedIndex() external view returns(uint256) {
        return lastProcessedIndex;
    }

    function getNumberOfTokenHolders() external view returns(uint256) {
        return tokenHoldersMap.keys.length;
    }

    function getAccount(address _account)
    public view returns (
        address account,
        int256 index,
        int256 iterationsUntilProcessed,
        uint256 withdrawableDividends,
        uint256 totalDividends,
        uint256 lastClaimTime,
        uint256 nextClaimTime,
        uint256 secondsUntilAutoClaimAvailable) {
        account = _account;

        index = tokenHoldersMap.getIndexOfKey(account);

        iterationsUntilProcessed = -1;

        if(index >= 0) {
            if(uint256(index) > lastProcessedIndex) {
                iterationsUntilProcessed = index.sub(int256(lastProcessedIndex));
            }
            else {
                uint256 processesUntilEndOfArray = tokenHoldersMap.keys.length > lastProcessedIndex ?
                tokenHoldersMap.keys.length.sub(lastProcessedIndex) :
                0;


                iterationsUntilProcessed = index.add(int256(processesUntilEndOfArray));
            }
        }


        withdrawableDividends = withdrawableDividendOf(account);
        totalDividends = accumulativeDividendOf(account);

        lastClaimTime = lastClaimTimes[account];

        nextClaimTime = lastClaimTime > 0 ?
        lastClaimTime.add(claimWait) :
        0;

        secondsUntilAutoClaimAvailable = nextClaimTime > block.timestamp ?
        nextClaimTime.sub(block.timestamp) :
        0;
    }

    function getAccountAtIndex(uint256 index)
    public view returns (
        address,
        int256,
        int256,
        uint256,
        uint256,
        uint256,
        uint256,
        uint256) {
        if(index >= tokenHoldersMap.size()) {
            return (0x0000000000000000000000000000000000000000, -1, -1, 0, 0, 0, 0, 0);
        }

        address account = tokenHoldersMap.getKeyAtIndex(index);

        return getAccount(account);
    }

    function canAutoClaim(uint256 lastClaimTime) private view returns (bool) {
        if(lastClaimTime > block.timestamp)  {
            return false;
        }

        return block.timestamp.sub(lastClaimTime) >= claimWait;
    }

    function setBalance(address payable account, uint256 newBalance) external onlyOwner {
        if(excludedFromDividends[account]) {
            return;
        }

        if(newBalance >= minimumTokenBalanceForDividends) {
            _setBalance(account, newBalance);
            tokenHoldersMap.set(account, newBalance);
        }
        else {
            _setBalance(account, 0);
            tokenHoldersMap.remove(account);
        }

        processAccount(account, true);
    }

    function process(uint256 gas) public returns (uint256, uint256, uint256) {
        uint256 numberOfTokenHolders = tokenHoldersMap.keys.length;

        if(numberOfTokenHolders == 0) {
            return (0, 0, lastProcessedIndex);
        }

        uint256 _lastProcessedIndex = lastProcessedIndex;

        uint256 gasUsed = 0;

        uint256 gasLeft = gasleft();

        uint256 iterations = 0;
        uint256 claims = 0;

        while(gasUsed < gas && iterations < numberOfTokenHolders) {
            _lastProcessedIndex++;

            if(_lastProcessedIndex >= tokenHoldersMap.keys.length) {
                _lastProcessedIndex = 0;
            }

            address account = tokenHoldersMap.keys[_lastProcessedIndex];

            if(canAutoClaim(lastClaimTimes[account])) {
                if(processAccount(payable(account), true)) {
                    claims++;
                }
            }

            iterations++;

            uint256 newGasLeft = gasleft();

            if(gasLeft > newGasLeft) {
                gasUsed = gasUsed.add(gasLeft.sub(newGasLeft));
            }

            gasLeft = newGasLeft;
        }

        lastProcessedIndex = _lastProcessedIndex;

        return (iterations, claims, lastProcessedIndex);
    }

    function processAccount(address payable account, bool automatic) public onlyOwner returns (bool) {
        uint256 amount = _withdrawDividendOfUser(account);

        if(amount > 0) {
            lastClaimTimes[account] = block.timestamp;
            emit Claim(account, amount, automatic);
            return true;
        }

        return false;
    }
}

File 11 of 19 : IterableMapping.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.4;

library IterableMapping {
    // Iterable mapping from address to uint;
    struct Map {
        address[] keys;
        mapping(address => uint) values;
        mapping(address => uint) indexOf;
        mapping(address => bool) inserted;
    }

    function get(Map storage map, address key) public view returns (uint) {
        return map.values[key];
    }

    function getIndexOfKey(Map storage map, address key) public view returns (int) {
        if(!map.inserted[key]) {
            return -1;
        }
        return int(map.indexOf[key]);
    }

    function getKeyAtIndex(Map storage map, uint index) public view returns (address) {
        return map.keys[index];
    }

    function size(Map storage map) public view returns (uint) {
        return map.keys.length;
    }

    function set(Map storage map, address key, uint val) public {
        if (map.inserted[key]) {
            map.values[key] = val;
        } else {
            map.inserted[key] = true;
            map.values[key] = val;
            map.indexOf[key] = map.keys.length;
            map.keys.push(key);
        }
    }

    function remove(Map storage map, address key) public {
        if (!map.inserted[key]) {
            return;
        }

        delete map.inserted[key];
        delete map.values[key];

        uint index = map.indexOf[key];
        uint lastIndex = map.keys.length - 1;
        address lastKey = map.keys[lastIndex];

        map.indexOf[lastKey] = index;
        delete map.indexOf[key];

        map.keys[index] = lastKey;
        map.keys.pop();
    }
}

File 12 of 19 : IERC20.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

/**
 * @dev Interface of the ERC20 standard as defined in the EIP.
 */
interface IERC20 {
    /**
     * @dev Returns the amount of tokens in existence.
     */
    function totalSupply() external view returns (uint256);

    /**
     * @dev Returns the amount of tokens owned by `account`.
     */
    function balanceOf(address account) external view returns (uint256);

    /**
     * @dev Moves `amount` tokens from the caller's account to `recipient`.
     *
     * Returns a boolean value indicating whether the operation succeeded.
     *
     * Emits a {Transfer} event.
     */
    function transfer(address recipient, 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 `sender` to `recipient` 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 sender,
        address recipient,
        uint256 amount
    ) external returns (bool);

    /**
     * @dev Emitted when `value` tokens are moved from one account (`from`) to
     * another (`to`).
     *
     * Note that `value` may be zero.
     */
    event Transfer(address indexed from, address indexed to, uint256 value);

    /**
     * @dev Emitted when the allowance of a `spender` for an `owner` is set by
     * a call to {approve}. `value` is the new allowance.
     */
    event Approval(address indexed owner, address indexed spender, uint256 value);
}

File 13 of 19 : IERC20Metadata.sol
// SPDX-License-Identifier: MIT

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);
}

File 14 of 19 : Context.sol
// SPDX-License-Identifier: MIT

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;
    }
}

File 15 of 19 : DividendPayingToken.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.4;

import "@openzeppelin/contracts/token/ERC20/ERC20.sol";
import "@openzeppelin/contracts/utils/math/SafeMath.sol";

import "./SafeMathInt.sol";
import "./SafeMathUint.sol";

import "./DividendPayingTokenInterface.sol";
import "./DividendPayingTokenOptionalInterface.sol";


/// @title Dividend-Paying Token
/// @author Roger Wu (https://github.com/roger-wu)
/// @dev A mintable ERC20 token that allows anyone to pay and distribute ether
///  to token holders as dividends and allows token holders to withdraw their dividends.
contract DividendPayingToken is ERC20, DividendPayingTokenInterface, DividendPayingTokenOptionalInterface {
    using SafeMath for uint256;
    using SafeMathUint for uint256;
    using SafeMathInt for int256;

    // With `magnitude`, we can properly distribute dividends even if the amount of received ether is small.
    // For more discussion about choosing the value of `magnitude`,
    //  see https://github.com/ethereum/EIPs/issues/1726#issuecomment-472352728
    uint256 constant internal magnitude = 2**128;

    uint256 internal magnifiedDividendPerShare;

    // About dividendCorrection:
    // If the token balance of a `_user` is never changed, the dividend of `_user` can be computed with:
    //   `dividendOf(_user) = dividendPerShare * balanceOf(_user)`.
    // When `balanceOf(_user)` is changed (via minting/burning/transferring tokens),
    //   `dividendOf(_user)` should not be changed,
    //   but the computed value of `dividendPerShare * balanceOf(_user)` is changed.
    // To keep the `dividendOf(_user)` unchanged, we add a correction term:
    //   `dividendOf(_user) = dividendPerShare * balanceOf(_user) + dividendCorrectionOf(_user)`,
    //   where `dividendCorrectionOf(_user)` is updated whenever `balanceOf(_user)` is changed:
    //   `dividendCorrectionOf(_user) = dividendPerShare * (old balanceOf(_user)) - (new balanceOf(_user))`.
    // So now `dividendOf(_user)` returns the same value before and after `balanceOf(_user)` is changed.
    mapping(address => int256) internal magnifiedDividendCorrections;
    mapping(address => uint256) internal withdrawnDividends;

    uint256 public totalDividendsDistributed;

    constructor(string memory _name, string memory _symbol) ERC20(_name, _symbol) {

    }

    /// @dev Distributes dividends whenever ether is paid to this contract.
    receive() external payable {
        distributeDividends();
    }

    /// @notice Distributes ether to token holders as dividends.
    /// @dev It reverts if the total supply of tokens is 0.
    /// It emits the `DividendsDistributed` event if the amount of received ether is greater than 0.
    /// About undistributed ether:
    ///   In each distribution, there is a small amount of ether not distributed,
    ///     the magnified amount of which is
    ///     `(msg.value * magnitude) % totalSupply()`.
    ///   With a well-chosen `magnitude`, the amount of undistributed ether
    ///     (de-magnified) in a distribution can be less than 1 wei.
    ///   We can actually keep track of the undistributed ether in a distribution
    ///     and try to distribute it in the next distribution,
    ///     but keeping track of such data on-chain costs much more than
    ///     the saved ether, so we don't do that.
    function distributeDividends() public override payable {
        require(totalSupply() > 0);

        if (msg.value > 0) {
            magnifiedDividendPerShare = magnifiedDividendPerShare.add(
                (msg.value).mul(magnitude) / totalSupply()
            );
            emit DividendsDistributed(msg.sender, msg.value);

            totalDividendsDistributed = totalDividendsDistributed.add(msg.value);
        }
    }

    /// @notice Withdraws the ether distributed to the sender.
    /// @dev It emits a `DividendWithdrawn` event if the amount of withdrawn ether is greater than 0.
    function withdrawDividend() public virtual override {
        _withdrawDividendOfUser(payable(msg.sender));
    }

    /// @notice Withdraws the ether distributed to the sender.
    /// @dev It emits a `DividendWithdrawn` event if the amount of withdrawn ether is greater than 0.
    function _withdrawDividendOfUser(address payable user) internal returns (uint256) {
        uint256 _withdrawableDividend = withdrawableDividendOf(user);
        if (_withdrawableDividend > 0) {
            withdrawnDividends[user] = withdrawnDividends[user].add(_withdrawableDividend);
            emit DividendWithdrawn(user, _withdrawableDividend);
            (bool success,) = user.call{value: _withdrawableDividend, gas: 3000}("");

            if(!success) {
                withdrawnDividends[user] = withdrawnDividends[user].sub(_withdrawableDividend);
                return 0;
            }

            return _withdrawableDividend;
        }

        return 0;
    }


    /// @notice View the amount of dividend in wei that an address can withdraw.
    /// @param _owner The address of a token holder.
    /// @return The amount of dividend in wei that `_owner` can withdraw.
    function dividendOf(address _owner) public view override returns(uint256) {
        return withdrawableDividendOf(_owner);
    }

    /// @notice View the amount of dividend in wei that an address can withdraw.
    /// @param _owner The address of a token holder.
    /// @return The amount of dividend in wei that `_owner` can withdraw.
    function withdrawableDividendOf(address _owner) public view override returns(uint256) {
        return accumulativeDividendOf(_owner).sub(withdrawnDividends[_owner]);
    }

    /// @notice View the amount of dividend in wei that an address has withdrawn.
    /// @param _owner The address of a token holder.
    /// @return The amount of dividend in wei that `_owner` has withdrawn.
    function withdrawnDividendOf(address _owner) public view override returns(uint256) {
        return withdrawnDividends[_owner];
    }


    /// @notice View the amount of dividend in wei that an address has earned in total.
    /// @dev accumulativeDividendOf(_owner) = withdrawableDividendOf(_owner) + withdrawnDividendOf(_owner)
    /// = (magnifiedDividendPerShare * balanceOf(_owner) + magnifiedDividendCorrections[_owner]) / magnitude
    /// @param _owner The address of a token holder.
    /// @return The amount of dividend in wei that `_owner` has earned in total.
    function accumulativeDividendOf(address _owner) public view override returns(uint256) {
        return magnifiedDividendPerShare.mul(balanceOf(_owner)).toInt256Safe()
        .add(magnifiedDividendCorrections[_owner]).toUint256Safe() / magnitude;
    }

    /// @dev Internal function that transfer tokens from one address to another.
    /// Update magnifiedDividendCorrections to keep dividends unchanged.
    /// @param from The address to transfer from.
    /// @param to The address to transfer to.
    /// @param value The amount to be transferred.
// TODO: is this needed?
//    function _transfer(address from, address to, uint256 value) internal virtual override {
//        require(false);
//    }

    /// @dev Internal function that mints tokens to an account.
    /// Update magnifiedDividendCorrections to keep dividends unchanged.
    /// @param account The account that will receive the created tokens.
    /// @param value The amount that will be created.
    function _mint(address account, uint256 value) internal override {
        super._mint(account, value);

        magnifiedDividendCorrections[account] = magnifiedDividendCorrections[account]
        .sub( (magnifiedDividendPerShare.mul(value)).toInt256Safe() );
    }

    /// @dev Internal function that burns an amount of the token of a given account.
    /// Update magnifiedDividendCorrections to keep dividends unchanged.
    /// @param account The account whose tokens will be burnt.
    /// @param value The amount that will be burnt.
    function _burn(address account, uint256 value) internal override {
        super._burn(account, value);

        magnifiedDividendCorrections[account] = magnifiedDividendCorrections[account]
        .add( (magnifiedDividendPerShare.mul(value)).toInt256Safe() );
    }

    function _setBalance(address account, uint256 newBalance) internal {
        uint256 currentBalance = balanceOf(account);

        if(newBalance > currentBalance) {
            uint256 mintAmount = newBalance.sub(currentBalance);
            _mint(account, mintAmount);
        } else if(newBalance < currentBalance) {
            uint256 burnAmount = currentBalance.sub(newBalance);
            _burn(account, burnAmount);
        }
    }
}

File 16 of 19 : DividendPayingTokenInterface.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.4;


/// @title Dividend-Paying Token Interface
/// @author Roger Wu (https://github.com/roger-wu)
/// @dev An interface for a dividend-paying token contract.
interface DividendPayingTokenInterface {
    /// @notice View the amount of dividend in wei that an address can withdraw.
    /// @param _owner The address of a token holder.
    /// @return The amount of dividend in wei that `_owner` can withdraw.
    function dividendOf(address _owner) external view returns(uint256);

    /// @notice Distributes ether to token holders as dividends.
    /// @dev SHOULD distribute the paid ether to token holders as dividends.
    ///  SHOULD NOT directly transfer ether to token holders in this function.
    ///  MUST emit a `DividendsDistributed` event when the amount of distributed ether is greater than 0.
    function distributeDividends() external payable;

    /// @notice Withdraws the ether distributed to the sender.
    /// @dev SHOULD transfer `dividendOf(msg.sender)` wei to `msg.sender`, and `dividendOf(msg.sender)` SHOULD be 0 after the transfer.
    ///  MUST emit a `DividendWithdrawn` event if the amount of ether transferred is greater than 0.
    function withdrawDividend() external;

    /// @dev This event MUST emit when ether is distributed to token holders.
    /// @param from The address which sends ether to this contract.
    /// @param weiAmount The amount of distributed ether in wei.
    event DividendsDistributed(
        address indexed from,
        uint256 weiAmount
    );

    /// @dev This event MUST emit when an address withdraws their dividend.
    /// @param to The address which withdraws ether from this contract.
    /// @param weiAmount The amount of withdrawn ether in wei.
    event DividendWithdrawn(
        address indexed to,
        uint256 weiAmount
    );
}

File 17 of 19 : DividendPayingTokenOptionalInterface.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.4;


/// @title Dividend-Paying Token Optional Interface
/// @author Roger Wu (https://github.com/roger-wu)
/// @dev OPTIONAL functions for a dividend-paying token contract.
interface DividendPayingTokenOptionalInterface {
    /// @notice View the amount of dividend in wei that an address can withdraw.
    /// @param _owner The address of a token holder.
    /// @return The amount of dividend in wei that `_owner` can withdraw.
    function withdrawableDividendOf(address _owner) external view returns(uint256);

    /// @notice View the amount of dividend in wei that an address has withdrawn.
    /// @param _owner The address of a token holder.
    /// @return The amount of dividend in wei that `_owner` has withdrawn.
    function withdrawnDividendOf(address _owner) external view returns(uint256);

    /// @notice View the amount of dividend in wei that an address has earned in total.
    /// @dev accumulativeDividendOf(_owner) = withdrawableDividendOf(_owner) + withdrawnDividendOf(_owner)
    /// @param _owner The address of a token holder.
    /// @return The amount of dividend in wei that `_owner` has earned in total.
    function accumulativeDividendOf(address _owner) external view returns(uint256);
}

File 18 of 19 : SafeMathInt.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.4;

/**
 * @title SafeMathInt
 * @dev Math operations for int256 with overflow safety checks.
 */
library SafeMathInt {
    int256 private constant MIN_INT256 = int256(1) << 255;
    int256 private constant MAX_INT256 = ~(int256(1) << 255);

    /**
     * @dev Multiplies two int256 variables and fails on overflow.
     */
    function mul(int256 a, int256 b) internal pure returns (int256) {
        int256 c = a * b;

        // Detect overflow when multiplying MIN_INT256 with -1
        require(c != MIN_INT256 || (a & MIN_INT256) != (b & MIN_INT256));
        require((b == 0) || (c / b == a));
        return c;
    }

    /**
     * @dev Division of two int256 variables and fails on overflow.
     */
    function div(int256 a, int256 b) internal pure returns (int256) {
        // Prevent overflow when dividing MIN_INT256 by -1
        require(b != -1 || a != MIN_INT256);

        // Solidity already throws when dividing by 0.
        return a / b;
    }

    /**
     * @dev Subtracts two int256 variables and fails on overflow.
     */
    function sub(int256 a, int256 b) internal pure returns (int256) {
        int256 c = a - b;
        require((b >= 0 && c <= a) || (b < 0 && c > a));
        return c;
    }

    /**
     * @dev Adds two int256 variables and fails on overflow.
     */
    function add(int256 a, int256 b) internal pure returns (int256) {
        int256 c = a + b;
        require((b >= 0 && c >= a) || (b < 0 && c < a));
        return c;
    }

    /**
     * @dev Converts to absolute value, and fails on overflow.
     */
    function abs(int256 a) internal pure returns (int256) {
        require(a != MIN_INT256);
        return a < 0 ? -a : a;
    }


    function toUint256Safe(int256 a) internal pure returns (uint256) {
        require(a >= 0);
        return uint256(a);
    }
}

File 19 of 19 : SafeMathUint.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.4;

/**
 * @title SafeMathUint
 * @dev Math operations with safety checks that revert on error
 */
library SafeMathUint {
    function toInt256Safe(uint256 a) internal pure returns (int256) {
        int256 b = int256(a);
        require(b >= 0);
        return b;
    }
}

Settings
{
  "optimizer": {
    "enabled": true,
    "runs": 200
  },
  "outputSelection": {
    "*": {
      "*": [
        "evm.bytecode",
        "evm.deployedBytecode",
        "abi"
      ]
    }
  },
  "libraries": {
    "contracts/AfterBackDividendTracker/IterableMapping.sol": {
      "IterableMapping": "0x9a151f3a3f2d9af6974845f7b3df6944b7d38e7a"
    }
  }
}

Contract Security Audit

Contract ABI

[{"inputs":[{"internalType":"address","name":"router","type":"address"},{"internalType":"address","name":"_devWallet","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"spender","type":"address"},{"indexed":false,"internalType":"uint256","name":"value","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"newDevWallet","type":"address"},{"indexed":true,"internalType":"address","name":"oldDevWallet","type":"address"}],"name":"DevWalletUpdated","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"account","type":"address"},{"indexed":false,"internalType":"bool","name":"isExcluded","type":"bool"}],"name":"ExcludeFromFees","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address[]","name":"accounts","type":"address[]"},{"indexed":false,"internalType":"bool","name":"isExcluded","type":"bool"}],"name":"ExcludeMultipleAccountsFromFees","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint256","name":"newValue","type":"uint256"},{"indexed":true,"internalType":"uint256","name":"oldValue","type":"uint256"}],"name":"GasForProcessingUpdated","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"iterations","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"claims","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"lastProcessedIndex","type":"uint256"},{"indexed":true,"internalType":"bool","name":"automatic","type":"bool"},{"indexed":false,"internalType":"uint256","name":"gas","type":"uint256"},{"indexed":true,"internalType":"address","name":"processor","type":"address"}],"name":"ProcessedDividendTracker","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"tokensSwapped","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"SendDividends","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"pair","type":"address"},{"indexed":true,"internalType":"bool","name":"value","type":"bool"}],"name":"SetAutomatedMarketMakerPair","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"tokensSwapped","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"ethReceived","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"tokensIntoLiqudity","type":"uint256"}],"name":"SwapAndLiquify","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":false,"internalType":"uint256","name":"value","type":"uint256"}],"name":"Transfer","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"newAddress","type":"address"},{"indexed":true,"internalType":"address","name":"oldAddress","type":"address"}],"name":"UpdateDividendTracker","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"newAddress","type":"address"},{"indexed":true,"internalType":"address","name":"oldAddress","type":"address"}],"name":"UpdateUniswapV2Router","type":"event"},{"inputs":[],"name":"ETHRewardsFee","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"afterILO","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"spender","type":"address"}],"name":"allowance","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"approve","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"automatedMarketMakerPairs","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"claim","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"decimals","outputs":[{"internalType":"uint8","name":"","type":"uint8"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"subtractedValue","type":"uint256"}],"name":"decreaseAllowance","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"devETHFee","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"devTokenFee","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"devWallet","outputs":[{"internalType":"address payable","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"dividendTokenBalanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"dividendTracker","outputs":[{"internalType":"contract AfterBackDividendTracker","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"},{"internalType":"bool","name":"excluded","type":"bool"}],"name":"excludeFromFees","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address[]","name":"accounts","type":"address[]"},{"internalType":"bool","name":"excluded","type":"bool"}],"name":"excludeMultipleAccountsFromFees","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"gasForProcessing","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"getAccountDividendsInfo","outputs":[{"internalType":"address","name":"","type":"address"},{"internalType":"int256","name":"","type":"int256"},{"internalType":"int256","name":"","type":"int256"},{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"index","type":"uint256"}],"name":"getAccountDividendsInfoAtIndex","outputs":[{"internalType":"address","name":"","type":"address"},{"internalType":"int256","name":"","type":"int256"},{"internalType":"int256","name":"","type":"int256"},{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getClaimWait","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getLastProcessedIndex","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getNumberOfDividendTokenHolders","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getTotalDividendsDistributed","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"addedValue","type":"uint256"}],"name":"increaseAllowance","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"isExcludedFromFees","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"maxSellTransactionAmount","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"prepareForILO","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"gas","type":"uint256"}],"name":"processDividendTracker","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"pair","type":"address"},{"internalType":"bool","name":"value","type":"bool"}],"name":"setAutomatedMarketMakerPair","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"developmentETHFee","type":"uint256"}],"name":"setDevelopmentETHFee","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"developmentTokensFee","type":"uint256"}],"name":"setDevelopmentTokensFee","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_developmentWallet","type":"address"}],"name":"setDevelopmentWallet","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"TransactionAmount","type":"uint256"}],"name":"setMaxSellTransactionAmount","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_newRouterAddress","type":"address"}],"name":"setNewRouterAddress","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_swapTokensAtAmount","type":"uint256"}],"name":"setSwapTokensAtAmount","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"swapTokensAtAmount","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalFees","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"recipient","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"transfer","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"sender","type":"address"},{"internalType":"address","name":"recipient","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"transferFrom","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"uniswapV2Pair","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"uniswapV2Router","outputs":[{"internalType":"contract IUniswapV2Router02","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"claimWait","type":"uint256"}],"name":"updateClaimWait","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newDevWallet","type":"address"}],"name":"updateDevWallet","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newAddress","type":"address"}],"name":"updateDividendTracker","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"newValue","type":"uint256"}],"name":"updateGasForProcessing","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"withdrawableDividendOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"stateMutability":"payable","type":"receive"}]

60c0604052601260808190527141667465724261636b546f6b656e2e436f6d60701b60a090815262000035916006919062000afc565b50604080518082019091526007808252664146545242434b60c81b602090920191825262000064918162000afc565b506008805460ff191660121781556a52b7d2dcc80cd2e4000000600955600a8190556004600b8190556003600c81905591620000a1919062000c28565b620000ad919062000c28565b600d5569d3c21bcecceda1000000600e5569152d02c7e14af6800000600f55620493e0601755348015620000e057600080fd5b506040516200614938038062006149833981016040819052620001039162000bf1565b60068054620001129062000c4d565b80601f0160208091040260200160405190810160405280929190818152602001828054620001409062000c4d565b8015620001915780601f10620001655761010080835404028352916020019162000191565b820191906000526020600020905b8154815290600101906020018083116200017357829003601f168201915b505050505060078054620001a59062000c4d565b80601f0160208091040260200160405190810160405280929190818152602001828054620001d39062000c4d565b8015620002245780601f10620001f85761010080835404028352916020019162000224565b820191906000526020600020905b8154815290600101906020018083116200020657829003601f168201915b505084516200023e93506003925060208601915062000afc565b5080516200025490600490602084019062000afc565b505050620002716200026b620006fe60201b60201c565b62000702565b6040516200027f9062000b8b565b604051809103906000f0801580156200029c573d6000803e3d6000fd5b50601080546001600160a01b03199081166001600160a01b0393841617909155601180549091168383161790556040805163c45a015560e01b81529051849283169163c45a0155916004808301926020929190829003018186803b1580156200030457600080fd5b505afa15801562000319573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906200033f919062000bcd565b6001600160a01b031663c9c6539630836001600160a01b031663ad5c46486040518163ffffffff1660e01b815260040160206040518083038186803b1580156200038857600080fd5b505afa1580156200039d573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190620003c3919062000bcd565b6040516001600160e01b031960e085901b1681526001600160a01b03928316600482015291166024820152604401602060405180830381600087803b1580156200040c57600080fd5b505af115801562000421573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019062000447919062000bcd565b601380546001600160a01b039283166001600160a01b031991821681179092556012805493851693909116929092179091556200048690600162000754565b60105460405163031e79db60e41b81523060048201526001600160a01b03909116906331e79db090602401600060405180830381600087803b158015620004cc57600080fd5b505af1158015620004e1573d6000803e3d6000fd5b505060105460405163031e79db60e41b81526001600160a01b039091166004820181905292506331e79db09150602401600060405180830381600087803b1580156200052c57600080fd5b505af115801562000541573d6000803e3d6000fd5b50506010546001600160a01b031691506331e79db090506200056b6005546001600160a01b031690565b6040516001600160e01b031960e084901b1681526001600160a01b039091166004820152602401600060405180830381600087803b158015620005ad57600080fd5b505af1158015620005c2573d6000803e3d6000fd5b505060105460115460405163031e79db60e41b81526001600160a01b039182166004820152911692506331e79db09150602401600060405180830381600087803b1580156200061057600080fd5b505af115801562000625573d6000803e3d6000fd5b505060105460405163031e79db60e41b81526001600160a01b03858116600483015290911692506331e79db09150602401600060405180830381600087803b1580156200067157600080fd5b505af115801562000686573d6000803e3d6000fd5b505050506200069d306001620008c560201b60201c565b620006bc620006b46005546001600160a01b031690565b6001620008c5565b601154620006d5906001600160a01b03166001620008c5565b620006f5620006ec6005546001600160a01b031690565b60095462000a17565b50505062000c8a565b3390565b600580546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b6001600160a01b03821660009081526014602052604090205460ff1615158115151415620007f95760405162461bcd60e51b815260206004820152604160248201527f4146545242434b3a204175746f6d61746564206d61726b6574206d616b65722060448201527f7061697220697320616c72656164792073657420746f20746861742076616c756064820152606560f81b608482015260a4015b60405180910390fd5b6001600160a01b0382166000908152601460205260409020805460ff19168215801591909117909155620008895760105460405163031e79db60e41b81526001600160a01b038481166004830152909116906331e79db090602401600060405180830381600087803b1580156200086f57600080fd5b505af115801562000884573d6000803e3d6000fd5b505050505b604051811515906001600160a01b038416907fffa9187bf1f18bf477bd0ea1bcbb64e93b6a98132473929edfce215cd9b16fab90600090a35050565b6005546001600160a01b03163314620009215760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401620007f0565b6001600160a01b03821660009081526015602052604090205460ff1615158115151415620009b85760405162461bcd60e51b815260206004820152603360248201527f4146545242434b3a204163636f756e7420697320616c7265616479207468652060448201527f76616c7565206f6620276578636c7564656427000000000000000000000000006064820152608401620007f0565b6001600160a01b038216600081815260156020908152604091829020805460ff191685151590811790915591519182527f9d8f7706ea1113d1a167b526eca956215946dd36cc7df39eb16180222d8b5df7910160405180910390a25050565b6001600160a01b03821662000a6f5760405162461bcd60e51b815260206004820152601f60248201527f45524332303a206d696e7420746f20746865207a65726f2061646472657373006044820152606401620007f0565b806002600082825462000a83919062000c28565b90915550506001600160a01b0382166000908152602081905260408120805483929062000ab290849062000c28565b90915550506040518181526001600160a01b038316906000907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9060200160405180910390a35050565b82805462000b0a9062000c4d565b90600052602060002090601f01602090048101928262000b2e576000855562000b79565b82601f1062000b4957805160ff191683800117855562000b79565b8280016001018555821562000b79579182015b8281111562000b7957825182559160200191906001019062000b5c565b5062000b8792915062000b99565b5090565b6121a08062003fa983390190565b5b8082111562000b87576000815560010162000b9a565b80516001600160a01b038116811462000bc857600080fd5b919050565b60006020828403121562000bdf578081fd5b62000bea8262000bb0565b9392505050565b6000806040838503121562000c04578081fd5b62000c0f8362000bb0565b915062000c1f6020840162000bb0565b90509250929050565b6000821982111562000c4857634e487b7160e01b81526011600452602481fd5b500190565b600181811c9082168062000c6257607f821691505b6020821081141562000c8457634e487b7160e01b600052602260045260246000fd5b50919050565b61330f8062000c9a6000396000f3fe6080604052600436106103035760003560e01c806372ac248611610190578063a9059cbb116100dc578063dd62ed3e11610095578063e7841ec01161006f578063e7841ec014610949578063e98030c71461095e578063f27fd2541461097e578063f2fde38b1461099e57600080fd5b8063dd62ed3e146108d7578063e2f456051461091d578063e749b1c61461093357600080fd5b8063a9059cbb146107c2578063ad56c13c146107e2578063afa4f3b214610847578063b62496f514610867578063c024666814610897578063c492f046146108b757600080fd5b806395d89b4111610149578063a26579ad11610123578063a26579ad14610758578063a457c2d71461076d578063a8b9d2401461078d578063a8fbaa03146107ad57600080fd5b806395d89b411461070d5780639a7a23d6146107225780639c1b8af51461074257600080fd5b806372ac248614610659578063871c128d1461067957806388bdd9be146106995780638c0344db146106b95780638da5cb5b146106cf5780638ea5220f146106ed57600080fd5b8063313ce5671161024f5780634fbee193116102085780636b842af9116101e25780636b842af9146105ce578063700bb191146105ee57806370a082311461060e578063715018a61461064457600080fd5b80634fbee1931461056057806364b0f653146105995780636843cd84146105ae57600080fd5b8063313ce567146104ba578063333f404d146104d657806339509351146104f657806349bd5a5e146105165780634e71d92d146105365780634f3ee60b1461054b57600080fd5b80631694505e116102bc57806323b872dd1161029657806323b872dd1461044f5780632c1f52161461046f5780632d0485301461048f57806330bb4cff146104a557600080fd5b80631694505e146103e257806318160ddd1461041a5780631816467f1461042f57600080fd5b806301dc3aae1461030f57806302259e9e1461033157806306fdde031461035a578063095ea7b31461037c57806313114a9d146103ac57806316216e5f146103c257600080fd5b3661030a57005b600080fd5b34801561031b57600080fd5b5061032f61032a36600461302e565b6109be565b005b34801561033d57600080fd5b50610347600e5481565b6040519081526020015b60405180910390f35b34801561036657600080fd5b5061036f6109f6565b60405161035191906130e4565b34801561038857600080fd5b5061039c610397366004612f66565b610a88565b6040519015158152602001610351565b3480156103b857600080fd5b50610347600d5481565b3480156103ce57600080fd5b5061032f6103dd36600461302e565b610a9e565b3480156103ee57600080fd5b50601254610402906001600160a01b031681565b6040516001600160a01b039091168152602001610351565b34801561042657600080fd5b50600254610347565b34801561043b57600080fd5b5061032f61044a366004612e20565b610ae0565b34801561045b57600080fd5b5061039c61046a366004612e90565b610c61565b34801561047b57600080fd5b50601054610402906001600160a01b031681565b34801561049b57600080fd5b50610347600b5481565b3480156104b157600080fd5b50610347610d0b565b3480156104c657600080fd5b5060405160128152602001610351565b3480156104e257600080fd5b5061032f6104f136600461302e565b610d8d565b34801561050257600080fd5b5061039c610511366004612f66565b610dbc565b34801561052257600080fd5b50601354610402906001600160a01b031681565b34801561054257600080fd5b5061032f610df8565b34801561055757600080fd5b5061032f610e7f565b34801561056c57600080fd5b5061039c61057b366004612e20565b6001600160a01b031660009081526015602052604090205460ff1690565b3480156105a557600080fd5b50610347610ece565b3480156105ba57600080fd5b506103476105c9366004612e20565b610f13565b3480156105da57600080fd5b5061032f6105e9366004612e20565b610f98565b3480156105fa57600080fd5b5061032f61060936600461302e565b611416565b34801561061a57600080fd5b50610347610629366004612e20565b6001600160a01b031660009081526020819052604090205490565b34801561065057600080fd5b5061032f6114f8565b34801561066557600080fd5b5061032f610674366004612e20565b61152e565b34801561068557600080fd5b5061032f61069436600461302e565b61157a565b3480156106a557600080fd5b5061032f6106b4366004612e20565b6116b8565b3480156106c557600080fd5b50610347600a5481565b3480156106db57600080fd5b506005546001600160a01b0316610402565b3480156106f957600080fd5b50601154610402906001600160a01b031681565b34801561071957600080fd5b5061036f611a4f565b34801561072e57600080fd5b5061032f61073d366004612ed0565b611a5e565b34801561074e57600080fd5b5061034760175481565b34801561076457600080fd5b50610347611b2d565b34801561077957600080fd5b5061039c610788366004612f66565b611b72565b34801561079957600080fd5b506103476107a8366004612e20565b611c0b565b3480156107b957600080fd5b5061032f611c3e565b3480156107ce57600080fd5b5061039c6107dd366004612f66565b611ca5565b3480156107ee57600080fd5b506108026107fd366004612e20565b611cb2565b604080516001600160a01b0390991689526020890197909752958701949094526060860192909252608085015260a084015260c083015260e082015261010001610351565b34801561085357600080fd5b5061032f61086236600461302e565b611d5c565b34801561087357600080fd5b5061039c610882366004612e20565b60146020526000908152604090205460ff1681565b3480156108a357600080fd5b5061032f6108b2366004612ed0565b611d9e565b3480156108c357600080fd5b5061032f6108d2366004612f91565b611eb2565b3480156108e357600080fd5b506103476108f2366004612e58565b6001600160a01b03918216600090815260016020908152604080832093909416825291909152205490565b34801561092957600080fd5b50610347600f5481565b34801561093f57600080fd5b50610347600c5481565b34801561095557600080fd5b50610347611f9c565b34801561096a57600080fd5b5061032f61097936600461302e565b611fe1565b34801561098a57600080fd5b5061080261099936600461302e565b61206c565b3480156109aa57600080fd5b5061032f6109b9366004612e20565b6120ae565b6005546001600160a01b031633146109f15760405162461bcd60e51b81526004016109e890613137565b60405180910390fd5b600b55565b606060038054610a059061324a565b80601f0160208091040260200160405190810160405280929190818152602001828054610a319061324a565b8015610a7e5780601f10610a5357610100808354040283529160200191610a7e565b820191906000526020600020905b815481529060010190602001808311610a6157829003601f168201915b5050505050905090565b6000610a95338484612146565b50600192915050565b6005546001600160a01b03163314610ac85760405162461bcd60e51b81526004016109e890613137565b610ada81670de0b6b3a7640000613214565b600e5550565b6005546001600160a01b03163314610b0a5760405162461bcd60e51b81526004016109e890613137565b6011546001600160a01b0382811691161415610b8e5760405162461bcd60e51b815260206004820152603760248201527f4146545242434b3a2054686520646576656c6f706d656e742077616c6c65742060448201527f697320616c72656164792074686973206164647265737300000000000000000060648201526084016109e8565b6001600160a01b038116610c0a5760405162461bcd60e51b815260206004820152603b60248201527f4146545242434b3a2054686520646576656c6f706d656e742077616c6c65742060448201527f63616e206e6f7420626520746865207a65726f2061646472657373000000000060648201526084016109e8565b610c15816001611d9e565b601180546001600160a01b0319166001600160a01b03831690811790915560405181907f0db17895a9d092fb3ca24d626f2150dd80c185b0706b36f1040ee239f56cb87190600090a350565b6000610c6e84848461226a565b6001600160a01b038416600090815260016020908152604080832033845290915290205482811015610cf35760405162461bcd60e51b815260206004820152602860248201527f45524332303a207472616e7366657220616d6f756e74206578636565647320616044820152676c6c6f77616e636560c01b60648201526084016109e8565b610d008533858403612146565b506001949350505050565b601054604080516342d359d760e11b815290516000926001600160a01b0316916385a6b3ae916004808301926020929190829003018186803b158015610d5057600080fd5b505afa158015610d64573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610d889190613046565b905090565b6005546001600160a01b03163314610db75760405162461bcd60e51b81526004016109e890613137565b600c55565b3360008181526001602090815260408083206001600160a01b03871684529091528120549091610a95918590610df39086906131dc565b612146565b60105460405163bc4c4b3760e01b8152336004820152600060248201526001600160a01b039091169063bc4c4b3790604401602060405180830381600087803b158015610e4457600080fd5b505af1158015610e58573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610e7c9190613012565b50565b6005546001600160a01b03163314610ea95760405162461bcd60e51b81526004016109e890613137565b6000600a819055600b819055600c819055600d556a52b7d2dcc80cd2e4000000600e55565b601054604080516304ddf6ef60e11b815290516000926001600160a01b0316916309bbedde916004808301926020929190829003018186803b158015610d5057600080fd5b6010546040516370a0823160e01b81526001600160a01b03838116600483015260009216906370a08231906024015b60206040518083038186803b158015610f5a57600080fd5b505afa158015610f6e573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610f929190613046565b92915050565b6005546001600160a01b03163314610fc25760405162461bcd60e51b81526004016109e890613137565b6001600160a01b03811661102c5760405162461bcd60e51b815260206004820152602b60248201527f4146545242434b3a20526f757465722063616e206e6f7420626520746865207a60448201526a65726f206164647265737360a81b60648201526084016109e8565b6012546001600160a01b03828116911614156110965760405162461bcd60e51b815260206004820152602360248201527f4146545242434b3a2054686973206973207468652063757272656e7420726f756044820152623a32b960e91b60648201526084016109e8565b601280546001600160a01b0319166001600160a01b0383169081179091556040805163c45a015560e01b8152905183929163c45a0155916004808301926020929190829003018186803b1580156110ec57600080fd5b505afa158015611100573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906111249190612e3c565b6001600160a01b031663e6a4390530836001600160a01b031663ad5c46486040518163ffffffff1660e01b815260040160206040518083038186803b15801561116c57600080fd5b505afa158015611180573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906111a49190612e3c565b6040516001600160e01b031960e085901b1681526001600160a01b0392831660048201529116602482015260440160206040518083038186803b1580156111ea57600080fd5b505afa1580156111fe573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906112229190612e3c565b601380546001600160a01b0319166001600160a01b039290921691821790556113d757806001600160a01b031663c45a01556040518163ffffffff1660e01b815260040160206040518083038186803b15801561127e57600080fd5b505afa158015611292573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906112b69190612e3c565b6001600160a01b031663c9c6539630836001600160a01b031663ad5c46486040518163ffffffff1660e01b815260040160206040518083038186803b1580156112fe57600080fd5b505afa158015611312573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906113369190612e3c565b6040516001600160e01b031960e085901b1681526001600160a01b03928316600482015291166024820152604401602060405180830381600087803b15801561137e57600080fd5b505af1158015611392573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906113b69190612e3c565b601380546001600160a01b0319166001600160a01b03929092169190911790555b6012546040516001600160a01b03918216918416907f8fc842bbd331dfa973645f4ed48b11683d501ebf1352708d77a5da2ab49a576e90600090a35050565b6010546040516001624d3b8760e01b0319815260048101839052600091829182916001600160a01b03169063ffb2c47990602401606060405180830381600087803b15801561146457600080fd5b505af1158015611478573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061149c919061305e565b604080518481526020810184905290810182905260608101889052929550909350915032906000907fc864333d6121033635ab41b29ae52f10a22cf4438c3e4f1c4c68518feb2f8a98906080015b60405180910390a350505050565b6005546001600160a01b031633146115225760405162461bcd60e51b81526004016109e890613137565b61152c6000612817565b565b6005546001600160a01b031633146115585760405162461bcd60e51b81526004016109e890613137565b601180546001600160a01b0319166001600160a01b0392909216919091179055565b6005546001600160a01b031633146115a45760405162461bcd60e51b81526004016109e890613137565b62030d408110156116135760405162461bcd60e51b815260206004820152603360248201527f4146545242434b3a20676173466f7250726f63657373696e67206d7573742062604482015272065206d6f7265207468616e203230302c30303606c1b60648201526084016109e8565b6017548114156116835760405162461bcd60e51b815260206004820152603560248201527f4146545242434b3a2043616e6e6f742075706461746520676173466f7250726f60448201527463657373696e6720746f2073616d652076616c756560581b60648201526084016109e8565b6017819055604051819081907f40d7e40e79af4e8e5a9b3c57030d8ea93f13d669c06d448c4d631d4ae7d23db790600090a350565b6005546001600160a01b031633146116e25760405162461bcd60e51b81526004016109e890613137565b6010546001600160a01b038281169116141561175f5760405162461bcd60e51b815260206004820152603660248201527f4146545242434b3a20546865206469766964656e6420747261636b657220616c6044820152757265616479206861732074686174206164647265737360501b60648201526084016109e8565b6000819050306001600160a01b0316816001600160a01b0316638da5cb5b6040518163ffffffff1660e01b815260040160206040518083038186803b1580156117a757600080fd5b505afa1580156117bb573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906117df9190612e3c565b6001600160a01b0316146118715760405162461bcd60e51b815260206004820152604d60248201527f4146545242434b3a20546865206e6577206469766964656e6420747261636b6560448201527f72206d757374206265206f776e656420627920746865204146545242434b207460648201526c1bdad95b8818dbdb9d1c9858dd609a1b608482015260a4016109e8565b60405163031e79db60e41b81526001600160a01b03821660048201819052906331e79db090602401600060405180830381600087803b1580156118b357600080fd5b505af11580156118c7573d6000803e3d6000fd5b505060405163031e79db60e41b81523060048201526001600160a01b03841692506331e79db09150602401600060405180830381600087803b15801561190c57600080fd5b505af1158015611920573d6000803e3d6000fd5b50505050806001600160a01b03166331e79db06119456005546001600160a01b031690565b6040516001600160e01b031960e084901b1681526001600160a01b039091166004820152602401600060405180830381600087803b15801561198657600080fd5b505af115801561199a573d6000803e3d6000fd5b505060125460405163031e79db60e41b81526001600160a01b03918216600482015290841692506331e79db09150602401600060405180830381600087803b1580156119e557600080fd5b505af11580156119f9573d6000803e3d6000fd5b5050601080546001600160a01b0319166001600160a01b0385811691821790925560405190935090851691507f90c7d74461c613da5efa97d90740869367d74ab3aa5837aa4ae9a975f954b7a890600090a35050565b606060048054610a059061324a565b6005546001600160a01b03163314611a885760405162461bcd60e51b81526004016109e890613137565b6013546001600160a01b0383811691161415611b1f5760405162461bcd60e51b815260206004820152604a60248201527f4146545242434b3a2054686520556e695377617020706169722063616e6e6f7460448201527f2062652072656d6f7665642066726f6d206175746f6d617465644d61726b65746064820152694d616b6572506169727360b01b608482015260a4016109e8565b611b298282612869565b5050565b60105460408051631bc9e27b60e21b815290516000926001600160a01b031691636f2789ec916004808301926020929190829003018186803b158015610d5057600080fd5b3360009081526001602090815260408083206001600160a01b038616845290915281205482811015611bf45760405162461bcd60e51b815260206004820152602560248201527f45524332303a2064656372656173656420616c6c6f77616e63652062656c6f77604482015264207a65726f60d81b60648201526084016109e8565b611c013385858403612146565b5060019392505050565b6010546040516302a2e74960e61b81526001600160a01b038381166004830152600092169063a8b9d24090602401610f42565b6005546001600160a01b03163314611c685760405162461bcd60e51b81526004016109e890613137565b6008600a8190556004600b8190556003600c81905591611c8891906131dc565b611c9291906131dc565b600d5569d3c21bcecceda1000000600e55565b6000610a9533848461226a565b60105460405163fbcbc0f160e01b81526001600160a01b038381166004830152600092839283928392839283928392839291169063fbcbc0f1906024015b6101006040518083038186803b158015611d0957600080fd5b505afa158015611d1d573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611d419190612efd565b97509750975097509750975097509750919395975091939597565b6005546001600160a01b03163314611d865760405162461bcd60e51b81526004016109e890613137565b611d9881670de0b6b3a7640000613214565b600f5550565b6005546001600160a01b03163314611dc85760405162461bcd60e51b81526004016109e890613137565b6001600160a01b03821660009081526015602052604090205460ff1615158115151415611e535760405162461bcd60e51b815260206004820152603360248201527f4146545242434b3a204163636f756e7420697320616c7265616479207468652060448201527276616c7565206f6620276578636c756465642760681b60648201526084016109e8565b6001600160a01b038216600081815260156020908152604091829020805460ff191685151590811790915591519182527f9d8f7706ea1113d1a167b526eca956215946dd36cc7df39eb16180222d8b5df7910160405180910390a25050565b6005546001600160a01b03163314611edc5760405162461bcd60e51b81526004016109e890613137565b60005b82811015611f5b578160156000868685818110611f0c57634e487b7160e01b600052603260045260246000fd5b9050602002016020810190611f219190612e20565b6001600160a01b031681526020810191909152604001600020805460ff191691151591909117905580611f5381613285565b915050611edf565b507f7fdaf542373fa84f4ee8d662c642f44e4c2276a217d7d29e548b6eb29a233b35838383604051611f8f9392919061308b565b60405180910390a1505050565b6010546040805163039e107b60e61b815290516000926001600160a01b03169163e7841ec0916004808301926020929190829003018186803b158015610d5057600080fd5b6005546001600160a01b0316331461200b5760405162461bcd60e51b81526004016109e890613137565b60105460405163e98030c760e01b8152600481018390526001600160a01b039091169063e98030c790602401600060405180830381600087803b15801561205157600080fd5b505af1158015612065573d6000803e3d6000fd5b5050505050565b601054604051635183d6fd60e01b81526004810183905260009182918291829182918291829182916001600160a01b0390911690635183d6fd90602401611cf0565b6005546001600160a01b031633146120d85760405162461bcd60e51b81526004016109e890613137565b6001600160a01b03811661213d5760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b60648201526084016109e8565b610e7c81612817565b6001600160a01b0383166121a85760405162461bcd60e51b8152602060048201526024808201527f45524332303a20617070726f76652066726f6d20746865207a65726f206164646044820152637265737360e01b60648201526084016109e8565b6001600160a01b0382166122095760405162461bcd60e51b815260206004820152602260248201527f45524332303a20617070726f766520746f20746865207a65726f206164647265604482015261737360f01b60648201526084016109e8565b6001600160a01b0383811660008181526001602090815260408083209487168084529482529182902085905590518481527f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925910160405180910390a3505050565b6001600160a01b0383166122d05760405162461bcd60e51b815260206004820152602760248201527f4146545242434b3a207472616e736665722066726f6d20746865207a65726f206044820152666164647265737360c81b60648201526084016109e8565b6001600160a01b0382166123345760405162461bcd60e51b815260206004820152602560248201527f4146545242434b3a207472616e7366657220746f20746865207a65726f206164604482015264647265737360d81b60648201526084016109e8565b8061234a57612345838360006129d1565b505050565b60165460ff1615801561237557506001600160a01b03821660009081526014602052604090205460ff165b801561238f57506012546001600160a01b03848116911614155b80156123b457506001600160a01b03821660009081526015602052604090205460ff16155b1561243157600e548111156124315760405162461bcd60e51b815260206004820152603a60248201527f53656c6c207472616e7366657220616d6f756e7420657863656564732074686560448201527f206d617853656c6c5472616e73616374696f6e416d6f756e742e00000000000060648201526084016109e8565b30600090815260208190526040902054600f5481108015908190612458575060165460ff16155b801561247d57506001600160a01b03851660009081526014602052604090205460ff16155b801561249757506011546001600160a01b03868116911614155b80156124b157506011546001600160a01b03858116911614155b1561258857600f54915060006124dd60646124d76124d0600a54612b92565b8690612ba3565b90612bb6565b905060006124fb60646124d76124f4600c54612b92565b8790612ba3565b9050600061251960646124d7612512600b54612b92565b8890612ba3565b6016805460ff1916600117905590504761253282612bc2565b600061253e4783612d3f565b601154909150612557906001600160a01b031682612d4b565b60115461256f9030906001600160a01b0316866129d1565b61257885612d81565b50506016805460ff191690555050505b6001600160a01b03851660009081526015602052604090205460019060ff16806125ca57506001600160a01b03851660009081526015602052604090205460ff165b156125d3575060005b80156126105760006125f560646124d7600d5488612ba390919063ffffffff16565b90506126018582612d3f565b945061260e8730836129d1565b505b61261b8686866129d1565b6010546001600160a01b031663e30443bc8761264c816001600160a01b031660009081526020819052604090205490565b6040516001600160e01b031960e085901b1681526001600160a01b0390921660048301526024820152604401600060405180830381600087803b15801561269257600080fd5b505af19250505080156126a3575060015b506010546001600160a01b031663e30443bc866126d5816001600160a01b031660009081526020819052604090205490565b6040516001600160e01b031960e085901b1681526001600160a01b0390921660048301526024820152604401600060405180830381600087803b15801561271b57600080fd5b505af192505050801561272c575060015b5060165460ff1661280f576017546010546040516001624d3b8760e01b03198152600481018390526001600160a01b039091169063ffb2c47990602401606060405180830381600087803b15801561278357600080fd5b505af19250505080156127b3575060408051601f3d908101601f191682019092526127b09181019061305e565b60015b6127bc5761280d565b60408051848152602081018490529081018290526060810185905232906001907fc864333d6121033635ab41b29ae52f10a22cf4438c3e4f1c4c68518feb2f8a989060800160405180910390a35050505b505b505050505050565b600580546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b6001600160a01b03821660009081526014602052604090205460ff16151581151514156129085760405162461bcd60e51b815260206004820152604160248201527f4146545242434b3a204175746f6d61746564206d61726b6574206d616b65722060448201527f7061697220697320616c72656164792073657420746f20746861742076616c756064820152606560f81b608482015260a4016109e8565b6001600160a01b0382166000908152601460205260409020805460ff191682158015919091179091556129955760105460405163031e79db60e41b81526001600160a01b038481166004830152909116906331e79db090602401600060405180830381600087803b15801561297c57600080fd5b505af1158015612990573d6000803e3d6000fd5b505050505b604051811515906001600160a01b038416907fffa9187bf1f18bf477bd0ea1bcbb64e93b6a98132473929edfce215cd9b16fab90600090a35050565b6001600160a01b038316612a355760405162461bcd60e51b815260206004820152602560248201527f45524332303a207472616e736665722066726f6d20746865207a65726f206164604482015264647265737360d81b60648201526084016109e8565b6001600160a01b038216612a975760405162461bcd60e51b815260206004820152602360248201527f45524332303a207472616e7366657220746f20746865207a65726f206164647260448201526265737360e81b60648201526084016109e8565b6001600160a01b03831660009081526020819052604090205481811015612b0f5760405162461bcd60e51b815260206004820152602660248201527f45524332303a207472616e7366657220616d6f756e7420657863656564732062604482015265616c616e636560d01b60648201526084016109e8565b6001600160a01b03808516600090815260208190526040808220858503905591851681529081208054849290612b469084906131dc565b92505081905550826001600160a01b0316846001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef846040516114ea91815260200190565b600d54600090610f92906124d78460645b6000612baf8284613214565b9392505050565b6000612baf82846131f4565b6040805160028082526060820183526000926020830190803683370190505090503081600081518110612c0557634e487b7160e01b600052603260045260246000fd5b6001600160a01b03928316602091820292909201810191909152601254604080516315ab88c960e31b81529051919093169263ad5c4648926004808301939192829003018186803b158015612c5957600080fd5b505afa158015612c6d573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612c919190612e3c565b81600181518110612cb257634e487b7160e01b600052603260045260246000fd5b6001600160a01b039283166020918202929092010152601254612cd89130911684612146565b60125460405163791ac94760e01b81526001600160a01b039091169063791ac94790612d1190859060009086903090429060040161316c565b600060405180830381600087803b158015612d2b57600080fd5b505af115801561280f573d6000803e3d6000fd5b6000612baf8284613233565b6040516001600160a01b0383169082156108fc029083906000818181858888f19350505050158015612345573d6000803e3d6000fd5b612d8a81612bc2565b60105460405147916000916001600160a01b039091169083908381818185875af1925050503d8060008114612ddb576040519150601f19603f3d011682016040523d82523d6000602084013e612de0565b606091505b5050905080156123455760408051848152602081018490527f80195cc573b02cc48460cbca6e6e4cc85ddb91959d946e1c3025ea3d87942dc39101611f8f565b600060208284031215612e31578081fd5b8135612baf816132b6565b600060208284031215612e4d578081fd5b8151612baf816132b6565b60008060408385031215612e6a578081fd5b8235612e75816132b6565b91506020830135612e85816132b6565b809150509250929050565b600080600060608486031215612ea4578081fd5b8335612eaf816132b6565b92506020840135612ebf816132b6565b929592945050506040919091013590565b60008060408385031215612ee2578182fd5b8235612eed816132b6565b91506020830135612e85816132cb565b600080600080600080600080610100898b031215612f19578384fd5b8851612f24816132b6565b809850506020890151965060408901519550606089015194506080890151935060a0890151925060c0890151915060e089015190509295985092959890939650565b60008060408385031215612f78578182fd5b8235612f83816132b6565b946020939093013593505050565b600080600060408486031215612fa5578283fd5b833567ffffffffffffffff80821115612fbc578485fd5b818601915086601f830112612fcf578485fd5b813581811115612fdd578586fd5b8760208260051b8501011115612ff1578586fd5b60209283019550935050840135613007816132cb565b809150509250925092565b600060208284031215613023578081fd5b8151612baf816132cb565b60006020828403121561303f578081fd5b5035919050565b600060208284031215613057578081fd5b5051919050565b600080600060608486031215613072578283fd5b8351925060208401519150604084015190509250925092565b6040808252810183905260008460608301825b868110156130ce5782356130b1816132b6565b6001600160a01b031682526020928301929091019060010161309e565b5080925050508215156020830152949350505050565b6000602080835283518082850152825b81811015613110578581018301518582016040015282016130f4565b818111156131215783604083870101525b50601f01601f1916929092016040019392505050565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b600060a082018783526020878185015260a0604085015281875180845260c0860191508289019350845b818110156131bb5784516001600160a01b031683529383019391830191600101613196565b50506001600160a01b03969096166060850152505050608001529392505050565b600082198211156131ef576131ef6132a0565b500190565b60008261320f57634e487b7160e01b81526012600452602481fd5b500490565b600081600019048311821515161561322e5761322e6132a0565b500290565b600082821015613245576132456132a0565b500390565b600181811c9082168061325e57607f821691505b6020821081141561327f57634e487b7160e01b600052602260045260246000fd5b50919050565b6000600019821415613299576132996132a0565b5060010190565b634e487b7160e01b600052601160045260246000fd5b6001600160a01b0381168114610e7c57600080fd5b8015158114610e7c57600080fdfea26469706673582212200c90f146646831ef8a0db65676b2960d9dd16558ef0f3eac2f3ad7b389f5c3a764736f6c6343000804003360a06040523480156200001157600080fd5b50604080518082018252600d81526c547261636b204146545242434b60981b60208083019182528351808501909452600c84526b54524b525f4146545242434b60a01b908401528151919291839183916200006f9160039162000114565b5080516200008590600490602084019062000114565b5050505050620000a46200009e620000be60201b60201c565b620000c2565b610e1060115569021e19e0c9bab2400000608052620001f7565b3390565b600980546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b8280546200012290620001ba565b90600052602060002090601f01602090048101928262000146576000855562000191565b82601f106200016157805160ff191683800117855562000191565b8280016001018555821562000191579182015b828111156200019157825182559160200191906001019062000174565b506200019f929150620001a3565b5090565b5b808211156200019f5760008155600101620001a4565b600181811c90821680620001cf57607f821691505b60208210811415620001f157634e487b7160e01b600052602260045260246000fd5b50919050565b608051611f866200021a600039600081816105d80152610ee90152611f866000f3fe6080604052600436106102085760003560e01c8063715018a611610118578063bc4c4b37116100a0578063e7841ec01161006f578063e7841ec014610660578063e98030c714610675578063f2fde38b14610695578063fbcbc0f1146106b5578063ffb2c479146106d557600080fd5b8063bc4c4b37146105a6578063be10b614146105c6578063dd62ed3e146105fa578063e30443bc1461064057600080fd5b806395d89b41116100e757806395d89b41146104fb578063a457c2d714610510578063a8b9d24014610530578063a9059cbb14610550578063aafd847a1461057057600080fd5b8063715018a61461048857806385a6b3ae1461049d5780638da5cb5b146104b357806391b89fba146104db57600080fd5b80633009a6091161019b5780634e7b827f1161016a5780634e7b827f146103925780635183d6fd146103c25780636a474002146104275780636f2789ec1461043c57806370a082311461045257600080fd5b80633009a60914610320578063313ce5671461033657806331e79db014610352578063395093511461037257600080fd5b806318160ddd116101d757806318160ddd1461029e578063226cfa3d146102b357806323b872dd146102e057806327ce01471461030057600080fd5b806303c833021461021c57806306fdde0314610224578063095ea7b31461024f57806309bbedde1461027f57600080fd5b3661021757610215610710565b005b600080fd5b610215610710565b34801561023057600080fd5b506102396107a3565b6040516102469190611d59565b60405180910390f35b34801561025b57600080fd5b5061026f61026a366004611c91565b610835565b6040519015158152602001610246565b34801561028b57600080fd5b50600a545b604051908152602001610246565b3480156102aa57600080fd5b50600254610290565b3480156102bf57600080fd5b506102906102ce366004611c1d565b60106020526000908152604090205481565b3480156102ec57600080fd5b5061026f6102fb366004611ce9565b61084c565b34801561030c57600080fd5b5061029061031b366004611c1d565b6108fb565b34801561032c57600080fd5b50610290600e5481565b34801561034257600080fd5b5060405160128152602001610246565b34801561035e57600080fd5b5061021561036d366004611c1d565b610957565b34801561037e57600080fd5b5061026f61038d366004611c91565b610a7e565b34801561039e57600080fd5b5061026f6103ad366004611c1d565b600f6020526000908152604090205460ff1681565b3480156103ce57600080fd5b506103e26103dd366004611d41565b610aba565b604080516001600160a01b0390991689526020890197909752958701949094526060860192909252608085015260a084015260c083015260e082015261010001610246565b34801561043357600080fd5b50610215610c2c565b34801561044857600080fd5b5061029060115481565b34801561045e57600080fd5b5061029061046d366004611c1d565b6001600160a01b031660009081526020819052604090205490565b34801561049457600080fd5b50610215610cca565b3480156104a957600080fd5b5061029060085481565b3480156104bf57600080fd5b506009546040516001600160a01b039091168152602001610246565b3480156104e757600080fd5b506102906104f6366004611c1d565b610cfe565b34801561050757600080fd5b50610239610d09565b34801561051c57600080fd5b5061026f61052b366004611c91565b610d18565b34801561053c57600080fd5b5061029061054b366004611c1d565b610db1565b34801561055c57600080fd5b5061026f61056b366004611c91565b610ddd565b34801561057c57600080fd5b5061029061058b366004611c1d565b6001600160a01b031660009081526007602052604090205490565b3480156105b257600080fd5b5061026f6105c1366004611c55565b610dea565b3480156105d257600080fd5b506102907f000000000000000000000000000000000000000000000000000000000000000081565b34801561060657600080fd5b50610290610615366004611cbc565b6001600160a01b03918216600090815260016020908152604080832093909416825291909152205490565b34801561064c57600080fd5b5061021561065b366004611c91565b610e98565b34801561066c57600080fd5b50600e54610290565b34801561068157600080fd5b50610215610690366004611d41565b611025565b3480156106a157600080fd5b506102156106b0366004611c1d565b611181565b3480156106c157600080fd5b506103e26106d0366004611c1d565b61121c565b3480156106e157600080fd5b506106f56106f0366004611d41565b611394565b60408051938452602084019290925290820152606001610246565b600061071b60025490565b1161072557600080fd5b34156107a15761075861073760025490565b61074534600160801b6114bd565b61074f9190611e3a565b600554906114d0565b60055560405134815233907fa493a9229478c3fcd73f66d2cdeb7f94fd0f341da924d1054236d784541165119060200160405180910390a260085461079d90346114d0565b6008555b565b6060600380546107b290611ecf565b80601f01602080910402602001604051908101604052809291908181526020018280546107de90611ecf565b801561082b5780601f106108005761010080835404028352916020019161082b565b820191906000526020600020905b81548152906001019060200180831161080e57829003601f168201915b5050505050905090565b60006108423384846114dc565b5060015b92915050565b6000610859848484611600565b6001600160a01b0384166000908152600160209081526040808320338452909152902054828110156108e35760405162461bcd60e51b815260206004820152602860248201527f45524332303a207472616e7366657220616d6f756e74206578636565647320616044820152676c6c6f77616e636560c01b60648201526084015b60405180910390fd5b6108f085338584036114dc565b506001949350505050565b6001600160a01b03811660009081526006602090815260408083205491839052822054600554600160801b9261094d92610948926109429161093d91906114bd565b611653565b90611663565b6116a1565b6108469190611e3a565b6009546001600160a01b031633146109815760405162461bcd60e51b81526004016108da90611dac565b6001600160a01b0381166000908152600f602052604090205460ff16156109a757600080fd5b6001600160a01b0381166000908152600f60205260408120805460ff191660011790556109d59082906116b4565b60405163131836e760e21b8152600a60048201526001600160a01b0382166024820152739a151f3a3f2d9af6974845f7b3df6944b7d38e7a90634c60db9c9060440160006040518083038186803b158015610a2f57600080fd5b505af4158015610a43573d6000803e3d6000fd5b50506040516001600160a01b03841692507fa878b31040b2e6d0a9a3d3361209db3908ba62014b0dca52adbaee451d128b259150600090a250565b3360008181526001602090815260408083206001600160a01b03871684529091528120549091610842918590610ab5908690611e22565b6114dc565b600080600080600080600080600a739a151f3a3f2d9af6974845f7b3df6944b7d38e7a63deb3d89690916040518263ffffffff1660e01b8152600401610b0291815260200190565b60206040518083038186803b158015610b1a57600080fd5b505af4158015610b2e573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610b529190611d29565b8910610b77575060009650600019955085945086935083925082915081905080610c21565b6040516368d54f3f60e11b8152600a6004820152602481018a9052600090739a151f3a3f2d9af6974845f7b3df6944b7d38e7a9063d1aa9e7e9060440160206040518083038186803b158015610bcc57600080fd5b505af4158015610be0573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610c049190611c39565b9050610c0f8161121c565b98509850985098509850985098509850505b919395975091939597565b60405162461bcd60e51b815260206004820152606160248201527f4146545242434b5f54524b523a2077697468647261774469766964656e64206460448201527f697361626c65642e20557365207468652027636c61696d272066756e6374696f60648201527f6e206f6e20746865206d61696e2041667465724261636b20636f6e74726163746084820152601760f91b60a482015260c4016108da565b6009546001600160a01b03163314610cf45760405162461bcd60e51b81526004016108da90611dac565b6107a16000611719565b600061084682610db1565b6060600480546107b290611ecf565b3360009081526001602090815260408083206001600160a01b038616845290915281205482811015610d9a5760405162461bcd60e51b815260206004820152602560248201527f45524332303a2064656372656173656420616c6c6f77616e63652062656c6f77604482015264207a65726f60d81b60648201526084016108da565b610da733858584036114dc565b5060019392505050565b6001600160a01b03811660009081526007602052604081205461084690610dd7846108fb565b9061176b565b6000610842338484611600565b6009546000906001600160a01b03163314610e175760405162461bcd60e51b81526004016108da90611dac565b6000610e2284611777565b90508015610e8e576001600160a01b038416600081815260106020526040908190204290555184151591907fa2c38e2d2fb7e3e1912d937fd1ca11ed6d51864dee4cfa7a7bf02becd7acf09290610e7c9085815260200190565b60405180910390a36001915050610846565b5060009392505050565b6009546001600160a01b03163314610ec25760405162461bcd60e51b81526004016108da90611dac565b6001600160a01b0382166000908152600f602052604090205460ff1615610ee7575050565b7f00000000000000000000000000000000000000000000000000000000000000008110610f9657610f1882826116b4565b604051632f0ad01760e21b8152600a60048201526001600160a01b038316602482015260448101829052739a151f3a3f2d9af6974845f7b3df6944b7d38e7a9063bc2b405c9060640160006040518083038186803b158015610f7957600080fd5b505af4158015610f8d573d6000803e3d6000fd5b50505050611014565b610fa18260006116b4565b60405163131836e760e21b8152600a60048201526001600160a01b0383166024820152739a151f3a3f2d9af6974845f7b3df6944b7d38e7a90634c60db9c9060440160006040518083038186803b158015610ffb57600080fd5b505af415801561100f573d6000803e3d6000fd5b505050505b61101f826001610dea565b505b5050565b6009546001600160a01b0316331461104f5760405162461bcd60e51b81526004016108da90611dac565b610e1081101580156110645750620151808111155b6110e05760405162461bcd60e51b815260206004820152604160248201527f4146545242434b5f54524b523a20636c61696d57616974206d7573742062652060448201527f7570646174656420746f206265747765656e203120616e6420323420686f75726064820152607360f81b608482015260a4016108da565b60115481141561114e5760405162461bcd60e51b815260206004820152603360248201527f4146545242434b5f54524b523a2043616e6e6f742075706461746520636c61696044820152726d5761697420746f2073616d652076616c756560681b60648201526084016108da565b60115460405182907f474ea64804364a1e29a4487ddb63c3342a2dd826ccd8acf48825e680a0e6f20f90600090a3601155565b6009546001600160a01b031633146111ab5760405162461bcd60e51b81526004016108da90611dac565b6001600160a01b0381166112105760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b60648201526084016108da565b61121981611719565b50565b6040516317e142d160e01b8152600a60048201526001600160a01b03821660248201528190600090819081908190819081908190739a151f3a3f2d9af6974845f7b3df6944b7d38e7a906317e142d19060440160206040518083038186803b15801561128757600080fd5b505af415801561129b573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906112bf9190611d29565b965060001995506000871261132157600e548711156112ed57600e546112e69088906118bd565b9550611321565b600e54600a5460009110611302576000611311565b600e54600a546113119161176b565b905061131d8882611663565b9650505b61132a88610db1565b9450611335886108fb565b6001600160a01b03891660009081526010602052604090205490945092508261135f57600061136d565b60115461136d9084906114d0565b915042821161137d576000611387565b611387824261176b565b9050919395975091939597565b600a5460009081908190806113b4575050600e54600092508291506114b6565b600e546000805a90506000805b89841080156113cf57508582105b156114a557846113de81611f0a565b600a54909650861090506113f157600094505b6000600a600001868154811061141757634e487b7160e01b600052603260045260246000fd5b60009182526020808320909101546001600160a01b03168083526010909152604090912054909150611448906118fa565b1561146b57611458816001610dea565b1561146b578161146781611f0a565b9250505b8261147581611f0a565b93505060005a90508085111561149c57611499611492868361176b565b87906114d0565b95505b93506113c19050565b600e85905590975095509193505050505b9193909250565b60006114c98284611e5a565b9392505050565b60006114c98284611e22565b6001600160a01b03831661153e5760405162461bcd60e51b8152602060048201526024808201527f45524332303a20617070726f76652066726f6d20746865207a65726f206164646044820152637265737360e01b60648201526084016108da565b6001600160a01b03821661159f5760405162461bcd60e51b815260206004820152602260248201527f45524332303a20617070726f766520746f20746865207a65726f206164647265604482015261737360f01b60648201526084016108da565b6001600160a01b0383811660008181526001602090815260408083209487168084529482529182902085905590518481527f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925910160405180910390a3505050565b60405162461bcd60e51b815260206004820152602260248201527f4146545242434b5f54524b523a204e6f207472616e736665727320616c6c6f77604482015261195960f21b60648201526084016108da565b6000818181121561084657600080fd5b6000806116708385611de1565b9050600083121580156116835750838112155b80611698575060008312801561169857508381125b6114c957600080fd5b6000808212156116b057600080fd5b5090565b6001600160a01b038216600090815260208190526040902054808211156116f35760006116e1838361176b565b90506116ed8482611921565b5061101f565b8082101561101f576000611707828461176b565b90506117138482611985565b50505050565b600980546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b60006114c98284611eb8565b60008061178383610db1565b905080156118b4576001600160a01b0383166000908152600760205260409020546117ae90826114d0565b6001600160a01b038416600081815260076020526040908190209290925590517fee503bee2bb6a87e57bc57db795f98137327401a0e7b7ce42e37926cc1a9ca4d906117fd9084815260200190565b60405180910390a26000836001600160a01b031682610bb890604051600060405180830381858888f193505050503d8060008114611857576040519150601f19603f3d011682016040523d82523d6000602084013e61185c565b606091505b50509050806118ad576001600160a01b038416600090815260076020526040902054611888908361176b565b6001600160a01b03909416600090815260076020526040812094909455509192915050565b5092915050565b50600092915050565b6000806118ca8385611e79565b9050600083121580156118dd5750838113155b80611698575060008312801561169857508381136114c957600080fd5b60004282111561190c57506000919050565b601154611919428461176b565b101592915050565b61192b82826119c9565b61196561194661093d836005546114bd90919063ffffffff16565b6001600160a01b038416600090815260066020526040902054906118bd565b6001600160a01b0390921660009081526006602052604090209190915550565b61198f8282611abc565b6119656119aa61093d836005546114bd90919063ffffffff16565b6001600160a01b03841660009081526006602052604090205490611663565b6001600160a01b038216611a1f5760405162461bcd60e51b815260206004820152601f60248201527f45524332303a206d696e7420746f20746865207a65726f20616464726573730060448201526064016108da565b611a2b6000838361101f565b8060026000828254611a3d9190611e22565b90915550506001600160a01b03821660009081526020819052604081208054839290611a6a908490611e22565b90915550506040518181526001600160a01b038316906000907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9060200160405180910390a36110216000838361101f565b6001600160a01b038216611b1c5760405162461bcd60e51b815260206004820152602160248201527f45524332303a206275726e2066726f6d20746865207a65726f206164647265736044820152607360f81b60648201526084016108da565b611b288260008361101f565b6001600160a01b03821660009081526020819052604090205481811015611b9c5760405162461bcd60e51b815260206004820152602260248201527f45524332303a206275726e20616d6f756e7420657863656564732062616c616e604482015261636560f01b60648201526084016108da565b6001600160a01b0383166000908152602081905260408120838303905560028054849290611bcb908490611eb8565b90915550506040518281526000906001600160a01b038516907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9060200160405180910390a361101f8360008461101f565b600060208284031215611c2e578081fd5b81356114c981611f3b565b600060208284031215611c4a578081fd5b81516114c981611f3b565b60008060408385031215611c67578081fd5b8235611c7281611f3b565b915060208301358015158114611c86578182fd5b809150509250929050565b60008060408385031215611ca3578182fd5b8235611cae81611f3b565b946020939093013593505050565b60008060408385031215611cce578182fd5b8235611cd981611f3b565b91506020830135611c8681611f3b565b600080600060608486031215611cfd578081fd5b8335611d0881611f3b565b92506020840135611d1881611f3b565b929592945050506040919091013590565b600060208284031215611d3a578081fd5b5051919050565b600060208284031215611d52578081fd5b5035919050565b6000602080835283518082850152825b81811015611d8557858101830151858201604001528201611d69565b81811115611d965783604083870101525b50601f01601f1916929092016040019392505050565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b600080821280156001600160ff1b0384900385131615611e0357611e03611f25565b600160ff1b8390038412811615611e1c57611e1c611f25565b50500190565b60008219821115611e3557611e35611f25565b500190565b600082611e5557634e487b7160e01b81526012600452602481fd5b500490565b6000816000190483118215151615611e7457611e74611f25565b500290565b60008083128015600160ff1b850184121615611e9757611e97611f25565b6001600160ff1b0384018313811615611eb257611eb2611f25565b50500390565b600082821015611eca57611eca611f25565b500390565b600181811c90821680611ee357607f821691505b60208210811415611f0457634e487b7160e01b600052602260045260246000fd5b50919050565b6000600019821415611f1e57611f1e611f25565b5060010190565b634e487b7160e01b600052601160045260246000fd5b6001600160a01b038116811461121957600080fdfea2646970667358221220965e20592b617ce5faf2e1f94e41cf7f0e4916d8e4b8b0ccc75afbeb67cd414f64736f6c634300080400330000000000000000000000007a250d5630b4cf539739df2c5dacb4c659f2488d000000000000000000000000382cb09a4246b9a1c01a8c582edd2ebaf80359f6

Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)

0000000000000000000000007a250d5630b4cf539739df2c5dacb4c659f2488d000000000000000000000000382cb09a4246b9a1c01a8c582edd2ebaf80359f6

-----Decoded View---------------
Arg [0] : router (address): 0x7a250d5630b4cf539739df2c5dacb4c659f2488d
Arg [1] : _devWallet (address): 0x382cb09a4246b9a1c01a8c582edd2ebaf80359f6

-----Encoded View---------------
2 Constructor Arguments found :
Arg [0] : 0000000000000000000000007a250d5630b4cf539739df2c5dacb4c659f2488d
Arg [1] : 000000000000000000000000382cb09a4246b9a1c01a8c582edd2ebaf80359f6


A token is a representation of an on-chain or off-chain asset. The token page shows information such as price, total supply, holders, transfers and social links. Learn more about this page in our Knowledge Base.