ETH Price: $3,800.41 (+0.89%)
Gas: 6 Gwei

Contract

0xdFa1A58780ef2208Cb55A1a77EcEE05E7a295397
 

Overview

ETH Balance

0 ETH

Eth Value

$0.00

Multichain Info

No addresses found
Transaction Hash
Method
Block
From
To
Value
Approve199213292024-05-21 22:41:112 days ago1716331271IN
0xdFa1A587...E7a295397
0 ETH0.000463699.94798318
Approve198670162024-05-14 8:19:359 days ago1715674775IN
0xdFa1A587...E7a295397
0 ETH0.000143095.88181271
Transfer198356812024-05-09 23:11:3514 days ago1715296295IN
0xdFa1A587...E7a295397
0 ETH0.000207433.66311487
Approve196388032024-04-12 10:02:2341 days ago1712916143IN
0xdFa1A587...E7a295397
0 ETH0.0010106521.68226156
Transfer196387912024-04-12 9:59:5941 days ago1712915999IN
0xdFa1A587...E7a295397
0 ETH0.0016144733.00643925
Approve195735032024-04-03 6:36:2350 days ago1712126183IN
0xdFa1A587...E7a295397
0 ETH0.0005984524.59940454
Approve195539972024-03-31 12:53:1153 days ago1711889591IN
0xdFa1A587...E7a295397
0 ETH0.0004566618.81750904
Transfer194039222024-03-10 9:52:5974 days ago1710064379IN
0xdFa1A587...E7a295397
0 ETH0.0029269351.68699439
Transfer193708242024-03-05 18:41:4779 days ago1709664107IN
0xdFa1A587...E7a295397
0 ETH0.00614539108.52213553
Approve193206022024-02-27 18:13:3586 days ago1709057615IN
0xdFa1A587...E7a295397
0 ETH0.002817560.52389727
Transfer193192152024-02-27 13:33:4786 days ago1709040827IN
0xdFa1A587...E7a295397
0 ETH0.0031167550.73838533
Approve192753512024-02-21 10:10:4792 days ago1708510247IN
0xdFa1A587...E7a295397
0 ETH0.0026065755.99265711
Approve192678862024-02-20 8:59:1193 days ago1708419551IN
0xdFa1A587...E7a295397
0 ETH0.0008474334.83368123
Approve192618312024-02-19 12:38:4794 days ago1708346327IN
0xdFa1A587...E7a295397
0 ETH0.0010083537.8
Approve192491042024-02-17 17:37:1196 days ago1708191431IN
0xdFa1A587...E7a295397
0 ETH0.0011026423.85847811
Approve192461232024-02-17 7:33:1196 days ago1708155191IN
0xdFa1A587...E7a295397
0 ETH0.0004832116.58923709
Approve192454502024-02-17 5:17:1196 days ago1708147031IN
0xdFa1A587...E7a295397
0 ETH0.0007074715.17786181
Approve192443452024-02-17 1:33:3597 days ago1708133615IN
0xdFa1A587...E7a295397
0 ETH0.0008088417.35266714
Approve192365572024-02-15 23:19:3598 days ago1708039175IN
0xdFa1A587...E7a295397
0 ETH0.001858939.88032168
Approve192365452024-02-15 23:16:5998 days ago1708039019IN
0xdFa1A587...E7a295397
0 ETH0.0017947138.50332683
Approve192365442024-02-15 23:16:4798 days ago1708039007IN
0xdFa1A587...E7a295397
0 ETH0.0017883738.36735614
Approve192357052024-02-15 20:26:3598 days ago1708028795IN
0xdFa1A587...E7a295397
0 ETH0.0021018245.15
Approve192343152024-02-15 15:46:4798 days ago1708012007IN
0xdFa1A587...E7a295397
0 ETH0.0028250361
Approve192342322024-02-15 15:30:1198 days ago1708011011IN
0xdFa1A587...E7a295397
0 ETH0.002632456.47493592
Approve192306122024-02-15 3:20:1199 days ago1707967211IN
0xdFa1A587...E7a295397
0 ETH0.0009052119.42018102
View all transactions

Latest 25 internal transactions (View All)

Advanced mode:
Parent Transaction Hash Block From To Value
192154672024-02-13 0:17:59101 days ago1707783479
0xdFa1A587...E7a295397
0.01177269 ETH
192154672024-02-13 0:17:59101 days ago1707783479
0xdFa1A587...E7a295397
0.01177269 ETH
192154672024-02-13 0:17:59101 days ago1707783479
0xdFa1A587...E7a295397
0.02354538 ETH
192154002024-02-13 0:04:35101 days ago1707782675
0xdFa1A587...E7a295397
0.00530757 ETH
192154002024-02-13 0:04:35101 days ago1707782675
0xdFa1A587...E7a295397
0.00530757 ETH
192154002024-02-13 0:04:35101 days ago1707782675
0xdFa1A587...E7a295397
0.01061514 ETH
192153952024-02-13 0:03:35101 days ago1707782615
0xdFa1A587...E7a295397
0.00048036 ETH
192153952024-02-13 0:03:35101 days ago1707782615
0xdFa1A587...E7a295397
0.00048036 ETH
192153952024-02-13 0:03:35101 days ago1707782615
0xdFa1A587...E7a295397
0.00096072 ETH
192153942024-02-13 0:03:23101 days ago1707782603
0xdFa1A587...E7a295397
0.00068802 ETH
192153942024-02-13 0:03:23101 days ago1707782603
0xdFa1A587...E7a295397
0.00068802 ETH
192153942024-02-13 0:03:23101 days ago1707782603
0xdFa1A587...E7a295397
0.00137605 ETH
192153692024-02-12 23:58:23101 days ago1707782303
0xdFa1A587...E7a295397
0.00310446 ETH
192153692024-02-12 23:58:23101 days ago1707782303
0xdFa1A587...E7a295397
0.00310446 ETH
192153692024-02-12 23:58:23101 days ago1707782303
0xdFa1A587...E7a295397
0.00620893 ETH
192153562024-02-12 23:55:47101 days ago1707782147
0xdFa1A587...E7a295397
0.00303312 ETH
192153562024-02-12 23:55:47101 days ago1707782147
0xdFa1A587...E7a295397
0.00303312 ETH
192153562024-02-12 23:55:47101 days ago1707782147
0xdFa1A587...E7a295397
0.00606624 ETH
192153412024-02-12 23:52:35101 days ago1707781955
0xdFa1A587...E7a295397
0.00064787 ETH
192153412024-02-12 23:52:35101 days ago1707781955
0xdFa1A587...E7a295397
0.00064787 ETH
192153412024-02-12 23:52:35101 days ago1707781955
0xdFa1A587...E7a295397
0.00129574 ETH
192153362024-02-12 23:51:35101 days ago1707781895
0xdFa1A587...E7a295397
0.00502936 ETH
192153362024-02-12 23:51:35101 days ago1707781895
0xdFa1A587...E7a295397
0.00502936 ETH
192153362024-02-12 23:51:35101 days ago1707781895
0xdFa1A587...E7a295397
0.01005872 ETH
192153292024-02-12 23:50:11101 days ago1707781811
0xdFa1A587...E7a295397
0.02506669 ETH
View All Internal Transactions
Loading...
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
ChainPaint741

Compiler Version
v0.8.23+commit.f704f362

Optimization Enabled:
Yes with 200 runs

Other Settings:
paris EvmVersion
File 1 of 9 : ChainPaint741.sol
//ChainPaint is a gamified art project fully hosted on-chain, where participants use ERC20 $PXL tokens to collectively paint a live ERC721 canvas to create a unique piece of bitmap art - saved permanently to the blockchain.

//TG: t.me/ChainPaint
//X: twitter.com/ChainPaint

// SPDX-License-Identifier: MIT
pragma solidity ^0.8.23;

import "./IUniswapV2Router02.sol";
import "./IUniswapV2Factory.sol";
import "./PoolCreatableErc741.sol";
import "../lib/Ownable.sol";

contract ChainPaint741 is PoolCreatableErc741, Ownable {
    uint256 constant _startTotalSupply = 100000 * (10 ** _decimals);
    uint256 constant _startMaxBuyCount = (_startTotalSupply * 5) / 10000;
    uint256 constant _addMaxBuyPercentPerSec = 1; // 100%=_addMaxBuyPrecesion add 0.005%/second
    uint256 constant _addMaxBuyPrecesion = 10000;
    uint256 _taxBuy = 250;
    uint256 _taxSell = 250;
    uint256 constant _taxPrecesion = 1000;
    uint256 constant _transferZeroTaxSeconds = 1000; // zero tax transfer time
    address _deployer;
    address immutable _withdrawer;
    address public immutable rewardPool;
    uint256 public devShare = 50;
    uint256 public devSharePrecision = 100;
    uint256 public devShareMax = 50;

    constructor(
        address rewardPool_,
        address routerAddress
    ) PoolCreatableErc741("ChainPaint", "PXL", routerAddress) {
        _deployer = msg.sender;
        _withdrawer = msg.sender;
        rewardPool = rewardPool_;
    }

    modifier maxBuyLimit(uint256 amount) {
        require(amount <= maxBuy(), "max buy limit");
        _;
    }

    receive() external payable {
        uint256 devFee = (msg.value * devShare) / devSharePrecision;
        bool sent;
        if (devFee > 0) {
            (sent, ) = payable(_withdrawer).call{value: devFee}("");
            require(sent, "sent fee error: dev ether is not sent");
        }
        (sent, ) = payable(rewardPool).call{value: msg.value - devFee}("");
        require(sent, "sent fee error: rewardPool ether is not sent");
    }

    function setTax(uint256 taxBuy, uint256 taxSell) external onlyOwner {
        require(taxBuy < 250);
        require(taxSell < 250);
        _taxBuy = taxBuy;
        _taxSell = taxSell;
    }

    function setDevShare(uint256 newDevShare) external onlyOwner {
        require(newDevShare <= devShareMax);
        devShare = newDevShare;
    }

    function createPairCount() internal pure override returns (uint256) {
        return _startTotalSupply;
    }

    function maxBuy() public view returns (uint256) {
        if (!isStarted()) return _startTotalSupply;
        uint256 count = _startMaxBuyCount +
            (_startTotalSupply *
                (block.timestamp - _startTime) *
                _addMaxBuyPercentPerSec) /
            _addMaxBuyPrecesion;
        if (count > _startTotalSupply) count = _startTotalSupply;
        return count;
    }

    function transferTax() public view returns (uint256) {
        if (!isStarted()) return 0;
        uint256 deltaTime = block.timestamp - _startTime;
        if (deltaTime >= _transferZeroTaxSeconds) return 0;
        return
            (_taxPrecesion * (_transferZeroTaxSeconds - deltaTime)) /
            _transferZeroTaxSeconds;
    }

    function _transfer(
        address from,
        address to,
        uint256 amount
    ) internal override {
        // allow burning
        if (to == address(0)) {
            _burn(from, amount);
            return;
        }

        // system transfers
        if (
            from == address(0) ||
            from == address(this) ||
            from == _deployer ||
            to == _deployer
        ) {
            super._transfer(from, to, amount);
            return;
        }

        // transfers with fee
        if (_feeLocked) {
            super._transfer(from, to, amount);
            return;
        } else {
            if (from == _pair) {
                buy(to, amount);
                return;
            } else if (to == _pair) {
                sell(from, amount);
                return;
            } else transferFithFee(from, to, amount);
        }
    }

    function buy(
        address to,
        uint256 amount
    ) private maxBuyLimit(amount) lockFee {
        uint256 tax = (amount * _taxBuy) / _taxPrecesion;
        if (tax > 0) super._transfer(_pair, address(this), tax);
        super._transfer(_pair, to, amount - tax);
    }

    function sell(address from, uint256 amount) private lockFee {
        _sellTokens();
        uint256 tax = (amount * _taxBuy) / _taxPrecesion;
        if (tax > 0) super._transfer(from, address(this), tax);
        super._transfer(from, _pair, amount - tax);
    }

    function _sellTokens() private {
        uint256 sellCount = balanceOf(address(this));
        uint256 maxSwapCount = sellCount * 2;
        if (sellCount > maxSwapCount) sellCount = maxSwapCount;
        _sellTokens(sellCount, address(this));
    }

    function transferFithFee(
        address from,
        address to,
        uint256 amount
    ) private lockFee {
        uint256 tax = (amount * transferTax()) / _taxPrecesion;
        if (tax > 0) _burn(from, tax);
        super._transfer(from, to, amount - tax);
    }

    function burnCount() public view returns (uint256) {
        return _startTotalSupply - totalSupply();
    }
}

File 2 of 9 : 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 3 of 9 : IERC20.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.9.0) (token/ERC20/IERC20.sol)

pragma solidity ^0.8.0;

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

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

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

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

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

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

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

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

File 4 of 9 : 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 5 of 9 : Ownable.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.23;

contract Ownable {
    address _owner;

    event RenounceOwnership();

    constructor() {
        _owner = msg.sender;
    }

    modifier onlyOwner() {
        require(_owner == msg.sender, "only owner");
        _;
    }

    function owner() external view virtual returns (address) {
        return _owner;
    }

    function ownerRenounce() public onlyOwner {
        _owner = address(0);
        emit RenounceOwnership();
    }

    function transferOwnership(address newOwner) external onlyOwner {
        _owner = newOwner;
    }
}

File 7 of 9 : ERC741.sol
pragma solidity ^0.8.23;

import "@openzeppelin/contracts/token/ERC20/IERC20.sol";
import "@openzeppelin/contracts/token/ERC20/extensions/IERC20Metadata.sol";
import "@openzeppelin/contracts/utils/Context.sol";

contract ERC741 is Context, IERC20, IERC20Metadata {
    mapping(address => uint256) internal _balances;

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

    uint256 internal _totalSupply;
    uint8 internal constant _decimals = 9;

    string private _name;
    string private _symbol;

    /**
     * @dev Sets the values for {name} and {symbol}.
     *
     * All two of these values are immutable: they can only be set once during
     * construction.
     */
    constructor(string memory name_, string memory symbol_) {
        _name = name_;
        _symbol = symbol_;
    }

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

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

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

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

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

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

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

    /**
     * @dev Erases `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");

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

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

File 8 of 9 : IUniswapV2Factory.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.23;

interface IUniswapV2Factory {
    function createPair(address tokenA, address tokenB)
        external
        returns (address pair);
}

File 9 of 9 : IUniswapV2Router02.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.23;

interface IUniswapV2Router02 {
    function swapExactTokensForETH(
        uint256 amountIn,
        uint256 amountOutMin,
        address[] calldata path,
        address to,
        uint256 deadline
    ) external;

    function swapExactTokensForETHSupportingFeeOnTransferTokens(
        uint256 amountIn,
        uint256 amountOutMin,
        address[] calldata path,
        address to,
        uint256 deadline
    ) external;

    function swapETHForExactTokens(
        uint256 amountOut,
        address[] calldata path,
        address to,
        uint256 deadline
    ) external payable returns (uint256[] memory amounts);

    function factory() external pure returns (address);

    function WETH() external pure returns (address);

    function addLiquidityETH(
        address token,
        uint256 amountTokenDesired,
        uint256 amountTokenMin,
        uint256 amountETHMin,
        address to,
        uint256 deadline
    )
        external
        payable
        returns (uint256 amountToken, uint256 amountETH, uint256 liquidity);

    function swapExactETHForTokens(
        uint amountOutMin,
        address[] calldata path,
        address to,
        uint deadline
    ) external payable returns (uint[] memory amounts);

    function getReserves(
        address factory,
        address tokenA,
        address tokenB
    ) external view returns (uint reserveA, uint reserveB);

    function getAmountsIn(
        uint amountOut,
        address[] memory path
    ) external view returns (uint[] memory amounts);

    function getAmountsOut(
        uint amountIn,
        address[] memory path
    ) external view returns (uint[] memory amounts);
}

File 10 of 9 : PoolCreatableErc741.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.23;

import "./ERC741.sol";
import "./IUniswapV2Router02.sol";
import "./IUniswapV2Factory.sol";
import "../lib/Ownable.sol";

abstract contract PoolCreatableErc741 is ERC741 {
    IUniswapV2Router02 immutable uniswapV2Router;
    address internal _pair;
    uint256 internal _startTime;
    bool internal _feeLocked;

    constructor(
        string memory name_,
        string memory symbol_,
        address routerAddress
    ) ERC741(name_, symbol_) {
        uniswapV2Router = IUniswapV2Router02(routerAddress);
    }

    modifier lockFee() {
        _feeLocked = true;
        _;
        _feeLocked = false;
    }

    function createPair() external payable {
        _pair = IUniswapV2Factory(uniswapV2Router.factory()).createPair(
            address(this),
            uniswapV2Router.WETH()
        );
        _mint(address(this), createPairCount());
        _approve(address(this), address(uniswapV2Router), type(uint256).max);
        uniswapV2Router.addLiquidityETH{value: msg.value}(
            address(this),
            createPairCount(),
            0,
            0,
            msg.sender,
            block.timestamp
        );
        _startTime = block.timestamp;
    }

    function isStarted() internal view returns (bool) {
        return _pair != address(0);
    }

    function createPairCount() internal pure virtual returns (uint256);

    function _sellTokens(uint256 tokenAmount, address to) internal lockFee {
        if (tokenAmount == 0) return;
        address[] memory path = new address[](2);
        path[0] = address(this);
        path[1] = uniswapV2Router.WETH();

        // make the swap
        uniswapV2Router.swapExactTokensForETH(
            tokenAmount,
            0, // accept any amount of ETH
            path,
            to,
            block.timestamp
        );
    }
}

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

Contract Security Audit

Contract ABI

[{"inputs":[{"internalType":"address","name":"rewardPool_","type":"address"},{"internalType":"address","name":"routerAddress","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":[],"name":"RenounceOwnership","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":[],"name":"burnCount","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"createPair","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"decimals","outputs":[{"internalType":"uint8","name":"","type":"uint8"}],"stateMutability":"pure","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":"devShare","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"devShareMax","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"devSharePrecision","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"addedValue","type":"uint256"}],"name":"increaseAllowance","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"maxBuy","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"ownerRenounce","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"rewardPool","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"newDevShare","type":"uint256"}],"name":"setDevShare","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"taxBuy","type":"uint256"},{"internalType":"uint256","name":"taxSell","type":"uint256"}],"name":"setTax","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"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":"transferTax","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"stateMutability":"payable","type":"receive"}]

60e060405260fa60085560fa6009556032600b556064600c556032600d553480156200002a57600080fd5b5060405162001dea38038062001dea8339810160408190526200004d916200011f565b6040518060400160405280600a81526020016910da185a5b94185a5b9d60b21b8152506040518060400160405280600381526020016214161360ea1b8152508282828160039081620000a09190620001fe565b506004620000af8282620001fe565b5050506001600160a01b0390811660805260078054610100600160a81b03191633610100810291909117909155600a80546001600160a01b0319168217905560a0529390931660c05250620002ca915050565b80516001600160a01b03811681146200011a57600080fd5b919050565b600080604083850312156200013357600080fd5b6200013e8362000102565b91506200014e6020840162000102565b90509250929050565b634e487b7160e01b600052604160045260246000fd5b600181811c908216806200018257607f821691505b602082108103620001a357634e487b7160e01b600052602260045260246000fd5b50919050565b601f821115620001f9576000816000526020600020601f850160051c81016020861015620001d45750805b601f850160051c820191505b81811015620001f557828155600101620001e0565b5050505b505050565b81516001600160401b038111156200021a576200021a62000157565b62000232816200022b84546200016d565b84620001a9565b602080601f8311600181146200026a5760008415620002515750858301515b600019600386901b1c1916600185901b178555620001f5565b600085815260208120601f198616915b828110156200029b578886015182559484019460019091019084016200027a565b5085821015620002ba5787850151600019600388901b60f8161c191681555b5050505050600190811b01905550565b60805160a05160c051611ac66200032460003960008181610259015261047b015260006101880152600081816109c201528181610a5301528181610b7b01528181610ba40152818161155001526116080152611ac66000f3fe60806040526004361061014f5760003560e01c806370a08231116100b65780639e78fb4f1161006f5780639e78fb4f14610583578063a457c2d71461058b578063a9059cbb146105ab578063aed04fae146105cb578063dd62ed3e146105e1578063f2fde38b1461060157600080fd5b806370a08231146104d557806370db69d61461050b5780638124f7ac1461052057806383beea4b146105355780638da5cb5b1461054b57806395d89b411461056e57600080fd5b8063333a007211610108578063333a007214610409578063395093511461041e5780633d0463101461043e578063524773ce1461045457806366666aa914610469578063667f6526146104b557600080fd5b806303c0fa011461033357806306fdde0314610353578063095ea7b31461037e57806318160ddd146103ae57806323b872dd146103cd578063313ce567146103ed57600080fd5b3661032e576000600c54600b543461016791906116a0565b61017191906116b7565b90506000811561024f576040516001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016908390600081818185875af1925050503d80600081146101e4576040519150601f19603f3d011682016040523d82523d6000602084013e6101e9565b606091505b5050809150508061024f5760405162461bcd60e51b815260206004820152602560248201527f73656e7420666565206572726f723a20646576206574686572206973206e6f74604482015264081cd95b9d60da1b60648201526084015b60405180910390fd5b6001600160a01b037f00000000000000000000000000000000000000000000000000000000000000001661028383346116d9565b604051600081818185875af1925050503d80600081146102bf576040519150601f19603f3d011682016040523d82523d6000602084013e6102c4565b606091505b5050809150508061032c5760405162461bcd60e51b815260206004820152602c60248201527f73656e7420666565206572726f723a20726577617264506f6f6c20657468657260448201526b081a5cc81b9bdd081cd95b9d60a21b6064820152608401610246565b005b600080fd5b34801561033f57600080fd5b5061032c61034e3660046116ec565b610621565b34801561035f57600080fd5b50610368610664565b6040516103759190611705565b60405180910390f35b34801561038a57600080fd5b5061039e61039936600461176c565b6106f6565b6040519015158152602001610375565b3480156103ba57600080fd5b506002545b604051908152602001610375565b3480156103d957600080fd5b5061039e6103e8366004611798565b610710565b3480156103f957600080fd5b5060405160098152602001610375565b34801561041557600080fd5b5061032c610734565b34801561042a57600080fd5b5061039e61043936600461176c565b61079f565b34801561044a57600080fd5b506103bf600c5481565b34801561046057600080fd5b506103bf6107c1565b34801561047557600080fd5b5061049d7f000000000000000000000000000000000000000000000000000000000000000081565b6040516001600160a01b039091168152602001610375565b3480156104c157600080fd5b5061032c6104d03660046117d9565b6107f4565b3480156104e157600080fd5b506103bf6104f03660046117fb565b6001600160a01b031660009081526020819052604090205490565b34801561051757600080fd5b506103bf610848565b34801561052c57600080fd5b506103bf610945565b34801561054157600080fd5b506103bf600d5481565b34801561055757600080fd5b5060075461010090046001600160a01b031661049d565b34801561057a57600080fd5b506103686109b1565b61032c6109c0565b34801561059757600080fd5b5061039e6105a636600461176c565b610c6d565b3480156105b757600080fd5b5061039e6105c636600461176c565b610ce8565b3480156105d757600080fd5b506103bf600b5481565b3480156105ed57600080fd5b506103bf6105fc36600461181f565b610cf6565b34801561060d57600080fd5b5061032c61061c3660046117fb565b610d21565b60075461010090046001600160a01b031633146106505760405162461bcd60e51b815260040161024690611858565b600d5481111561065f57600080fd5b600b55565b6060600380546106739061187c565b80601f016020809104026020016040519081016040528092919081815260200182805461069f9061187c565b80156106ec5780601f106106c1576101008083540402835291602001916106ec565b820191906000526020600020905b8154815290600101906020018083116106cf57829003601f168201915b5050505050905090565b600033610704818585610d78565b60019150505b92915050565b60003361071e858285610e9d565b610729858585610f17565b506001949350505050565b60075461010090046001600160a01b031633146107635760405162461bcd60e51b815260040161024690611858565b60078054610100600160a81b03191690556040517f6e4ee811a17215345b89e3506064ff2d62f4feedff3566e9d09219cda7e8cadb90600090a1565b6000336107048185856107b28383610cf6565b6107bc91906118b6565b610d78565b60006107cc60025490565b6107d86009600a6119ad565b6107e590620186a06116a0565b6107ef91906116d9565b905090565b60075461010090046001600160a01b031633146108235760405162461bcd60e51b815260040161024690611858565b60fa821061083057600080fd5b60fa811061083d57600080fd5b600891909155600955565b600061085e6005546001600160a01b0316151590565b61087b5761086e6009600a6119ad565b6107ef90620186a06116a0565b600061271060016006544261089091906116d9565b61089c6009600a6119ad565b6108a990620186a06116a0565b6108b391906116a0565b6108bd91906116a0565b6108c791906116b7565b6127106108d66009600a6119ad565b6108e390620186a06116a0565b6108ee9060056116a0565b6108f891906116b7565b61090291906118b6565b90506109106009600a6119ad565b61091d90620186a06116a0565b811115610940576109306009600a6119ad565b61093d90620186a06116a0565b90505b919050565b600061095b6005546001600160a01b0316151590565b6109655750600090565b60006006544261097591906116d9565b90506103e8811061098857600091505090565b6103e861099582826116d9565b6109a1906103e86116a0565b6109ab91906116b7565b91505090565b6060600480546106739061187c565b7f00000000000000000000000000000000000000000000000000000000000000006001600160a01b031663c45a01556040518163ffffffff1660e01b8152600401602060405180830381865afa158015610a1e573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610a4291906119bc565b6001600160a01b031663c9c65396307f00000000000000000000000000000000000000000000000000000000000000006001600160a01b031663ad5c46486040518163ffffffff1660e01b8152600401602060405180830381865afa158015610aaf573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610ad391906119bc565b6040516001600160e01b031960e085901b1681526001600160a01b039283166004820152911660248201526044016020604051808303816000875af1158015610b20573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610b4491906119bc565b600580546001600160a01b0319166001600160a01b0392909216919091179055610b7530610b70610ff3565b611001565b610ba2307f0000000000000000000000000000000000000000000000000000000000000000600019610d78565b7f00000000000000000000000000000000000000000000000000000000000000006001600160a01b031663f305d7193430610bdb610ff3565b6040516001600160e01b031960e086901b1681526001600160a01b039092166004830152602482015260006044820181905260648201523360848201524260a482015260c40160606040518083038185885af1158015610c3f573d6000803e3d6000fd5b50505050506040513d601f19601f82011682018060405250810190610c6491906119d9565b50504260065550565b60003381610c7b8286610cf6565b905083811015610cdb5760405162461bcd60e51b815260206004820152602560248201527f45524332303a2064656372656173656420616c6c6f77616e63652062656c6f77604482015264207a65726f60d81b6064820152608401610246565b6107298286868403610d78565b600033610704818585610f17565b6001600160a01b03918216600090815260016020908152604080832093909416825291909152205490565b60075461010090046001600160a01b03163314610d505760405162461bcd60e51b815260040161024690611858565b600780546001600160a01b0390921661010002610100600160a81b0319909216919091179055565b6001600160a01b038316610dda5760405162461bcd60e51b8152602060048201526024808201527f45524332303a20617070726f76652066726f6d20746865207a65726f206164646044820152637265737360e01b6064820152608401610246565b6001600160a01b038216610e3b5760405162461bcd60e51b815260206004820152602260248201527f45524332303a20617070726f766520746f20746865207a65726f206164647265604482015261737360f01b6064820152608401610246565b6001600160a01b0383811660008181526001602090815260408083209487168084529482529182902085905590518481527f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92591015b60405180910390a3505050565b6000610ea98484610cf6565b90506000198114610f115781811015610f045760405162461bcd60e51b815260206004820152601d60248201527f45524332303a20696e73756666696369656e7420616c6c6f77616e63650000006044820152606401610246565b610f118484848403610d78565b50505050565b6001600160a01b038216610f3457610f2f83826110c0565b505050565b6001600160a01b0383161580610f5257506001600160a01b03831630145b80610f6a5750600a546001600160a01b038481169116145b80610f825750600a546001600160a01b038381169116145b15610f9257610f2f8383836111ea565b60075460ff1615610fa857610f2f8383836111ea565b6005546001600160a01b0390811690841603610fc857610f2f828261132d565b6005546001600160a01b0390811690831603610fe857610f2f83826113ef565b610f2f83838361145f565b600061086e6009600a6119ad565b6001600160a01b0382166110575760405162461bcd60e51b815260206004820152601f60248201527f45524332303a206d696e7420746f20746865207a65726f2061646472657373006044820152606401610246565b806002600082825461106991906118b6565b90915550506001600160a01b038216600081815260208181526040808320805486019055518481527fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef910160405180910390a35050565b6001600160a01b0382166111205760405162461bcd60e51b815260206004820152602160248201527f45524332303a206275726e2066726f6d20746865207a65726f206164647265736044820152607360f81b6064820152608401610246565b6001600160a01b038216600090815260208190526040902054818110156111945760405162461bcd60e51b815260206004820152602260248201527f45524332303a206275726e20616d6f756e7420657863656564732062616c616e604482015261636560f01b6064820152608401610246565b6001600160a01b0383166000818152602081815260408083208686039055600280548790039055518581529192917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9101610e90565b6001600160a01b03831661124e5760405162461bcd60e51b815260206004820152602560248201527f45524332303a207472616e736665722066726f6d20746865207a65726f206164604482015264647265737360d81b6064820152608401610246565b6001600160a01b038316600090815260208190526040902054818110156112c65760405162461bcd60e51b815260206004820152602660248201527f45524332303a207472616e7366657220616d6f756e7420657863656564732062604482015265616c616e636560d01b6064820152608401610246565b6001600160a01b03848116600081815260208181526040808320878703905593871680835291849020805487019055925185815290927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef910160405180910390a350505050565b80611336610848565b8111156113755760405162461bcd60e51b815260206004820152600d60248201526c1b585e08189d5e481b1a5b5a5d609a1b6044820152606401610246565b6007805460ff191660011790556008546000906103e89061139690856116a0565b6113a091906116b7565b905080156113bf576005546113bf906001600160a01b031630836111ea565b6005546113df906001600160a01b0316856113da84876116d9565b6111ea565b50506007805460ff191690555050565b6007805460ff191660011790556114046114ae565b60006103e86008548361141791906116a0565b61142191906116b7565b90508015611434576114348330836111ea565b6005546114509084906001600160a01b03166113da84866116d9565b50506007805460ff1916905550565b6007805460ff1916600117905560006103e8611479610945565b61148390846116a0565b61148d91906116b7565b9050801561149f5761149f84826110c0565b6113df84846113da84866116d9565b30600090815260208190526040812054906114ca8260026116a0565b9050808211156114d8578091505b6114e282306114e6565b5050565b6007805460ff19166001179055811561167c57604080516002808252606082018352600092602083019080368337019050509050308160008151811061152e5761152e611a07565b60200260200101906001600160a01b031690816001600160a01b0316815250507f00000000000000000000000000000000000000000000000000000000000000006001600160a01b031663ad5c46486040518163ffffffff1660e01b8152600401602060405180830381865afa1580156115ac573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906115d091906119bc565b816001815181106115e3576115e3611a07565b6001600160a01b0392831660209182029290920101526040516318cbafe560e01b81527f0000000000000000000000000000000000000000000000000000000000000000909116906318cbafe590611648908690600090869088904290600401611a1d565b600060405180830381600087803b15801561166257600080fd5b505af1158015611676573d6000803e3d6000fd5b50505050505b50506007805460ff19169055565b634e487b7160e01b600052601160045260246000fd5b808202811582820484141761070a5761070a61168a565b6000826116d457634e487b7160e01b600052601260045260246000fd5b500490565b8181038181111561070a5761070a61168a565b6000602082840312156116fe57600080fd5b5035919050565b60006020808352835180602085015260005b8181101561173357858101830151858201604001528201611717565b506000604082860101526040601f19601f8301168501019250505092915050565b6001600160a01b038116811461176957600080fd5b50565b6000806040838503121561177f57600080fd5b823561178a81611754565b946020939093013593505050565b6000806000606084860312156117ad57600080fd5b83356117b881611754565b925060208401356117c881611754565b929592945050506040919091013590565b600080604083850312156117ec57600080fd5b50508035926020909101359150565b60006020828403121561180d57600080fd5b813561181881611754565b9392505050565b6000806040838503121561183257600080fd5b823561183d81611754565b9150602083013561184d81611754565b809150509250929050565b6020808252600a908201526937b7363c9037bbb732b960b11b604082015260600190565b600181811c9082168061189057607f821691505b6020821081036118b057634e487b7160e01b600052602260045260246000fd5b50919050565b8082018082111561070a5761070a61168a565b600181815b808511156119045781600019048211156118ea576118ea61168a565b808516156118f757918102915b93841c93908002906118ce565b509250929050565b60008261191b5750600161070a565b816119285750600061070a565b816001811461193e576002811461194857611964565b600191505061070a565b60ff8411156119595761195961168a565b50506001821b61070a565b5060208310610133831016604e8410600b8410161715611987575081810a61070a565b61199183836118c9565b80600019048211156119a5576119a561168a565b029392505050565b600061181860ff84168361190c565b6000602082840312156119ce57600080fd5b815161181881611754565b6000806000606084860312156119ee57600080fd5b8351925060208401519150604084015190509250925092565b634e487b7160e01b600052603260045260246000fd5b600060a08201878352602087602085015260a0604085015281875180845260c08601915060208901935060005b81811015611a6f5784516001600160a01b031683529383019391830191600101611a4a565b50506001600160a01b0396909616606085015250505060800152939250505056fea26469706673582212206ec918c04f506d49395267847b85fc01e4cb037bd5277e3cc1590e15f60b43c164736f6c6343000817003300000000000000000000000052d69c67536f55efefe02941868e5e762538dbd60000000000000000000000007a250d5630b4cf539739df2c5dacb4c659f2488d

Deployed Bytecode

0x60806040526004361061014f5760003560e01c806370a08231116100b65780639e78fb4f1161006f5780639e78fb4f14610583578063a457c2d71461058b578063a9059cbb146105ab578063aed04fae146105cb578063dd62ed3e146105e1578063f2fde38b1461060157600080fd5b806370a08231146104d557806370db69d61461050b5780638124f7ac1461052057806383beea4b146105355780638da5cb5b1461054b57806395d89b411461056e57600080fd5b8063333a007211610108578063333a007214610409578063395093511461041e5780633d0463101461043e578063524773ce1461045457806366666aa914610469578063667f6526146104b557600080fd5b806303c0fa011461033357806306fdde0314610353578063095ea7b31461037e57806318160ddd146103ae57806323b872dd146103cd578063313ce567146103ed57600080fd5b3661032e576000600c54600b543461016791906116a0565b61017191906116b7565b90506000811561024f576040516001600160a01b037f00000000000000000000000028d808550ed0a9a15bd3b9103664b8c12abfa74016908390600081818185875af1925050503d80600081146101e4576040519150601f19603f3d011682016040523d82523d6000602084013e6101e9565b606091505b5050809150508061024f5760405162461bcd60e51b815260206004820152602560248201527f73656e7420666565206572726f723a20646576206574686572206973206e6f74604482015264081cd95b9d60da1b60648201526084015b60405180910390fd5b6001600160a01b037f00000000000000000000000052d69c67536f55efefe02941868e5e762538dbd61661028383346116d9565b604051600081818185875af1925050503d80600081146102bf576040519150601f19603f3d011682016040523d82523d6000602084013e6102c4565b606091505b5050809150508061032c5760405162461bcd60e51b815260206004820152602c60248201527f73656e7420666565206572726f723a20726577617264506f6f6c20657468657260448201526b081a5cc81b9bdd081cd95b9d60a21b6064820152608401610246565b005b600080fd5b34801561033f57600080fd5b5061032c61034e3660046116ec565b610621565b34801561035f57600080fd5b50610368610664565b6040516103759190611705565b60405180910390f35b34801561038a57600080fd5b5061039e61039936600461176c565b6106f6565b6040519015158152602001610375565b3480156103ba57600080fd5b506002545b604051908152602001610375565b3480156103d957600080fd5b5061039e6103e8366004611798565b610710565b3480156103f957600080fd5b5060405160098152602001610375565b34801561041557600080fd5b5061032c610734565b34801561042a57600080fd5b5061039e61043936600461176c565b61079f565b34801561044a57600080fd5b506103bf600c5481565b34801561046057600080fd5b506103bf6107c1565b34801561047557600080fd5b5061049d7f00000000000000000000000052d69c67536f55efefe02941868e5e762538dbd681565b6040516001600160a01b039091168152602001610375565b3480156104c157600080fd5b5061032c6104d03660046117d9565b6107f4565b3480156104e157600080fd5b506103bf6104f03660046117fb565b6001600160a01b031660009081526020819052604090205490565b34801561051757600080fd5b506103bf610848565b34801561052c57600080fd5b506103bf610945565b34801561054157600080fd5b506103bf600d5481565b34801561055757600080fd5b5060075461010090046001600160a01b031661049d565b34801561057a57600080fd5b506103686109b1565b61032c6109c0565b34801561059757600080fd5b5061039e6105a636600461176c565b610c6d565b3480156105b757600080fd5b5061039e6105c636600461176c565b610ce8565b3480156105d757600080fd5b506103bf600b5481565b3480156105ed57600080fd5b506103bf6105fc36600461181f565b610cf6565b34801561060d57600080fd5b5061032c61061c3660046117fb565b610d21565b60075461010090046001600160a01b031633146106505760405162461bcd60e51b815260040161024690611858565b600d5481111561065f57600080fd5b600b55565b6060600380546106739061187c565b80601f016020809104026020016040519081016040528092919081815260200182805461069f9061187c565b80156106ec5780601f106106c1576101008083540402835291602001916106ec565b820191906000526020600020905b8154815290600101906020018083116106cf57829003601f168201915b5050505050905090565b600033610704818585610d78565b60019150505b92915050565b60003361071e858285610e9d565b610729858585610f17565b506001949350505050565b60075461010090046001600160a01b031633146107635760405162461bcd60e51b815260040161024690611858565b60078054610100600160a81b03191690556040517f6e4ee811a17215345b89e3506064ff2d62f4feedff3566e9d09219cda7e8cadb90600090a1565b6000336107048185856107b28383610cf6565b6107bc91906118b6565b610d78565b60006107cc60025490565b6107d86009600a6119ad565b6107e590620186a06116a0565b6107ef91906116d9565b905090565b60075461010090046001600160a01b031633146108235760405162461bcd60e51b815260040161024690611858565b60fa821061083057600080fd5b60fa811061083d57600080fd5b600891909155600955565b600061085e6005546001600160a01b0316151590565b61087b5761086e6009600a6119ad565b6107ef90620186a06116a0565b600061271060016006544261089091906116d9565b61089c6009600a6119ad565b6108a990620186a06116a0565b6108b391906116a0565b6108bd91906116a0565b6108c791906116b7565b6127106108d66009600a6119ad565b6108e390620186a06116a0565b6108ee9060056116a0565b6108f891906116b7565b61090291906118b6565b90506109106009600a6119ad565b61091d90620186a06116a0565b811115610940576109306009600a6119ad565b61093d90620186a06116a0565b90505b919050565b600061095b6005546001600160a01b0316151590565b6109655750600090565b60006006544261097591906116d9565b90506103e8811061098857600091505090565b6103e861099582826116d9565b6109a1906103e86116a0565b6109ab91906116b7565b91505090565b6060600480546106739061187c565b7f0000000000000000000000007a250d5630b4cf539739df2c5dacb4c659f2488d6001600160a01b031663c45a01556040518163ffffffff1660e01b8152600401602060405180830381865afa158015610a1e573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610a4291906119bc565b6001600160a01b031663c9c65396307f0000000000000000000000007a250d5630b4cf539739df2c5dacb4c659f2488d6001600160a01b031663ad5c46486040518163ffffffff1660e01b8152600401602060405180830381865afa158015610aaf573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610ad391906119bc565b6040516001600160e01b031960e085901b1681526001600160a01b039283166004820152911660248201526044016020604051808303816000875af1158015610b20573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610b4491906119bc565b600580546001600160a01b0319166001600160a01b0392909216919091179055610b7530610b70610ff3565b611001565b610ba2307f0000000000000000000000007a250d5630b4cf539739df2c5dacb4c659f2488d600019610d78565b7f0000000000000000000000007a250d5630b4cf539739df2c5dacb4c659f2488d6001600160a01b031663f305d7193430610bdb610ff3565b6040516001600160e01b031960e086901b1681526001600160a01b039092166004830152602482015260006044820181905260648201523360848201524260a482015260c40160606040518083038185885af1158015610c3f573d6000803e3d6000fd5b50505050506040513d601f19601f82011682018060405250810190610c6491906119d9565b50504260065550565b60003381610c7b8286610cf6565b905083811015610cdb5760405162461bcd60e51b815260206004820152602560248201527f45524332303a2064656372656173656420616c6c6f77616e63652062656c6f77604482015264207a65726f60d81b6064820152608401610246565b6107298286868403610d78565b600033610704818585610f17565b6001600160a01b03918216600090815260016020908152604080832093909416825291909152205490565b60075461010090046001600160a01b03163314610d505760405162461bcd60e51b815260040161024690611858565b600780546001600160a01b0390921661010002610100600160a81b0319909216919091179055565b6001600160a01b038316610dda5760405162461bcd60e51b8152602060048201526024808201527f45524332303a20617070726f76652066726f6d20746865207a65726f206164646044820152637265737360e01b6064820152608401610246565b6001600160a01b038216610e3b5760405162461bcd60e51b815260206004820152602260248201527f45524332303a20617070726f766520746f20746865207a65726f206164647265604482015261737360f01b6064820152608401610246565b6001600160a01b0383811660008181526001602090815260408083209487168084529482529182902085905590518481527f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92591015b60405180910390a3505050565b6000610ea98484610cf6565b90506000198114610f115781811015610f045760405162461bcd60e51b815260206004820152601d60248201527f45524332303a20696e73756666696369656e7420616c6c6f77616e63650000006044820152606401610246565b610f118484848403610d78565b50505050565b6001600160a01b038216610f3457610f2f83826110c0565b505050565b6001600160a01b0383161580610f5257506001600160a01b03831630145b80610f6a5750600a546001600160a01b038481169116145b80610f825750600a546001600160a01b038381169116145b15610f9257610f2f8383836111ea565b60075460ff1615610fa857610f2f8383836111ea565b6005546001600160a01b0390811690841603610fc857610f2f828261132d565b6005546001600160a01b0390811690831603610fe857610f2f83826113ef565b610f2f83838361145f565b600061086e6009600a6119ad565b6001600160a01b0382166110575760405162461bcd60e51b815260206004820152601f60248201527f45524332303a206d696e7420746f20746865207a65726f2061646472657373006044820152606401610246565b806002600082825461106991906118b6565b90915550506001600160a01b038216600081815260208181526040808320805486019055518481527fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef910160405180910390a35050565b6001600160a01b0382166111205760405162461bcd60e51b815260206004820152602160248201527f45524332303a206275726e2066726f6d20746865207a65726f206164647265736044820152607360f81b6064820152608401610246565b6001600160a01b038216600090815260208190526040902054818110156111945760405162461bcd60e51b815260206004820152602260248201527f45524332303a206275726e20616d6f756e7420657863656564732062616c616e604482015261636560f01b6064820152608401610246565b6001600160a01b0383166000818152602081815260408083208686039055600280548790039055518581529192917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9101610e90565b6001600160a01b03831661124e5760405162461bcd60e51b815260206004820152602560248201527f45524332303a207472616e736665722066726f6d20746865207a65726f206164604482015264647265737360d81b6064820152608401610246565b6001600160a01b038316600090815260208190526040902054818110156112c65760405162461bcd60e51b815260206004820152602660248201527f45524332303a207472616e7366657220616d6f756e7420657863656564732062604482015265616c616e636560d01b6064820152608401610246565b6001600160a01b03848116600081815260208181526040808320878703905593871680835291849020805487019055925185815290927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef910160405180910390a350505050565b80611336610848565b8111156113755760405162461bcd60e51b815260206004820152600d60248201526c1b585e08189d5e481b1a5b5a5d609a1b6044820152606401610246565b6007805460ff191660011790556008546000906103e89061139690856116a0565b6113a091906116b7565b905080156113bf576005546113bf906001600160a01b031630836111ea565b6005546113df906001600160a01b0316856113da84876116d9565b6111ea565b50506007805460ff191690555050565b6007805460ff191660011790556114046114ae565b60006103e86008548361141791906116a0565b61142191906116b7565b90508015611434576114348330836111ea565b6005546114509084906001600160a01b03166113da84866116d9565b50506007805460ff1916905550565b6007805460ff1916600117905560006103e8611479610945565b61148390846116a0565b61148d91906116b7565b9050801561149f5761149f84826110c0565b6113df84846113da84866116d9565b30600090815260208190526040812054906114ca8260026116a0565b9050808211156114d8578091505b6114e282306114e6565b5050565b6007805460ff19166001179055811561167c57604080516002808252606082018352600092602083019080368337019050509050308160008151811061152e5761152e611a07565b60200260200101906001600160a01b031690816001600160a01b0316815250507f0000000000000000000000007a250d5630b4cf539739df2c5dacb4c659f2488d6001600160a01b031663ad5c46486040518163ffffffff1660e01b8152600401602060405180830381865afa1580156115ac573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906115d091906119bc565b816001815181106115e3576115e3611a07565b6001600160a01b0392831660209182029290920101526040516318cbafe560e01b81527f0000000000000000000000007a250d5630b4cf539739df2c5dacb4c659f2488d909116906318cbafe590611648908690600090869088904290600401611a1d565b600060405180830381600087803b15801561166257600080fd5b505af1158015611676573d6000803e3d6000fd5b50505050505b50506007805460ff19169055565b634e487b7160e01b600052601160045260246000fd5b808202811582820484141761070a5761070a61168a565b6000826116d457634e487b7160e01b600052601260045260246000fd5b500490565b8181038181111561070a5761070a61168a565b6000602082840312156116fe57600080fd5b5035919050565b60006020808352835180602085015260005b8181101561173357858101830151858201604001528201611717565b506000604082860101526040601f19601f8301168501019250505092915050565b6001600160a01b038116811461176957600080fd5b50565b6000806040838503121561177f57600080fd5b823561178a81611754565b946020939093013593505050565b6000806000606084860312156117ad57600080fd5b83356117b881611754565b925060208401356117c881611754565b929592945050506040919091013590565b600080604083850312156117ec57600080fd5b50508035926020909101359150565b60006020828403121561180d57600080fd5b813561181881611754565b9392505050565b6000806040838503121561183257600080fd5b823561183d81611754565b9150602083013561184d81611754565b809150509250929050565b6020808252600a908201526937b7363c9037bbb732b960b11b604082015260600190565b600181811c9082168061189057607f821691505b6020821081036118b057634e487b7160e01b600052602260045260246000fd5b50919050565b8082018082111561070a5761070a61168a565b600181815b808511156119045781600019048211156118ea576118ea61168a565b808516156118f757918102915b93841c93908002906118ce565b509250929050565b60008261191b5750600161070a565b816119285750600061070a565b816001811461193e576002811461194857611964565b600191505061070a565b60ff8411156119595761195961168a565b50506001821b61070a565b5060208310610133831016604e8410600b8410161715611987575081810a61070a565b61199183836118c9565b80600019048211156119a5576119a561168a565b029392505050565b600061181860ff84168361190c565b6000602082840312156119ce57600080fd5b815161181881611754565b6000806000606084860312156119ee57600080fd5b8351925060208401519150604084015190509250925092565b634e487b7160e01b600052603260045260246000fd5b600060a08201878352602087602085015260a0604085015281875180845260c08601915060208901935060005b81811015611a6f5784516001600160a01b031683529383019391830191600101611a4a565b50506001600160a01b0396909616606085015250505060800152939250505056fea26469706673582212206ec918c04f506d49395267847b85fc01e4cb037bd5277e3cc1590e15f60b43c164736f6c63430008170033

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

00000000000000000000000052d69c67536f55efefe02941868e5e762538dbd60000000000000000000000007a250d5630b4cf539739df2c5dacb4c659f2488d

-----Decoded View---------------
Arg [0] : rewardPool_ (address): 0x52d69c67536f55EfEfe02941868e5e762538dBD6
Arg [1] : routerAddress (address): 0x7a250d5630B4cF539739dF2C5dAcb4c659F2488D

-----Encoded View---------------
2 Constructor Arguments found :
Arg [0] : 00000000000000000000000052d69c67536f55efefe02941868e5e762538dbd6
Arg [1] : 0000000000000000000000007a250d5630b4cf539739df2c5dacb4c659f2488d


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.