ETH Price: $2,738.97 (-3.99%)

Token

yen.cool (YEN)
 

Overview

Max Total Supply

30,296,142.135063655854611327 YEN

Holders

14

Market

Onchain Market Cap

$0.00

Circulating Supply Market Cap

-

Other Info

Token Contract (WITH 18 Decimals)

Balance
1,249.404832519014788968 YEN

Value
$0.00
0xb8c317d356bd595e023b5267e4563b5a1eabd100
Loading...
Loading
Loading...
Loading
Loading...
Loading

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

Contract Source Code Verified (Exact Match)

Contract Name:
YEN

Compiler Version
v0.8.17+commit.8df45f5f

Optimization Enabled:
Yes with 200 runs

Other Settings:
default evmVersion
File 1 of 8 : YEN.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.17;
import "./libs/ERC20Burnable.sol";
import "./interfaces/IUniswapFactory.sol";
import "./interfaces/IUniswapV2Pair.sol";

contract YEN is ERC20Burnable {
    event Mint(address indexed person, uint256 index);
    event Claim(address indexed person, uint256 amount);
    event Stake(address indexed person, uint256 amount);
    event WithdrawStake(address indexed person, uint256 amount);
    event WithdrawReward(address indexed person, uint256 amount);

    struct Block {
        uint128 persons;
        uint128 mints;
    }

    struct Person {
        uint32[] blockList;
        uint128 blockIndex;
        uint128 stakes;
        uint96 rewards;
        uint160 lastPerStakeRewards;
    }

    uint256 public constant halvingBlocks = ((60 * 60 * 24) / 12) * 30;
    // uint256 public constant halvingBlocks = ((60 * 60 * 24) / 12) * 1;
    uint256 public lastBlock = block.number;
    uint256 public halvingBlock = lastBlock + halvingBlocks;
    uint256 public blockMints = 100 * 10**18;

    uint256 public stakes = 1;
    uint256 public perStakeRewards;

    IERC20 public immutable token = IERC20(address(this));
    IUniswapV2Pair public immutable pair =
        IUniswapV2Pair(
            IUniswapV2Factory(0x5C69bEe701ef814a2B6a3EDD4B1652CB9cc5aA6f).createPair(
                0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2,
                address(this)
            )
        );
    // IUniswapV2Pair public immutable pair =
    //     IUniswapV2Pair(
    //         IUniswapV2Factory(0x5C69bEe701ef814a2B6a3EDD4B1652CB9cc5aA6f).createPair(
    //             0xB4FBF271143F4FBf7B91A5ded31805e42b2208d6,
    //             address(this)
    //         )
    //     );

    mapping(uint256 => Block) public blockMap;
    mapping(address => Person) public personMap;

    constructor() ERC20("yen.cool", "YEN") {}

    /* ================ UTIL FUNCTIONS ================ */

    modifier _checkHalving() {
        if (block.number >= halvingBlock) {
            blockMints /= 2;
            halvingBlock += halvingBlocks;
        }
        _;
    }

    modifier _checkReward() {
        if (personMap[msg.sender].lastPerStakeRewards != perStakeRewards) {
            personMap[msg.sender].rewards = uint96(getRewards(msg.sender));
            personMap[msg.sender].lastPerStakeRewards = uint160(perStakeRewards);
        }
        _;
    }

    function _addPerStakeRewards(uint256 adds) internal {
        unchecked {
            perStakeRewards += (adds * 10**18) / stakes;
        }
    }

    function _transfer(
        address sender,
        address recipient,
        uint256 amount
    ) internal override {
        unchecked {
            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");

            _balances[sender] = senderBalance - amount;

            uint256 fees;
            if (sender != address(this)) {
                fees = amount / 1000;
                _balances[address(this)] += fees;
                emit Transfer(sender, address(this), fees);
                uint256 burnFees = fees / 2;
                _burn(address(this), burnFees);
                _addPerStakeRewards(fees - burnFees);
            }

            uint256 recipients = amount - fees;
            _balances[recipient] += recipients;
            emit Transfer(sender, recipient, recipients);

            _afterTokenTransfer(sender, recipient, amount);
        }
    }

    /* ================ VIEW FUNCTIONS ================ */

    function getMints() public view returns (uint256) {
        unchecked {
            return (block.number - lastBlock) * blockMints;
        }
    }

    function getClaims(address sender) public view returns (uint256) {
        Person memory person = personMap[sender];
        uint256 claims;
        for (uint256 i = 0; i < person.blockIndex; i++) {
            Block memory _block = blockMap[person.blockList[i]];
            claims += _block.mints / _block.persons;
        }
        return claims;
    }

    function getRewards(address person) public view returns (uint256) {
        unchecked {
            return
                (personMap[person].stakes * (perStakeRewards - personMap[person].lastPerStakeRewards)) /
                10**18 +
                personMap[person].rewards;
        }
    }

    function getPersonBlockList(address person) external view returns (uint32[] memory) {
        uint32[] memory blockList = new uint32[](personMap[person].blockIndex);
        for (uint256 i = 0; i < personMap[person].blockIndex; i++) {
            blockList[i] = personMap[person].blockList[i];
        }
        return blockList;
    }

    /* ================ TRANSACTION FUNCTIONS ================ */

    function mint() external _checkHalving {
        require(msg.sender == tx.origin, "no magic");
        if (block.number != lastBlock) {
            uint256 mints = getMints();
            _mint(address(this), mints);
            blockMap[block.number].mints = uint128(mints / 2);
            lastBlock = block.number;
            _addPerStakeRewards(blockMap[block.number].mints);
        }
        Person storage person = personMap[msg.sender];
        if (person.blockList.length == person.blockIndex) {
            person.blockList.push(uint32(block.number));
        } else {
            person.blockList[person.blockIndex] = uint32(block.number);
        }
        emit Mint(msg.sender, blockMap[block.number].persons);
        blockMap[block.number].persons++;
        person.blockIndex++;
    }

    function claim() external {
        Person memory person = personMap[msg.sender];
        require(person.blockList[person.blockIndex - 1] != block.number, "mint claim cannot in sample block!");
        uint256 claims = getClaims(msg.sender);
        personMap[msg.sender].blockIndex = 0;
        token.transfer(msg.sender, claims);
        emit Claim(msg.sender, claims);
    }

    function stake(uint256 amount) external _checkReward {
        pair.transferFrom(msg.sender, address(this), amount);
        personMap[msg.sender].stakes += uint128(amount);
        stakes += amount;
        emit Stake(msg.sender, amount);
    }

    function withdrawStake(uint256 amount) public _checkReward {
        require(amount <= personMap[msg.sender].stakes, "amount cannot over stakes!");
        personMap[msg.sender].stakes -= uint128(amount);
        stakes -= amount;
        pair.transfer(msg.sender, amount);
        emit WithdrawStake(msg.sender, amount);
    }

    function withdrawReward() public _checkReward {
        uint256 rewards = personMap[msg.sender].rewards;
        personMap[msg.sender].rewards = 0;
        token.transfer(msg.sender, rewards);
        emit WithdrawReward(msg.sender, rewards);
    }

    function exit() external {
        withdrawStake(personMap[msg.sender].stakes);
        withdrawReward();
    }
}

File 2 of 8 : ERC20Burnable.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

import "./ERC20.sol";
import "@openzeppelin/contracts/utils/Context.sol";

/**
 * @dev Extension of {ERC20} that allows token holders to destroy both their own
 * tokens and those that they have an allowance for, in a way that can be
 * recognized off-chain (via event analysis).
 */
abstract contract ERC20Burnable is Context, ERC20 {
    /**
     * @dev Destroys `amount` tokens from the caller.
     *
     * See {ERC20-_burn}.
     */
    function burn(uint256 amount) public virtual {
        _burn(_msgSender(), amount);
    }

    /**
     * @dev Destroys `amount` tokens from `account`, deducting from the caller's
     * allowance.
     *
     * See {ERC20-_burn} and {ERC20-allowance}.
     *
     * Requirements:
     *
     * - the caller must have allowance for ``accounts``'s tokens of at least
     * `amount`.
     */
    function burnFrom(address account, uint256 amount) public virtual {
        uint256 currentAllowance = allowance(account, _msgSender());
        require(currentAllowance >= amount, "ERC20: burn amount exceeds allowance");
        unchecked {
            _approve(account, _msgSender(), currentAllowance - amount);
        }
        _burn(account, amount);
    }
}

File 3 of 8 : IUniswapFactory.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.17;

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

File 4 of 8 : IUniswapV2Pair.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.17;

interface IUniswapV2Pair {
    function transfer(address to, uint256 value) external returns (bool);

    function transferFrom(
        address from,
        address to,
        uint256 value
    ) external returns (bool);
}

File 5 of 8 : ERC20.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.17;

import "@openzeppelin/contracts/token/ERC20/IERC20.sol";
import "@openzeppelin/contracts/token/ERC20/extensions/IERC20Metadata.sol";
import "@openzeppelin/contracts/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) _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;
        _balances[address(0)] += 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 6 of 8 : Context.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

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

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

File 7 of 8 : IERC20.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

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

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

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

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

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

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

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

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

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

pragma solidity ^0.8.0;

import "../IERC20.sol";

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

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

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

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

Contract Security Audit

Contract ABI

[{"inputs":[],"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":"person","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"Claim","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"person","type":"address"},{"indexed":false,"internalType":"uint256","name":"index","type":"uint256"}],"name":"Mint","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"person","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"Stake","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":false,"internalType":"uint256","name":"value","type":"uint256"}],"name":"Transfer","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"person","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"WithdrawReward","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"person","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"WithdrawStake","type":"event"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"spender","type":"address"}],"name":"allowance","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"approve","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"blockMap","outputs":[{"internalType":"uint128","name":"persons","type":"uint128"},{"internalType":"uint128","name":"mints","type":"uint128"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"blockMints","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"burn","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"burnFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"claim","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"decimals","outputs":[{"internalType":"uint8","name":"","type":"uint8"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"subtractedValue","type":"uint256"}],"name":"decreaseAllowance","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"exit","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"sender","type":"address"}],"name":"getClaims","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getMints","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"person","type":"address"}],"name":"getPersonBlockList","outputs":[{"internalType":"uint32[]","name":"","type":"uint32[]"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"person","type":"address"}],"name":"getRewards","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"halvingBlock","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"halvingBlocks","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":"lastBlock","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"mint","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"pair","outputs":[{"internalType":"contract IUniswapV2Pair","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"perStakeRewards","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"personMap","outputs":[{"internalType":"uint128","name":"blockIndex","type":"uint128"},{"internalType":"uint128","name":"stakes","type":"uint128"},{"internalType":"uint96","name":"rewards","type":"uint96"},{"internalType":"uint160","name":"lastPerStakeRewards","type":"uint160"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"stake","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"stakes","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"token","outputs":[{"internalType":"contract IERC20","name":"","type":"address"}],"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":[],"name":"withdrawReward","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"withdrawStake","outputs":[],"stateMutability":"nonpayable","type":"function"}]

60c06040524360055562034bc06005546200001b91906200014a565b60065568056bc75e2d6310000060075560016008553060808190526040516364e329cb60e11b815273c02aaa39b223fe8d0a0e5c4f27ead9083c756cc260048201526024810191909152735c69bee701ef814a2b6a3edd4b1652cb9cc5aa6f9063c9c65396906044016020604051808303816000875af1158015620000a4573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190620000ca919062000172565b6001600160a01b031660a052348015620000e357600080fd5b50604051806040016040528060088152602001671e595b8b98dbdbdb60c21b815250604051806040016040528060038152602001622ca2a760e91b815250816003908162000132919062000249565b50600462000141828262000249565b50505062000315565b808201808211156200016c57634e487b7160e01b600052601160045260246000fd5b92915050565b6000602082840312156200018557600080fd5b81516001600160a01b03811681146200019d57600080fd5b9392505050565b634e487b7160e01b600052604160045260246000fd5b600181811c90821680620001cf57607f821691505b602082108103620001f057634e487b7160e01b600052602260045260246000fd5b50919050565b601f8211156200024457600081815260208120601f850160051c810160208610156200021f5750805b601f850160051c820191505b8181101562000240578281556001016200022b565b5050505b505050565b81516001600160401b03811115620002655762000265620001a4565b6200027d81620002768454620001ba565b84620001f6565b602080601f831160018114620002b557600084156200029c5750858301515b600019600386901b1c1916600185901b17855562000240565b600085815260208120601f198616915b82811015620002e657888601518255948401946001909101908401620002c5565b5085821015620003055787850151600019600388901b60f8161c191681555b5050505050600190811b01905550565b60805160a051611f1c62000357600039600081816103e901528181610bde015261118701526000818161054501528181610eb2015261137b0152611f1c6000f3fe608060405234801561001057600080fd5b50600436106101fb5760003560e01c806379ee54f71161011a578063a9059cbb116100ad578063d8daba5e1161007c578063d8daba5e1461045a578063dd62ed3e14610463578063e9fad8ee1461049c578063ed3ac0de146104a4578063fc0c546a1461054057600080fd5b8063a9059cbb14610423578063ad09c7ce14610436578063c885bc581461043f578063d0d46a0b1461044757600080fd5b80639dbd768e116100e95780639dbd768e146103b0578063a457c2d7146103be578063a694fc3a146103d1578063a8aa1b31146103e457600080fd5b806379ee54f7146103825780637bb1a78f14610395578063806b984f1461039f57806395d89b41146103a857600080fd5b806325da3876116101925780634e71d92d116101615780634e71d92d146102ea5780636138735c146102f257806370a082311461034657806379cc67901461036f57600080fd5b806325da3876146102ac578063313ce567146102b557806339509351146102c457806342966c68146102d757600080fd5b80631abef2c5116101ce5780631abef2c51461025d57806323499c071461027d57806323b872dd1461028657806325d5971f1461029957600080fd5b806306fdde0314610200578063095ea7b31461021e5780631249c58b1461024157806318160ddd1461024b575b600080fd5b610208610567565b6040516102159190611bab565b60405180910390f35b61023161022c366004611c15565b6105f9565b6040519015158152602001610215565b610249610610565b005b6002545b604051908152602001610215565b61027061026b366004611c3f565b61088e565b6040516102159190611c61565b61024f60065481565b610231610294366004611cab565b6109ba565b6102496102a7366004611ce7565b610a64565b61024f60075481565b60405160128152602001610215565b6102316102d2366004611c15565b610c8d565b6102496102e5366004611ce7565b610cc9565b610249610cd6565b610326610300366004611ce7565b600a602052600090815260409020546001600160801b0380821691600160801b90041682565b604080516001600160801b03938416815292909116602083015201610215565b61024f610354366004611c3f565b6001600160a01b031660009081526020819052604090205490565b61024961037d366004611c15565b610f59565b61024f610390366004611c3f565b610fdf565b61024f62034bc081565b61024f60055481565b610208611041565b60075460055443030261024f565b6102316103cc366004611c15565b611050565b6102496103df366004611ce7565b6110e9565b61040b7f000000000000000000000000000000000000000000000000000000000000000081565b6040516001600160a01b039091168152602001610215565b610231610431366004611c15565b61129f565b61024f60085481565b6102496112ac565b61024f610455366004611c3f565b61141b565b61024f60095481565b61024f610471366004611d00565b6001600160a01b03918216600090815260016020908152604080832093909416825291909152205490565b6102496115c4565b6104fe6104b2366004611c3f565b600b60205260009081526040902060018101546002909101546001600160801b0380831692600160801b900416906001600160601b03811690600160601b90046001600160a01b031684565b604080516001600160801b0395861681529490931660208501526001600160601b03909116918301919091526001600160a01b03166060820152608001610215565b61040b7f000000000000000000000000000000000000000000000000000000000000000081565b60606003805461057690611d33565b80601f01602080910402602001604051908101604052809291908181526020018280546105a290611d33565b80156105ef5780601f106105c4576101008083540402835291602001916105ef565b820191906000526020600020905b8154815290600101906020018083116105d257829003601f168201915b5050505050905090565b60006106063384846115fa565b5060015b92915050565b600654431061064e5760026007600082825461062c9190611d99565b9250508190555062034bc0600660008282546106489190611dad565b90915550505b33321461068d5760405162461bcd60e51b81526020600482015260086024820152676e6f206d6167696360c01b60448201526064015b60405180910390fd5b60055443146106fc5760006106a760075460055443030290565b90506106b3308261171e565b6106be600282611d99565b436000818152600a6020526040902080546001600160801b03908116600160801b9482168502178255600592909255546106fa929004166117eb565b505b336000908152600b60205260409020600181015481546001600160801b0390911690036107635780546001810182556000828152602090206008820401805460079092166004026101000a63ffffffff8181021990931643909316029190911790556107bc565b60018101548154439183916001600160801b0390911690811061078857610788611dc0565b90600052602060002090600891828204019190066004026101000a81548163ffffffff021916908363ffffffff1602179055505b436000908152600a60209081526040918290205491516001600160801b03909216825233917f0f6798a560793a54c3bcfe86a93cde1e73087d944c0ea20544137d4121396885910160405180910390a2436000908152600a6020526040812080546001600160801b03169161083083611dd6565b82546101009290920a6001600160801b038181021990931691831602179091556001830180549091169150600061086683611dd6565b91906101000a8154816001600160801b0302191690836001600160801b031602179055505050565b6001600160a01b0381166000908152600b6020526040812060010154606091906001600160801b031667ffffffffffffffff8111156108cf576108cf611dfc565b6040519080825280602002602001820160405280156108f8578160200160208202803683370190505b50905060005b6001600160a01b0384166000908152600b60205260409020600101546001600160801b03168110156109b3576001600160a01b0384166000908152600b6020526040902080548290811061095457610954611dc0565b90600052602060002090600891828204019190066004029054906101000a900463ffffffff1682828151811061098c5761098c611dc0565b63ffffffff90921660209283029190910190910152806109ab81611e12565b9150506108fe565b5092915050565b60006109c7848484611816565b6001600160a01b038416600090815260016020908152604080832033845290915290205482811015610a4c5760405162461bcd60e51b815260206004820152602860248201527f45524332303a207472616e7366657220616d6f756e74206578636565647320616044820152676c6c6f77616e636560c01b6064820152608401610684565b610a5985338584036115fa565b506001949350505050565b600954336000908152600b6020526040902060020154600160601b90046001600160a01b031614610ae057610a9833610fdf565b336000908152600b6020526040902060020180546001600160601b03929092166001600160601b0319909216821781556009546001600160a01b0316600160601b0290911790555b336000908152600b6020526040902060010154600160801b90046001600160801b0316811115610b525760405162461bcd60e51b815260206004820152601a60248201527f616d6f756e742063616e6e6f74206f766572207374616b6573210000000000006044820152606401610684565b336000908152600b602052604090206001018054829190601090610b87908490600160801b90046001600160801b0316611e2b565b92506101000a8154816001600160801b0302191690836001600160801b031602179055508060086000828254610bbd9190611e4b565b909155505060405163a9059cbb60e01b8152336004820152602481018290527f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03169063a9059cbb906044016020604051808303816000875af1158015610c2f573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610c539190611e5e565b5060405181815233907f141ef67c4a6d3ec2adfb2f66d33c2b11de5b4f34344757554d430570b18a92ec906020015b60405180910390a250565b3360008181526001602090815260408083206001600160a01b03871684529091528120549091610606918590610cc4908690611dad565b6115fa565b610cd33382611a2f565b50565b336000908152600b602090815260408083208151815460c09481028201850190935260a08101838152909391928492849190840182828015610d6357602002820191906000526020600020906000905b82829054906101000a900463ffffffff1663ffffffff1681526020019060040190602082600301049283019260010382029150808411610d265790505b50505091835250506001828101546001600160801b03808216602080860191909152600160801b9092041660408401526002909301546001600160601b0381166060840152600160601b90046001600160a01b03166080909201919091528251918301519293504392610dd69190611e2b565b6001600160801b031681518110610def57610def611dc0565b602002602001015163ffffffff1603610e555760405162461bcd60e51b815260206004820152602260248201527f6d696e7420636c61696d2063616e6e6f7420696e2073616d706c6520626c6f636044820152616b2160f01b6064820152608401610684565b6000610e603361141b565b336000818152600b60205260409081902060010180546fffffffffffffffffffffffffffffffff191690555163a9059cbb60e01b81526004810191909152602481018290529091506001600160a01b037f0000000000000000000000000000000000000000000000000000000000000000169063a9059cbb906044016020604051808303816000875af1158015610efb573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610f1f9190611e5e565b5060405181815233907f47cee97cb7acd717b3c0aa1435d004cd5b3c8c57d70dbceb4e4458bbd60e39d49060200160405180910390a25050565b6000610f658333610471565b905081811015610fc35760405162461bcd60e51b8152602060048201526024808201527f45524332303a206275726e20616d6f756e74206578636565647320616c6c6f77604482015263616e636560e01b6064820152608401610684565b610fd083338484036115fa565b610fda8383611a2f565b505050565b6001600160a01b039081166000908152600b6020526040902060028101546009546001909201546001600160601b038216670de0b6b3a7640000600160601b909304909416909203600160801b9092046001600160801b031691909102040190565b60606004805461057690611d33565b3360009081526001602090815260408083206001600160a01b0386168452909152812054828110156110d25760405162461bcd60e51b815260206004820152602560248201527f45524332303a2064656372656173656420616c6c6f77616e63652062656c6f77604482015264207a65726f60d81b6064820152608401610684565b6110df33858584036115fa565b5060019392505050565b600954336000908152600b6020526040902060020154600160601b90046001600160a01b0316146111655761111d33610fdf565b336000908152600b6020526040902060020180546001600160601b03929092166001600160601b0319909216821781556009546001600160a01b0316600160601b0290911790555b6040516323b872dd60e01b8152336004820152306024820152604481018290527f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316906323b872dd906064016020604051808303816000875af11580156111d8573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906111fc9190611e5e565b50336000908152600b602052604090206001018054829190601090611232908490600160801b90046001600160801b0316611e80565b92506101000a8154816001600160801b0302191690836001600160801b0316021790555080600860008282546112689190611dad565b909155505060405181815233907febedb8b3c678666e7f36970bc8f57abf6d8fa2e828c0da91ea5b75bf68ed101a90602001610c82565b6000610606338484611816565b600954336000908152600b6020526040902060020154600160601b90046001600160a01b031614611328576112e033610fdf565b336000908152600b6020526040902060020180546001600160601b03929092166001600160601b0319909216821781556009546001600160a01b0316600160601b0290911790555b336000818152600b60205260409081902060020180546001600160601b03198116909155905163a9059cbb60e01b815260048101929092526001600160601b031660248201819052906001600160a01b037f0000000000000000000000000000000000000000000000000000000000000000169063a9059cbb906044016020604051808303816000875af11580156113c4573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906113e89190611e5e565b5060405181815233907fbc84835063c693975166f00cffb19f01a94c2db55b1bf259238c5da3594e506690602001610c82565b6001600160a01b0381166000908152600b602090815260408083208151815460c09481028201850190935260a081018381528594919384928491908401828280156114b157602002820191906000526020600020906000905b82829054906101000a900463ffffffff1663ffffffff16815260200190600401906020826003010492830192600103820291508084116114745790505b505050918352505060018201546001600160801b038082166020840152600160801b9091041660408201526002909101546001600160601b0381166060830152600160601b90046001600160a01b031660809091015290506000805b82602001516001600160801b03168110156115bc576000600a60008560000151848151811061153e5761153e611dc0565b60209081029190910181015163ffffffff1682528181019290925260409081016000208151808301909252546001600160801b03808216808452600160801b9092041692820183905290925061159391611ea0565b6115a6906001600160801b031684611dad565b92505080806115b490611e12565b91505061150d565b509392505050565b336000908152600b60205260409020600101546115f090600160801b90046001600160801b0316610a64565b6115f86112ac565b565b6001600160a01b03831661165c5760405162461bcd60e51b8152602060048201526024808201527f45524332303a20617070726f76652066726f6d20746865207a65726f206164646044820152637265737360e01b6064820152608401610684565b6001600160a01b0382166116bd5760405162461bcd60e51b815260206004820152602260248201527f45524332303a20617070726f766520746f20746865207a65726f206164647265604482015261737360f01b6064820152608401610684565b6001600160a01b0383811660008181526001602090815260408083209487168084529482529182902085905590518481527f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925910160405180910390a3505050565b6001600160a01b0382166117745760405162461bcd60e51b815260206004820152601f60248201527f45524332303a206d696e7420746f20746865207a65726f2061646472657373006044820152606401610684565b80600260008282546117869190611dad565b90915550506001600160a01b038216600090815260208190526040812080548392906117b3908490611dad565b90915550506040518181526001600160a01b03831690600090600080516020611ec78339815191529060200160405180910390a35050565b60085481670de0b6b3a7640000028161180657611806611d6d565b6009805492909104909101905550565b6001600160a01b03831661187a5760405162461bcd60e51b815260206004820152602560248201527f45524332303a207472616e736665722066726f6d20746865207a65726f206164604482015264647265737360d81b6064820152608401610684565b6001600160a01b0382166118dc5760405162461bcd60e51b815260206004820152602360248201527f45524332303a207472616e7366657220746f20746865207a65726f206164647260448201526265737360e81b6064820152608401610684565b6001600160a01b038316600090815260208190526040902054818110156119545760405162461bcd60e51b815260206004820152602660248201527f45524332303a207472616e7366657220616d6f756e7420657863656564732062604482015265616c616e636560d01b6064820152608401610684565b6001600160a01b038416600081815260208190526040812084840390559030146119de5750306000818152602081815260409182902080546103e8870490810190915591518281529192916001600160a01b03881691600080516020611ec7833981519152910160405180910390a3600281046119d13082611a2f565b6119dc8183036117eb565b505b6001600160a01b0384811660008181526020818152604091829020805486890390810190915591518281529193891691600080516020611ec7833981519152910160405180910390a3505050505050565b6001600160a01b038216611a8f5760405162461bcd60e51b815260206004820152602160248201527f45524332303a206275726e2066726f6d20746865207a65726f206164647265736044820152607360f81b6064820152608401610684565b6001600160a01b03821660009081526020819052604090205481811015611b035760405162461bcd60e51b815260206004820152602260248201527f45524332303a206275726e20616d6f756e7420657863656564732062616c616e604482015261636560f01b6064820152608401610684565b6001600160a01b0383166000908152602081905260408120838303905560028054849290611b32908490611e4b565b9091555050600080805260208190527fad3228b676f7d3cd4284a5443f17f1962b36e491b30a40b2405849e597ba5fb58054849290611b72908490611dad565b90915550506040518281526000906001600160a01b03851690600080516020611ec78339815191529060200160405180910390a3505050565b600060208083528351808285015260005b81811015611bd857858101830151858201604001528201611bbc565b506000604082860101526040601f19601f8301168501019250505092915050565b80356001600160a01b0381168114611c1057600080fd5b919050565b60008060408385031215611c2857600080fd5b611c3183611bf9565b946020939093013593505050565b600060208284031215611c5157600080fd5b611c5a82611bf9565b9392505050565b6020808252825182820181905260009190848201906040850190845b81811015611c9f57835163ffffffff1683529284019291840191600101611c7d565b50909695505050505050565b600080600060608486031215611cc057600080fd5b611cc984611bf9565b9250611cd760208501611bf9565b9150604084013590509250925092565b600060208284031215611cf957600080fd5b5035919050565b60008060408385031215611d1357600080fd5b611d1c83611bf9565b9150611d2a60208401611bf9565b90509250929050565b600181811c90821680611d4757607f821691505b602082108103611d6757634e487b7160e01b600052602260045260246000fd5b50919050565b634e487b7160e01b600052601260045260246000fd5b634e487b7160e01b600052601160045260246000fd5b600082611da857611da8611d6d565b500490565b8082018082111561060a5761060a611d83565b634e487b7160e01b600052603260045260246000fd5b60006001600160801b03808316818103611df257611df2611d83565b6001019392505050565b634e487b7160e01b600052604160045260246000fd5b600060018201611e2457611e24611d83565b5060010190565b6001600160801b038281168282160390808211156109b3576109b3611d83565b8181038181111561060a5761060a611d83565b600060208284031215611e7057600080fd5b81518015158114611c5a57600080fd5b6001600160801b038181168382160190808211156109b3576109b3611d83565b60006001600160801b0380841680611eba57611eba611d6d565b9216919091049291505056feddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3efa2646970667358221220a675f52bdf3d4f1e6c553a355cc7b5f8110bd6f21ff61cf6740bfd3a7b1db50264736f6c63430008110033

Deployed Bytecode

0x608060405234801561001057600080fd5b50600436106101fb5760003560e01c806379ee54f71161011a578063a9059cbb116100ad578063d8daba5e1161007c578063d8daba5e1461045a578063dd62ed3e14610463578063e9fad8ee1461049c578063ed3ac0de146104a4578063fc0c546a1461054057600080fd5b8063a9059cbb14610423578063ad09c7ce14610436578063c885bc581461043f578063d0d46a0b1461044757600080fd5b80639dbd768e116100e95780639dbd768e146103b0578063a457c2d7146103be578063a694fc3a146103d1578063a8aa1b31146103e457600080fd5b806379ee54f7146103825780637bb1a78f14610395578063806b984f1461039f57806395d89b41146103a857600080fd5b806325da3876116101925780634e71d92d116101615780634e71d92d146102ea5780636138735c146102f257806370a082311461034657806379cc67901461036f57600080fd5b806325da3876146102ac578063313ce567146102b557806339509351146102c457806342966c68146102d757600080fd5b80631abef2c5116101ce5780631abef2c51461025d57806323499c071461027d57806323b872dd1461028657806325d5971f1461029957600080fd5b806306fdde0314610200578063095ea7b31461021e5780631249c58b1461024157806318160ddd1461024b575b600080fd5b610208610567565b6040516102159190611bab565b60405180910390f35b61023161022c366004611c15565b6105f9565b6040519015158152602001610215565b610249610610565b005b6002545b604051908152602001610215565b61027061026b366004611c3f565b61088e565b6040516102159190611c61565b61024f60065481565b610231610294366004611cab565b6109ba565b6102496102a7366004611ce7565b610a64565b61024f60075481565b60405160128152602001610215565b6102316102d2366004611c15565b610c8d565b6102496102e5366004611ce7565b610cc9565b610249610cd6565b610326610300366004611ce7565b600a602052600090815260409020546001600160801b0380821691600160801b90041682565b604080516001600160801b03938416815292909116602083015201610215565b61024f610354366004611c3f565b6001600160a01b031660009081526020819052604090205490565b61024961037d366004611c15565b610f59565b61024f610390366004611c3f565b610fdf565b61024f62034bc081565b61024f60055481565b610208611041565b60075460055443030261024f565b6102316103cc366004611c15565b611050565b6102496103df366004611ce7565b6110e9565b61040b7f00000000000000000000000023204642f1f055434c714630009024d598e32a2681565b6040516001600160a01b039091168152602001610215565b610231610431366004611c15565b61129f565b61024f60085481565b6102496112ac565b61024f610455366004611c3f565b61141b565b61024f60095481565b61024f610471366004611d00565b6001600160a01b03918216600090815260016020908152604080832093909416825291909152205490565b6102496115c4565b6104fe6104b2366004611c3f565b600b60205260009081526040902060018101546002909101546001600160801b0380831692600160801b900416906001600160601b03811690600160601b90046001600160a01b031684565b604080516001600160801b0395861681529490931660208501526001600160601b03909116918301919091526001600160a01b03166060820152608001610215565b61040b7f000000000000000000000000ab6882191d076dbe969f5225133000182c7c163381565b60606003805461057690611d33565b80601f01602080910402602001604051908101604052809291908181526020018280546105a290611d33565b80156105ef5780601f106105c4576101008083540402835291602001916105ef565b820191906000526020600020905b8154815290600101906020018083116105d257829003601f168201915b5050505050905090565b60006106063384846115fa565b5060015b92915050565b600654431061064e5760026007600082825461062c9190611d99565b9250508190555062034bc0600660008282546106489190611dad565b90915550505b33321461068d5760405162461bcd60e51b81526020600482015260086024820152676e6f206d6167696360c01b60448201526064015b60405180910390fd5b60055443146106fc5760006106a760075460055443030290565b90506106b3308261171e565b6106be600282611d99565b436000818152600a6020526040902080546001600160801b03908116600160801b9482168502178255600592909255546106fa929004166117eb565b505b336000908152600b60205260409020600181015481546001600160801b0390911690036107635780546001810182556000828152602090206008820401805460079092166004026101000a63ffffffff8181021990931643909316029190911790556107bc565b60018101548154439183916001600160801b0390911690811061078857610788611dc0565b90600052602060002090600891828204019190066004026101000a81548163ffffffff021916908363ffffffff1602179055505b436000908152600a60209081526040918290205491516001600160801b03909216825233917f0f6798a560793a54c3bcfe86a93cde1e73087d944c0ea20544137d4121396885910160405180910390a2436000908152600a6020526040812080546001600160801b03169161083083611dd6565b82546101009290920a6001600160801b038181021990931691831602179091556001830180549091169150600061086683611dd6565b91906101000a8154816001600160801b0302191690836001600160801b031602179055505050565b6001600160a01b0381166000908152600b6020526040812060010154606091906001600160801b031667ffffffffffffffff8111156108cf576108cf611dfc565b6040519080825280602002602001820160405280156108f8578160200160208202803683370190505b50905060005b6001600160a01b0384166000908152600b60205260409020600101546001600160801b03168110156109b3576001600160a01b0384166000908152600b6020526040902080548290811061095457610954611dc0565b90600052602060002090600891828204019190066004029054906101000a900463ffffffff1682828151811061098c5761098c611dc0565b63ffffffff90921660209283029190910190910152806109ab81611e12565b9150506108fe565b5092915050565b60006109c7848484611816565b6001600160a01b038416600090815260016020908152604080832033845290915290205482811015610a4c5760405162461bcd60e51b815260206004820152602860248201527f45524332303a207472616e7366657220616d6f756e74206578636565647320616044820152676c6c6f77616e636560c01b6064820152608401610684565b610a5985338584036115fa565b506001949350505050565b600954336000908152600b6020526040902060020154600160601b90046001600160a01b031614610ae057610a9833610fdf565b336000908152600b6020526040902060020180546001600160601b03929092166001600160601b0319909216821781556009546001600160a01b0316600160601b0290911790555b336000908152600b6020526040902060010154600160801b90046001600160801b0316811115610b525760405162461bcd60e51b815260206004820152601a60248201527f616d6f756e742063616e6e6f74206f766572207374616b6573210000000000006044820152606401610684565b336000908152600b602052604090206001018054829190601090610b87908490600160801b90046001600160801b0316611e2b565b92506101000a8154816001600160801b0302191690836001600160801b031602179055508060086000828254610bbd9190611e4b565b909155505060405163a9059cbb60e01b8152336004820152602481018290527f00000000000000000000000023204642f1f055434c714630009024d598e32a266001600160a01b03169063a9059cbb906044016020604051808303816000875af1158015610c2f573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610c539190611e5e565b5060405181815233907f141ef67c4a6d3ec2adfb2f66d33c2b11de5b4f34344757554d430570b18a92ec906020015b60405180910390a250565b3360008181526001602090815260408083206001600160a01b03871684529091528120549091610606918590610cc4908690611dad565b6115fa565b610cd33382611a2f565b50565b336000908152600b602090815260408083208151815460c09481028201850190935260a08101838152909391928492849190840182828015610d6357602002820191906000526020600020906000905b82829054906101000a900463ffffffff1663ffffffff1681526020019060040190602082600301049283019260010382029150808411610d265790505b50505091835250506001828101546001600160801b03808216602080860191909152600160801b9092041660408401526002909301546001600160601b0381166060840152600160601b90046001600160a01b03166080909201919091528251918301519293504392610dd69190611e2b565b6001600160801b031681518110610def57610def611dc0565b602002602001015163ffffffff1603610e555760405162461bcd60e51b815260206004820152602260248201527f6d696e7420636c61696d2063616e6e6f7420696e2073616d706c6520626c6f636044820152616b2160f01b6064820152608401610684565b6000610e603361141b565b336000818152600b60205260409081902060010180546fffffffffffffffffffffffffffffffff191690555163a9059cbb60e01b81526004810191909152602481018290529091506001600160a01b037f000000000000000000000000ab6882191d076dbe969f5225133000182c7c1633169063a9059cbb906044016020604051808303816000875af1158015610efb573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610f1f9190611e5e565b5060405181815233907f47cee97cb7acd717b3c0aa1435d004cd5b3c8c57d70dbceb4e4458bbd60e39d49060200160405180910390a25050565b6000610f658333610471565b905081811015610fc35760405162461bcd60e51b8152602060048201526024808201527f45524332303a206275726e20616d6f756e74206578636565647320616c6c6f77604482015263616e636560e01b6064820152608401610684565b610fd083338484036115fa565b610fda8383611a2f565b505050565b6001600160a01b039081166000908152600b6020526040902060028101546009546001909201546001600160601b038216670de0b6b3a7640000600160601b909304909416909203600160801b9092046001600160801b031691909102040190565b60606004805461057690611d33565b3360009081526001602090815260408083206001600160a01b0386168452909152812054828110156110d25760405162461bcd60e51b815260206004820152602560248201527f45524332303a2064656372656173656420616c6c6f77616e63652062656c6f77604482015264207a65726f60d81b6064820152608401610684565b6110df33858584036115fa565b5060019392505050565b600954336000908152600b6020526040902060020154600160601b90046001600160a01b0316146111655761111d33610fdf565b336000908152600b6020526040902060020180546001600160601b03929092166001600160601b0319909216821781556009546001600160a01b0316600160601b0290911790555b6040516323b872dd60e01b8152336004820152306024820152604481018290527f00000000000000000000000023204642f1f055434c714630009024d598e32a266001600160a01b0316906323b872dd906064016020604051808303816000875af11580156111d8573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906111fc9190611e5e565b50336000908152600b602052604090206001018054829190601090611232908490600160801b90046001600160801b0316611e80565b92506101000a8154816001600160801b0302191690836001600160801b0316021790555080600860008282546112689190611dad565b909155505060405181815233907febedb8b3c678666e7f36970bc8f57abf6d8fa2e828c0da91ea5b75bf68ed101a90602001610c82565b6000610606338484611816565b600954336000908152600b6020526040902060020154600160601b90046001600160a01b031614611328576112e033610fdf565b336000908152600b6020526040902060020180546001600160601b03929092166001600160601b0319909216821781556009546001600160a01b0316600160601b0290911790555b336000818152600b60205260409081902060020180546001600160601b03198116909155905163a9059cbb60e01b815260048101929092526001600160601b031660248201819052906001600160a01b037f000000000000000000000000ab6882191d076dbe969f5225133000182c7c1633169063a9059cbb906044016020604051808303816000875af11580156113c4573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906113e89190611e5e565b5060405181815233907fbc84835063c693975166f00cffb19f01a94c2db55b1bf259238c5da3594e506690602001610c82565b6001600160a01b0381166000908152600b602090815260408083208151815460c09481028201850190935260a081018381528594919384928491908401828280156114b157602002820191906000526020600020906000905b82829054906101000a900463ffffffff1663ffffffff16815260200190600401906020826003010492830192600103820291508084116114745790505b505050918352505060018201546001600160801b038082166020840152600160801b9091041660408201526002909101546001600160601b0381166060830152600160601b90046001600160a01b031660809091015290506000805b82602001516001600160801b03168110156115bc576000600a60008560000151848151811061153e5761153e611dc0565b60209081029190910181015163ffffffff1682528181019290925260409081016000208151808301909252546001600160801b03808216808452600160801b9092041692820183905290925061159391611ea0565b6115a6906001600160801b031684611dad565b92505080806115b490611e12565b91505061150d565b509392505050565b336000908152600b60205260409020600101546115f090600160801b90046001600160801b0316610a64565b6115f86112ac565b565b6001600160a01b03831661165c5760405162461bcd60e51b8152602060048201526024808201527f45524332303a20617070726f76652066726f6d20746865207a65726f206164646044820152637265737360e01b6064820152608401610684565b6001600160a01b0382166116bd5760405162461bcd60e51b815260206004820152602260248201527f45524332303a20617070726f766520746f20746865207a65726f206164647265604482015261737360f01b6064820152608401610684565b6001600160a01b0383811660008181526001602090815260408083209487168084529482529182902085905590518481527f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925910160405180910390a3505050565b6001600160a01b0382166117745760405162461bcd60e51b815260206004820152601f60248201527f45524332303a206d696e7420746f20746865207a65726f2061646472657373006044820152606401610684565b80600260008282546117869190611dad565b90915550506001600160a01b038216600090815260208190526040812080548392906117b3908490611dad565b90915550506040518181526001600160a01b03831690600090600080516020611ec78339815191529060200160405180910390a35050565b60085481670de0b6b3a7640000028161180657611806611d6d565b6009805492909104909101905550565b6001600160a01b03831661187a5760405162461bcd60e51b815260206004820152602560248201527f45524332303a207472616e736665722066726f6d20746865207a65726f206164604482015264647265737360d81b6064820152608401610684565b6001600160a01b0382166118dc5760405162461bcd60e51b815260206004820152602360248201527f45524332303a207472616e7366657220746f20746865207a65726f206164647260448201526265737360e81b6064820152608401610684565b6001600160a01b038316600090815260208190526040902054818110156119545760405162461bcd60e51b815260206004820152602660248201527f45524332303a207472616e7366657220616d6f756e7420657863656564732062604482015265616c616e636560d01b6064820152608401610684565b6001600160a01b038416600081815260208190526040812084840390559030146119de5750306000818152602081815260409182902080546103e8870490810190915591518281529192916001600160a01b03881691600080516020611ec7833981519152910160405180910390a3600281046119d13082611a2f565b6119dc8183036117eb565b505b6001600160a01b0384811660008181526020818152604091829020805486890390810190915591518281529193891691600080516020611ec7833981519152910160405180910390a3505050505050565b6001600160a01b038216611a8f5760405162461bcd60e51b815260206004820152602160248201527f45524332303a206275726e2066726f6d20746865207a65726f206164647265736044820152607360f81b6064820152608401610684565b6001600160a01b03821660009081526020819052604090205481811015611b035760405162461bcd60e51b815260206004820152602260248201527f45524332303a206275726e20616d6f756e7420657863656564732062616c616e604482015261636560f01b6064820152608401610684565b6001600160a01b0383166000908152602081905260408120838303905560028054849290611b32908490611e4b565b9091555050600080805260208190527fad3228b676f7d3cd4284a5443f17f1962b36e491b30a40b2405849e597ba5fb58054849290611b72908490611dad565b90915550506040518281526000906001600160a01b03851690600080516020611ec78339815191529060200160405180910390a3505050565b600060208083528351808285015260005b81811015611bd857858101830151858201604001528201611bbc565b506000604082860101526040601f19601f8301168501019250505092915050565b80356001600160a01b0381168114611c1057600080fd5b919050565b60008060408385031215611c2857600080fd5b611c3183611bf9565b946020939093013593505050565b600060208284031215611c5157600080fd5b611c5a82611bf9565b9392505050565b6020808252825182820181905260009190848201906040850190845b81811015611c9f57835163ffffffff1683529284019291840191600101611c7d565b50909695505050505050565b600080600060608486031215611cc057600080fd5b611cc984611bf9565b9250611cd760208501611bf9565b9150604084013590509250925092565b600060208284031215611cf957600080fd5b5035919050565b60008060408385031215611d1357600080fd5b611d1c83611bf9565b9150611d2a60208401611bf9565b90509250929050565b600181811c90821680611d4757607f821691505b602082108103611d6757634e487b7160e01b600052602260045260246000fd5b50919050565b634e487b7160e01b600052601260045260246000fd5b634e487b7160e01b600052601160045260246000fd5b600082611da857611da8611d6d565b500490565b8082018082111561060a5761060a611d83565b634e487b7160e01b600052603260045260246000fd5b60006001600160801b03808316818103611df257611df2611d83565b6001019392505050565b634e487b7160e01b600052604160045260246000fd5b600060018201611e2457611e24611d83565b5060010190565b6001600160801b038281168282160390808211156109b3576109b3611d83565b8181038181111561060a5761060a611d83565b600060208284031215611e7057600080fd5b81518015158114611c5a57600080fd5b6001600160801b038181168382160190808211156109b3576109b3611d83565b60006001600160801b0380841680611eba57611eba611d6d565b9216919091049291505056feddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3efa2646970667358221220a675f52bdf3d4f1e6c553a355cc7b5f8110bd6f21ff61cf6740bfd3a7b1db50264736f6c63430008110033

Loading...
Loading
Loading...
Loading
[ Download: CSV Export  ]
[ Download: CSV Export  ]

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