ETH Price: $3,625.95 (+9.12%)

Contract

0x532F6f3f09992Ca64Cff811BD9bFd18B4f1f48A8
 

Overview

ETH Balance

0 ETH

Eth Value

$0.00

Multichain Info

No addresses found
Transaction Hash
Method
Block
From
To
Claim Reward140689402022-01-24 14:49:111038 days ago1643035751IN
0x532F6f3f...B4f1f48A8
0 ETH0.05571502144.1523471
Set Core Address140627242022-01-23 15:35:111039 days ago1642952111IN
0x532F6f3f...B4f1f48A8
0 ETH0.00400709138.13288389
0x60a06040140621962022-01-23 13:39:041039 days ago1642945144IN
 Create: RewardToken
0 ETH0.1346718785

Latest 25 internal transactions (View All)

Advanced mode:
Parent Transaction Hash Block From To
140935632022-01-28 10:13:281034 days ago1643364808
0x532F6f3f...B4f1f48A8
0 ETH
140935632022-01-28 10:13:281034 days ago1643364808
0x532F6f3f...B4f1f48A8
0 ETH
140935372022-01-28 10:08:311034 days ago1643364511
0x532F6f3f...B4f1f48A8
0 ETH
140935372022-01-28 10:08:311034 days ago1643364511
0x532F6f3f...B4f1f48A8
0 ETH
140732292022-01-25 6:43:181037 days ago1643092998
0x532F6f3f...B4f1f48A8
0 ETH
140732292022-01-25 6:43:181037 days ago1643092998
0x532F6f3f...B4f1f48A8
0 ETH
140697392022-01-24 17:38:451038 days ago1643045925
0x532F6f3f...B4f1f48A8
0 ETH
140697392022-01-24 17:38:451038 days ago1643045925
0x532F6f3f...B4f1f48A8
0 ETH
140692862022-01-24 16:02:181038 days ago1643040138
0x532F6f3f...B4f1f48A8
0 ETH
140692862022-01-24 16:02:181038 days ago1643040138
0x532F6f3f...B4f1f48A8
0 ETH
140690992022-01-24 15:24:141038 days ago1643037854
0x532F6f3f...B4f1f48A8
0 ETH
140690992022-01-24 15:24:141038 days ago1643037854
0x532F6f3f...B4f1f48A8
0 ETH
140690652022-01-24 15:15:091038 days ago1643037309
0x532F6f3f...B4f1f48A8
0 ETH
140690652022-01-24 15:15:091038 days ago1643037309
0x532F6f3f...B4f1f48A8
0 ETH
140689402022-01-24 14:49:111038 days ago1643035751
0x532F6f3f...B4f1f48A8
0 ETH
140689002022-01-24 14:40:481038 days ago1643035248
0x532F6f3f...B4f1f48A8
0 ETH
140689002022-01-24 14:40:481038 days ago1643035248
0x532F6f3f...B4f1f48A8
0 ETH
140688622022-01-24 14:33:301038 days ago1643034810
0x532F6f3f...B4f1f48A8
0 ETH
140688622022-01-24 14:33:301038 days ago1643034810
0x532F6f3f...B4f1f48A8
0 ETH
140688622022-01-24 14:33:301038 days ago1643034810
0x532F6f3f...B4f1f48A8
0 ETH
140688622022-01-24 14:33:301038 days ago1643034810
0x532F6f3f...B4f1f48A8
0 ETH
140688562022-01-24 14:32:011038 days ago1643034721
0x532F6f3f...B4f1f48A8
0 ETH
140688562022-01-24 14:32:011038 days ago1643034721
0x532F6f3f...B4f1f48A8
0 ETH
140688562022-01-24 14:32:011038 days ago1643034721
0x532F6f3f...B4f1f48A8
0 ETH
140688562022-01-24 14:32:011038 days ago1643034721
0x532F6f3f...B4f1f48A8
0 ETH
View All Internal Transactions
Loading...
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
RewardToken

Compiler Version
v0.8.7+commit.e28d00a7

Optimization Enabled:
Yes with 2200 runs

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

// ,--------.,------.,------.  ,------.,--.   ,--.
// '--.  .--'|  .---'|  .-.  \ |  .-.  \\  `.'  /
//    |  |   |  `--, |  |  \  :|  |  \  :'.    /
//    |  |   |  `---.|  '--'  /|  '--'  /  |  |
//    `--'   `------'`-------' `-------'   `--'
// ,-----.  ,------.  ,---.  ,------.
// |  |) /_ |  .---' /  O  \ |  .--. '
// |  .-.  \|  `--, |  .-.  ||  '--'.'
// |  '--' /|  `---.|  | |  ||  |\  \
// `------' `------'`--' `--'`--' '--'
//  ,---.   ,-----.   ,--. ,--.  ,---.  ,------.
// '   .-' '  .-.  '  |  | |  | /  O  \ |  .-.  \
// `.  `-. |  | |  |  |  | |  ||  .-.  ||  |  \  :
// .-'    |'  '-'  '-.'  '-'  '|  | |  ||  '--'  /
// `-----'  `-----'--' `-----' `--' `--'`-------'
//

//    _ _______ ______     _______
//   | |__   __/ __ \ \   / / ____|
//  / __) | | | |  | \ \_/ / (___
//  \__ \ | | | |  | |\   / \___ \
//  (   / | | | |__| | | |  ____) |
//   |_|  |_|  \____/  |_| |_____/

// @nftchef

import "@openzeppelin/contracts/token/ERC20/ERC20.sol";
import "@openzeppelin/contracts/token/ERC20/extensions/ERC20Burnable.sol";
import "@openzeppelin/contracts/access/Ownable.sol";
import "@openzeppelin/contracts/token/ERC20/extensions/ERC20Pausable.sol";

interface iCoreContract {
    function balanceOf(address owner) external view returns (uint256);
}

contract RewardToken is ERC20, ERC20Pausable, ERC20Burnable, Ownable {
    // @dev: deployed erc721 contract of NFT's earning rewards
    iCoreContract public CoreToken;
    uint256 public constant REWARD_RATE = 10 ether;

    // 10 year supply
    uint256 private immutable _cap = 365336530 ether;

    mapping(address => uint256) public rewards;
    mapping(address => uint256) public lastClaimed;

    mapping(address => bool) public accessAddresses;

    event RewardClaimed(address indexed user, uint256 reward);

    constructor(address _coreContractAddress)
        ERC20("Teddy Bear Squad Toys", "TOYS")
    {
        /// @dev: Initialize the erc721 contract
        CoreToken = iCoreContract(_coreContractAddress);
    }

    // Only callable by the erc721 contract on mint/transferFrom/safeTransferFrom.
    // Updates reward amount and last claimed timestamp
    function updateReward(address from, address to) external {
        require(msg.sender == address(CoreToken));
        if (from != address(0)) {
            rewards[from] += getPendingReward(from);
            lastClaimed[from] = block.timestamp;
        }
        if (to != address(0)) {
            rewards[to] += getPendingReward(to);
            lastClaimed[to] = block.timestamp;
        }
    }

    function claimReward() external whenNotPaused {
        uint256 claimable = rewards[msg.sender] + getPendingReward(msg.sender);
        require(
            ERC20.totalSupply() + claimable <= cap(),
            "ERC20Capped: cap exceeded"
        );
        _mint(msg.sender, claimable);

        emit RewardClaimed(msg.sender, claimable);

        /// @dev: reset the state of a users claimed state and last claimed
        rewards[msg.sender] = 0;
        lastClaimed[msg.sender] = block.timestamp;
    }

    function getTotalClaimable(address user) external view returns (uint256) {
        return rewards[user] + getPendingReward(user);
    }

    function blocktime() public returns (uint256) {
        return block.timestamp;
    }

    function getPendingReward(address _user) internal view returns (uint256) {
        return
            (CoreToken.balanceOf(_user) *
                REWARD_RATE *
                (block.timestamp -
                    (
                        lastClaimed[_user] > 0
                            ? lastClaimed[_user]
                            : block.timestamp
                    ))) / 1 days;
    }

    // @dev: Allow the main contract to burn tokens when 'spending'
    function spend(address user, uint256 amount) external {
        require(
            accessAddresses[msg.sender] || msg.sender == address(CoreToken),
            "Address does not have permission to burn"
        );
        _burn(user, amount);
    }

    /**
     * @dev Required override
     */

    function _beforeTokenTransfer(
        address from,
        address to,
        uint256 amount
    ) internal override(ERC20, ERC20Pausable) whenNotPaused {
        super._beforeTokenTransfer(from, to, amount);
    }

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

    // 。☆✼★━━━━━━━━ ( ˘▽˘)っ♨  only owner ━━━━━━━━━━━━━★✼☆。

    function setAccessAddresses(address _address, bool _access)
        external
        onlyOwner
    {
        accessAddresses[_address] = _access;
    }

    function setCoreAddress(address _address) external onlyOwner {
        CoreToken = iCoreContract(_address);
    }

    function togglePaused() external onlyOwner {
        paused() ? _unpause() : _pause();
    }
}

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

pragma solidity ^0.8.0;

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

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

File 3 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 4 of 9 : ERC20Pausable.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (token/ERC20/extensions/ERC20Pausable.sol)

pragma solidity ^0.8.0;

import "../ERC20.sol";
import "../../../security/Pausable.sol";

/**
 * @dev ERC20 token with pausable token transfers, minting and burning.
 *
 * Useful for scenarios such as preventing trades until the end of an evaluation
 * period, or having an emergency switch for freezing all token transfers in the
 * event of a large bug.
 */
abstract contract ERC20Pausable is ERC20, Pausable {
    /**
     * @dev See {ERC20-_beforeTokenTransfer}.
     *
     * Requirements:
     *
     * - the contract must not be paused.
     */
    function _beforeTokenTransfer(
        address from,
        address to,
        uint256 amount
    ) internal virtual override {
        super._beforeTokenTransfer(from, to, amount);

        require(!paused(), "ERC20Pausable: token transfer while paused");
    }
}

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

pragma solidity ^0.8.0;

import "../ERC20.sol";
import "../../../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 6 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 7 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 8 of 9 : Pausable.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (security/Pausable.sol)

pragma solidity ^0.8.0;

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

/**
 * @dev Contract module which allows children to implement an emergency stop
 * mechanism that can be triggered by an authorized account.
 *
 * This module is used through inheritance. It will make available the
 * modifiers `whenNotPaused` and `whenPaused`, which can be applied to
 * the functions of your contract. Note that they will not be pausable by
 * simply including this module, only once the modifiers are put in place.
 */
abstract contract Pausable is Context {
    /**
     * @dev Emitted when the pause is triggered by `account`.
     */
    event Paused(address account);

    /**
     * @dev Emitted when the pause is lifted by `account`.
     */
    event Unpaused(address account);

    bool private _paused;

    /**
     * @dev Initializes the contract in unpaused state.
     */
    constructor() {
        _paused = false;
    }

    /**
     * @dev Returns true if the contract is paused, and false otherwise.
     */
    function paused() public view virtual returns (bool) {
        return _paused;
    }

    /**
     * @dev Modifier to make a function callable only when the contract is not paused.
     *
     * Requirements:
     *
     * - The contract must not be paused.
     */
    modifier whenNotPaused() {
        require(!paused(), "Pausable: paused");
        _;
    }

    /**
     * @dev Modifier to make a function callable only when the contract is paused.
     *
     * Requirements:
     *
     * - The contract must be paused.
     */
    modifier whenPaused() {
        require(paused(), "Pausable: not paused");
        _;
    }

    /**
     * @dev Triggers stopped state.
     *
     * Requirements:
     *
     * - The contract must not be paused.
     */
    function _pause() internal virtual whenNotPaused {
        _paused = true;
        emit Paused(_msgSender());
    }

    /**
     * @dev Returns to normal state.
     *
     * Requirements:
     *
     * - The contract must be paused.
     */
    function _unpause() internal virtual whenPaused {
        _paused = false;
        emit Unpaused(_msgSender());
    }
}

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

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

Contract Security Audit

Contract ABI

[{"inputs":[{"internalType":"address","name":"_coreContractAddress","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"spender","type":"address"},{"indexed":false,"internalType":"uint256","name":"value","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"account","type":"address"}],"name":"Paused","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"user","type":"address"},{"indexed":false,"internalType":"uint256","name":"reward","type":"uint256"}],"name":"RewardClaimed","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":false,"internalType":"address","name":"account","type":"address"}],"name":"Unpaused","type":"event"},{"inputs":[],"name":"CoreToken","outputs":[{"internalType":"contract iCoreContract","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"REWARD_RATE","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"accessAddresses","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"spender","type":"address"}],"name":"allowance","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"approve","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"blocktime","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"nonpayable","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":"cap","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"claimReward","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":[{"internalType":"address","name":"user","type":"address"}],"name":"getTotalClaimable","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"addedValue","type":"uint256"}],"name":"increaseAllowance","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"lastClaimed","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"paused","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"rewards","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_address","type":"address"},{"internalType":"bool","name":"_access","type":"bool"}],"name":"setAccessAddresses","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_address","type":"address"}],"name":"setCoreAddress","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"user","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"spend","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"togglePaused","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"recipient","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"transfer","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"sender","type":"address"},{"internalType":"address","name":"recipient","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"transferFrom","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"}],"name":"updateReward","outputs":[],"stateMutability":"nonpayable","type":"function"}]

60a06040526b012e3304f9c882734c0800006080523480156200002157600080fd5b5060405162001c8538038062001c858339810160408190526200004491620001f9565b604080518082018252601581527f5465646479204265617220537175616420546f79730000000000000000000000602080830191825283518085019094526004845263544f595360e01b908401528151919291620000a59160039162000153565b508051620000bb90600490602084019062000153565b50506005805460ff1916905550620000d333620000f9565b600680546001600160a01b0319166001600160a01b039290921691909117905562000268565b600580546001600160a01b03838116610100818102610100600160a81b031985161790945560405193909204169182907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b82805462000161906200022b565b90600052602060002090601f016020900481019282620001855760008555620001d0565b82601f10620001a057805160ff1916838001178555620001d0565b82800160010185558215620001d0579182015b82811115620001d0578251825591602001919060010190620001b3565b50620001de929150620001e2565b5090565b5b80821115620001de5760008155600101620001e3565b6000602082840312156200020c57600080fd5b81516001600160a01b03811681146200022457600080fd5b9392505050565b600181811c908216806200024057607f821691505b602082108114156200026257634e487b7160e01b600052602260045260246000fd5b50919050565b6080516119fa6200028b600039600081816102df0152610b2201526119fa6000f3fe608060405234801561001057600080fd5b50600436106101e55760003560e01c80635c975abb1161010f578063a457c2d7116100a2578063b88a802f11610071578063b88a802f14610437578063d230af3a1461043f578063dd62ed3e14610452578063f2fde38b1461048b57600080fd5b8063a457c2d7146103f8578063a9059cbb1461040b578063a9b12c4c1461041e578063af7d6ca31461042457600080fd5b80638da5cb5b116100de5780638da5cb5b146103a457806391aad239146103ba57806395d89b41146103cd5780639dcf9673146103d557600080fd5b80635c975abb1461035557806370a0823114610360578063715018a61461038957806379cc67901461039157600080fd5b8063267e8ab6116101875780633950935111610156578063395093511461030d57806342966c68146103205780634f92301b146103335780635997bb371461034657600080fd5b8063267e8ab6146102bb578063313ce567146102ce578063355274ea146102dd57806336566f061461030357600080fd5b8063095ea7b3116101c3578063095ea7b314610252578063107112441461027557806318160ddd146102a057806323b872dd146102a857600080fd5b8063013eba92146101ea57806306fdde031461021d5780630700037d14610232575b600080fd5b61020a6101f8366004611749565b60086020526000908152604090205481565b6040519081526020015b60405180910390f35b61022561049e565b6040516102149190611872565b61020a610240366004611749565b60076020526000908152604090205481565b610265610260366004611816565b610530565b6040519015158152602001610214565b600654610288906001600160a01b031681565b6040516001600160a01b039091168152602001610214565b60025461020a565b6102656102b636600461179e565b610546565b61020a6102c9366004611749565b61060a565b60405160128152602001610214565b7f000000000000000000000000000000000000000000000000000000000000000061020a565b61030b61063e565b005b61026561031b366004611816565b6106ba565b61030b61032e366004611840565b6106f6565b61030b6103413660046117da565b610703565b61020a678ac7230489e8000081565b60055460ff16610265565b61020a61036e366004611749565b6001600160a01b031660009081526020819052604090205490565b61030b61078e565b61030b61039f366004611816565b6107f8565b60055461010090046001600160a01b0316610288565b61030b6103c8366004611749565b610897565b610225610931565b6102656103e3366004611749565b60096020526000908152604090205460ff1681565b610265610406366004611816565b610940565b610265610419366004611816565b6109f1565b4261020a565b61030b610432366004611816565b6109fe565b61030b610aa6565b61030b61044d36600461176b565b610c04565b61020a61046036600461176b565b6001600160a01b03918216600090815260016020908152604080832093909416825291909152205490565b61030b610499366004611749565b610cde565b6060600380546104ad90611973565b80601f01602080910402602001604051908101604052809291908181526020018280546104d990611973565b80156105265780601f106104fb57610100808354040283529160200191610526565b820191906000526020600020905b81548152906001019060200180831161050957829003601f168201915b5050505050905090565b600061053d338484610dc3565b50600192915050565b6000610553848484610f1b565b6001600160a01b0384166000908152600160209081526040808320338452909152902054828110156105f25760405162461bcd60e51b815260206004820152602860248201527f45524332303a207472616e7366657220616d6f756e742065786365656473206160448201527f6c6c6f77616e636500000000000000000000000000000000000000000000000060648201526084015b60405180910390fd5b6105ff8533858403610dc3565b506001949350505050565b60006106158261113e565b6001600160a01b03831660009081526007602052604090205461063891906118e5565b92915050565b6005546001600160a01b0361010090910416331461069e5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064016105e9565b60055460ff166106b2576106b0611246565b565b6106b06112eb565b3360008181526001602090815260408083206001600160a01b0387168452909152812054909161053d9185906106f19086906118e5565b610dc3565b610700338261136e565b50565b6005546001600160a01b036101009091041633146107635760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064016105e9565b6001600160a01b03919091166000908152600960205260409020805460ff1916911515919091179055565b6005546001600160a01b036101009091041633146107ee5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064016105e9565b6106b060006114ff565b60006108048333610460565b90508181101561087b5760405162461bcd60e51b8152602060048201526024808201527f45524332303a206275726e20616d6f756e74206578636565647320616c6c6f7760448201527f616e63650000000000000000000000000000000000000000000000000000000060648201526084016105e9565b6108888333848403610dc3565b610892838361136e565b505050565b6005546001600160a01b036101009091041633146108f75760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064016105e9565b600680547fffffffffffffffffffffffff0000000000000000000000000000000000000000166001600160a01b0392909216919091179055565b6060600480546104ad90611973565b3360009081526001602090815260408083206001600160a01b0386168452909152812054828110156109da5760405162461bcd60e51b815260206004820152602560248201527f45524332303a2064656372656173656420616c6c6f77616e63652062656c6f7760448201527f207a65726f00000000000000000000000000000000000000000000000000000060648201526084016105e9565b6109e73385858403610dc3565b5060019392505050565b600061053d338484610f1b565b3360009081526009602052604090205460ff1680610a2657506006546001600160a01b031633145b610a985760405162461bcd60e51b815260206004820152602860248201527f4164647265737320646f6573206e6f742068617665207065726d697373696f6e60448201527f20746f206275726e00000000000000000000000000000000000000000000000060648201526084016105e9565b610aa2828261136e565b5050565b60055460ff1615610af95760405162461bcd60e51b815260206004820152601060248201527f5061757361626c653a207061757365640000000000000000000000000000000060448201526064016105e9565b6000610b043361113e565b33600090815260076020526040902054610b1e91906118e5565b90507f000000000000000000000000000000000000000000000000000000000000000081610b4b60025490565b610b5591906118e5565b1115610ba35760405162461bcd60e51b815260206004820152601960248201527f45524332304361707065643a206361702065786365656465640000000000000060448201526064016105e9565b610bad3382611570565b60405181815233907f106f923f993c2149d49b4255ff723acafa1f2d94393f561d3eda32ae348f72419060200160405180910390a25033600090815260076020908152604080832083905560089091529020429055565b6006546001600160a01b03163314610c1b57600080fd5b6001600160a01b03821615610c7c57610c338261113e565b6001600160a01b03831660009081526007602052604081208054909190610c5b9084906118e5565b90915550506001600160a01b03821660009081526008602052604090204290555b6001600160a01b03811615610aa257610c948161113e565b6001600160a01b03821660009081526007602052604081208054909190610cbc9084906118e5565b90915550506001600160a01b0316600090815260086020526040902042905550565b6005546001600160a01b03610100909104163314610d3e5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064016105e9565b6001600160a01b038116610dba5760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201527f646472657373000000000000000000000000000000000000000000000000000060648201526084016105e9565b610700816114ff565b6001600160a01b038316610e3e5760405162461bcd60e51b8152602060048201526024808201527f45524332303a20617070726f76652066726f6d20746865207a65726f2061646460448201527f726573730000000000000000000000000000000000000000000000000000000060648201526084016105e9565b6001600160a01b038216610eba5760405162461bcd60e51b815260206004820152602260248201527f45524332303a20617070726f766520746f20746865207a65726f20616464726560448201527f737300000000000000000000000000000000000000000000000000000000000060648201526084016105e9565b6001600160a01b0383811660008181526001602090815260408083209487168084529482529182902085905590518481527f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925910160405180910390a3505050565b6001600160a01b038316610f975760405162461bcd60e51b815260206004820152602560248201527f45524332303a207472616e736665722066726f6d20746865207a65726f20616460448201527f647265737300000000000000000000000000000000000000000000000000000060648201526084016105e9565b6001600160a01b0382166110135760405162461bcd60e51b815260206004820152602360248201527f45524332303a207472616e7366657220746f20746865207a65726f206164647260448201527f657373000000000000000000000000000000000000000000000000000000000060648201526084016105e9565b61101e83838361165b565b6001600160a01b038316600090815260208190526040902054818110156110ad5760405162461bcd60e51b815260206004820152602660248201527f45524332303a207472616e7366657220616d6f756e742065786365656473206260448201527f616c616e6365000000000000000000000000000000000000000000000000000060648201526084016105e9565b6001600160a01b038085166000908152602081905260408082208585039055918516815290812080548492906110e49084906118e5565b92505081905550826001600160a01b0316846001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef8460405161113091815260200190565b60405180910390a350505050565b6001600160a01b03811660009081526008602052604081205462015180906111665742611180565b6001600160a01b0383166000908152600860205260409020545b61118a904261195c565b6006546040517f70a082310000000000000000000000000000000000000000000000000000000081526001600160a01b038681166004830152678ac7230489e800009216906370a082319060240160206040518083038186803b1580156111f057600080fd5b505afa158015611204573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906112289190611859565b611232919061191f565b61123c919061191f565b61063891906118fd565b60055460ff16156112995760405162461bcd60e51b815260206004820152601060248201527f5061757361626c653a207061757365640000000000000000000000000000000060448201526064016105e9565b6005805460ff191660011790557f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a2586112ce3390565b6040516001600160a01b03909116815260200160405180910390a1565b60055460ff1661133d5760405162461bcd60e51b815260206004820152601460248201527f5061757361626c653a206e6f742070617573656400000000000000000000000060448201526064016105e9565b6005805460ff191690557f5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa336112ce565b6001600160a01b0382166113ea5760405162461bcd60e51b815260206004820152602160248201527f45524332303a206275726e2066726f6d20746865207a65726f2061646472657360448201527f730000000000000000000000000000000000000000000000000000000000000060648201526084016105e9565b6113f68260008361165b565b6001600160a01b038216600090815260208190526040902054818110156114855760405162461bcd60e51b815260206004820152602260248201527f45524332303a206275726e20616d6f756e7420657863656564732062616c616e60448201527f636500000000000000000000000000000000000000000000000000000000000060648201526084016105e9565b6001600160a01b03831660009081526020819052604081208383039055600280548492906114b490849061195c565b90915550506040518281526000906001600160a01b038516907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9060200160405180910390a3505050565b600580546001600160a01b038381166101008181027fffffffffffffffffffffff0000000000000000000000000000000000000000ff85161790945560405193909204169182907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b6001600160a01b0382166115c65760405162461bcd60e51b815260206004820152601f60248201527f45524332303a206d696e7420746f20746865207a65726f20616464726573730060448201526064016105e9565b6115d26000838361165b565b80600260008282546115e491906118e5565b90915550506001600160a01b038216600090815260208190526040812080548392906116119084906118e5565b90915550506040518181526001600160a01b038316906000907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9060200160405180910390a35050565b60055460ff16156116ae5760405162461bcd60e51b815260206004820152601060248201527f5061757361626c653a207061757365640000000000000000000000000000000060448201526064016105e9565b61089283838360055460ff16156108925760405162461bcd60e51b815260206004820152602a60248201527f45524332305061757361626c653a20746f6b656e207472616e7366657220776860448201527f696c65207061757365640000000000000000000000000000000000000000000060648201526084016105e9565b80356001600160a01b038116811461174457600080fd5b919050565b60006020828403121561175b57600080fd5b6117648261172d565b9392505050565b6000806040838503121561177e57600080fd5b6117878361172d565b91506117956020840161172d565b90509250929050565b6000806000606084860312156117b357600080fd5b6117bc8461172d565b92506117ca6020850161172d565b9150604084013590509250925092565b600080604083850312156117ed57600080fd5b6117f68361172d565b91506020830135801515811461180b57600080fd5b809150509250929050565b6000806040838503121561182957600080fd5b6118328361172d565b946020939093013593505050565b60006020828403121561185257600080fd5b5035919050565b60006020828403121561186b57600080fd5b5051919050565b600060208083528351808285015260005b8181101561189f57858101830151858201604001528201611883565b818111156118b1576000604083870101525b50601f017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe016929092016040019392505050565b600082198211156118f8576118f86119ae565b500190565b60008261191a57634e487b7160e01b600052601260045260246000fd5b500490565b6000817fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0483118215151615611957576119576119ae565b500290565b60008282101561196e5761196e6119ae565b500390565b600181811c9082168061198757607f821691505b602082108114156119a857634e487b7160e01b600052602260045260246000fd5b50919050565b634e487b7160e01b600052601160045260246000fdfea264697066735822122091ceb59a231053ebe1c7109dacc16bf6d21df5053467a3e1510d5811c68c659064736f6c634300080700330000000000000000000000009649d7cd37b66968648f43b7cb4da5fac1832d83

Deployed Bytecode

0x608060405234801561001057600080fd5b50600436106101e55760003560e01c80635c975abb1161010f578063a457c2d7116100a2578063b88a802f11610071578063b88a802f14610437578063d230af3a1461043f578063dd62ed3e14610452578063f2fde38b1461048b57600080fd5b8063a457c2d7146103f8578063a9059cbb1461040b578063a9b12c4c1461041e578063af7d6ca31461042457600080fd5b80638da5cb5b116100de5780638da5cb5b146103a457806391aad239146103ba57806395d89b41146103cd5780639dcf9673146103d557600080fd5b80635c975abb1461035557806370a0823114610360578063715018a61461038957806379cc67901461039157600080fd5b8063267e8ab6116101875780633950935111610156578063395093511461030d57806342966c68146103205780634f92301b146103335780635997bb371461034657600080fd5b8063267e8ab6146102bb578063313ce567146102ce578063355274ea146102dd57806336566f061461030357600080fd5b8063095ea7b3116101c3578063095ea7b314610252578063107112441461027557806318160ddd146102a057806323b872dd146102a857600080fd5b8063013eba92146101ea57806306fdde031461021d5780630700037d14610232575b600080fd5b61020a6101f8366004611749565b60086020526000908152604090205481565b6040519081526020015b60405180910390f35b61022561049e565b6040516102149190611872565b61020a610240366004611749565b60076020526000908152604090205481565b610265610260366004611816565b610530565b6040519015158152602001610214565b600654610288906001600160a01b031681565b6040516001600160a01b039091168152602001610214565b60025461020a565b6102656102b636600461179e565b610546565b61020a6102c9366004611749565b61060a565b60405160128152602001610214565b7f0000000000000000000000000000000000000000012e3304f9c882734c08000061020a565b61030b61063e565b005b61026561031b366004611816565b6106ba565b61030b61032e366004611840565b6106f6565b61030b6103413660046117da565b610703565b61020a678ac7230489e8000081565b60055460ff16610265565b61020a61036e366004611749565b6001600160a01b031660009081526020819052604090205490565b61030b61078e565b61030b61039f366004611816565b6107f8565b60055461010090046001600160a01b0316610288565b61030b6103c8366004611749565b610897565b610225610931565b6102656103e3366004611749565b60096020526000908152604090205460ff1681565b610265610406366004611816565b610940565b610265610419366004611816565b6109f1565b4261020a565b61030b610432366004611816565b6109fe565b61030b610aa6565b61030b61044d36600461176b565b610c04565b61020a61046036600461176b565b6001600160a01b03918216600090815260016020908152604080832093909416825291909152205490565b61030b610499366004611749565b610cde565b6060600380546104ad90611973565b80601f01602080910402602001604051908101604052809291908181526020018280546104d990611973565b80156105265780601f106104fb57610100808354040283529160200191610526565b820191906000526020600020905b81548152906001019060200180831161050957829003601f168201915b5050505050905090565b600061053d338484610dc3565b50600192915050565b6000610553848484610f1b565b6001600160a01b0384166000908152600160209081526040808320338452909152902054828110156105f25760405162461bcd60e51b815260206004820152602860248201527f45524332303a207472616e7366657220616d6f756e742065786365656473206160448201527f6c6c6f77616e636500000000000000000000000000000000000000000000000060648201526084015b60405180910390fd5b6105ff8533858403610dc3565b506001949350505050565b60006106158261113e565b6001600160a01b03831660009081526007602052604090205461063891906118e5565b92915050565b6005546001600160a01b0361010090910416331461069e5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064016105e9565b60055460ff166106b2576106b0611246565b565b6106b06112eb565b3360008181526001602090815260408083206001600160a01b0387168452909152812054909161053d9185906106f19086906118e5565b610dc3565b610700338261136e565b50565b6005546001600160a01b036101009091041633146107635760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064016105e9565b6001600160a01b03919091166000908152600960205260409020805460ff1916911515919091179055565b6005546001600160a01b036101009091041633146107ee5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064016105e9565b6106b060006114ff565b60006108048333610460565b90508181101561087b5760405162461bcd60e51b8152602060048201526024808201527f45524332303a206275726e20616d6f756e74206578636565647320616c6c6f7760448201527f616e63650000000000000000000000000000000000000000000000000000000060648201526084016105e9565b6108888333848403610dc3565b610892838361136e565b505050565b6005546001600160a01b036101009091041633146108f75760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064016105e9565b600680547fffffffffffffffffffffffff0000000000000000000000000000000000000000166001600160a01b0392909216919091179055565b6060600480546104ad90611973565b3360009081526001602090815260408083206001600160a01b0386168452909152812054828110156109da5760405162461bcd60e51b815260206004820152602560248201527f45524332303a2064656372656173656420616c6c6f77616e63652062656c6f7760448201527f207a65726f00000000000000000000000000000000000000000000000000000060648201526084016105e9565b6109e73385858403610dc3565b5060019392505050565b600061053d338484610f1b565b3360009081526009602052604090205460ff1680610a2657506006546001600160a01b031633145b610a985760405162461bcd60e51b815260206004820152602860248201527f4164647265737320646f6573206e6f742068617665207065726d697373696f6e60448201527f20746f206275726e00000000000000000000000000000000000000000000000060648201526084016105e9565b610aa2828261136e565b5050565b60055460ff1615610af95760405162461bcd60e51b815260206004820152601060248201527f5061757361626c653a207061757365640000000000000000000000000000000060448201526064016105e9565b6000610b043361113e565b33600090815260076020526040902054610b1e91906118e5565b90507f0000000000000000000000000000000000000000012e3304f9c882734c08000081610b4b60025490565b610b5591906118e5565b1115610ba35760405162461bcd60e51b815260206004820152601960248201527f45524332304361707065643a206361702065786365656465640000000000000060448201526064016105e9565b610bad3382611570565b60405181815233907f106f923f993c2149d49b4255ff723acafa1f2d94393f561d3eda32ae348f72419060200160405180910390a25033600090815260076020908152604080832083905560089091529020429055565b6006546001600160a01b03163314610c1b57600080fd5b6001600160a01b03821615610c7c57610c338261113e565b6001600160a01b03831660009081526007602052604081208054909190610c5b9084906118e5565b90915550506001600160a01b03821660009081526008602052604090204290555b6001600160a01b03811615610aa257610c948161113e565b6001600160a01b03821660009081526007602052604081208054909190610cbc9084906118e5565b90915550506001600160a01b0316600090815260086020526040902042905550565b6005546001600160a01b03610100909104163314610d3e5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064016105e9565b6001600160a01b038116610dba5760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201527f646472657373000000000000000000000000000000000000000000000000000060648201526084016105e9565b610700816114ff565b6001600160a01b038316610e3e5760405162461bcd60e51b8152602060048201526024808201527f45524332303a20617070726f76652066726f6d20746865207a65726f2061646460448201527f726573730000000000000000000000000000000000000000000000000000000060648201526084016105e9565b6001600160a01b038216610eba5760405162461bcd60e51b815260206004820152602260248201527f45524332303a20617070726f766520746f20746865207a65726f20616464726560448201527f737300000000000000000000000000000000000000000000000000000000000060648201526084016105e9565b6001600160a01b0383811660008181526001602090815260408083209487168084529482529182902085905590518481527f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925910160405180910390a3505050565b6001600160a01b038316610f975760405162461bcd60e51b815260206004820152602560248201527f45524332303a207472616e736665722066726f6d20746865207a65726f20616460448201527f647265737300000000000000000000000000000000000000000000000000000060648201526084016105e9565b6001600160a01b0382166110135760405162461bcd60e51b815260206004820152602360248201527f45524332303a207472616e7366657220746f20746865207a65726f206164647260448201527f657373000000000000000000000000000000000000000000000000000000000060648201526084016105e9565b61101e83838361165b565b6001600160a01b038316600090815260208190526040902054818110156110ad5760405162461bcd60e51b815260206004820152602660248201527f45524332303a207472616e7366657220616d6f756e742065786365656473206260448201527f616c616e6365000000000000000000000000000000000000000000000000000060648201526084016105e9565b6001600160a01b038085166000908152602081905260408082208585039055918516815290812080548492906110e49084906118e5565b92505081905550826001600160a01b0316846001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef8460405161113091815260200190565b60405180910390a350505050565b6001600160a01b03811660009081526008602052604081205462015180906111665742611180565b6001600160a01b0383166000908152600860205260409020545b61118a904261195c565b6006546040517f70a082310000000000000000000000000000000000000000000000000000000081526001600160a01b038681166004830152678ac7230489e800009216906370a082319060240160206040518083038186803b1580156111f057600080fd5b505afa158015611204573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906112289190611859565b611232919061191f565b61123c919061191f565b61063891906118fd565b60055460ff16156112995760405162461bcd60e51b815260206004820152601060248201527f5061757361626c653a207061757365640000000000000000000000000000000060448201526064016105e9565b6005805460ff191660011790557f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a2586112ce3390565b6040516001600160a01b03909116815260200160405180910390a1565b60055460ff1661133d5760405162461bcd60e51b815260206004820152601460248201527f5061757361626c653a206e6f742070617573656400000000000000000000000060448201526064016105e9565b6005805460ff191690557f5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa336112ce565b6001600160a01b0382166113ea5760405162461bcd60e51b815260206004820152602160248201527f45524332303a206275726e2066726f6d20746865207a65726f2061646472657360448201527f730000000000000000000000000000000000000000000000000000000000000060648201526084016105e9565b6113f68260008361165b565b6001600160a01b038216600090815260208190526040902054818110156114855760405162461bcd60e51b815260206004820152602260248201527f45524332303a206275726e20616d6f756e7420657863656564732062616c616e60448201527f636500000000000000000000000000000000000000000000000000000000000060648201526084016105e9565b6001600160a01b03831660009081526020819052604081208383039055600280548492906114b490849061195c565b90915550506040518281526000906001600160a01b038516907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9060200160405180910390a3505050565b600580546001600160a01b038381166101008181027fffffffffffffffffffffff0000000000000000000000000000000000000000ff85161790945560405193909204169182907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b6001600160a01b0382166115c65760405162461bcd60e51b815260206004820152601f60248201527f45524332303a206d696e7420746f20746865207a65726f20616464726573730060448201526064016105e9565b6115d26000838361165b565b80600260008282546115e491906118e5565b90915550506001600160a01b038216600090815260208190526040812080548392906116119084906118e5565b90915550506040518181526001600160a01b038316906000907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9060200160405180910390a35050565b60055460ff16156116ae5760405162461bcd60e51b815260206004820152601060248201527f5061757361626c653a207061757365640000000000000000000000000000000060448201526064016105e9565b61089283838360055460ff16156108925760405162461bcd60e51b815260206004820152602a60248201527f45524332305061757361626c653a20746f6b656e207472616e7366657220776860448201527f696c65207061757365640000000000000000000000000000000000000000000060648201526084016105e9565b80356001600160a01b038116811461174457600080fd5b919050565b60006020828403121561175b57600080fd5b6117648261172d565b9392505050565b6000806040838503121561177e57600080fd5b6117878361172d565b91506117956020840161172d565b90509250929050565b6000806000606084860312156117b357600080fd5b6117bc8461172d565b92506117ca6020850161172d565b9150604084013590509250925092565b600080604083850312156117ed57600080fd5b6117f68361172d565b91506020830135801515811461180b57600080fd5b809150509250929050565b6000806040838503121561182957600080fd5b6118328361172d565b946020939093013593505050565b60006020828403121561185257600080fd5b5035919050565b60006020828403121561186b57600080fd5b5051919050565b600060208083528351808285015260005b8181101561189f57858101830151858201604001528201611883565b818111156118b1576000604083870101525b50601f017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe016929092016040019392505050565b600082198211156118f8576118f86119ae565b500190565b60008261191a57634e487b7160e01b600052601260045260246000fd5b500490565b6000817fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0483118215151615611957576119576119ae565b500290565b60008282101561196e5761196e6119ae565b500390565b600181811c9082168061198757607f821691505b602082108114156119a857634e487b7160e01b600052602260045260246000fd5b50919050565b634e487b7160e01b600052601160045260246000fdfea264697066735822122091ceb59a231053ebe1c7109dacc16bf6d21df5053467a3e1510d5811c68c659064736f6c63430008070033

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

0000000000000000000000009649d7cd37b66968648f43b7cb4da5fac1832d83

-----Decoded View---------------
Arg [0] : _coreContractAddress (address): 0x9649d7cD37B66968648F43b7CB4dA5FAc1832d83

-----Encoded View---------------
1 Constructor Arguments found :
Arg [0] : 0000000000000000000000009649d7cd37b66968648f43b7cb4da5fac1832d83


Block Transaction Difficulty Gas Used Reward
View All Blocks Produced

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

Validator Index Block Amount
View All Withdrawals

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

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.