ETH Price: $3,295.43 (-0.41%)

Contract

0xA9fbcC25435AD713a9468D8c89dd7baAe8914e3a
 

Overview

ETH Balance

0 ETH

Eth Value

$0.00

Token Holdings

Multichain Info

No addresses found
Transaction Hash
Method
Block
From
To
Approve214619272024-12-23 1:31:4717 hrs ago1734917507IN
ProphetBots: PROPHET Token
0 ETH0.000268245.75477624
Approve214618802024-12-23 1:22:2317 hrs ago1734916943IN
ProphetBots: PROPHET Token
0 ETH0.000227634.88983369
Transfer214466322024-12-20 22:10:592 days ago1734732659IN
ProphetBots: PROPHET Token
0 ETH0.0017151512.08364646
Approve214235612024-12-17 16:50:356 days ago1734454235IN
ProphetBots: PROPHET Token
0 ETH0.0006653127.34772972
Transfer214178632024-12-16 21:46:356 days ago1734385595IN
ProphetBots: PROPHET Token
0 ETH0.003201818.99006205
Transfer214051232024-12-15 3:05:478 days ago1734231947IN
ProphetBots: PROPHET Token
0 ETH0.001244517.8257915
Approve214000292024-12-14 10:02:359 days ago1734170555IN
ProphetBots: PROPHET Token
0 ETH0.000220629.09131814
Approve213987102024-12-14 5:37:479 days ago1734154667IN
ProphetBots: PROPHET Token
0 ETH0.000197058.1
Approve213980492024-12-14 3:24:359 days ago1734146675IN
ProphetBots: PROPHET Token
0 ETH0.000238659.06484863
Transfer213974252024-12-14 1:19:239 days ago1734139163IN
ProphetBots: PROPHET Token
0 ETH0.001151719.62550457
Approve213913572024-12-13 4:59:3510 days ago1734065975IN
ProphetBots: PROPHET Token
0 ETH0.0002848410.84389449
Approve213851722024-12-12 8:16:2311 days ago1733991383IN
ProphetBots: PROPHET Token
0 ETH0.0006481613.98827274
Transfer213841112024-12-12 4:43:2311 days ago1733978603IN
ProphetBots: PROPHET Token
0 ETH0.0039364414.41262251
Approve213364972024-12-05 13:08:5918 days ago1733404139IN
ProphetBots: PROPHET Token
0 ETH0.001218926.34683465
Transfer213286222024-12-04 10:44:5919 days ago1733309099IN
ProphetBots: PROPHET Token
0 ETH0.0024721618.02816469
Transfer213168642024-12-02 19:18:2320 days ago1733167103IN
ProphetBots: PROPHET Token
0 ETH0.0050701130.07112397
Transfer213058162024-12-01 6:17:5922 days ago1733033879IN
ProphetBots: PROPHET Token
0 ETH0.001121948.1817623
Approve213046432024-12-01 2:22:1122 days ago1733019731IN
ProphetBots: PROPHET Token
0 ETH0.0005248111.32636023
Transfer212986702024-11-30 6:21:4723 days ago1732947707IN
ProphetBots: PROPHET Token
0 ETH0.0016663210.4774043
Approve212985532024-11-30 5:58:1123 days ago1732946291IN
ProphetBots: PROPHET Token
0 ETH0.000293626.29927135
Approve212975522024-11-30 2:36:1123 days ago1732934171IN
ProphetBots: PROPHET Token
0 ETH0.000263529.01366454
Approve212975192024-11-30 2:29:3523 days ago1732933775IN
ProphetBots: PROPHET Token
0 ETH0.000296176.36387222
Transfer212962092024-11-29 22:05:2323 days ago1732917923IN
ProphetBots: PROPHET Token
0 ETH0.0009758111.36941652
Transfer212962022024-11-29 22:03:5923 days ago1732917839IN
ProphetBots: PROPHET Token
0 ETH0.0009322710.86211242
Approve212913382024-11-29 5:42:4724 days ago1732858967IN
ProphetBots: PROPHET Token
0 ETH0.000282746.10209943
View all transactions

Latest 25 internal transactions (View All)

Advanced mode:
Parent Transaction Hash Block
From
To
213841112024-12-12 4:43:2311 days ago1733978603
ProphetBots: PROPHET Token
0.00000001 ETH
213841112024-12-12 4:43:2311 days ago1733978603
ProphetBots: PROPHET Token
0.00000001 ETH
212994222024-11-30 8:52:1123 days ago1732956731
ProphetBots: PROPHET Token
0.00074574 ETH
212994222024-11-30 8:52:1123 days ago1732956731
ProphetBots: PROPHET Token
0.00074574 ETH
212990102024-11-30 7:29:4723 days ago1732951787
ProphetBots: PROPHET Token
0.00074574 ETH
212990102024-11-30 7:29:4723 days ago1732951787
ProphetBots: PROPHET Token
0.00074574 ETH
212990032024-11-30 7:28:2323 days ago1732951703
ProphetBots: PROPHET Token
0.00074574 ETH
212990032024-11-30 7:28:2323 days ago1732951703
ProphetBots: PROPHET Token
0.00074574 ETH
212989992024-11-30 7:27:3523 days ago1732951655
ProphetBots: PROPHET Token
0.00074574 ETH
212989992024-11-30 7:27:3523 days ago1732951655
ProphetBots: PROPHET Token
0.00074574 ETH
212984972024-11-30 5:46:5923 days ago1732945619
ProphetBots: PROPHET Token
0.00281327 ETH
212984972024-11-30 5:46:5923 days ago1732945619
ProphetBots: PROPHET Token
0.00281327 ETH
212838862024-11-28 4:34:1125 days ago1732768451
ProphetBots: PROPHET Token
0.1020413 ETH
212838862024-11-28 4:34:1125 days ago1732768451
ProphetBots: PROPHET Token
0.1020413 ETH
212838362024-11-28 4:24:1125 days ago1732767851
ProphetBots: PROPHET Token
0.1020413 ETH
212838362024-11-28 4:24:1125 days ago1732767851
ProphetBots: PROPHET Token
0.1020413 ETH
212818802024-11-27 21:50:5925 days ago1732744259
ProphetBots: PROPHET Token
0.00000999 ETH
212818802024-11-27 21:50:5925 days ago1732744259
ProphetBots: PROPHET Token
0.00000999 ETH
212736432024-11-26 18:13:3527 days ago1732644815
ProphetBots: PROPHET Token
100 wei
212736432024-11-26 18:13:3527 days ago1732644815
ProphetBots: PROPHET Token
100 wei
212652402024-11-25 14:02:2328 days ago1732543343
ProphetBots: PROPHET Token
2.75347012 ETH
212652402024-11-25 14:02:2328 days ago1732543343
ProphetBots: PROPHET Token
2.75347012 ETH
212535642024-11-23 22:56:4729 days ago1732402607
ProphetBots: PROPHET Token
2.48163502 ETH
212535642024-11-23 22:56:4729 days ago1732402607
ProphetBots: PROPHET Token
2.48163502 ETH
212504682024-11-23 12:33:3530 days ago1732365215
ProphetBots: PROPHET Token
3.36378134 ETH
View All Internal Transactions
Loading...
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
ProphetToken

Compiler Version
v0.8.17+commit.8df45f5f

Optimization Enabled:
Yes with 200 runs

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

pragma solidity 0.8.17;

import "@uniswap/v2-core/contracts/interfaces/IUniswapV2Factory.sol";
import "@uniswap/v2-periphery/contracts/interfaces/IUniswapV2Router02.sol";
import "./ProphetDividends.sol";

contract ProphetToken is Ownable, ERC20 {
    uint256 public maxWallet;
    address public uniswapV2Pair;
    IUniswapV2Router02 immutable router =
        IUniswapV2Router02(0x7a250d5630B4cF539739dF2C5dAcb4c659F2488D);

    ProphetDividends public dividends;

    uint256 totalFee = 5;
    uint256 operationsFee = 5;

    bool private inSwap = false;
    address public operationsWallet;

    mapping(address => uint256) public receiveBlock;

    uint256 public swapBackAt;

    constructor(address _owner) ERC20("Prophet", "PROPHET") {
        uint256 totalSupply = 1_000_000 ether;

        swapBackAt = (totalSupply * 1) / 1000; //0.1%

        maxWallet = totalSupply;

        uniswapV2Pair = IUniswapV2Factory(router.factory()).createPair(
            address(this),
            router.WETH()
        );

        dividends = new ProphetDividends();

        dividends.excludeFromDividends(owner());
        dividends.excludeFromDividends(_owner);
        dividends.excludeFromDividends(address(this));
        dividends.excludeFromDividends(address(dividends));
        dividends.excludeFromDividends(address(router));
        dividends.excludeFromDividends(uniswapV2Pair);
        dividends.excludeFromDividends(address(0xdead));
        dividends.excludeFromDividends(address(0));

        operationsWallet = 0x1b62bC39AE9b1e85c5B926a5Ea0396151B3991A7;

        _mint(owner(), totalSupply);
    }

    receive() external payable {}

    function burn(uint256 amount) external {
        _burn(msg.sender, amount);
        dividends.updateBalance(payable(msg.sender));
    }

    function updateOperationsWallet(address _operationsWallet)
        external
        onlyOwner
    {
        operationsWallet = _operationsWallet;
    }

    function updateDividends(address _dividends) external onlyOwner {
        dividends = ProphetDividends(payable(_dividends));

        dividends.excludeFromDividends(address(dividends));
        dividends.excludeFromDividends(address(this));
        dividends.excludeFromDividends(owner());
        dividends.excludeFromDividends(uniswapV2Pair);
        dividends.excludeFromDividends(address(router));
    }

    function updateFee(uint256 _totalFee, uint256 _operationsFee)
        external
        onlyOwner
    {
        require(_totalFee <= 5 && _operationsFee <= _totalFee);
        totalFee = _totalFee;
        operationsFee = _operationsFee;
    }

    function updateMaxHoldingPercent(uint256 percent) public onlyOwner {
        require(percent >= 1 && percent <= 100, "invalid percent");
        maxWallet = (totalSupply() * percent) / 100;
    }

    function updateSwapBackAt(uint256 value) external onlyOwner {
        require(value <= totalSupply() / 50);
        swapBackAt = value;
    }

    function stats(address account)
        external
        view
        returns (uint256 withdrawableDividends, uint256 totalDividends)
    {
        (, withdrawableDividends, totalDividends) = dividends.getAccount(
            account
        );
    }

    function claim() external {
        dividends.claim(msg.sender);
    }

    function _transfer(
        address from,
        address to,
        uint256 amount
    ) internal override {
        if (uniswapV2Pair == address(0)) {
            require(
                from == address(this) ||
                    from == address(0) ||
                    from == owner() ||
                    to == owner(),
                "Not started"
            );
            super._transfer(from, to, amount);
            return;
        }

        if (
            from == uniswapV2Pair &&
            to != address(this) &&
            to != owner() &&
            to != address(router)
        ) {
            require(super.balanceOf(to) + amount <= maxWallet, "max wallet");
        }

        uint256 swapAmount = balanceOf(address(this));

        if (swapAmount > swapBackAt) {
            swapAmount = swapBackAt;
        }

        if (
            swapBackAt > 0 &&
            swapAmount == swapBackAt &&
            !inSwap &&
            from != uniswapV2Pair
        ) {
            inSwap = true;

            swapTokensForEth(swapAmount);

            uint256 balance = address(this).balance;

            if (balance > 0) {
                withdraw(balance);
            }

            inSwap = false;
        }

        if (
            totalFee > 0 &&
            from != address(this) &&
            from != owner() &&
            from != address(router)
        ) {
            uint256 feeTokens = (amount * totalFee) / 100;
            amount -= feeTokens;

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

        super._transfer(from, to, amount);

        dividends.updateBalance(payable(from));
        dividends.updateBalance(payable(to));
    }

    function swapTokensForEth(uint256 tokenAmount) internal {
        address[] memory path = new address[](2);
        path[0] = address(this);
        path[1] = router.WETH();
        _approve(address(this), address(router), tokenAmount);

        router.swapExactTokensForETHSupportingFeeOnTransferTokens(
            tokenAmount,
            0,
            path,
            address(this),
            block.timestamp
        );
    }

    function sendFunds(address user, uint256 value) internal {
        if (value > 0) {
            (bool success, ) = user.call{value: value}("");
            success;
        }
    }

    function withdraw(uint256 amount) internal {
        uint256 operationsShare = totalFee > 0
            ? (operationsFee * 10000) / totalFee
            : 0;

        uint256 toOperations = (amount * operationsShare) / 10000;
        uint256 toRevShare = (amount - toOperations);

        sendFunds(operationsWallet, toOperations);
        sendFunds(address(dividends), toRevShare);
    }
}

File 2 of 14 : ProphetDividends.sol
// SPDX-License-Identifier: MIT

pragma solidity 0.8.17;

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

contract ProphetDividends is DividendPayingToken, Ownable {
    error UnauthorizedAccount(address account);
    error InvalidDeployerAccount(address account);

    using SafeMath for uint256;
    using SafeMathInt for int256;

    IERC20 token;

    mapping(address => bool) public excludedFromDividends;

    bool noWarning;
    address private _deployer;
    uint256 public closeTime;

    uint256 public constant claimGracePeriod = 30 days;

    event ExcludeFromDividends(address indexed account);

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

    constructor()
        DividendPayingToken("PROPHET_Dividends", "PROPHET_Dividends")
    {
        _deployer = tx.origin;
        token = IERC20(msg.sender);
    }

    modifier onlyDeployer() {
        _checkDeployer();
        _;
    }

    function deployer() public view virtual returns (address) {
        return _deployer;
    }

    function _checkDeployer() internal view virtual {
        if (deployer() != _msgSender()) {
            revert UnauthorizedAccount(_msgSender());
        }
    }

    function renounceAsDeployer() public virtual onlyDeployer {
        _transferDeployer(address(0));
    }

    function transferDeployer(address newDeployer) public virtual onlyDeployer {
        if (newDeployer == address(0)) {
            revert InvalidDeployerAccount(address(0));
        }
        _transferDeployer(newDeployer);
    }

    function _transferDeployer(address newDeployer) internal virtual {
        _deployer = newDeployer;
    }

    function _transfer(
        address,
        address,
        uint256
    ) internal override {
        require(false, "No transfers allowed");
        noWarning = noWarning;
    }

    function withdrawDividend() public override {
        require(
            false,
            "withdrawDividend disabled. Use the 'claim' function on the main token contract."
        );
        noWarning = noWarning;
    }

    function claim(address account) external onlyOwner {
        require(
            closeTime == 0 || block.timestamp < closeTime + claimGracePeriod,
            "closed"
        );
        _withdrawDividendOfUser(payable(account));
    }

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

        _setBalance(account, 0);

        emit ExcludeFromDividends(account);
    }

    function getAccount(address _account)
        public
        view
        returns (
            address account,
            uint256 withdrawableDividends,
            uint256 totalDividends
        )
    {
        account = _account;
        withdrawableDividends = withdrawableDividendOf(account);
        totalDividends = accumulativeDividendOf(account);
    }

    function updateBalance(address payable account) external {
        if (excludedFromDividends[account]) {
            return;
        }

        _setBalance(account, token.balanceOf(account));
    }

    //If the dividend contract needs to be updated, we can close
    //this one, and let people claim for a month
    //After that is over, we can take the remaining funds and
    //use for the project
    function close() external onlyDeployer {
        require(closeTime == 0, "cannot take yet");
        closeTime = block.timestamp;
    }

    //Only allows funds to be taken if contract has been closed for a month
    function takeFunds() external onlyDeployer {
        require(
            closeTime >= 0 && block.timestamp >= closeTime + claimGracePeriod,
            "already closed"
        );
        (bool success, ) = msg.sender.call{value: address(this).balance}("");
        require(success);
    }
}

File 3 of 14 : 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 4 of 14 : 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 5 of 14 : DividendPayingToken.sol
// SPDX-License-Identifier: MIT

pragma solidity 0.8.17;

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

contract DividendPayingToken is ERC20 {
    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 internal constant 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;

    event DividendsDistributed(address user, uint256 amount);
    event DividendWithdrawn(address user, uint256 amount);

    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 payable virtual {
        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 {
        _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 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
        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 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
        returns (uint256)
    {
        return
            magnifiedDividendPerShare
                .mul(balanceOf(_owner))
                .toInt256Safe()
                .add(magnifiedDividendCorrections[_owner])
                .toUint256Safe() / magnitude;
    }

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

        int256 _magCorrection = magnifiedDividendPerShare
            .mul(value)
            .toInt256Safe();
        magnifiedDividendCorrections[from] = magnifiedDividendCorrections[from]
            .add(_magCorrection);
        magnifiedDividendCorrections[to] = magnifiedDividendCorrections[to].sub(
            _magCorrection
        );
    }

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

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

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

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

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

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

File 6 of 14 : Ownable.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.7.0) (access/Ownable.sol)

pragma solidity ^0.8.0;

import "../utils/Context.sol";

/**
 * @dev Contract module which provides a basic access control mechanism, where
 * there is an account (an owner) that can be granted exclusive access to
 * specific functions.
 *
 * By default, the owner account will be the one that deploys the contract. This
 * can later be changed with {transferOwnership}.
 *
 * This module is used through inheritance. It will make available the modifier
 * `onlyOwner`, which can be applied to your functions to restrict their use to
 * the owner.
 */
abstract contract Ownable is Context {
    address private _owner;

    event OwnershipTransferred(address indexed previousOwner, address indexed newOwner);

    /**
     * @dev Initializes the contract setting the deployer as the initial owner.
     */
    constructor() {
        _transferOwnership(_msgSender());
    }

    /**
     * @dev Throws if called by any account other than the owner.
     */
    modifier onlyOwner() {
        _checkOwner();
        _;
    }

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

    /**
     * @dev Throws if the sender is not the owner.
     */
    function _checkOwner() internal view virtual {
        require(owner() == _msgSender(), "Ownable: caller is not the owner");
    }

    /**
     * @dev Leaves the contract without owner. It will not be possible to call
     * `onlyOwner` functions anymore. Can only be called by the current owner.
     *
     * NOTE: Renouncing ownership will leave the contract without an owner,
     * thereby removing any functionality that is only available to the owner.
     */
    function renounceOwnership() public virtual onlyOwner {
        _transferOwnership(address(0));
    }

    /**
     * @dev Transfers ownership of the contract to a new account (`newOwner`).
     * Can only be called by the current owner.
     */
    function transferOwnership(address newOwner) public virtual onlyOwner {
        require(newOwner != address(0), "Ownable: new owner is the zero address");
        _transferOwnership(newOwner);
    }

    /**
     * @dev Transfers ownership of the contract to a new account (`newOwner`).
     * Internal function without access restriction.
     */
    function _transferOwnership(address newOwner) internal virtual {
        address oldOwner = _owner;
        _owner = newOwner;
        emit OwnershipTransferred(oldOwner, newOwner);
    }
}

File 7 of 14 : 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 8 of 14 : SafeMathInt.sol
// SPDX-License-Identifier: MIT

pragma solidity 0.8.17;

/**
 * @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 9 of 14 : SafeMathUint.sol
// SPDX-License-Identifier: MIT

pragma solidity 0.8.17;

/**
 * @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;
    }
}

File 10 of 14 : SafeMath.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.6.0) (utils/math/SafeMath.sol)

pragma solidity ^0.8.0;

// CAUTION
// This version of SafeMath should only be used with Solidity 0.8 or later,
// because it relies on the compiler's built in overflow checks.

/**
 * @dev Wrappers over Solidity's arithmetic operations.
 *
 * NOTE: `SafeMath` is generally not needed starting with Solidity 0.8, since the compiler
 * now has built in overflow checking.
 */
library SafeMath {
    /**
     * @dev Returns the addition of two unsigned integers, with an overflow flag.
     *
     * _Available since v3.4._
     */
    function tryAdd(uint256 a, uint256 b) internal pure returns (bool, uint256) {
        unchecked {
            uint256 c = a + b;
            if (c < a) return (false, 0);
            return (true, c);
        }
    }

    /**
     * @dev Returns the subtraction of two unsigned integers, with an overflow flag.
     *
     * _Available since v3.4._
     */
    function trySub(uint256 a, uint256 b) internal pure returns (bool, uint256) {
        unchecked {
            if (b > a) return (false, 0);
            return (true, a - b);
        }
    }

    /**
     * @dev Returns the multiplication of two unsigned integers, with an overflow flag.
     *
     * _Available since v3.4._
     */
    function tryMul(uint256 a, uint256 b) internal pure returns (bool, uint256) {
        unchecked {
            // Gas optimization: this is cheaper than requiring 'a' not being zero, but the
            // benefit is lost if 'b' is also tested.
            // See: https://github.com/OpenZeppelin/openzeppelin-contracts/pull/522
            if (a == 0) return (true, 0);
            uint256 c = a * b;
            if (c / a != b) return (false, 0);
            return (true, c);
        }
    }

    /**
     * @dev Returns the division of two unsigned integers, with a division by zero flag.
     *
     * _Available since v3.4._
     */
    function tryDiv(uint256 a, uint256 b) internal pure returns (bool, uint256) {
        unchecked {
            if (b == 0) return (false, 0);
            return (true, a / b);
        }
    }

    /**
     * @dev Returns the remainder of dividing two unsigned integers, with a division by zero flag.
     *
     * _Available since v3.4._
     */
    function tryMod(uint256 a, uint256 b) internal pure returns (bool, uint256) {
        unchecked {
            if (b == 0) return (false, 0);
            return (true, a % b);
        }
    }

    /**
     * @dev Returns the addition of two unsigned integers, reverting on
     * overflow.
     *
     * Counterpart to Solidity's `+` operator.
     *
     * Requirements:
     *
     * - Addition cannot overflow.
     */
    function add(uint256 a, uint256 b) internal pure returns (uint256) {
        return a + b;
    }

    /**
     * @dev Returns the subtraction of two unsigned integers, reverting on
     * overflow (when the result is negative).
     *
     * Counterpart to Solidity's `-` operator.
     *
     * Requirements:
     *
     * - Subtraction cannot overflow.
     */
    function sub(uint256 a, uint256 b) internal pure returns (uint256) {
        return a - b;
    }

    /**
     * @dev Returns the multiplication of two unsigned integers, reverting on
     * overflow.
     *
     * Counterpart to Solidity's `*` operator.
     *
     * Requirements:
     *
     * - Multiplication cannot overflow.
     */
    function mul(uint256 a, uint256 b) internal pure returns (uint256) {
        return a * b;
    }

    /**
     * @dev Returns the integer division of two unsigned integers, reverting on
     * division by zero. The result is rounded towards zero.
     *
     * Counterpart to Solidity's `/` operator.
     *
     * Requirements:
     *
     * - The divisor cannot be zero.
     */
    function div(uint256 a, uint256 b) internal pure returns (uint256) {
        return a / b;
    }

    /**
     * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo),
     * reverting when dividing by zero.
     *
     * Counterpart to Solidity's `%` operator. This function uses a `revert`
     * opcode (which leaves remaining gas untouched) while Solidity uses an
     * invalid opcode to revert (consuming all remaining gas).
     *
     * Requirements:
     *
     * - The divisor cannot be zero.
     */
    function mod(uint256 a, uint256 b) internal pure returns (uint256) {
        return a % b;
    }

    /**
     * @dev Returns the subtraction of two unsigned integers, reverting with custom message on
     * overflow (when the result is negative).
     *
     * CAUTION: This function is deprecated because it requires allocating memory for the error
     * message unnecessarily. For custom revert reasons use {trySub}.
     *
     * Counterpart to Solidity's `-` operator.
     *
     * Requirements:
     *
     * - Subtraction cannot overflow.
     */
    function sub(
        uint256 a,
        uint256 b,
        string memory errorMessage
    ) internal pure returns (uint256) {
        unchecked {
            require(b <= a, errorMessage);
            return a - b;
        }
    }

    /**
     * @dev Returns the integer division of two unsigned integers, reverting with custom message on
     * division by zero. The result is rounded towards zero.
     *
     * Counterpart to Solidity's `/` operator. Note: this function uses a
     * `revert` opcode (which leaves remaining gas untouched) while Solidity
     * uses an invalid opcode to revert (consuming all remaining gas).
     *
     * Requirements:
     *
     * - The divisor cannot be zero.
     */
    function div(
        uint256 a,
        uint256 b,
        string memory errorMessage
    ) internal pure returns (uint256) {
        unchecked {
            require(b > 0, errorMessage);
            return a / b;
        }
    }

    /**
     * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo),
     * reverting with custom message when dividing by zero.
     *
     * CAUTION: This function is deprecated because it requires allocating memory for the error
     * message unnecessarily. For custom revert reasons use {tryMod}.
     *
     * Counterpart to Solidity's `%` operator. This function uses a `revert`
     * opcode (which leaves remaining gas untouched) while Solidity uses an
     * invalid opcode to revert (consuming all remaining gas).
     *
     * Requirements:
     *
     * - The divisor cannot be zero.
     */
    function mod(
        uint256 a,
        uint256 b,
        string memory errorMessage
    ) internal pure returns (uint256) {
        unchecked {
            require(b > 0, errorMessage);
            return a % b;
        }
    }
}

File 11 of 14 : ERC20.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.8.0) (token/ERC20/ERC20.sol)

pragma solidity ^0.8.0;

import "./IERC20.sol";
import "./extensions/IERC20Metadata.sol";
import "../../utils/Context.sol";

/**
 * @dev Implementation of the {IERC20} interface.
 *
 * This implementation is agnostic to the way tokens are created. This means
 * that a supply mechanism has to be added in a derived contract using {_mint}.
 * For a generic mechanism see {ERC20PresetMinterPauser}.
 *
 * TIP: For a detailed writeup see our guide
 * https://forum.openzeppelin.com/t/how-to-implement-erc20-supply-mechanisms/226[How
 * to implement supply mechanisms].
 *
 * We have followed general OpenZeppelin Contracts guidelines: functions revert
 * instead returning `false` on failure. This behavior is nonetheless
 * conventional and does not conflict with the expectations of ERC20
 * applications.
 *
 * Additionally, an {Approval} event is emitted on calls to {transferFrom}.
 * This allows applications to reconstruct the allowance for all accounts just
 * by listening to said events. Other implementations of the EIP may not emit
 * these events, as it isn't required by the specification.
 *
 * Finally, the non-standard {decreaseAllowance} and {increaseAllowance}
 * functions have been added to mitigate the well-known issues around setting
 * allowances. See {IERC20-approve}.
 */
contract ERC20 is Context, IERC20, IERC20Metadata {
    mapping(address => uint256) private _balances;

    mapping(address => mapping(address => uint256)) private _allowances;

    uint256 private _totalSupply;

    string private _name;
    string private _symbol;

    /**
     * @dev Sets the values for {name} and {symbol}.
     *
     * The default value of {decimals} is 18. To select a different value for
     * {decimals} you should overload it.
     *
     * All two of these values are immutable: they can only be set once during
     * construction.
     */
    constructor(string memory name_, string memory symbol_) {
        _name = name_;
        _symbol = symbol_;
    }

    /**
     * @dev Returns the name of the token.
     */
    function name() public view virtual override returns (string memory) {
        return _name;
    }

    /**
     * @dev Returns the symbol of the token, usually a shorter version of the
     * name.
     */
    function symbol() public view virtual override returns (string memory) {
        return _symbol;
    }

    /**
     * @dev Returns the number of decimals used to get its user representation.
     * For example, if `decimals` equals `2`, a balance of `505` tokens should
     * be displayed to a user as `5.05` (`505 / 10 ** 2`).
     *
     * Tokens usually opt for a value of 18, imitating the relationship between
     * Ether and Wei. This is the value {ERC20} uses, unless this function is
     * overridden;
     *
     * NOTE: This information is only used for _display_ purposes: it in
     * no way affects any of the arithmetic of the contract, including
     * {IERC20-balanceOf} and {IERC20-transfer}.
     */
    function decimals() public view virtual override returns (uint8) {
        return 18;
    }

    /**
     * @dev See {IERC20-totalSupply}.
     */
    function totalSupply() public view virtual override returns (uint256) {
        return _totalSupply;
    }

    /**
     * @dev See {IERC20-balanceOf}.
     */
    function balanceOf(address account) public view virtual override returns (uint256) {
        return _balances[account];
    }

    /**
     * @dev See {IERC20-transfer}.
     *
     * Requirements:
     *
     * - `to` cannot be the zero address.
     * - the caller must have a balance of at least `amount`.
     */
    function transfer(address to, uint256 amount) public virtual override returns (bool) {
        address owner = _msgSender();
        _transfer(owner, to, amount);
        return true;
    }

    /**
     * @dev See {IERC20-allowance}.
     */
    function allowance(address owner, address spender) public view virtual override returns (uint256) {
        return _allowances[owner][spender];
    }

    /**
     * @dev See {IERC20-approve}.
     *
     * NOTE: If `amount` is the maximum `uint256`, the allowance is not updated on
     * `transferFrom`. This is semantically equivalent to an infinite approval.
     *
     * Requirements:
     *
     * - `spender` cannot be the zero address.
     */
    function approve(address spender, uint256 amount) public virtual override returns (bool) {
        address owner = _msgSender();
        _approve(owner, spender, amount);
        return true;
    }

    /**
     * @dev See {IERC20-transferFrom}.
     *
     * Emits an {Approval} event indicating the updated allowance. This is not
     * required by the EIP. See the note at the beginning of {ERC20}.
     *
     * NOTE: Does not update the allowance if the current allowance
     * is the maximum `uint256`.
     *
     * Requirements:
     *
     * - `from` and `to` cannot be the zero address.
     * - `from` must have a balance of at least `amount`.
     * - the caller must have allowance for ``from``'s tokens of at least
     * `amount`.
     */
    function transferFrom(
        address from,
        address to,
        uint256 amount
    ) public virtual override returns (bool) {
        address spender = _msgSender();
        _spendAllowance(from, spender, amount);
        _transfer(from, to, amount);
        return true;
    }

    /**
     * @dev Atomically increases the allowance granted to `spender` by the caller.
     *
     * This is an alternative to {approve} that can be used as a mitigation for
     * problems described in {IERC20-approve}.
     *
     * Emits an {Approval} event indicating the updated allowance.
     *
     * Requirements:
     *
     * - `spender` cannot be the zero address.
     */
    function increaseAllowance(address spender, uint256 addedValue) public virtual returns (bool) {
        address owner = _msgSender();
        _approve(owner, spender, allowance(owner, spender) + addedValue);
        return true;
    }

    /**
     * @dev Atomically decreases the allowance granted to `spender` by the caller.
     *
     * This is an alternative to {approve} that can be used as a mitigation for
     * problems described in {IERC20-approve}.
     *
     * Emits an {Approval} event indicating the updated allowance.
     *
     * Requirements:
     *
     * - `spender` cannot be the zero address.
     * - `spender` must have allowance for the caller of at least
     * `subtractedValue`.
     */
    function decreaseAllowance(address spender, uint256 subtractedValue) public virtual returns (bool) {
        address owner = _msgSender();
        uint256 currentAllowance = allowance(owner, spender);
        require(currentAllowance >= subtractedValue, "ERC20: decreased allowance below zero");
        unchecked {
            _approve(owner, spender, currentAllowance - subtractedValue);
        }

        return true;
    }

    /**
     * @dev Moves `amount` of tokens from `from` to `to`.
     *
     * This internal function is equivalent to {transfer}, and can be used to
     * e.g. implement automatic token fees, slashing mechanisms, etc.
     *
     * Emits a {Transfer} event.
     *
     * Requirements:
     *
     * - `from` cannot be the zero address.
     * - `to` cannot be the zero address.
     * - `from` must have a balance of at least `amount`.
     */
    function _transfer(
        address from,
        address to,
        uint256 amount
    ) internal virtual {
        require(from != address(0), "ERC20: transfer from the zero address");
        require(to != address(0), "ERC20: transfer to the zero address");

        _beforeTokenTransfer(from, to, amount);

        uint256 fromBalance = _balances[from];
        require(fromBalance >= amount, "ERC20: transfer amount exceeds balance");
        unchecked {
            _balances[from] = fromBalance - amount;
            // Overflow not possible: the sum of all balances is capped by totalSupply, and the sum is preserved by
            // decrementing then incrementing.
            _balances[to] += amount;
        }

        emit Transfer(from, to, amount);

        _afterTokenTransfer(from, to, amount);
    }

    /** @dev Creates `amount` tokens and assigns them to `account`, increasing
     * the total supply.
     *
     * Emits a {Transfer} event with `from` set to the zero address.
     *
     * Requirements:
     *
     * - `account` cannot be the zero address.
     */
    function _mint(address account, uint256 amount) internal virtual {
        require(account != address(0), "ERC20: mint to the zero address");

        _beforeTokenTransfer(address(0), account, amount);

        _totalSupply += amount;
        unchecked {
            // Overflow not possible: balance + amount is at most totalSupply + amount, which is checked above.
            _balances[account] += amount;
        }
        emit Transfer(address(0), account, amount);

        _afterTokenTransfer(address(0), account, amount);
    }

    /**
     * @dev Destroys `amount` tokens from `account`, reducing the
     * total supply.
     *
     * Emits a {Transfer} event with `to` set to the zero address.
     *
     * Requirements:
     *
     * - `account` cannot be the zero address.
     * - `account` must have at least `amount` tokens.
     */
    function _burn(address account, uint256 amount) internal virtual {
        require(account != address(0), "ERC20: burn from the zero address");

        _beforeTokenTransfer(account, address(0), amount);

        uint256 accountBalance = _balances[account];
        require(accountBalance >= amount, "ERC20: burn amount exceeds balance");
        unchecked {
            _balances[account] = accountBalance - amount;
            // Overflow not possible: amount <= accountBalance <= totalSupply.
            _totalSupply -= amount;
        }

        emit Transfer(account, address(0), amount);

        _afterTokenTransfer(account, address(0), amount);
    }

    /**
     * @dev Sets `amount` as the allowance of `spender` over the `owner` s tokens.
     *
     * This internal function is equivalent to `approve`, and can be used to
     * e.g. set automatic allowances for certain subsystems, etc.
     *
     * Emits an {Approval} event.
     *
     * Requirements:
     *
     * - `owner` cannot be the zero address.
     * - `spender` cannot be the zero address.
     */
    function _approve(
        address owner,
        address spender,
        uint256 amount
    ) internal virtual {
        require(owner != address(0), "ERC20: approve from the zero address");
        require(spender != address(0), "ERC20: approve to the zero address");

        _allowances[owner][spender] = amount;
        emit Approval(owner, spender, amount);
    }

    /**
     * @dev Updates `owner` s allowance for `spender` based on spent `amount`.
     *
     * Does not update the allowance amount in case of infinite allowance.
     * Revert if not enough allowance is available.
     *
     * Might emit an {Approval} event.
     */
    function _spendAllowance(
        address owner,
        address spender,
        uint256 amount
    ) internal virtual {
        uint256 currentAllowance = allowance(owner, spender);
        if (currentAllowance != type(uint256).max) {
            require(currentAllowance >= amount, "ERC20: insufficient allowance");
            unchecked {
                _approve(owner, spender, currentAllowance - amount);
            }
        }
    }

    /**
     * @dev Hook that is called before any transfer of tokens. This includes
     * minting and burning.
     *
     * Calling conditions:
     *
     * - when `from` and `to` are both non-zero, `amount` of ``from``'s tokens
     * will be transferred to `to`.
     * - when `from` is zero, `amount` tokens will be minted for `to`.
     * - when `to` is zero, `amount` of ``from``'s tokens will be burned.
     * - `from` and `to` are never both zero.
     *
     * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks].
     */
    function _beforeTokenTransfer(
        address from,
        address to,
        uint256 amount
    ) internal virtual {}

    /**
     * @dev Hook that is called after any transfer of tokens. This includes
     * minting and burning.
     *
     * Calling conditions:
     *
     * - when `from` and `to` are both non-zero, `amount` of ``from``'s tokens
     * has been transferred to `to`.
     * - when `from` is zero, `amount` tokens have been minted for `to`.
     * - when `to` is zero, `amount` of ``from``'s tokens have been burned.
     * - `from` and `to` are never both zero.
     *
     * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks].
     */
    function _afterTokenTransfer(
        address from,
        address to,
        uint256 amount
    ) internal virtual {}
}

File 12 of 14 : Context.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (utils/Context.sol)

pragma solidity ^0.8.0;

/**
 * @dev Provides information about the current execution context, including the
 * sender of the transaction and its data. While these are generally available
 * via msg.sender and msg.data, they should not be accessed in such a direct
 * manner, since when dealing with meta-transactions the account sending and
 * paying for execution may not be the actual sender (as far as an application
 * is concerned).
 *
 * This contract is only required for intermediate, library-like contracts.
 */
abstract contract Context {
    function _msgSender() internal view virtual returns (address) {
        return msg.sender;
    }

    function _msgData() internal view virtual returns (bytes calldata) {
        return msg.data;
    }
}

File 13 of 14 : IERC20Metadata.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (token/ERC20/extensions/IERC20Metadata.sol)

pragma solidity ^0.8.0;

import "../IERC20.sol";

/**
 * @dev Interface for the optional metadata functions from the ERC20 standard.
 *
 * _Available since v4.1._
 */
interface IERC20Metadata is IERC20 {
    /**
     * @dev Returns the name of the token.
     */
    function name() external view returns (string memory);

    /**
     * @dev Returns the symbol of the token.
     */
    function symbol() external view returns (string memory);

    /**
     * @dev Returns the decimals places of the token.
     */
    function decimals() external view returns (uint8);
}

File 14 of 14 : IERC20.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.6.0) (token/ERC20/IERC20.sol)

pragma solidity ^0.8.0;

/**
 * @dev Interface of the ERC20 standard as defined in the EIP.
 */
interface IERC20 {
    /**
     * @dev Emitted when `value` tokens are moved from one account (`from`) to
     * another (`to`).
     *
     * Note that `value` may be zero.
     */
    event Transfer(address indexed from, address indexed to, uint256 value);

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

    /**
     * @dev Returns the amount of tokens in existence.
     */
    function totalSupply() external view returns (uint256);

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

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

    /**
     * @dev Returns the remaining number of tokens that `spender` will be
     * allowed to spend on behalf of `owner` through {transferFrom}. This is
     * zero by default.
     *
     * This value changes when {approve} or {transferFrom} are called.
     */
    function allowance(address owner, address spender) external view returns (uint256);

    /**
     * @dev Sets `amount` as the allowance of `spender` over the caller's tokens.
     *
     * Returns a boolean value indicating whether the operation succeeded.
     *
     * IMPORTANT: Beware that changing an allowance with this method brings the risk
     * that someone may use both the old and the new allowance by unfortunate
     * transaction ordering. One possible solution to mitigate this race
     * condition is to first reduce the spender's allowance to 0 and set the
     * desired value afterwards:
     * https://github.com/ethereum/EIPs/issues/20#issuecomment-263524729
     *
     * Emits an {Approval} event.
     */
    function approve(address spender, uint256 amount) external returns (bool);

    /**
     * @dev Moves `amount` tokens from `from` to `to` using the
     * allowance mechanism. `amount` is then deducted from the caller's
     * allowance.
     *
     * Returns a boolean value indicating whether the operation succeeded.
     *
     * Emits a {Transfer} event.
     */
    function transferFrom(
        address from,
        address to,
        uint256 amount
    ) external returns (bool);
}

Settings
{
  "optimizer": {
    "enabled": true,
    "runs": 200
  },
  "outputSelection": {
    "*": {
      "*": [
        "evm.bytecode",
        "evm.deployedBytecode",
        "devdoc",
        "userdoc",
        "metadata",
        "abi"
      ]
    }
  }
}

Contract Security Audit

Contract ABI

[{"inputs":[{"internalType":"address","name":"_owner","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":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":false,"internalType":"uint256","name":"value","type":"uint256"}],"name":"Transfer","type":"event"},{"inputs":[{"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":"account","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"burn","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"claim","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"decimals","outputs":[{"internalType":"uint8","name":"","type":"uint8"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"subtractedValue","type":"uint256"}],"name":"decreaseAllowance","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"dividends","outputs":[{"internalType":"contract ProphetDividends","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"addedValue","type":"uint256"}],"name":"increaseAllowance","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"maxWallet","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"operationsWallet","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"receiveBlock","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"stats","outputs":[{"internalType":"uint256","name":"withdrawableDividends","type":"uint256"},{"internalType":"uint256","name":"totalDividends","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"swapBackAt","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":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"transfer","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"transferFrom","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"uniswapV2Pair","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_dividends","type":"address"}],"name":"updateDividends","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_totalFee","type":"uint256"},{"internalType":"uint256","name":"_operationsFee","type":"uint256"}],"name":"updateFee","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"percent","type":"uint256"}],"name":"updateMaxHoldingPercent","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_operationsWallet","type":"address"}],"name":"updateOperationsWallet","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"value","type":"uint256"}],"name":"updateSwapBackAt","outputs":[],"stateMutability":"nonpayable","type":"function"},{"stateMutability":"payable","type":"receive"}]

60a0604052737a250d5630b4cf539739df2c5dacb4c659f2488d60805260056009819055600a55600b805460ff191690553480156200003d57600080fd5b5060405162003e4b38038062003e4b833981016040819052620000609162000764565b60405180604001604052806007815260200166141c9bdc1a195d60ca1b81525060405180604001604052806007815260200166141493d412115560ca1b815250620000ba620000b46200063560201b60201c565b62000639565b6004620000c883826200083a565b506005620000d782826200083a565b5069d3c21bcecceda100000091506103e89050620000f78260016200091c565b6200010391906200093c565b600d81905550806006819055506080516001600160a01b031663c45a01556040518163ffffffff1660e01b8152600401602060405180830381865afa15801562000151573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019062000177919062000764565b6001600160a01b031663c9c65396306080516001600160a01b031663ad5c46486040518163ffffffff1660e01b8152600401602060405180830381865afa158015620001c7573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190620001ed919062000764565b6040516001600160e01b031960e085901b1681526001600160a01b039283166004820152911660248201526044016020604051808303816000875af11580156200023b573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019062000261919062000764565b600780546001600160a01b0319166001600160a01b03929092169190911790556040516200028f9062000756565b604051809103906000f080158015620002ac573d6000803e3d6000fd5b50600880546001600160a01b0319166001600160a01b039290921691821790556331e79db0620002e46000546001600160a01b031690565b6040516001600160e01b031960e084901b1681526001600160a01b039091166004820152602401600060405180830381600087803b1580156200032657600080fd5b505af11580156200033b573d6000803e3d6000fd5b505060085460405163031e79db60e41b81526001600160a01b03868116600483015290911692506331e79db09150602401600060405180830381600087803b1580156200038757600080fd5b505af11580156200039c573d6000803e3d6000fd5b505060085460405163031e79db60e41b81523060048201526001600160a01b0390911692506331e79db09150602401600060405180830381600087803b158015620003e657600080fd5b505af1158015620003fb573d6000803e3d6000fd5b505060085460405163031e79db60e41b81526001600160a01b039091166004820181905292506331e79db09150602401600060405180830381600087803b1580156200044657600080fd5b505af11580156200045b573d6000803e3d6000fd5b505060085460805160405163031e79db60e41b81526001600160a01b039182166004820152911692506331e79db09150602401600060405180830381600087803b158015620004a957600080fd5b505af1158015620004be573d6000803e3d6000fd5b505060085460075460405163031e79db60e41b81526001600160a01b039182166004820152911692506331e79db09150602401600060405180830381600087803b1580156200050c57600080fd5b505af115801562000521573d6000803e3d6000fd5b505060085460405163031e79db60e41b815261dead60048201526001600160a01b0390911692506331e79db09150602401600060405180830381600087803b1580156200056d57600080fd5b505af115801562000582573d6000803e3d6000fd5b505060085460405163031e79db60e41b8152600060048201526001600160a01b0390911692506331e79db09150602401600060405180830381600087803b158015620005cd57600080fd5b505af1158015620005e2573d6000803e3d6000fd5b5050600b8054610100600160a81b031916741b62bc39ae9b1e85c5b926a5ea0396151b3991a700179055506200062d9050620006266000546001600160a01b031690565b8262000689565b505062000975565b3390565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b6001600160a01b038216620006e45760405162461bcd60e51b815260206004820152601f60248201527f45524332303a206d696e7420746f20746865207a65726f206164647265737300604482015260640160405180910390fd5b8060036000828254620006f891906200095f565b90915550506001600160a01b0382166000818152600160209081526040808320805486019055518481527fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef910160405180910390a35050565b505050565b6119f2806200245983390190565b6000602082840312156200077757600080fd5b81516001600160a01b03811681146200078f57600080fd5b9392505050565b634e487b7160e01b600052604160045260246000fd5b600181811c90821680620007c157607f821691505b602082108103620007e257634e487b7160e01b600052602260045260246000fd5b50919050565b601f8211156200075157600081815260208120601f850160051c81016020861015620008115750805b601f850160051c820191505b8181101562000832578281556001016200081d565b505050505050565b81516001600160401b0381111562000856576200085662000796565b6200086e81620008678454620007ac565b84620007e8565b602080601f831160018114620008a657600084156200088d5750858301515b600019600386901b1c1916600185901b17855562000832565b600085815260208120601f198616915b82811015620008d757888601518255948401946001909101908401620008b6565b5085821015620008f65787850151600019600388901b60f8161c191681555b5050505050600190811b01905550565b634e487b7160e01b600052601160045260246000fd5b808202811582820484141762000936576200093662000906565b92915050565b6000826200095a57634e487b7160e01b600052601260045260246000fd5b500490565b8082018082111562000936576200093662000906565b608051611aa5620009b460003960008181610a0301528181610ea40152818161101601528181611536015281816115ef015261162b0152611aa56000f3fe6080604052600436106101bb5760003560e01c8063715018a6116100ec578063a9059cbb1161008a578063f2fde38b11610064578063f2fde38b14610506578063f8b45b0514610526578063f8f2bfce1461053c578063fd72e22a1461055c57600080fd5b8063a9059cbb146104a6578063dd62ed3e146104c6578063ed5596ce146104e657600080fd5b80639217383f116100c65780639217383f1461043b57806395d89b4114610451578063a1972fc414610466578063a457c2d71461048657600080fd5b8063715018a6146103d35780638bcdcbf3146103e85780638da5cb5b1461041d57600080fd5b8063313ce5671161015957806342966c681161013357806342966c681461034857806349bd5a5e146103685780634e71d92d1461038857806370a082311461039d57600080fd5b8063313ce567146102d457806335d97405146102f0578063395093511461032857600080fd5b806318160ddd1161019557806318160ddd1461025d57806323b872dd146102725780632740c1971461029257806330d5d18d146102b457600080fd5b806306fdde03146101c7578063095ea7b3146101f2578063098fec391461022257600080fd5b366101c257005b600080fd5b3480156101d357600080fd5b506101dc610581565b6040516101e9919061177d565b60405180910390f35b3480156101fe57600080fd5b5061021261020d3660046117e0565b610613565b60405190151581526020016101e9565b34801561022e57600080fd5b5061024f61023d36600461180c565b600c6020526000908152604090205481565b6040519081526020016101e9565b34801561026957600080fd5b5060035461024f565b34801561027e57600080fd5b5061021261028d366004611830565b61062d565b34801561029e57600080fd5b506102b26102ad366004611871565b610651565b005b3480156102c057600080fd5b506102b26102cf36600461180c565b61067e565b3480156102e057600080fd5b50604051601281526020016101e9565b3480156102fc57600080fd5b50600854610310906001600160a01b031681565b6040516001600160a01b0390911681526020016101e9565b34801561033457600080fd5b506102126103433660046117e0565b6106ae565b34801561035457600080fd5b506102b2610363366004611893565b6106d0565b34801561037457600080fd5b50600754610310906001600160a01b031681565b34801561039457600080fd5b506102b261073b565b3480156103a957600080fd5b5061024f6103b836600461180c565b6001600160a01b031660009081526001602052604090205490565b3480156103df57600080fd5b506102b261079a565b3480156103f457600080fd5b5061040861040336600461180c565b6107ae565b604080519283526020830191909152016101e9565b34801561042957600080fd5b506000546001600160a01b0316610310565b34801561044757600080fd5b5061024f600d5481565b34801561045d57600080fd5b506101dc61082b565b34801561047257600080fd5b506102b261048136600461180c565b61083a565b34801561049257600080fd5b506102126104a13660046117e0565b610a3d565b3480156104b257600080fd5b506102126104c13660046117e0565b610abd565b3480156104d257600080fd5b5061024f6104e13660046118ac565b610acb565b3480156104f257600080fd5b506102b2610501366004611893565b610af6565b34801561051257600080fd5b506102b261052136600461180c565b610b24565b34801561053257600080fd5b5061024f60065481565b34801561054857600080fd5b506102b2610557366004611893565b610b9d565b34801561056857600080fd5b50600b546103109061010090046001600160a01b031681565b606060048054610590906118e5565b80601f01602080910402602001604051908101604052809291908181526020018280546105bc906118e5565b80156106095780601f106105de57610100808354040283529160200191610609565b820191906000526020600020905b8154815290600101906020018083116105ec57829003601f168201915b5050505050905090565b600033610621818585610c1b565b60019150505b92915050565b60003361063b858285610d3f565b610646858585610db3565b506001949350505050565b610659611156565b6005821115801561066a5750818111155b61067357600080fd5b600991909155600a55565b610686611156565b600b80546001600160a01b0390921661010002610100600160a81b0319909216919091179055565b6000336106218185856106c18383610acb565b6106cb9190611935565b610c1b565b6106da33826111b0565b60085460405163205c202d60e11b81523360048201526001600160a01b03909116906340b8405a906024015b600060405180830381600087803b15801561072057600080fd5b505af1158015610734573d6000803e3d6000fd5b5050505050565b600854604051630f41a04d60e11b81523360048201526001600160a01b0390911690631e83409a90602401600060405180830381600087803b15801561078057600080fd5b505af1158015610794573d6000803e3d6000fd5b50505050565b6107a2611156565b6107ac60006112e4565b565b60085460405163fbcbc0f160e01b81526001600160a01b038381166004830152600092839291169063fbcbc0f190602401606060405180830381865afa1580156107fc573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906108209190611948565b909590945092505050565b606060058054610590906118e5565b610842611156565b600880546001600160a01b0319166001600160a01b03831690811790915560405163031e79db60e41b8152600481018290526331e79db090602401600060405180830381600087803b15801561089757600080fd5b505af11580156108ab573d6000803e3d6000fd5b505060085460405163031e79db60e41b81523060048201526001600160a01b0390911692506331e79db09150602401600060405180830381600087803b1580156108f457600080fd5b505af1158015610908573d6000803e3d6000fd5b50506008546001600160a01b031691506331e79db090506109316000546001600160a01b031690565b6040516001600160e01b031960e084901b1681526001600160a01b039091166004820152602401600060405180830381600087803b15801561097257600080fd5b505af1158015610986573d6000803e3d6000fd5b505060085460075460405163031e79db60e41b81526001600160a01b039182166004820152911692506331e79db09150602401600060405180830381600087803b1580156109d357600080fd5b505af11580156109e7573d6000803e3d6000fd5b505060085460405163031e79db60e41b81526001600160a01b037f00000000000000000000000000000000000000000000000000000000000000008116600483015290911692506331e79db09150602401610706565b60003381610a4b8286610acb565b905083811015610ab05760405162461bcd60e51b815260206004820152602560248201527f45524332303a2064656372656173656420616c6c6f77616e63652062656c6f77604482015264207a65726f60d81b60648201526084015b60405180910390fd5b6106468286868403610c1b565b600033610621818585610db3565b6001600160a01b03918216600090815260026020908152604080832093909416825291909152205490565b610afe611156565b6032610b0960035490565b610b13919061197f565b811115610b1f57600080fd5b600d55565b610b2c611156565b6001600160a01b038116610b915760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610aa7565b610b9a816112e4565b50565b610ba5611156565b60018110158015610bb7575060648111155b610bf55760405162461bcd60e51b815260206004820152600f60248201526e1a5b9d985b1a59081c195c98d95b9d608a1b6044820152606401610aa7565b606481610c0160035490565b610c0b91906119a1565b610c15919061197f565b60065550565b6001600160a01b038316610c7d5760405162461bcd60e51b8152602060048201526024808201527f45524332303a20617070726f76652066726f6d20746865207a65726f206164646044820152637265737360e01b6064820152608401610aa7565b6001600160a01b038216610cde5760405162461bcd60e51b815260206004820152602260248201527f45524332303a20617070726f766520746f20746865207a65726f206164647265604482015261737360f01b6064820152608401610aa7565b6001600160a01b0383811660008181526002602090815260408083209487168084529482529182902085905590518481527f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925910160405180910390a3505050565b6000610d4b8484610acb565b905060001981146107945781811015610da65760405162461bcd60e51b815260206004820152601d60248201527f45524332303a20696e73756666696369656e7420616c6c6f77616e63650000006044820152606401610aa7565b6107948484848403610c1b565b6007546001600160a01b0316610e5b576001600160a01b038316301480610de157506001600160a01b038316155b80610df957506000546001600160a01b038481169116145b80610e1157506000546001600160a01b038381169116145b610e4b5760405162461bcd60e51b815260206004820152600b60248201526a139bdd081cdd185c9d195960aa1b6044820152606401610aa7565b610e56838383611334565b505050565b6007546001600160a01b038481169116148015610e8157506001600160a01b0382163014155b8015610e9b57506000546001600160a01b03838116911614155b8015610ed957507f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316826001600160a01b031614155b15610f465760065481610f01846001600160a01b031660009081526001602052604090205490565b610f0b9190611935565b1115610f465760405162461bcd60e51b815260206004820152600a6024820152691b585e081dd85b1b195d60b21b6044820152606401610aa7565b30600090815260016020526040902054600d54811115610f655750600d545b6000600d54118015610f785750600d5481145b8015610f875750600b5460ff16155b8015610fa157506007546001600160a01b03858116911614155b15610fd857600b805460ff19166001179055610fbc816114df565b478015610fcc57610fcc8161169f565b50600b805460ff191690555b6000600954118015610ff357506001600160a01b0384163014155b801561100d57506000546001600160a01b03858116911614155b801561104b57507f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316846001600160a01b031614155b1561108757600060646009548461106291906119a1565b61106c919061197f565b905061107881846119b8565b9250611085853083611334565b505b611092848484611334565b60085460405163205c202d60e11b81526001600160a01b038681166004830152909116906340b8405a90602401600060405180830381600087803b1580156110d957600080fd5b505af11580156110ed573d6000803e3d6000fd5b505060085460405163205c202d60e11b81526001600160a01b03878116600483015290911692506340b8405a9150602401600060405180830381600087803b15801561113857600080fd5b505af115801561114c573d6000803e3d6000fd5b5050505050505050565b6000546001600160a01b031633146107ac5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610aa7565b6001600160a01b0382166112105760405162461bcd60e51b815260206004820152602160248201527f45524332303a206275726e2066726f6d20746865207a65726f206164647265736044820152607360f81b6064820152608401610aa7565b6001600160a01b038216600090815260016020526040902054818110156112845760405162461bcd60e51b815260206004820152602260248201527f45524332303a206275726e20616d6f756e7420657863656564732062616c616e604482015261636560f01b6064820152608401610aa7565b6001600160a01b03831660008181526001602090815260408083208686039055600380548790039055518581529192917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef910160405180910390a3505050565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b6001600160a01b0383166113985760405162461bcd60e51b815260206004820152602560248201527f45524332303a207472616e736665722066726f6d20746865207a65726f206164604482015264647265737360d81b6064820152608401610aa7565b6001600160a01b0382166113fa5760405162461bcd60e51b815260206004820152602360248201527f45524332303a207472616e7366657220746f20746865207a65726f206164647260448201526265737360e81b6064820152608401610aa7565b6001600160a01b038316600090815260016020526040902054818110156114725760405162461bcd60e51b815260206004820152602660248201527f45524332303a207472616e7366657220616d6f756e7420657863656564732062604482015265616c616e636560d01b6064820152608401610aa7565b6001600160a01b0380851660008181526001602052604080822086860390559286168082529083902080548601905591517fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef906114d29086815260200190565b60405180910390a3610794565b6040805160028082526060820183526000926020830190803683370190505090503081600081518110611514576115146119cb565b60200260200101906001600160a01b031690816001600160a01b0316815250507f00000000000000000000000000000000000000000000000000000000000000006001600160a01b031663ad5c46486040518163ffffffff1660e01b8152600401602060405180830381865afa158015611592573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906115b691906119e1565b816001815181106115c9576115c96119cb565b60200260200101906001600160a01b031690816001600160a01b031681525050611614307f000000000000000000000000000000000000000000000000000000000000000084610c1b565b60405163791ac94760e01b81526001600160a01b037f0000000000000000000000000000000000000000000000000000000000000000169063791ac947906116699085906000908690309042906004016119fe565b600060405180830381600087803b15801561168357600080fd5b505af1158015611697573d6000803e3d6000fd5b505050505050565b600080600954116116b15760006116cd565b600954600a546116c3906127106119a1565b6116cd919061197f565b905060006127106116de83856119a1565b6116e8919061197f565b905060006116f682856119b8565b600b549091506117149061010090046001600160a01b031683611726565b600854610794906001600160a01b0316825b8015611779576000826001600160a01b03168260405160006040518083038185875af1925050503d8060008114611697576040519150601f19603f3d011682016040523d82523d6000602084013e611697565b5050565b600060208083528351808285015260005b818110156117aa5785810183015185820160400152820161178e565b506000604082860101526040601f19601f8301168501019250505092915050565b6001600160a01b0381168114610b9a57600080fd5b600080604083850312156117f357600080fd5b82356117fe816117cb565b946020939093013593505050565b60006020828403121561181e57600080fd5b8135611829816117cb565b9392505050565b60008060006060848603121561184557600080fd5b8335611850816117cb565b92506020840135611860816117cb565b929592945050506040919091013590565b6000806040838503121561188457600080fd5b50508035926020909101359150565b6000602082840312156118a557600080fd5b5035919050565b600080604083850312156118bf57600080fd5b82356118ca816117cb565b915060208301356118da816117cb565b809150509250929050565b600181811c908216806118f957607f821691505b60208210810361191957634e487b7160e01b600052602260045260246000fd5b50919050565b634e487b7160e01b600052601160045260246000fd5b808201808211156106275761062761191f565b60008060006060848603121561195d57600080fd5b8351611968816117cb565b602085015160409095015190969495509392505050565b60008261199c57634e487b7160e01b600052601260045260246000fd5b500490565b80820281158282048414176106275761062761191f565b818103818111156106275761062761191f565b634e487b7160e01b600052603260045260246000fd5b6000602082840312156119f357600080fd5b8151611829816117cb565b600060a082018783526020878185015260a0604085015281875180845260c086019150828901935060005b81811015611a4e5784516001600160a01b031683529383019391830191600101611a29565b50506001600160a01b0396909616606085015250505060800152939250505056fea2646970667358221220030e44efd0b9e6cbec983156ae71bebd719f2321aee10b8e2b2e284f529eb88c64736f6c6343000811003360806040523480156200001157600080fd5b5060408051808201825260118082527050524f504845545f4469766964656e647360781b602080840182905284518086019095529184529083015290818160036200005d8382620001b7565b5060046200006c8282620001b7565b50505050506200008b62000085620000bc60201b60201c565b620000c0565b600c80546101003202610100600160a81b0319909116179055600a80546001600160a01b0319163317905562000283565b3390565b600980546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b634e487b7160e01b600052604160045260246000fd5b600181811c908216806200013d57607f821691505b6020821081036200015e57634e487b7160e01b600052602260045260246000fd5b50919050565b601f821115620001b257600081815260208120601f850160051c810160208610156200018d5750805b601f850160051c820191505b81811015620001ae5782815560010162000199565b5050505b505050565b81516001600160401b03811115620001d357620001d362000112565b620001eb81620001e4845462000128565b8462000164565b602080601f8311600181146200022357600084156200020a5750858301515b600019600386901b1c1916600185901b178555620001ae565b600085815260208120601f198616915b82811015620002545788860151825594840194600190910190840162000233565b5085821015620002735787850151600019600388901b60f8161c191681555b5050505050600190811b01905550565b61175f80620002936000396000f3fe6080604052600436106101f15760003560e01c806370a082311161010d578063a9059cbb116100a0578063d5f394881161006f578063d5f3948814610572578063dd62ed3e14610595578063f2fde38b146105b5578063f711d2fb146105d5578063fbcbc0f1146105f557600080fd5b8063a9059cbb146104f0578063aafd847a14610510578063c9e7cc1314610546578063d0ed14261461055d57600080fd5b806391b89fba116100dc57806391b89fba1461047b57806395d89b411461049b578063a457c2d7146104b0578063a8b9d240146104d057600080fd5b806370a08231146103e8578063715018a61461041e57806385a6b3ae146104335780638da5cb5b1461044957600080fd5b8063313ce5671161018557806343d726d61161015457806343d726d6146103785780634e7b827f1461038d578063627749e6146103bd5780636a474002146103d357600080fd5b8063313ce567146102fc57806331e79db014610318578063395093511461033857806340b8405a1461035857600080fd5b806318160ddd116101c157806318160ddd1461027d5780631e83409a1461029c57806323b872dd146102bc57806327ce0147146102dc57600080fd5b8062788b561461020557806303c833021461021a57806306fdde0314610222578063095ea7b31461024d57600080fd5b36610200576101fe61063a565b005b600080fd5b34801561021157600080fd5b506101fe6106d0565b6101fe61063a565b34801561022e57600080fd5b50610237610786565b60405161024491906114f3565b60405180910390f35b34801561025957600080fd5b5061026d610268366004611556565b610818565b6040519015158152602001610244565b34801561028957600080fd5b506002545b604051908152602001610244565b3480156102a857600080fd5b506101fe6102b7366004611582565b610832565b3480156102c857600080fd5b5061026d6102d736600461159f565b61089a565b3480156102e857600080fd5b5061028e6102f7366004611582565b6108be565b34801561030857600080fd5b5060405160128152602001610244565b34801561032457600080fd5b506101fe610333366004611582565b61091a565b34801561034457600080fd5b5061026d610353366004611556565b610987565b34801561036457600080fd5b506101fe610373366004611582565b6109a9565b34801561038457600080fd5b506101fe610a45565b34801561039957600080fd5b5061026d6103a8366004611582565b600b6020526000908152604090205460ff1681565b3480156103c957600080fd5b5061028e600d5481565b3480156103df57600080fd5b506101fe610a95565b3480156103f457600080fd5b5061028e610403366004611582565b6001600160a01b031660009081526020819052604090205490565b34801561042a57600080fd5b506101fe610b1b565b34801561043f57600080fd5b5061028e60085481565b34801561045557600080fd5b506009546001600160a01b03165b6040516001600160a01b039091168152602001610244565b34801561048757600080fd5b5061028e610496366004611582565b610b2d565b3480156104a757600080fd5b50610237610b38565b3480156104bc57600080fd5b5061026d6104cb366004611556565b610b47565b3480156104dc57600080fd5b5061028e6104eb366004611582565b610bc2565b3480156104fc57600080fd5b5061026d61050b366004611556565b610bee565b34801561051c57600080fd5b5061028e61052b366004611582565b6001600160a01b031660009081526007602052604090205490565b34801561055257600080fd5b5061028e62278d0081565b34801561056957600080fd5b506101fe610bfc565b34801561057e57600080fd5b50600c5461010090046001600160a01b0316610463565b3480156105a157600080fd5b5061028e6105b03660046115e0565b610c0e565b3480156105c157600080fd5b506101fe6105d0366004611582565b610c39565b3480156105e157600080fd5b506101fe6105f0366004611582565b610caf565b34801561060157600080fd5b50610615610610366004611582565b610cea565b604080516001600160a01b039094168452602084019290925290820152606001610244565b600061064560025490565b1161064f57600080fd5b34156106ce5761068261066160025490565b61066f34600160801b610d0a565b610679919061162f565b60055490610d1d565b600555604080513381523460208201527fa493a9229478c3fcd73f66d2cdeb7f94fd0f341da924d1054236d78454116511910160405180910390a16008546106ca9034610d1d565b6008555b565b6106d8610d29565b62278d00600d546106e99190611651565b42101561072e5760405162461bcd60e51b815260206004820152600e60248201526d185b1c9958591e4818db1bdcd95960921b60448201526064015b60405180910390fd5b604051600090339047908381818185875af1925050503d8060008114610770576040519150601f19603f3d011682016040523d82523d6000602084013e610775565b606091505b505090508061078357600080fd5b50565b60606003805461079590611664565b80601f01602080910402602001604051908101604052809291908181526020018280546107c190611664565b801561080e5780601f106107e35761010080835404028352916020019161080e565b820191906000526020600020905b8154815290600101906020018083116107f157829003601f168201915b5050505050905090565b600033610826818585610d5c565b60019150505b92915050565b61083a610e80565b600d541580610858575062278d00600d546108559190611651565b42105b61088d5760405162461bcd60e51b815260206004820152600660248201526518db1bdcd95960d21b6044820152606401610725565b61089681610eda565b5050565b6000336108a885828561101f565b6108b3858585611099565b506001949350505050565b6001600160a01b03811660009081526006602090815260408083205491839052822054600554600160801b926109109261090b92610905916109009190610d0a565b6110d8565b906110e8565b611126565b61082c919061162f565b610922610e80565b6001600160a01b0381166000908152600b60205260408120805460ff19166001179055610950908290611139565b6040516001600160a01b038216907fa878b31040b2e6d0a9a3d3361209db3908ba62014b0dca52adbaee451d128b2590600090a250565b60003361082681858561099a8383610c0e565b6109a49190611651565b610d5c565b6001600160a01b0381166000908152600b602052604090205460ff16156109cd5750565b600a546040516370a0823160e01b81526001600160a01b0380841660048301526107839284929116906370a0823190602401602060405180830381865afa158015610a1c573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610a40919061169e565b611139565b610a4d610d29565b600d5415610a8f5760405162461bcd60e51b815260206004820152600f60248201526e18d85b9b9bdd081d185ad9481e595d608a1b6044820152606401610725565b42600d55565b60405162461bcd60e51b815260206004820152604f60248201527f77697468647261774469766964656e642064697361626c65642e20557365207460448201527f68652027636c61696d272066756e6374696f6e206f6e20746865206d61696e2060648201526e3a37b5b2b71031b7b73a3930b1ba1760891b608482015260a401610725565b610b23610e80565b6106ce6000611197565b600061082c82610bc2565b60606004805461079590611664565b60003381610b558286610c0e565b905083811015610bb55760405162461bcd60e51b815260206004820152602560248201527f45524332303a2064656372656173656420616c6c6f77616e63652062656c6f77604482015264207a65726f60d81b6064820152608401610725565b6108b38286868403610d5c565b6001600160a01b03811660009081526007602052604081205461082c90610be8846108be565b906111e9565b600033610826818585611099565b610c04610d29565b6106ce60006111f5565b6001600160a01b03918216600090815260016020908152604080832093909416825291909152205490565b610c41610e80565b6001600160a01b038116610ca65760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610725565b61078381611197565b610cb7610d29565b6001600160a01b038116610ce15760405163339f81af60e11b815260006004820152602401610725565b610783816111f5565b80600080610cf783610bc2565b9150610d02836108be565b929491935050565b6000610d1682846116b7565b9392505050565b6000610d168284611651565b600c546001600160a01b036101009091041633146106ce576040516332b2baa360e01b8152336004820152602401610725565b6001600160a01b038316610dbe5760405162461bcd60e51b8152602060048201526024808201527f45524332303a20617070726f76652066726f6d20746865207a65726f206164646044820152637265737360e01b6064820152608401610725565b6001600160a01b038216610e1f5760405162461bcd60e51b815260206004820152602260248201527f45524332303a20617070726f766520746f20746865207a65726f206164647265604482015261737360f01b6064820152608401610725565b6001600160a01b0383811660008181526001602090815260408083209487168084529482529182902085905590518481527f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925910160405180910390a3505050565b6009546001600160a01b031633146106ce5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610725565b600080610ee683610bc2565b90508015611016576001600160a01b038316600090815260076020526040902054610f119082610d1d565b6001600160a01b0384166000818152600760209081526040918290209390935580519182529181018390527fee503bee2bb6a87e57bc57db795f98137327401a0e7b7ce42e37926cc1a9ca4d910160405180910390a16000836001600160a01b031682610bb890604051600060405180830381858888f193505050503d8060008114610fb9576040519150601f19603f3d011682016040523d82523d6000602084013e610fbe565b606091505b505090508061100f576001600160a01b038416600090815260076020526040902054610fea90836111e9565b6001600160a01b03909416600090815260076020526040812094909455509192915050565b5092915050565b50600092915050565b600061102b8484610c0e565b9050600019811461109357818110156110865760405162461bcd60e51b815260206004820152601d60248201527f45524332303a20696e73756666696369656e7420616c6c6f77616e63650000006044820152606401610725565b6110938484848403610d5c565b50505050565b60405162461bcd60e51b8152602060048201526014602482015273139bc81d1c985b9cd9995c9cc8185b1b1bddd95960621b6044820152606401610725565b6000818181121561082c57600080fd5b6000806110f583856116ce565b9050600083121580156111085750838112155b8061111d575060008312801561111d57508381125b610d1657600080fd5b60008082121561113557600080fd5b5090565b6001600160a01b0382166000908152602081905260409020548082111561117257600061116683836111e9565b9050611093848261121d565b8082101561119257600061118682846111e9565b90506110938482611281565b505050565b600980546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b6000610d1682846116f6565b600c80546001600160a01b0390921661010002610100600160a81b0319909216919091179055565b61122782826112c5565b61126161124261090083600554610d0a90919063ffffffff16565b6001600160a01b03841660009081526006602052604090205490611384565b6001600160a01b0390921660009081526006602052604090209190915550565b61128b82826113c1565b6112616112a661090083600554610d0a90919063ffffffff16565b6001600160a01b038416600090815260066020526040902054906110e8565b6001600160a01b03821661131b5760405162461bcd60e51b815260206004820152601f60248201527f45524332303a206d696e7420746f20746865207a65726f2061646472657373006044820152606401610725565b806002600082825461132d9190611651565b90915550506001600160a01b038216600081815260208181526040808320805486019055518481527fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef910160405180910390a35050565b6000806113918385611709565b9050600083121580156113a45750838113155b8061111d575060008312801561111d5750838113610d1657600080fd5b6001600160a01b0382166114215760405162461bcd60e51b815260206004820152602160248201527f45524332303a206275726e2066726f6d20746865207a65726f206164647265736044820152607360f81b6064820152608401610725565b6001600160a01b038216600090815260208190526040902054818110156114955760405162461bcd60e51b815260206004820152602260248201527f45524332303a206275726e20616d6f756e7420657863656564732062616c616e604482015261636560f01b6064820152608401610725565b6001600160a01b0383166000818152602081815260408083208686039055600280548790039055518581529192917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef910160405180910390a3505050565b600060208083528351808285015260005b8181101561152057858101830151858201604001528201611504565b506000604082860101526040601f19601f8301168501019250505092915050565b6001600160a01b038116811461078357600080fd5b6000806040838503121561156957600080fd5b823561157481611541565b946020939093013593505050565b60006020828403121561159457600080fd5b8135610d1681611541565b6000806000606084860312156115b457600080fd5b83356115bf81611541565b925060208401356115cf81611541565b929592945050506040919091013590565b600080604083850312156115f357600080fd5b82356115fe81611541565b9150602083013561160e81611541565b809150509250929050565b634e487b7160e01b600052601160045260246000fd5b60008261164c57634e487b7160e01b600052601260045260246000fd5b500490565b8082018082111561082c5761082c611619565b600181811c9082168061167857607f821691505b60208210810361169857634e487b7160e01b600052602260045260246000fd5b50919050565b6000602082840312156116b057600080fd5b5051919050565b808202811582820484141761082c5761082c611619565b80820182811260008312801582168215821617156116ee576116ee611619565b505092915050565b8181038181111561082c5761082c611619565b818103600083128015838313168383128216171561100f5761100f61161956fea2646970667358221220d8b125ffd4535c3cb554dcf0f525c01b122d09162425daeb30a03044edb34a4f64736f6c6343000811003300000000000000000000000056ac827b9795fc218d79a24258f60a800f976078

Deployed Bytecode

0x6080604052600436106101bb5760003560e01c8063715018a6116100ec578063a9059cbb1161008a578063f2fde38b11610064578063f2fde38b14610506578063f8b45b0514610526578063f8f2bfce1461053c578063fd72e22a1461055c57600080fd5b8063a9059cbb146104a6578063dd62ed3e146104c6578063ed5596ce146104e657600080fd5b80639217383f116100c65780639217383f1461043b57806395d89b4114610451578063a1972fc414610466578063a457c2d71461048657600080fd5b8063715018a6146103d35780638bcdcbf3146103e85780638da5cb5b1461041d57600080fd5b8063313ce5671161015957806342966c681161013357806342966c681461034857806349bd5a5e146103685780634e71d92d1461038857806370a082311461039d57600080fd5b8063313ce567146102d457806335d97405146102f0578063395093511461032857600080fd5b806318160ddd1161019557806318160ddd1461025d57806323b872dd146102725780632740c1971461029257806330d5d18d146102b457600080fd5b806306fdde03146101c7578063095ea7b3146101f2578063098fec391461022257600080fd5b366101c257005b600080fd5b3480156101d357600080fd5b506101dc610581565b6040516101e9919061177d565b60405180910390f35b3480156101fe57600080fd5b5061021261020d3660046117e0565b610613565b60405190151581526020016101e9565b34801561022e57600080fd5b5061024f61023d36600461180c565b600c6020526000908152604090205481565b6040519081526020016101e9565b34801561026957600080fd5b5060035461024f565b34801561027e57600080fd5b5061021261028d366004611830565b61062d565b34801561029e57600080fd5b506102b26102ad366004611871565b610651565b005b3480156102c057600080fd5b506102b26102cf36600461180c565b61067e565b3480156102e057600080fd5b50604051601281526020016101e9565b3480156102fc57600080fd5b50600854610310906001600160a01b031681565b6040516001600160a01b0390911681526020016101e9565b34801561033457600080fd5b506102126103433660046117e0565b6106ae565b34801561035457600080fd5b506102b2610363366004611893565b6106d0565b34801561037457600080fd5b50600754610310906001600160a01b031681565b34801561039457600080fd5b506102b261073b565b3480156103a957600080fd5b5061024f6103b836600461180c565b6001600160a01b031660009081526001602052604090205490565b3480156103df57600080fd5b506102b261079a565b3480156103f457600080fd5b5061040861040336600461180c565b6107ae565b604080519283526020830191909152016101e9565b34801561042957600080fd5b506000546001600160a01b0316610310565b34801561044757600080fd5b5061024f600d5481565b34801561045d57600080fd5b506101dc61082b565b34801561047257600080fd5b506102b261048136600461180c565b61083a565b34801561049257600080fd5b506102126104a13660046117e0565b610a3d565b3480156104b257600080fd5b506102126104c13660046117e0565b610abd565b3480156104d257600080fd5b5061024f6104e13660046118ac565b610acb565b3480156104f257600080fd5b506102b2610501366004611893565b610af6565b34801561051257600080fd5b506102b261052136600461180c565b610b24565b34801561053257600080fd5b5061024f60065481565b34801561054857600080fd5b506102b2610557366004611893565b610b9d565b34801561056857600080fd5b50600b546103109061010090046001600160a01b031681565b606060048054610590906118e5565b80601f01602080910402602001604051908101604052809291908181526020018280546105bc906118e5565b80156106095780601f106105de57610100808354040283529160200191610609565b820191906000526020600020905b8154815290600101906020018083116105ec57829003601f168201915b5050505050905090565b600033610621818585610c1b565b60019150505b92915050565b60003361063b858285610d3f565b610646858585610db3565b506001949350505050565b610659611156565b6005821115801561066a5750818111155b61067357600080fd5b600991909155600a55565b610686611156565b600b80546001600160a01b0390921661010002610100600160a81b0319909216919091179055565b6000336106218185856106c18383610acb565b6106cb9190611935565b610c1b565b6106da33826111b0565b60085460405163205c202d60e11b81523360048201526001600160a01b03909116906340b8405a906024015b600060405180830381600087803b15801561072057600080fd5b505af1158015610734573d6000803e3d6000fd5b5050505050565b600854604051630f41a04d60e11b81523360048201526001600160a01b0390911690631e83409a90602401600060405180830381600087803b15801561078057600080fd5b505af1158015610794573d6000803e3d6000fd5b50505050565b6107a2611156565b6107ac60006112e4565b565b60085460405163fbcbc0f160e01b81526001600160a01b038381166004830152600092839291169063fbcbc0f190602401606060405180830381865afa1580156107fc573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906108209190611948565b909590945092505050565b606060058054610590906118e5565b610842611156565b600880546001600160a01b0319166001600160a01b03831690811790915560405163031e79db60e41b8152600481018290526331e79db090602401600060405180830381600087803b15801561089757600080fd5b505af11580156108ab573d6000803e3d6000fd5b505060085460405163031e79db60e41b81523060048201526001600160a01b0390911692506331e79db09150602401600060405180830381600087803b1580156108f457600080fd5b505af1158015610908573d6000803e3d6000fd5b50506008546001600160a01b031691506331e79db090506109316000546001600160a01b031690565b6040516001600160e01b031960e084901b1681526001600160a01b039091166004820152602401600060405180830381600087803b15801561097257600080fd5b505af1158015610986573d6000803e3d6000fd5b505060085460075460405163031e79db60e41b81526001600160a01b039182166004820152911692506331e79db09150602401600060405180830381600087803b1580156109d357600080fd5b505af11580156109e7573d6000803e3d6000fd5b505060085460405163031e79db60e41b81526001600160a01b037f0000000000000000000000007a250d5630b4cf539739df2c5dacb4c659f2488d8116600483015290911692506331e79db09150602401610706565b60003381610a4b8286610acb565b905083811015610ab05760405162461bcd60e51b815260206004820152602560248201527f45524332303a2064656372656173656420616c6c6f77616e63652062656c6f77604482015264207a65726f60d81b60648201526084015b60405180910390fd5b6106468286868403610c1b565b600033610621818585610db3565b6001600160a01b03918216600090815260026020908152604080832093909416825291909152205490565b610afe611156565b6032610b0960035490565b610b13919061197f565b811115610b1f57600080fd5b600d55565b610b2c611156565b6001600160a01b038116610b915760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610aa7565b610b9a816112e4565b50565b610ba5611156565b60018110158015610bb7575060648111155b610bf55760405162461bcd60e51b815260206004820152600f60248201526e1a5b9d985b1a59081c195c98d95b9d608a1b6044820152606401610aa7565b606481610c0160035490565b610c0b91906119a1565b610c15919061197f565b60065550565b6001600160a01b038316610c7d5760405162461bcd60e51b8152602060048201526024808201527f45524332303a20617070726f76652066726f6d20746865207a65726f206164646044820152637265737360e01b6064820152608401610aa7565b6001600160a01b038216610cde5760405162461bcd60e51b815260206004820152602260248201527f45524332303a20617070726f766520746f20746865207a65726f206164647265604482015261737360f01b6064820152608401610aa7565b6001600160a01b0383811660008181526002602090815260408083209487168084529482529182902085905590518481527f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925910160405180910390a3505050565b6000610d4b8484610acb565b905060001981146107945781811015610da65760405162461bcd60e51b815260206004820152601d60248201527f45524332303a20696e73756666696369656e7420616c6c6f77616e63650000006044820152606401610aa7565b6107948484848403610c1b565b6007546001600160a01b0316610e5b576001600160a01b038316301480610de157506001600160a01b038316155b80610df957506000546001600160a01b038481169116145b80610e1157506000546001600160a01b038381169116145b610e4b5760405162461bcd60e51b815260206004820152600b60248201526a139bdd081cdd185c9d195960aa1b6044820152606401610aa7565b610e56838383611334565b505050565b6007546001600160a01b038481169116148015610e8157506001600160a01b0382163014155b8015610e9b57506000546001600160a01b03838116911614155b8015610ed957507f0000000000000000000000007a250d5630b4cf539739df2c5dacb4c659f2488d6001600160a01b0316826001600160a01b031614155b15610f465760065481610f01846001600160a01b031660009081526001602052604090205490565b610f0b9190611935565b1115610f465760405162461bcd60e51b815260206004820152600a6024820152691b585e081dd85b1b195d60b21b6044820152606401610aa7565b30600090815260016020526040902054600d54811115610f655750600d545b6000600d54118015610f785750600d5481145b8015610f875750600b5460ff16155b8015610fa157506007546001600160a01b03858116911614155b15610fd857600b805460ff19166001179055610fbc816114df565b478015610fcc57610fcc8161169f565b50600b805460ff191690555b6000600954118015610ff357506001600160a01b0384163014155b801561100d57506000546001600160a01b03858116911614155b801561104b57507f0000000000000000000000007a250d5630b4cf539739df2c5dacb4c659f2488d6001600160a01b0316846001600160a01b031614155b1561108757600060646009548461106291906119a1565b61106c919061197f565b905061107881846119b8565b9250611085853083611334565b505b611092848484611334565b60085460405163205c202d60e11b81526001600160a01b038681166004830152909116906340b8405a90602401600060405180830381600087803b1580156110d957600080fd5b505af11580156110ed573d6000803e3d6000fd5b505060085460405163205c202d60e11b81526001600160a01b03878116600483015290911692506340b8405a9150602401600060405180830381600087803b15801561113857600080fd5b505af115801561114c573d6000803e3d6000fd5b5050505050505050565b6000546001600160a01b031633146107ac5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610aa7565b6001600160a01b0382166112105760405162461bcd60e51b815260206004820152602160248201527f45524332303a206275726e2066726f6d20746865207a65726f206164647265736044820152607360f81b6064820152608401610aa7565b6001600160a01b038216600090815260016020526040902054818110156112845760405162461bcd60e51b815260206004820152602260248201527f45524332303a206275726e20616d6f756e7420657863656564732062616c616e604482015261636560f01b6064820152608401610aa7565b6001600160a01b03831660008181526001602090815260408083208686039055600380548790039055518581529192917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef910160405180910390a3505050565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b6001600160a01b0383166113985760405162461bcd60e51b815260206004820152602560248201527f45524332303a207472616e736665722066726f6d20746865207a65726f206164604482015264647265737360d81b6064820152608401610aa7565b6001600160a01b0382166113fa5760405162461bcd60e51b815260206004820152602360248201527f45524332303a207472616e7366657220746f20746865207a65726f206164647260448201526265737360e81b6064820152608401610aa7565b6001600160a01b038316600090815260016020526040902054818110156114725760405162461bcd60e51b815260206004820152602660248201527f45524332303a207472616e7366657220616d6f756e7420657863656564732062604482015265616c616e636560d01b6064820152608401610aa7565b6001600160a01b0380851660008181526001602052604080822086860390559286168082529083902080548601905591517fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef906114d29086815260200190565b60405180910390a3610794565b6040805160028082526060820183526000926020830190803683370190505090503081600081518110611514576115146119cb565b60200260200101906001600160a01b031690816001600160a01b0316815250507f0000000000000000000000007a250d5630b4cf539739df2c5dacb4c659f2488d6001600160a01b031663ad5c46486040518163ffffffff1660e01b8152600401602060405180830381865afa158015611592573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906115b691906119e1565b816001815181106115c9576115c96119cb565b60200260200101906001600160a01b031690816001600160a01b031681525050611614307f0000000000000000000000007a250d5630b4cf539739df2c5dacb4c659f2488d84610c1b565b60405163791ac94760e01b81526001600160a01b037f0000000000000000000000007a250d5630b4cf539739df2c5dacb4c659f2488d169063791ac947906116699085906000908690309042906004016119fe565b600060405180830381600087803b15801561168357600080fd5b505af1158015611697573d6000803e3d6000fd5b505050505050565b600080600954116116b15760006116cd565b600954600a546116c3906127106119a1565b6116cd919061197f565b905060006127106116de83856119a1565b6116e8919061197f565b905060006116f682856119b8565b600b549091506117149061010090046001600160a01b031683611726565b600854610794906001600160a01b0316825b8015611779576000826001600160a01b03168260405160006040518083038185875af1925050503d8060008114611697576040519150601f19603f3d011682016040523d82523d6000602084013e611697565b5050565b600060208083528351808285015260005b818110156117aa5785810183015185820160400152820161178e565b506000604082860101526040601f19601f8301168501019250505092915050565b6001600160a01b0381168114610b9a57600080fd5b600080604083850312156117f357600080fd5b82356117fe816117cb565b946020939093013593505050565b60006020828403121561181e57600080fd5b8135611829816117cb565b9392505050565b60008060006060848603121561184557600080fd5b8335611850816117cb565b92506020840135611860816117cb565b929592945050506040919091013590565b6000806040838503121561188457600080fd5b50508035926020909101359150565b6000602082840312156118a557600080fd5b5035919050565b600080604083850312156118bf57600080fd5b82356118ca816117cb565b915060208301356118da816117cb565b809150509250929050565b600181811c908216806118f957607f821691505b60208210810361191957634e487b7160e01b600052602260045260246000fd5b50919050565b634e487b7160e01b600052601160045260246000fd5b808201808211156106275761062761191f565b60008060006060848603121561195d57600080fd5b8351611968816117cb565b602085015160409095015190969495509392505050565b60008261199c57634e487b7160e01b600052601260045260246000fd5b500490565b80820281158282048414176106275761062761191f565b818103818111156106275761062761191f565b634e487b7160e01b600052603260045260246000fd5b6000602082840312156119f357600080fd5b8151611829816117cb565b600060a082018783526020878185015260a0604085015281875180845260c086019150828901935060005b81811015611a4e5784516001600160a01b031683529383019391830191600101611a29565b50506001600160a01b0396909616606085015250505060800152939250505056fea2646970667358221220030e44efd0b9e6cbec983156ae71bebd719f2321aee10b8e2b2e284f529eb88c64736f6c63430008110033

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

00000000000000000000000056ac827b9795fc218d79a24258f60a800f976078

-----Decoded View---------------
Arg [0] : _owner (address): 0x56aC827B9795fC218D79a24258f60A800F976078

-----Encoded View---------------
1 Constructor Arguments found :
Arg [0] : 00000000000000000000000056ac827b9795fc218d79a24258f60a800f976078


Block Transaction Difficulty Gas Used Reward
View All Blocks Produced

Block Uncle Number Difficulty Gas Used Reward
View All Uncles
Loading...
Loading
Loading...
Loading

Validator Index Block Amount
View All Withdrawals

Transaction Hash Block Value Eth2 PubKey Valid
View All Deposits
Loading...
Loading
[ Download: CSV Export  ]
[ Download: CSV Export  ]

A contract address hosts a smart contract, which is a set of code stored on the blockchain that runs when predetermined conditions are met. Learn more about addresses in our Knowledge Base.