ETH Price: $3,719.52 (+1.28%)

Contract

0xf6e06B54855eFf198a2d9A8686113665499a6134
 

More Info

Private Name Tags

TokenTracker

Celestial (Celt) (@$0.00)

Multichain Info

1 address found via
Transaction Hash
Method
Block
From
To
Approve213094442024-12-01 18:26:2320 mins ago1733077583IN
Celestial: Celt Token
0 ETH0.0009656220.83603494
Transfer213092522024-12-01 17:47:351 hrs ago1733075255IN
Celestial: Celt Token
0 ETH0.0009503217.07312335
Approve212424802024-11-22 9:49:239 days ago1732268963IN
Celestial: Celt Token
0 ETH0.0005155611.06168736
Transfer212279282024-11-20 9:02:4711 days ago1732093367IN
Celestial: Celt Token
0 ETH0.00065111.70076802
Transfer211797962024-11-13 15:54:3518 days ago1731513275IN
Celestial: Celt Token
0 ETH0.00536288.71915655
Transfer210827962024-10-31 3:00:4731 days ago1730343647IN
Celestial: Celt Token
0 ETH0.000520838.61932741
Transfer210619172024-10-28 5:02:2334 days ago1730091743IN
Celestial: Celt Token
0 ETH0.0004051210.50906419
Transfer210619072024-10-28 5:00:2334 days ago1730091623IN
Celestial: Celt Token
0 ETH0.0005883610.57254733
Transfer210617782024-10-28 4:34:2334 days ago1730090063IN
Celestial: Celt Token
0 ETH0.0004116110.67738209
Transfer210617712024-10-28 4:32:5934 days ago1730089979IN
Celestial: Celt Token
0 ETH0.0004117410.67738209
Transfer210248012024-10-23 0:48:5939 days ago1729644539IN
Celestial: Celt Token
0 ETH0.000326097.52456135
Approve210141712024-10-21 13:11:5941 days ago1729516319IN
Celestial: Celt Token
0 ETH0.0005037810.80898815
Transfer210141672024-10-21 13:11:1141 days ago1729516271IN
Celestial: Celt Token
0 ETH0.0006873611.37297952
Transfer210054522024-10-20 7:59:3542 days ago1729411175IN
Celestial: Celt Token
0 ETH0.000583599.6541014
Transfer209935892024-10-18 16:17:3544 days ago1729268255IN
Celestial: Celt Token
0 ETH0.0017056428.21577137
Transfer208663352024-09-30 22:03:1161 days ago1727733791IN
Celestial: Celt Token
0 ETH0.002783150
Transfer207843772024-09-19 11:35:2373 days ago1726745723IN
Celestial: Celt Token
0 ETH0.0009641515.94968157
Transfer207215302024-09-10 16:54:2382 days ago1725987263IN
Celestial: Celt Token
0 ETH0.00021713.89958652
Transfer206681412024-09-03 6:04:3589 days ago1725343475IN
Celestial: Celt Token
0 ETH0.000043411.12631751
Transfer205702192024-08-20 13:45:59103 days ago1724161559IN
Celestial: Celt Token
0 ETH0.000114952.06522107
Approve204959302024-08-10 4:49:59113 days ago1723265399IN
Celestial: Celt Token
0 ETH0.000042180.90517183
Approve204959202024-08-10 4:47:59113 days ago1723265279IN
Celestial: Celt Token
0 ETH0.000065141.40527758
Transfer204926092024-08-09 17:43:11114 days ago1723225391IN
Celestial: Celt Token
0 ETH0.000173924.01089646
Transfer204925992024-08-09 17:41:11114 days ago1723225271IN
Celestial: Celt Token
0 ETH0.00042387.01081302
Transfer204443812024-08-03 0:17:23120 days ago1722644243IN
Celestial: Celt Token
0 ETH0.000129692.33053838
View all transactions

View more zero value Internal Transactions in Advanced View mode

Advanced mode:
Loading...
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
Celestial

Compiler Version
v0.8.12+commit.f00d7308

Optimization Enabled:
Yes with 200 runs

Other Settings:
default evmVersion
File 1 of 9 : Celestial.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;


import '@openzeppelin/contracts/token/ERC20/extensions/ERC20Capped.sol';
import '@openzeppelin/contracts/access/Ownable.sol';
import "@openzeppelin/contracts/utils/math/SafeMath.sol";

import "./CelestialInterface.sol";

contract Celestial is CelestialInterface, ERC20Capped, Ownable {

    using SafeMath for uint256;

    string constant _name_ = "Celestial";
    string constant _symbol_ = "Celt";
    uint256 constant _cap_ = 1 * 10 ** 9 * 10 ** 18;


    mapping(address => bool) internal _blockList;
    mapping(address => bool) internal _permitList;

    constructor(
        address[] memory init_holders_,
        uint256[] memory init_percents_
    )
    ERC20Capped(_cap_)
    ERC20(_name_, _symbol_)
    Ownable(){

        require(init_holders_.length == init_percents_.length, "init length");
        uint256 totalPercent = 0;
        uint256 totalCap = 0;
        for (uint256 i = 0; i < init_holders_.length; i++) {

            uint256 toMint = _cap_.mul(init_percents_[i]).div(100);
            totalPercent = totalPercent.add(init_percents_[i]);
            totalCap = totalCap.add(toMint);
            _mint(init_holders_[i], toMint);
        }
        require(totalPercent == 100, "init_percents_?");
        require(totalCap == _cap_, "init_cap_?");
    }


    function isBlocked(address[] memory who) override view external returns (bool[] memory){
        bool[] memory ret = new bool[](who.length);
        for (uint256 i = 0; i < who.length; i ++) {
            ret[i] = _blockList[who[i]];
        }
        return ret;
    }

    function isPermitted(address[] memory who) override view external returns (bool[] memory){
        bool[] memory ret = new bool[](who.length);
        for (uint256 i = 0; i < who.length; i ++) {
            ret[i] = _permitList[who[i]];
        }
        return ret;
    }

    function setBlockList(address[] memory who, bool[] memory flag) override external onlyOwner {
        for (uint256 i = 0; i < who.length; i ++) {
            _blockList[who[i]] = flag[i];
        }
    }

    function setPermitList(address[] memory who, bool[] memory flag) override external onlyOwner {
        for (uint256 i = 0; i < who.length; i ++) {
            _permitList[who[i]] = flag[i];
        }
    }

    function _beforeTokenTransfer(address from, address to, uint256 amount) internal virtual override {

        if (_permitList[from] || _permitList[to]) {
            //fine
        } else if (_blockList[from] || _blockList[to]) {
            revert("celt, blocked");
        } else {
            //fine
        }

        super._beforeTokenTransfer(from, to, amount);
    }
}

File 2 of 9 : ERC20Capped.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (token/ERC20/extensions/ERC20Capped.sol)

pragma solidity ^0.8.0;

import "../ERC20.sol";

/**
 * @dev Extension of {ERC20} that adds a cap to the supply of tokens.
 */
abstract contract ERC20Capped is ERC20 {
    uint256 private immutable _cap;

    /**
     * @dev Sets the value of the `cap`. This value is immutable, it can only be
     * set once during construction.
     */
    constructor(uint256 cap_) {
        require(cap_ > 0, "ERC20Capped: cap is 0");
        _cap = cap_;
    }

    /**
     * @dev Returns the cap on the token's total supply.
     */
    function cap() public view virtual returns (uint256) {
        return _cap;
    }

    /**
     * @dev See {ERC20-_mint}.
     */
    function _mint(address account, uint256 amount) internal virtual override {
        require(ERC20.totalSupply() + amount <= cap(), "ERC20Capped: cap exceeded");
        super._mint(account, amount);
    }
}

File 3 of 9 : Ownable.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (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 Returns the address of the current owner.
     */
    function owner() public view virtual returns (address) {
        return _owner;
    }

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

    /**
     * @dev Leaves the contract without owner. It will not be possible to call
     * `onlyOwner` functions anymore. Can only be called by the current owner.
     *
     * NOTE: Renouncing ownership will leave the contract without an owner,
     * thereby removing any functionality that is only available to the owner.
     */
    function renounceOwnership() public virtual onlyOwner {
        _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 4 of 9 : SafeMath.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (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 substraction of two unsigned integers, with an overflow flag.
     *
     * _Available since v3.4._
     */
    function trySub(uint256 a, uint256 b) internal pure returns (bool, uint256) {
        unchecked {
            if (b > a) return (false, 0);
            return (true, a - b);
        }
    }

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

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

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

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

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

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

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

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

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

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

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

File 5 of 9 : CelestialInterface.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;

import '@openzeppelin/contracts/token/ERC20/IERC20.sol';

interface CelestialInterface is IERC20 {

    function isBlocked(address[] memory who) view external returns (bool[] memory);

    function isPermitted(address[] memory who) view external returns (bool[] memory);

    function setBlockList(address[] memory who, bool[] memory flag) external;

    function setPermitList(address[] memory who, bool[] memory flag) external;
}

File 6 of 9 : ERC20.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (token/ERC20/ERC20.sol)

pragma solidity ^0.8.0;

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

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

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

    uint256 private _totalSupply;

    string private _name;
    string private _symbol;

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

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

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

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

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

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

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

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

    /**
     * @dev See {IERC20-approve}.
     *
     * Requirements:
     *
     * - `spender` cannot be the zero address.
     */
    function approve(address spender, uint256 amount) public virtual override returns (bool) {
        _approve(_msgSender(), spender, amount);
        return true;
    }

    /**
     * @dev See {IERC20-transferFrom}.
     *
     * Emits an {Approval} event indicating the updated allowance. This is not
     * required by the EIP. See the note at the beginning of {ERC20}.
     *
     * Requirements:
     *
     * - `sender` and `recipient` cannot be the zero address.
     * - `sender` must have a balance of at least `amount`.
     * - the caller must have allowance for ``sender``'s tokens of at least
     * `amount`.
     */
    function transferFrom(
        address sender,
        address recipient,
        uint256 amount
    ) public virtual override returns (bool) {
        _transfer(sender, recipient, amount);

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

        return true;
    }

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

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

        return true;
    }

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

        _beforeTokenTransfer(sender, recipient, amount);

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

        emit Transfer(sender, recipient, amount);

        _afterTokenTransfer(sender, recipient, amount);
    }

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

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

        _totalSupply += amount;
        _balances[account] += amount;
        emit Transfer(address(0), account, amount);

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

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

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

        uint256 accountBalance = _balances[account];
        require(accountBalance >= amount, "ERC20: burn amount exceeds balance");
        unchecked {
            _balances[account] = accountBalance - amount;
        }
        _totalSupply -= amount;

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

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

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

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

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

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

File 7 of 9 : IERC20.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (token/ERC20/IERC20.sol)

pragma solidity ^0.8.0;

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

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

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

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

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

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

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

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

File 8 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 9 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;
    }
}

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

Contract Security Audit

Contract ABI

[{"inputs":[{"internalType":"address[]","name":"init_holders_","type":"address[]"},{"internalType":"uint256[]","name":"init_percents_","type":"uint256[]"}],"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":[],"name":"cap","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"decimals","outputs":[{"internalType":"uint8","name":"","type":"uint8"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"subtractedValue","type":"uint256"}],"name":"decreaseAllowance","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"addedValue","type":"uint256"}],"name":"increaseAllowance","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address[]","name":"who","type":"address[]"}],"name":"isBlocked","outputs":[{"internalType":"bool[]","name":"","type":"bool[]"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address[]","name":"who","type":"address[]"}],"name":"isPermitted","outputs":[{"internalType":"bool[]","name":"","type":"bool[]"}],"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":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address[]","name":"who","type":"address[]"},{"internalType":"bool[]","name":"flag","type":"bool[]"}],"name":"setBlockList","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address[]","name":"who","type":"address[]"},{"internalType":"bool[]","name":"flag","type":"bool[]"}],"name":"setPermitList","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":"recipient","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"transfer","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"sender","type":"address"},{"internalType":"address","name":"recipient","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"transferFrom","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"}]

60a06040523480156200001157600080fd5b5060405162001c2a38038062001c2a833981016040819052620000349162000769565b604080518082018252600981526810d95b195cdd1a585b60ba1b60208083019182528351808501909452600484526310d95b1d60e21b9084015281516b033b2e3c9fd0803ce800000093916200008e9160039190620005e1565b508051620000a4906004906020840190620005e1565b50505060008111620000fd5760405162461bcd60e51b815260206004820152601560248201527f45524332304361707065643a206361702069732030000000000000000000000060448201526064015b60405180910390fd5b6080526200010b33620002ed565b80518251146200014c5760405162461bcd60e51b815260206004820152600b60248201526a0d2dcd2e840d8cadccee8d60ab1b6044820152606401620000f4565b60008060005b845181101562000254576000620001ba6064620001a68785815181106200017d576200017d62000847565b60200260200101516b033b2e3c9fd0803ce80000006200033f60201b620009201790919060201c565b6200035460201b620009331790919060201c565b9050620001f2858381518110620001d557620001d562000847565b6020026020010151856200036260201b6200093f1790919060201c565b93506200020e81846200036260201b6200093f1790919060201c565b92506200023e86838151811062000229576200022962000847565b6020026020010151826200037060201b60201c565b50806200024b8162000873565b91505062000152565b5081606414620002995760405162461bcd60e51b815260206004820152600f60248201526e696e69745f70657263656e74735f3f60881b6044820152606401620000f4565b6b033b2e3c9fd0803ce80000008114620002e35760405162461bcd60e51b815260206004820152600a602482015269696e69745f6361705f3f60b01b6044820152606401620000f4565b505050506200092e565b600580546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b60006200034d828462000891565b9392505050565b60006200034d8284620008b3565b60006200034d8284620008d6565b60805181620003896200040060201b6200047a1760201c565b620003959190620008d6565b1115620003e55760405162461bcd60e51b815260206004820152601960248201527f45524332304361707065643a20636170206578636565646564000000000000006044820152606401620000f4565b620003fc82826200040660201b6200094b1760201c565b5050565b60025490565b6001600160a01b0382166200045e5760405162461bcd60e51b815260206004820152601f60248201527f45524332303a206d696e7420746f20746865207a65726f2061646472657373006044820152606401620000f4565b6200046c60008383620004f9565b8060026000828254620004809190620008d6565b90915550506001600160a01b03821660009081526020819052604081208054839290620004af908490620008d6565b90915550506040518181526001600160a01b038316906000907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9060200160405180910390a35050565b6001600160a01b03831660009081526007602052604090205460ff16806200053957506001600160a01b03821660009081526007602052604090205460ff165b156200054557620005c4565b6001600160a01b03831660009081526006602052604090205460ff16806200058557506001600160a01b03821660009081526006602052604090205460ff165b15620005c45760405162461bcd60e51b815260206004820152600d60248201526c18d95b1d0b08189b1bd8dad959609a1b6044820152606401620000f4565b620005dc838383620005dc60201b620007d61760201c565b505050565b828054620005ef90620008f1565b90600052602060002090601f0160209004810192826200061357600085556200065e565b82601f106200062e57805160ff19168380011785556200065e565b828001600101855582156200065e579182015b828111156200065e57825182559160200191906001019062000641565b506200066c92915062000670565b5090565b5b808211156200066c576000815560010162000671565b634e487b7160e01b600052604160045260246000fd5b604051601f8201601f191681016001600160401b0381118282101715620006c857620006c862000687565b604052919050565b60006001600160401b03821115620006ec57620006ec62000687565b5060051b60200190565b600082601f8301126200070857600080fd5b81516020620007216200071b83620006d0565b6200069d565b82815260059290921b840181019181810190868411156200074157600080fd5b8286015b848110156200075e578051835291830191830162000745565b509695505050505050565b600080604083850312156200077d57600080fd5b82516001600160401b03808211156200079557600080fd5b818501915085601f830112620007aa57600080fd5b81516020620007bd6200071b83620006d0565b82815260059290921b84018101918181019089841115620007dd57600080fd5b948201945b83861015620008145785516001600160a01b0381168114620008045760008081fd5b82529482019490820190620007e2565b918801519196509093505050808211156200082e57600080fd5b506200083d85828601620006f6565b9150509250929050565b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052601160045260246000fd5b60006000198214156200088a576200088a6200085d565b5060010190565b6000816000190483118215151615620008ae57620008ae6200085d565b500290565b600082620008d157634e487b7160e01b600052601260045260246000fd5b500490565b60008219821115620008ec57620008ec6200085d565b500190565b600181811c908216806200090657607f821691505b602082108114156200092857634e487b7160e01b600052602260045260246000fd5b50919050565b6080516112e06200094a60003960006101bd01526112e06000f3fe608060405234801561001057600080fd5b50600436106101215760003560e01c8063715018a6116100ad578063a9059cbb11610071578063a9059cbb14610270578063bef5ee3814610283578063cc926b2a14610296578063dd62ed3e146102a9578063f2fde38b146102e257600080fd5b8063715018a61461021d5780638bcc9301146102275780638da5cb5b1461023a57806395d89b4114610255578063a457c2d71461025d57600080fd5b806323b872dd116100f457806323b872dd14610199578063313ce567146101ac578063355274ea146101bb57806339509351146101e157806370a08231146101f457600080fd5b8063069ba47c1461012657806306fdde031461014f578063095ea7b31461016457806318160ddd14610187575b600080fd5b610139610134366004610f44565b6102f5565b6040516101469190610f81565b60405180910390f35b6101576103d2565b6040516101469190610fc7565b61017761017236600461101c565b610464565b6040519015158152602001610146565b6002545b604051908152602001610146565b6101776101a7366004611046565b610480565b60405160128152602001610146565b7f000000000000000000000000000000000000000000000000000000000000000061018b565b6101776101ef36600461101c565b61052f565b61018b610202366004611082565b6001600160a01b031660009081526020819052604090205490565b61022561056b565b005b610139610235366004610f44565b6105a1565b6005546040516001600160a01b039091168152602001610146565b610157610677565b61017761026b36600461101c565b610686565b61017761027e36600461101c565b61071f565b61022561029136600461109d565b61072c565b6102256102a436600461109d565b6107db565b61018b6102b7366004611167565b6001600160a01b03918216600090815260016020908152604080832093909416825291909152205490565b6102256102f0366004611082565b610885565b60606000825167ffffffffffffffff81111561031357610313610e4b565b60405190808252806020026020018201604052801561033c578160200160208202803683370190505b50905060005b83518110156103cb57600760008583815181106103615761036161119a565b60200260200101516001600160a01b03166001600160a01b0316815260200190815260200160002060009054906101000a900460ff168282815181106103a9576103a961119a565b91151560209283029190910190910152806103c3816111c6565b915050610342565b5092915050565b6060600380546103e1906111e1565b80601f016020809104026020016040519081016040528092919081815260200182805461040d906111e1565b801561045a5780601f1061042f5761010080835404028352916020019161045a565b820191906000526020600020905b81548152906001019060200180831161043d57829003601f168201915b5050505050905090565b6000610471338484610a36565b50600192915050565b60025490565b600061048d848484610b5a565b6001600160a01b0384166000908152600160209081526040808320338452909152902054828110156105175760405162461bcd60e51b815260206004820152602860248201527f45524332303a207472616e7366657220616d6f756e74206578636565647320616044820152676c6c6f77616e636560c01b60648201526084015b60405180910390fd5b6105248533858403610a36565b506001949350505050565b3360008181526001602090815260408083206001600160a01b0387168452909152812054909161047191859061056690869061121c565b610a36565b6005546001600160a01b031633146105955760405162461bcd60e51b815260040161050e90611234565b61059f6000610d34565b565b60606000825167ffffffffffffffff8111156105bf576105bf610e4b565b6040519080825280602002602001820160405280156105e8578160200160208202803683370190505b50905060005b83518110156103cb576006600085838151811061060d5761060d61119a565b60200260200101516001600160a01b03166001600160a01b0316815260200190815260200160002060009054906101000a900460ff168282815181106106555761065561119a565b911515602092830291909101909101528061066f816111c6565b9150506105ee565b6060600480546103e1906111e1565b3360009081526001602090815260408083206001600160a01b0386168452909152812054828110156107085760405162461bcd60e51b815260206004820152602560248201527f45524332303a2064656372656173656420616c6c6f77616e63652062656c6f77604482015264207a65726f60d81b606482015260840161050e565b6107153385858403610a36565b5060019392505050565b6000610471338484610b5a565b6005546001600160a01b031633146107565760405162461bcd60e51b815260040161050e90611234565b60005b82518110156107d6578181815181106107745761077461119a565b6020026020010151600760008584815181106107925761079261119a565b6020908102919091018101516001600160a01b03168252810191909152604001600020805460ff1916911515919091179055806107ce816111c6565b915050610759565b505050565b6005546001600160a01b031633146108055760405162461bcd60e51b815260040161050e90611234565b60005b82518110156107d6578181815181106108235761082361119a565b6020026020010151600660008584815181106108415761084161119a565b6020908102919091018101516001600160a01b03168252810191909152604001600020805460ff19169115159190911790558061087d816111c6565b915050610808565b6005546001600160a01b031633146108af5760405162461bcd60e51b815260040161050e90611234565b6001600160a01b0381166109145760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b606482015260840161050e565b61091d81610d34565b50565b600061092c8284611269565b9392505050565b600061092c8284611288565b600061092c828461121c565b6001600160a01b0382166109a15760405162461bcd60e51b815260206004820152601f60248201527f45524332303a206d696e7420746f20746865207a65726f206164647265737300604482015260640161050e565b6109ad60008383610d86565b80600260008282546109bf919061121c565b90915550506001600160a01b038216600090815260208190526040812080548392906109ec90849061121c565b90915550506040518181526001600160a01b038316906000907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9060200160405180910390a35050565b6001600160a01b038316610a985760405162461bcd60e51b8152602060048201526024808201527f45524332303a20617070726f76652066726f6d20746865207a65726f206164646044820152637265737360e01b606482015260840161050e565b6001600160a01b038216610af95760405162461bcd60e51b815260206004820152602260248201527f45524332303a20617070726f766520746f20746865207a65726f206164647265604482015261737360f01b606482015260840161050e565b6001600160a01b0383811660008181526001602090815260408083209487168084529482529182902085905590518481527f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925910160405180910390a3505050565b6001600160a01b038316610bbe5760405162461bcd60e51b815260206004820152602560248201527f45524332303a207472616e736665722066726f6d20746865207a65726f206164604482015264647265737360d81b606482015260840161050e565b6001600160a01b038216610c205760405162461bcd60e51b815260206004820152602360248201527f45524332303a207472616e7366657220746f20746865207a65726f206164647260448201526265737360e81b606482015260840161050e565b610c2b838383610d86565b6001600160a01b03831660009081526020819052604090205481811015610ca35760405162461bcd60e51b815260206004820152602660248201527f45524332303a207472616e7366657220616d6f756e7420657863656564732062604482015265616c616e636560d01b606482015260840161050e565b6001600160a01b03808516600090815260208190526040808220858503905591851681529081208054849290610cda90849061121c565b92505081905550826001600160a01b0316846001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef84604051610d2691815260200190565b60405180910390a350505050565b600580546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b6001600160a01b03831660009081526007602052604090205460ff1680610dc557506001600160a01b03821660009081526007602052604090205460ff165b15610dcf57505050565b6001600160a01b03831660009081526006602052604090205460ff1680610e0e57506001600160a01b03821660009081526006602052604090205460ff165b156107d65760405162461bcd60e51b815260206004820152600d60248201526c18d95b1d0b08189b1bd8dad959609a1b604482015260640161050e565b634e487b7160e01b600052604160045260246000fd5b604051601f8201601f1916810167ffffffffffffffff81118282101715610e8a57610e8a610e4b565b604052919050565b600067ffffffffffffffff821115610eac57610eac610e4b565b5060051b60200190565b80356001600160a01b0381168114610ecd57600080fd5b919050565b600082601f830112610ee357600080fd5b81356020610ef8610ef383610e92565b610e61565b82815260059290921b84018101918181019086841115610f1757600080fd5b8286015b84811015610f3957610f2c81610eb6565b8352918301918301610f1b565b509695505050505050565b600060208284031215610f5657600080fd5b813567ffffffffffffffff811115610f6d57600080fd5b610f7984828501610ed2565b949350505050565b6020808252825182820181905260009190848201906040850190845b81811015610fbb578351151583529284019291840191600101610f9d565b50909695505050505050565b600060208083528351808285015260005b81811015610ff457858101830151858201604001528201610fd8565b81811115611006576000604083870101525b50601f01601f1916929092016040019392505050565b6000806040838503121561102f57600080fd5b61103883610eb6565b946020939093013593505050565b60008060006060848603121561105b57600080fd5b61106484610eb6565b925061107260208501610eb6565b9150604084013590509250925092565b60006020828403121561109457600080fd5b61092c82610eb6565b600080604083850312156110b057600080fd5b823567ffffffffffffffff808211156110c857600080fd5b6110d486838701610ed2565b93506020915081850135818111156110eb57600080fd5b85019050601f810186136110fe57600080fd5b803561110c610ef382610e92565b81815260059190911b8201830190838101908883111561112b57600080fd5b928401925b8284101561115857833580151581146111495760008081fd5b82529284019290840190611130565b80955050505050509250929050565b6000806040838503121561117a57600080fd5b61118383610eb6565b915061119160208401610eb6565b90509250929050565b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052601160045260246000fd5b60006000198214156111da576111da6111b0565b5060010190565b600181811c908216806111f557607f821691505b6020821081141561121657634e487b7160e01b600052602260045260246000fd5b50919050565b6000821982111561122f5761122f6111b0565b500190565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b6000816000190483118215151615611283576112836111b0565b500290565b6000826112a557634e487b7160e01b600052601260045260246000fd5b50049056fea2646970667358221220f7fb0e6b164ee37a6709d90224180d617dde1ae94433d398bb2a102837ca2ade64736f6c634300080c0033000000000000000000000000000000000000000000000000000000000000004000000000000000000000000000000000000000000000000000000000000001a0000000000000000000000000000000000000000000000000000000000000000a0000000000000000000000000b967b419886882bcd1056920bfbccafd08e9fe8000000000000000000000000f02a9859e7adccaaf53150e994704926565b58690000000000000000000000006c13fe69963a01abd7680e8661e6907d828f2938000000000000000000000000c8c7e0bfb9e0df960a7d88f1a323a72e0321579e0000000000000000000000003e80e143b408b162cd16fd24d20533d7a8c24520000000000000000000000000641dcc887d7b1a1bcdfc433a1d3a65525b3607b70000000000000000000000005209d33b1f7c85ef7496f63bf3d65f46fd6f4c0a00000000000000000000000062feb3bcea24c772ae6d4a2260deced2675d2319000000000000000000000000df829c452a52cc861544d0c521e90e84e0f95aee0000000000000000000000006f9f72cfada063c44b234b8a8342b2e3d18f2a52000000000000000000000000000000000000000000000000000000000000000a0000000000000000000000000000000000000000000000000000000000000028000000000000000000000000000000000000000000000000000000000000000e0000000000000000000000000000000000000000000000000000000000000005000000000000000000000000000000000000000000000000000000000000000a00000000000000000000000000000000000000000000000000000000000000040000000000000000000000000000000000000000000000000000000000000008000000000000000000000000000000000000000000000000000000000000000a000000000000000000000000000000000000000000000000000000000000000600000000000000000000000000000000000000000000000000000000000000020000000000000000000000000000000000000000000000000000000000000001

Deployed Bytecode

0x608060405234801561001057600080fd5b50600436106101215760003560e01c8063715018a6116100ad578063a9059cbb11610071578063a9059cbb14610270578063bef5ee3814610283578063cc926b2a14610296578063dd62ed3e146102a9578063f2fde38b146102e257600080fd5b8063715018a61461021d5780638bcc9301146102275780638da5cb5b1461023a57806395d89b4114610255578063a457c2d71461025d57600080fd5b806323b872dd116100f457806323b872dd14610199578063313ce567146101ac578063355274ea146101bb57806339509351146101e157806370a08231146101f457600080fd5b8063069ba47c1461012657806306fdde031461014f578063095ea7b31461016457806318160ddd14610187575b600080fd5b610139610134366004610f44565b6102f5565b6040516101469190610f81565b60405180910390f35b6101576103d2565b6040516101469190610fc7565b61017761017236600461101c565b610464565b6040519015158152602001610146565b6002545b604051908152602001610146565b6101776101a7366004611046565b610480565b60405160128152602001610146565b7f0000000000000000000000000000000000000000033b2e3c9fd0803ce800000061018b565b6101776101ef36600461101c565b61052f565b61018b610202366004611082565b6001600160a01b031660009081526020819052604090205490565b61022561056b565b005b610139610235366004610f44565b6105a1565b6005546040516001600160a01b039091168152602001610146565b610157610677565b61017761026b36600461101c565b610686565b61017761027e36600461101c565b61071f565b61022561029136600461109d565b61072c565b6102256102a436600461109d565b6107db565b61018b6102b7366004611167565b6001600160a01b03918216600090815260016020908152604080832093909416825291909152205490565b6102256102f0366004611082565b610885565b60606000825167ffffffffffffffff81111561031357610313610e4b565b60405190808252806020026020018201604052801561033c578160200160208202803683370190505b50905060005b83518110156103cb57600760008583815181106103615761036161119a565b60200260200101516001600160a01b03166001600160a01b0316815260200190815260200160002060009054906101000a900460ff168282815181106103a9576103a961119a565b91151560209283029190910190910152806103c3816111c6565b915050610342565b5092915050565b6060600380546103e1906111e1565b80601f016020809104026020016040519081016040528092919081815260200182805461040d906111e1565b801561045a5780601f1061042f5761010080835404028352916020019161045a565b820191906000526020600020905b81548152906001019060200180831161043d57829003601f168201915b5050505050905090565b6000610471338484610a36565b50600192915050565b60025490565b600061048d848484610b5a565b6001600160a01b0384166000908152600160209081526040808320338452909152902054828110156105175760405162461bcd60e51b815260206004820152602860248201527f45524332303a207472616e7366657220616d6f756e74206578636565647320616044820152676c6c6f77616e636560c01b60648201526084015b60405180910390fd5b6105248533858403610a36565b506001949350505050565b3360008181526001602090815260408083206001600160a01b0387168452909152812054909161047191859061056690869061121c565b610a36565b6005546001600160a01b031633146105955760405162461bcd60e51b815260040161050e90611234565b61059f6000610d34565b565b60606000825167ffffffffffffffff8111156105bf576105bf610e4b565b6040519080825280602002602001820160405280156105e8578160200160208202803683370190505b50905060005b83518110156103cb576006600085838151811061060d5761060d61119a565b60200260200101516001600160a01b03166001600160a01b0316815260200190815260200160002060009054906101000a900460ff168282815181106106555761065561119a565b911515602092830291909101909101528061066f816111c6565b9150506105ee565b6060600480546103e1906111e1565b3360009081526001602090815260408083206001600160a01b0386168452909152812054828110156107085760405162461bcd60e51b815260206004820152602560248201527f45524332303a2064656372656173656420616c6c6f77616e63652062656c6f77604482015264207a65726f60d81b606482015260840161050e565b6107153385858403610a36565b5060019392505050565b6000610471338484610b5a565b6005546001600160a01b031633146107565760405162461bcd60e51b815260040161050e90611234565b60005b82518110156107d6578181815181106107745761077461119a565b6020026020010151600760008584815181106107925761079261119a565b6020908102919091018101516001600160a01b03168252810191909152604001600020805460ff1916911515919091179055806107ce816111c6565b915050610759565b505050565b6005546001600160a01b031633146108055760405162461bcd60e51b815260040161050e90611234565b60005b82518110156107d6578181815181106108235761082361119a565b6020026020010151600660008584815181106108415761084161119a565b6020908102919091018101516001600160a01b03168252810191909152604001600020805460ff19169115159190911790558061087d816111c6565b915050610808565b6005546001600160a01b031633146108af5760405162461bcd60e51b815260040161050e90611234565b6001600160a01b0381166109145760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b606482015260840161050e565b61091d81610d34565b50565b600061092c8284611269565b9392505050565b600061092c8284611288565b600061092c828461121c565b6001600160a01b0382166109a15760405162461bcd60e51b815260206004820152601f60248201527f45524332303a206d696e7420746f20746865207a65726f206164647265737300604482015260640161050e565b6109ad60008383610d86565b80600260008282546109bf919061121c565b90915550506001600160a01b038216600090815260208190526040812080548392906109ec90849061121c565b90915550506040518181526001600160a01b038316906000907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9060200160405180910390a35050565b6001600160a01b038316610a985760405162461bcd60e51b8152602060048201526024808201527f45524332303a20617070726f76652066726f6d20746865207a65726f206164646044820152637265737360e01b606482015260840161050e565b6001600160a01b038216610af95760405162461bcd60e51b815260206004820152602260248201527f45524332303a20617070726f766520746f20746865207a65726f206164647265604482015261737360f01b606482015260840161050e565b6001600160a01b0383811660008181526001602090815260408083209487168084529482529182902085905590518481527f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925910160405180910390a3505050565b6001600160a01b038316610bbe5760405162461bcd60e51b815260206004820152602560248201527f45524332303a207472616e736665722066726f6d20746865207a65726f206164604482015264647265737360d81b606482015260840161050e565b6001600160a01b038216610c205760405162461bcd60e51b815260206004820152602360248201527f45524332303a207472616e7366657220746f20746865207a65726f206164647260448201526265737360e81b606482015260840161050e565b610c2b838383610d86565b6001600160a01b03831660009081526020819052604090205481811015610ca35760405162461bcd60e51b815260206004820152602660248201527f45524332303a207472616e7366657220616d6f756e7420657863656564732062604482015265616c616e636560d01b606482015260840161050e565b6001600160a01b03808516600090815260208190526040808220858503905591851681529081208054849290610cda90849061121c565b92505081905550826001600160a01b0316846001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef84604051610d2691815260200190565b60405180910390a350505050565b600580546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b6001600160a01b03831660009081526007602052604090205460ff1680610dc557506001600160a01b03821660009081526007602052604090205460ff165b15610dcf57505050565b6001600160a01b03831660009081526006602052604090205460ff1680610e0e57506001600160a01b03821660009081526006602052604090205460ff165b156107d65760405162461bcd60e51b815260206004820152600d60248201526c18d95b1d0b08189b1bd8dad959609a1b604482015260640161050e565b634e487b7160e01b600052604160045260246000fd5b604051601f8201601f1916810167ffffffffffffffff81118282101715610e8a57610e8a610e4b565b604052919050565b600067ffffffffffffffff821115610eac57610eac610e4b565b5060051b60200190565b80356001600160a01b0381168114610ecd57600080fd5b919050565b600082601f830112610ee357600080fd5b81356020610ef8610ef383610e92565b610e61565b82815260059290921b84018101918181019086841115610f1757600080fd5b8286015b84811015610f3957610f2c81610eb6565b8352918301918301610f1b565b509695505050505050565b600060208284031215610f5657600080fd5b813567ffffffffffffffff811115610f6d57600080fd5b610f7984828501610ed2565b949350505050565b6020808252825182820181905260009190848201906040850190845b81811015610fbb578351151583529284019291840191600101610f9d565b50909695505050505050565b600060208083528351808285015260005b81811015610ff457858101830151858201604001528201610fd8565b81811115611006576000604083870101525b50601f01601f1916929092016040019392505050565b6000806040838503121561102f57600080fd5b61103883610eb6565b946020939093013593505050565b60008060006060848603121561105b57600080fd5b61106484610eb6565b925061107260208501610eb6565b9150604084013590509250925092565b60006020828403121561109457600080fd5b61092c82610eb6565b600080604083850312156110b057600080fd5b823567ffffffffffffffff808211156110c857600080fd5b6110d486838701610ed2565b93506020915081850135818111156110eb57600080fd5b85019050601f810186136110fe57600080fd5b803561110c610ef382610e92565b81815260059190911b8201830190838101908883111561112b57600080fd5b928401925b8284101561115857833580151581146111495760008081fd5b82529284019290840190611130565b80955050505050509250929050565b6000806040838503121561117a57600080fd5b61118383610eb6565b915061119160208401610eb6565b90509250929050565b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052601160045260246000fd5b60006000198214156111da576111da6111b0565b5060010190565b600181811c908216806111f557607f821691505b6020821081141561121657634e487b7160e01b600052602260045260246000fd5b50919050565b6000821982111561122f5761122f6111b0565b500190565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b6000816000190483118215151615611283576112836111b0565b500290565b6000826112a557634e487b7160e01b600052601260045260246000fd5b50049056fea2646970667358221220f7fb0e6b164ee37a6709d90224180d617dde1ae94433d398bb2a102837ca2ade64736f6c634300080c0033

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

000000000000000000000000000000000000000000000000000000000000004000000000000000000000000000000000000000000000000000000000000001a0000000000000000000000000000000000000000000000000000000000000000a0000000000000000000000000b967b419886882bcd1056920bfbccafd08e9fe8000000000000000000000000f02a9859e7adccaaf53150e994704926565b58690000000000000000000000006c13fe69963a01abd7680e8661e6907d828f2938000000000000000000000000c8c7e0bfb9e0df960a7d88f1a323a72e0321579e0000000000000000000000003e80e143b408b162cd16fd24d20533d7a8c24520000000000000000000000000641dcc887d7b1a1bcdfc433a1d3a65525b3607b70000000000000000000000005209d33b1f7c85ef7496f63bf3d65f46fd6f4c0a00000000000000000000000062feb3bcea24c772ae6d4a2260deced2675d2319000000000000000000000000df829c452a52cc861544d0c521e90e84e0f95aee0000000000000000000000006f9f72cfada063c44b234b8a8342b2e3d18f2a52000000000000000000000000000000000000000000000000000000000000000a0000000000000000000000000000000000000000000000000000000000000028000000000000000000000000000000000000000000000000000000000000000e0000000000000000000000000000000000000000000000000000000000000005000000000000000000000000000000000000000000000000000000000000000a00000000000000000000000000000000000000000000000000000000000000040000000000000000000000000000000000000000000000000000000000000008000000000000000000000000000000000000000000000000000000000000000a000000000000000000000000000000000000000000000000000000000000000600000000000000000000000000000000000000000000000000000000000000020000000000000000000000000000000000000000000000000000000000000001

-----Decoded View---------------
Arg [0] : init_holders_ (address[]): 0x0b967B419886882bcd1056920bFBccaFd08E9fE8,0xf02a9859E7AdCCAaf53150e994704926565b5869,0x6C13fE69963A01ABD7680E8661E6907D828f2938,0xc8C7e0bFb9E0dF960A7d88F1A323a72e0321579E,0x3E80e143B408B162CD16Fd24D20533D7A8C24520,0x641DCc887d7B1A1BCDFc433A1d3a65525B3607B7,0x5209D33B1f7C85eF7496F63BF3d65F46fd6f4c0A,0x62Feb3bCea24c772aE6d4A2260DeCED2675d2319,0xdF829C452a52cC861544D0c521E90E84E0F95aee,0x6F9F72cFAda063C44b234b8A8342B2e3D18f2A52
Arg [1] : init_percents_ (uint256[]): 40,14,5,10,4,8,10,6,2,1

-----Encoded View---------------
24 Constructor Arguments found :
Arg [0] : 0000000000000000000000000000000000000000000000000000000000000040
Arg [1] : 00000000000000000000000000000000000000000000000000000000000001a0
Arg [2] : 000000000000000000000000000000000000000000000000000000000000000a
Arg [3] : 0000000000000000000000000b967b419886882bcd1056920bfbccafd08e9fe8
Arg [4] : 000000000000000000000000f02a9859e7adccaaf53150e994704926565b5869
Arg [5] : 0000000000000000000000006c13fe69963a01abd7680e8661e6907d828f2938
Arg [6] : 000000000000000000000000c8c7e0bfb9e0df960a7d88f1a323a72e0321579e
Arg [7] : 0000000000000000000000003e80e143b408b162cd16fd24d20533d7a8c24520
Arg [8] : 000000000000000000000000641dcc887d7b1a1bcdfc433a1d3a65525b3607b7
Arg [9] : 0000000000000000000000005209d33b1f7c85ef7496f63bf3d65f46fd6f4c0a
Arg [10] : 00000000000000000000000062feb3bcea24c772ae6d4a2260deced2675d2319
Arg [11] : 000000000000000000000000df829c452a52cc861544d0c521e90e84e0f95aee
Arg [12] : 0000000000000000000000006f9f72cfada063c44b234b8a8342b2e3d18f2a52
Arg [13] : 000000000000000000000000000000000000000000000000000000000000000a
Arg [14] : 0000000000000000000000000000000000000000000000000000000000000028
Arg [15] : 000000000000000000000000000000000000000000000000000000000000000e
Arg [16] : 0000000000000000000000000000000000000000000000000000000000000005
Arg [17] : 000000000000000000000000000000000000000000000000000000000000000a
Arg [18] : 0000000000000000000000000000000000000000000000000000000000000004
Arg [19] : 0000000000000000000000000000000000000000000000000000000000000008
Arg [20] : 000000000000000000000000000000000000000000000000000000000000000a
Arg [21] : 0000000000000000000000000000000000000000000000000000000000000006
Arg [22] : 0000000000000000000000000000000000000000000000000000000000000002
Arg [23] : 0000000000000000000000000000000000000000000000000000000000000001


Block Transaction Difficulty Gas Used Reward
View All Blocks Produced

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

OVERVIEW

Celestial is a multichain metaverse video game that unfolds across the broad universe in which players can colonize planets, harvest resources, form alliances with other commanders and engage in intergalactic warfare.

Validator Index Block Amount
View All Withdrawals

Transaction Hash Block Value Eth2 PubKey Valid
View All Deposits
Loading...
Loading
[ 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.