ETH Price: $2,357.71 (+0.85%)
Gas: 8.21 Gwei

Token

Staked ETH (stkETH)
 

Overview

Max Total Supply

63.820992599325624135 stkETH

Holders

38

Market

Onchain Market Cap

$0.00

Circulating Supply Market Cap

-

Other Info

Token Contract (WITH 18 Decimals)

Balance
0.563171990150847736 stkETH

Value
$0.00
0xa5980d0b0613df85a0b77c60b319b88e4eeff7b8
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:
StkEth

Compiler Version
v0.8.4+commit.c7e474f2

Optimization Enabled:
No with 200 runs

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

import "@openzeppelin/contracts/token/ERC20/ERC20.sol";
import "../CoreRef.sol";
import "../interfaces/IOracle.sol";

/// @title StkEth Contract
/// @author Ankit Parashar
contract StkEth is IStkEth, ERC20, CoreRef {

    // keccak256("Permit(address owner,address spender,uint256 value,uint256 nonce,uint256 deadline)");
    bytes32 public constant PERMIT_TYPEHASH =
        0x6e71edae12b1b97f4d1f60370fef10105fa2faae0126114a169c64845d6126c9;

    mapping(address => uint256) public nonces;

    event burnToken(address user, uint256 amount);

    // solhint-disable-next-line var-name-mixedcase
    bytes32 private immutable _DOMAIN_SEPARATOR;

    uint256 public immutable deploymentChainId;

    constructor (address _core) public 
        CoreRef(_core)
        ERC20("Staked ETH", "stkETH")
    {
        uint256 chainId;
        // solhint-disable-next-line no-inline-assembly
        assembly {
            chainId := chainid()
        }
        deploymentChainId = chainId;
        _DOMAIN_SEPARATOR = _calculateDomainSeparator(chainId);        
    }

    function _calculateDomainSeparator(uint256 chainId) internal view returns (bytes32) {
        return keccak256(
            abi.encode(
                keccak256(
                    "EIP712Domain(string name,string version,uint256 chainId,address verifyingContract)"
                ),
                keccak256(bytes(name())),
                keccak256(bytes("1")),
                chainId,
                address(this)
            )
        );
    }

    function DOMAIN_SEPARATOR() public view returns (bytes32) {
        uint256 chainId;
        assembly {chainId := chainid()}
        return chainId == deploymentChainId ? _DOMAIN_SEPARATOR : _calculateDomainSeparator(chainId);
    }

    function mint(address to, uint256 amount) public override virtual onlyMinter {
        _mint(to, amount);
    }

    /// @notice permit spending of StkEth
    /// @param owner the stkEth holder
    /// @param spender the approved operator
    /// @param value the amount approved
    /// @param deadline the deadline after which the approval is no longer valid
    function permit(
        address owner,
        address spender,
        uint256 value,
        uint256 deadline,
        uint8 v,
        bytes32 r,
        bytes32 s
    ) external {
        // solhint-disable-next-line not-rely-on-time
        require(deadline >= block.timestamp, "stkEth: EXPIRED");
        bytes32 digest =
            keccak256(
                abi.encodePacked(
                    "\x19\x01",
                    DOMAIN_SEPARATOR(),
                    keccak256(
                        abi.encode(
                            PERMIT_TYPEHASH,
                            owner,
                            spender,
                            value,
                            nonces[owner]++,
                            deadline
                        )
                    )
                )
            );
        address recoveredAddress = ecrecover(digest, v, r, s);
        require(
            recoveredAddress != address(0) && recoveredAddress == owner,
            "stkEth: INVALID_SIGNATURE"
        );
        _approve(owner, spender, value);
    }    

    function pricePerShare() public view override returns (uint256) {
        return IOracle(core().oracle()).pricePerShare();
    }

    function burn(address user, uint256 amount) public override virtual onlyBurner {
        _burn(user, amount);
        emit burnToken(user, amount);
    }
}

File 2 of 13 : ERC20.sol
// SPDX-License-Identifier: MIT

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 3 of 13 : CoreRef.sol
//SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;

import "./interfaces/ICoreRef.sol";
import "./interfaces/ICore.sol";
import "./interfaces/IOracle.sol";
import "@openzeppelin/contracts/security/Pausable.sol";
import "@openzeppelin/contracts/utils/Address.sol";

abstract contract CoreRef is ICoreRef, Pausable {

    ICore private _core;

    constructor(address core){
        require(core != address(0), "CoreRef: Zero address");
        _core = ICore(core);
        emit SetCore(core);
    }

    modifier ifMinterSelf() {
        if (_core.isMinter(address(this))) {
            _;
        }
    }

    modifier onlyMinter() {
        require(_core.isMinter(msg.sender), "CoreRef: Caller is not a minter");
        _;
    }

    modifier onlyBurner() {
        require(_core.isBurner(msg.sender), "CoreRef: Caller is not a burner");
        _;
    }

    modifier onlyKeyAdmin() {
        require(_core.isKeyAdmin(msg.sender), "Permissions: Caller is not a key admin");
        _;
    }

    modifier onlyNodeOperator() {
        require(_core.isNodeOperator(msg.sender), "Permissions: Caller is not a Node Operator");
        _;
    }

    modifier onlyGovernor() {
        require(
            _core.isGovernor(msg.sender),
            "CoreRef: Caller is not a governor"
        );
        _;
    }

    /// @notice set pausable methods to paused
    function pause() public override onlyGovernor {
        _pause();
    }

    /// @notice set pausable methods to unpaused
    function unpause() public override onlyGovernor {
        _unpause();
    }

    /// @notice set new Core reference address
    /// @param core the new core address
    function setCore(address core) external override onlyGovernor {
        _core = ICore(core);
        emit SetCore(core);
    }

    function stkEth() public view override returns (IStkEth) {
        return _core.stkEth();
    }

    function core() public view override returns (ICore) {
        return _core;
    }

    function oracle() public view override returns (IOracle) {
        return IOracle(_core.oracle());
    }
}

File 4 of 13 : IOracle.sol
//SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;

/// @title Oracle interface
/// @author Ankit Parashar
interface IOracle {

    event Distribute(uint256 amount,uint256 pricePerShare,uint256 timestamp);
    event Slash(uint256 amount,uint256 pricePerShare,uint256 timestamp);

    function pricePerShare() external view returns (uint256);

    function activatedValidators() external view returns (uint256);

    function addOracleMember(address newOracleMember) external;

    function removeOracleMember(address oracleMeberToDelete) external;

    function pushData(
        uint256 latestEthBalance,
        uint256 latestNonce,
        uint32 numberOfValidators
    ) external;

    function activateValidator(bytes[] calldata _publicKeys) external;
}

File 5 of 13 : 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 6 of 13 : 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);
}

File 7 of 13 : 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 8 of 13 : ICoreRef.sol
//SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;

import "./ICore.sol";
import "./IStkEth.sol";
import "./IOracle.sol";

/// @title CoreRef interface
/// @author Ankit Parashar
interface ICoreRef {

    event SetCore(address _core);

    function setCore(address core) external;

    function pause() external;

    function unpause() external;

    // ----------- Getters -----------

    function core() external view returns (ICore);

    function stkEth() external view returns (IStkEth);

    function oracle() external view returns (IOracle);
}

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

import "./IPermissions.sol";
import "./IStkEth.sol";

/// @title Core interface
/// @author Ankit Parashar
interface ICore is IPermissions {

    event SetCoreContract(bytes32 _key, address indexed _address);

    event SetWithdrawalCredential(bytes32 _withdrawalCreds);

    function stkEth() external view returns(IStkEth);

    function oracle() external view returns(address);

    function withdrawalCredential() external view returns(bytes32);

    function keysManager() external view returns(address);

    function pstakeTreasury() external view returns(address);

    function validatorPool() external view returns(address);

    function issuer() external view returns(address);

    function set(bytes32 _key, address _address) external;

    function coreContract(bytes32 key) external view returns (address);

}

File 10 of 13 : Pausable.sol
// SPDX-License-Identifier: MIT

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 11 of 13 : Address.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

/**
 * @dev Collection of functions related to the address type
 */
library Address {
    /**
     * @dev Returns true if `account` is a contract.
     *
     * [IMPORTANT]
     * ====
     * It is unsafe to assume that an address for which this function returns
     * false is an externally-owned account (EOA) and not a contract.
     *
     * Among others, `isContract` will return false for the following
     * types of addresses:
     *
     *  - an externally-owned account
     *  - a contract in construction
     *  - an address where a contract will be created
     *  - an address where a contract lived, but was destroyed
     * ====
     */
    function isContract(address account) internal view returns (bool) {
        // This method relies on extcodesize, which returns 0 for contracts in
        // construction, since the code is only stored at the end of the
        // constructor execution.

        uint256 size;
        assembly {
            size := extcodesize(account)
        }
        return size > 0;
    }

    /**
     * @dev Replacement for Solidity's `transfer`: sends `amount` wei to
     * `recipient`, forwarding all available gas and reverting on errors.
     *
     * https://eips.ethereum.org/EIPS/eip-1884[EIP1884] increases the gas cost
     * of certain opcodes, possibly making contracts go over the 2300 gas limit
     * imposed by `transfer`, making them unable to receive funds via
     * `transfer`. {sendValue} removes this limitation.
     *
     * https://diligence.consensys.net/posts/2019/09/stop-using-soliditys-transfer-now/[Learn more].
     *
     * IMPORTANT: because control is transferred to `recipient`, care must be
     * taken to not create reentrancy vulnerabilities. Consider using
     * {ReentrancyGuard} or the
     * https://solidity.readthedocs.io/en/v0.5.11/security-considerations.html#use-the-checks-effects-interactions-pattern[checks-effects-interactions pattern].
     */
    function sendValue(address payable recipient, uint256 amount) internal {
        require(address(this).balance >= amount, "Address: insufficient balance");

        (bool success, ) = recipient.call{value: amount}("");
        require(success, "Address: unable to send value, recipient may have reverted");
    }

    /**
     * @dev Performs a Solidity function call using a low level `call`. A
     * plain `call` is an unsafe replacement for a function call: use this
     * function instead.
     *
     * If `target` reverts with a revert reason, it is bubbled up by this
     * function (like regular Solidity function calls).
     *
     * Returns the raw returned data. To convert to the expected return value,
     * use https://solidity.readthedocs.io/en/latest/units-and-global-variables.html?highlight=abi.decode#abi-encoding-and-decoding-functions[`abi.decode`].
     *
     * Requirements:
     *
     * - `target` must be a contract.
     * - calling `target` with `data` must not revert.
     *
     * _Available since v3.1._
     */
    function functionCall(address target, bytes memory data) internal returns (bytes memory) {
        return functionCall(target, data, "Address: low-level call failed");
    }

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], but with
     * `errorMessage` as a fallback revert reason when `target` reverts.
     *
     * _Available since v3.1._
     */
    function functionCall(
        address target,
        bytes memory data,
        string memory errorMessage
    ) internal returns (bytes memory) {
        return functionCallWithValue(target, data, 0, errorMessage);
    }

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],
     * but also transferring `value` wei to `target`.
     *
     * Requirements:
     *
     * - the calling contract must have an ETH balance of at least `value`.
     * - the called Solidity function must be `payable`.
     *
     * _Available since v3.1._
     */
    function functionCallWithValue(
        address target,
        bytes memory data,
        uint256 value
    ) internal returns (bytes memory) {
        return functionCallWithValue(target, data, value, "Address: low-level call with value failed");
    }

    /**
     * @dev Same as {xref-Address-functionCallWithValue-address-bytes-uint256-}[`functionCallWithValue`], but
     * with `errorMessage` as a fallback revert reason when `target` reverts.
     *
     * _Available since v3.1._
     */
    function functionCallWithValue(
        address target,
        bytes memory data,
        uint256 value,
        string memory errorMessage
    ) internal returns (bytes memory) {
        require(address(this).balance >= value, "Address: insufficient balance for call");
        require(isContract(target), "Address: call to non-contract");

        (bool success, bytes memory returndata) = target.call{value: value}(data);
        return verifyCallResult(success, returndata, errorMessage);
    }

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],
     * but performing a static call.
     *
     * _Available since v3.3._
     */
    function functionStaticCall(address target, bytes memory data) internal view returns (bytes memory) {
        return functionStaticCall(target, data, "Address: low-level static call failed");
    }

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`],
     * but performing a static call.
     *
     * _Available since v3.3._
     */
    function functionStaticCall(
        address target,
        bytes memory data,
        string memory errorMessage
    ) internal view returns (bytes memory) {
        require(isContract(target), "Address: static call to non-contract");

        (bool success, bytes memory returndata) = target.staticcall(data);
        return verifyCallResult(success, returndata, errorMessage);
    }

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],
     * but performing a delegate call.
     *
     * _Available since v3.4._
     */
    function functionDelegateCall(address target, bytes memory data) internal returns (bytes memory) {
        return functionDelegateCall(target, data, "Address: low-level delegate call failed");
    }

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`],
     * but performing a delegate call.
     *
     * _Available since v3.4._
     */
    function functionDelegateCall(
        address target,
        bytes memory data,
        string memory errorMessage
    ) internal returns (bytes memory) {
        require(isContract(target), "Address: delegate call to non-contract");

        (bool success, bytes memory returndata) = target.delegatecall(data);
        return verifyCallResult(success, returndata, errorMessage);
    }

    /**
     * @dev Tool to verifies that a low level call was successful, and revert if it wasn't, either by bubbling the
     * revert reason using the provided one.
     *
     * _Available since v4.3._
     */
    function verifyCallResult(
        bool success,
        bytes memory returndata,
        string memory errorMessage
    ) internal pure returns (bytes memory) {
        if (success) {
            return returndata;
        } else {
            // Look for revert reason and bubble it up if present
            if (returndata.length > 0) {
                // The easiest way to bubble the revert reason is using memory via assembly

                assembly {
                    let returndata_size := mload(returndata)
                    revert(add(32, returndata), returndata_size)
                }
            } else {
                revert(errorMessage);
            }
        }
    }
}

File 12 of 13 : IStkEth.sol
//SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;

import "@openzeppelin/contracts/token/ERC20/IERC20.sol";
import "./ICoreRef.sol";

/// @title Oracle interface
/// @author Ankit Parashar
interface IStkEth is IERC20{

    function pricePerShare() external view returns (uint256 amount);

    function mint(address user, uint256 amount) external;

    function burn(address user, uint256 amount) external;
}

File 13 of 13 : IPermissions.sol
//SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;

/// @title Permissions interface
/// @author Ankit Parashar
interface IPermissions {

    // ----------- Governor only state changing functions -----------

    function createRole(bytes32 role, bytes32 adminRole) external;

    function grantGovernor(address governor) external;

    function grantMinter(address minter) external;

    function grantBurner(address burner) external;

    function grantNodeOperator(address nodeOperator) external;

    function grantKeyAdmin(address keyAdmin) external;

    function revokeGovernor(address governor) external;

    function revokeMinter(address minter) external;

    function revokeBurner(address burner) external;

    function revokeNodeOperator(address nodeOperator) external;

    function revokeKeyAdmin(address keyAdmin) external;

    // ----------- Getters -----------

    function isMinter(address _address) external view returns (bool);

    function isGovernor(address _address) external view returns (bool);

    function isBurner(address _address) external view returns (bool);

    function isNodeOperator(address _address) external view returns (bool);

    function isKeyAdmin(address _address) external view returns (bool);
}

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

Contract Security Audit

Contract ABI

[{"inputs":[{"internalType":"address","name":"_core","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":false,"internalType":"address","name":"account","type":"address"}],"name":"Paused","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"_core","type":"address"}],"name":"SetCore","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"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"user","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"burnToken","type":"event"},{"inputs":[],"name":"DOMAIN_SEPARATOR","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"PERMIT_TYPEHASH","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"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":[{"internalType":"address","name":"user","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"burn","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"core","outputs":[{"internalType":"contract ICore","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"decimals","outputs":[{"internalType":"uint8","name":"","type":"uint8"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"subtractedValue","type":"uint256"}],"name":"decreaseAllowance","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"deploymentChainId","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":"to","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"mint","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"nonces","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"oracle","outputs":[{"internalType":"contract IOracle","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"pause","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"paused","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"value","type":"uint256"},{"internalType":"uint256","name":"deadline","type":"uint256"},{"internalType":"uint8","name":"v","type":"uint8"},{"internalType":"bytes32","name":"r","type":"bytes32"},{"internalType":"bytes32","name":"s","type":"bytes32"}],"name":"permit","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"pricePerShare","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"core","type":"address"}],"name":"setCore","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"stkEth","outputs":[{"internalType":"contract IStkEth","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"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":"unpause","outputs":[],"stateMutability":"nonpayable","type":"function"}]

60c06040523480156200001157600080fd5b50604051620037163803806200371683398181016040528101906200003791906200041b565b806040518060400160405280600a81526020017f5374616b656420455448000000000000000000000000000000000000000000008152506040518060400160405280600681526020017f73746b45544800000000000000000000000000000000000000000000000000008152508160039080519060200190620000bc92919062000354565b508060049080519060200190620000d592919062000354565b5050506000600560006101000a81548160ff021916908315150217905550600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16141562000166576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016200015d906200051b565b60405180910390fd5b80600560016101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055507fb509f1ef29149e474db3a4776b2b658ad1b70710ceb0a5635a375a4c388eed8e81604051620001d89190620004a1565b60405180910390a15060004690508060a08181525050620001ff816200020e60201b60201c565b6080818152505050506200063e565b60007f8b73c3c69bb8fe3d512ecc4cf759cc79239f7b179b0ffacaa9a75d522b39400f62000241620002ba60201b60201c565b805190602001206040518060400160405280600181526020017f31000000000000000000000000000000000000000000000000000000000000008152508051906020012084306040516020016200029d959493929190620004be565b604051602081830303815290604052805190602001209050919050565b606060038054620002cb9062000596565b80601f0160208091040260200160405190810160405280929190818152602001828054620002f99062000596565b80156200034a5780601f106200031e576101008083540402835291602001916200034a565b820191906000526020600020905b8154815290600101906020018083116200032c57829003601f168201915b5050505050905090565b828054620003629062000596565b90600052602060002090601f016020900481019282620003865760008555620003d2565b82601f10620003a157805160ff1916838001178555620003d2565b82800160010185558215620003d2579182015b82811115620003d1578251825591602001919060010190620003b4565b5b509050620003e19190620003e5565b5090565b5b8082111562000400576000816000905550600101620003e6565b5090565b600081519050620004158162000624565b92915050565b6000602082840312156200042e57600080fd5b60006200043e8482850162000404565b91505092915050565b62000452816200054e565b82525050565b620004638162000562565b82525050565b6000620004786015836200053d565b91506200048582620005fb565b602082019050919050565b6200049b816200058c565b82525050565b6000602082019050620004b8600083018462000447565b92915050565b600060a082019050620004d5600083018862000458565b620004e4602083018762000458565b620004f3604083018662000458565b62000502606083018562000490565b62000511608083018462000447565b9695505050505050565b60006020820190508181036000830152620005368162000469565b9050919050565b600082825260208201905092915050565b60006200055b826200056c565b9050919050565b6000819050919050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000819050919050565b60006002820490506001821680620005af57607f821691505b60208210811415620005c657620005c5620005cc565b5b50919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b7f436f72655265663a205a65726f20616464726573730000000000000000000000600082015250565b6200062f816200054e565b81146200063b57600080fd5b50565b60805160a0516130ab6200066b600039600081816106e901526111d10152600061071e01526130ab6000f3fe608060405234801561001057600080fd5b506004361061018e5760003560e01c80637dc0d1d0116100de5780639dc29fac11610097578063cd0d009611610071578063cd0d009614610477578063d505accf14610495578063dd62ed3e146104b1578063f2f4eb26146104e15761018e565b80639dc29fac146103fb578063a457c2d714610417578063a9059cbb146104475761018e565b80637dc0d1d01461034b5780637ecebe001461036957806380009630146103995780638456cb59146103b557806395d89b41146103bf57806399530b06146103dd5761018e565b80633644e5151161014b57806340c10f191161012557806340c10f19146102c35780635c975abb146102df57806370a08231146102fd5780637cd854851461032d5761018e565b80633644e5151461026b57806339509351146102895780633f4ba83a146102b95761018e565b806306fdde0314610193578063095ea7b3146101b157806318160ddd146101e157806323b872dd146101ff57806330adf81f1461022f578063313ce5671461024d575b600080fd5b61019b6104ff565b6040516101a89190612660565b60405180910390f35b6101cb60048036038101906101c69190612070565b610591565b6040516101d891906124e0565b60405180910390f35b6101e96105af565b6040516101f691906128a2565b60405180910390f35b61021960048036038101906102149190611f83565b6105b9565b60405161022691906124e0565b60405180910390f35b6102376106b1565b60405161024491906124fb565b60405180910390f35b6102556106d8565b60405161026291906128bd565b60405180910390f35b6102736106e1565b60405161028091906124fb565b60405180910390f35b6102a3600480360381019061029e9190612070565b610744565b6040516102b091906124e0565b60405180910390f35b6102c16107f0565b005b6102dd60048036038101906102d89190612070565b6108e4565b005b6102e76109dc565b6040516102f491906124e0565b60405180910390f35b61031760048036038101906103129190611ef5565b6109f3565b60405161032491906128a2565b60405180910390f35b610335610a3b565b6040516103429190612645565b60405180910390f35b610353610ae2565b604051610360919061262a565b60405180910390f35b610383600480360381019061037e9190611ef5565b610b89565b60405161039091906128a2565b60405180910390f35b6103b360048036038101906103ae9190611ef5565b610ba1565b005b6103bd610d06565b005b6103c7610dfa565b6040516103d49190612660565b60405180910390f35b6103e5610e8c565b6040516103f291906128a2565b60405180910390f35b61041560048036038101906104109190612070565b610f95565b005b610431600480360381019061042c9190612070565b6110c6565b60405161043e91906124e0565b60405180910390f35b610461600480360381019061045c9190612070565b6111b1565b60405161046e91906124e0565b60405180910390f35b61047f6111cf565b60405161048c91906128a2565b60405180910390f35b6104af60048036038101906104aa9190611fd2565b6111f3565b005b6104cb60048036038101906104c69190611f47565b611420565b6040516104d891906128a2565b60405180910390f35b6104e96114a7565b6040516104f6919061260f565b60405180910390f35b60606003805461050e90612a99565b80601f016020809104026020016040519081016040528092919081815260200182805461053a90612a99565b80156105875780601f1061055c57610100808354040283529160200191610587565b820191906000526020600020905b81548152906001019060200180831161056a57829003601f168201915b5050505050905090565b60006105a561059e6114d1565b84846114d9565b6001905092915050565b6000600254905090565b60006105c68484846116a4565b6000600160008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006106116114d1565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054905082811015610691576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610688906127c2565b60405180910390fd5b6106a58561069d6114d1565b8584036114d9565b60019150509392505050565b7f6e71edae12b1b97f4d1f60370fef10105fa2faae0126114a169c64845d6126c960001b81565b60006012905090565b6000804690507f0000000000000000000000000000000000000000000000000000000000000000811461071c5761071781611925565b61073e565b7f00000000000000000000000000000000000000000000000000000000000000005b91505090565b60006107e66107516114d1565b84846001600061075f6114d1565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008873ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020546107e191906128ff565b6114d9565b6001905092915050565b600560019054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663e43581b8336040518263ffffffff1660e01b815260040161084b919061249c565b60206040518083038186803b15801561086357600080fd5b505afa158015610877573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061089b91906120ac565b6108da576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016108d190612842565b60405180910390fd5b6108e26119c7565b565b600560019054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663aa271e1a336040518263ffffffff1660e01b815260040161093f919061249c565b60206040518083038186803b15801561095757600080fd5b505afa15801561096b573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061098f91906120ac565b6109ce576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016109c590612702565b60405180910390fd5b6109d88282611a69565b5050565b6000600560009054906101000a900460ff16905090565b60008060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020549050919050565b6000600560019054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16637cd854856040518163ffffffff1660e01b815260040160206040518083038186803b158015610aa557600080fd5b505afa158015610ab9573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610add91906120d5565b905090565b6000600560019054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16637dc0d1d06040518163ffffffff1660e01b815260040160206040518083038186803b158015610b4c57600080fd5b505afa158015610b60573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610b849190611f1e565b905090565b60066020528060005260406000206000915090505481565b600560019054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663e43581b8336040518263ffffffff1660e01b8152600401610bfc919061249c565b60206040518083038186803b158015610c1457600080fd5b505afa158015610c28573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610c4c91906120ac565b610c8b576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610c8290612842565b60405180910390fd5b80600560016101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055507fb509f1ef29149e474db3a4776b2b658ad1b70710ceb0a5635a375a4c388eed8e81604051610cfb919061249c565b60405180910390a150565b600560019054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663e43581b8336040518263ffffffff1660e01b8152600401610d61919061249c565b60206040518083038186803b158015610d7957600080fd5b505afa158015610d8d573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610db191906120ac565b610df0576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610de790612842565b60405180910390fd5b610df8611bc9565b565b606060048054610e0990612a99565b80601f0160208091040260200160405190810160405280929190818152602001828054610e3590612a99565b8015610e825780601f10610e5757610100808354040283529160200191610e82565b820191906000526020600020905b815481529060010190602001808311610e6557829003601f168201915b5050505050905090565b6000610e966114a7565b73ffffffffffffffffffffffffffffffffffffffff16637dc0d1d06040518163ffffffff1660e01b815260040160206040518083038186803b158015610edb57600080fd5b505afa158015610eef573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610f139190611f1e565b73ffffffffffffffffffffffffffffffffffffffff166399530b066040518163ffffffff1660e01b815260040160206040518083038186803b158015610f5857600080fd5b505afa158015610f6c573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610f9091906120fe565b905090565b600560019054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16634334614a336040518263ffffffff1660e01b8152600401610ff0919061249c565b60206040518083038186803b15801561100857600080fd5b505afa15801561101c573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061104091906120ac565b61107f576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161107690612762565b60405180910390fd5b6110898282611c6c565b7fd1df306c742159c188c29d2c167874a39b84fd0f96f794ad7ea53295680ec1c582826040516110ba9291906124b7565b60405180910390a15050565b600080600160006110d56114d1565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054905082811015611192576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161118990612862565b60405180910390fd5b6111a661119d6114d1565b858584036114d9565b600191505092915050565b60006111c56111be6114d1565b84846116a4565b6001905092915050565b7f000000000000000000000000000000000000000000000000000000000000000081565b42841015611236576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161122d90612782565b60405180910390fd5b60006112406106e1565b7f6e71edae12b1b97f4d1f60370fef10105fa2faae0126114a169c64845d6126c960001b898989600660008e73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008154809291906112b790612acb565b919050558a6040516020016112d196959493929190612516565b604051602081830303815290604052805190602001206040516020016112f8929190612465565b60405160208183030381529060405280519060200120905060006001828686866040516000815260200160405260405161133594939291906125ca565b6020604051602081039080840390855afa158015611357573d6000803e3d6000fd5b505050602060405103519050600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16141580156113cb57508873ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16145b61140a576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611401906126c2565b60405180910390fd5b6114158989896114d9565b505050505050505050565b6000600160008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054905092915050565b6000600560019054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b600033905090565b600073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff161415611549576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161154090612822565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1614156115b9576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016115b090612722565b60405180910390fd5b80600160008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055508173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b9258360405161169791906128a2565b60405180910390a3505050565b600073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff161415611714576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161170b90612802565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415611784576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161177b90612682565b60405180910390fd5b61178f838383611e43565b60008060008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054905081811015611815576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161180c90612742565b60405180910390fd5b8181036000808673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002081905550816000808573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008282546118a891906128ff565b925050819055508273ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef8460405161190c91906128a2565b60405180910390a361191f848484611e48565b50505050565b60007f8b73c3c69bb8fe3d512ecc4cf759cc79239f7b179b0ffacaa9a75d522b39400f6119506104ff565b805190602001206040518060400160405280600181526020017f31000000000000000000000000000000000000000000000000000000000000008152508051906020012084306040516020016119aa959493929190612577565b604051602081830303815290604052805190602001209050919050565b6119cf6109dc565b611a0e576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611a05906126a2565b60405180910390fd5b6000600560006101000a81548160ff0219169083151502179055507f5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa611a526114d1565b604051611a5f919061249c565b60405180910390a1565b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415611ad9576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611ad090612882565b60405180910390fd5b611ae560008383611e43565b8060026000828254611af791906128ff565b92505081905550806000808473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000828254611b4c91906128ff565b925050819055508173ffffffffffffffffffffffffffffffffffffffff16600073ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef83604051611bb191906128a2565b60405180910390a3611bc560008383611e48565b5050565b611bd16109dc565b15611c11576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611c08906127a2565b60405180910390fd5b6001600560006101000a81548160ff0219169083151502179055507f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a258611c556114d1565b604051611c62919061249c565b60405180910390a1565b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415611cdc576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611cd3906127e2565b60405180910390fd5b611ce882600083611e43565b60008060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054905081811015611d6e576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611d65906126e2565b60405180910390fd5b8181036000808573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055508160026000828254611dc59190612955565b92505081905550600073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef84604051611e2a91906128a2565b60405180910390a3611e3e83600084611e48565b505050565b505050565b505050565b600081359050611e5c81612feb565b92915050565b600081519050611e7181612feb565b92915050565b600081519050611e8681613002565b92915050565b600081359050611e9b81613019565b92915050565b600081519050611eb081613030565b92915050565b600081359050611ec581613047565b92915050565b600081519050611eda81613047565b92915050565b600081359050611eef8161305e565b92915050565b600060208284031215611f0757600080fd5b6000611f1584828501611e4d565b91505092915050565b600060208284031215611f3057600080fd5b6000611f3e84828501611e62565b91505092915050565b60008060408385031215611f5a57600080fd5b6000611f6885828601611e4d565b9250506020611f7985828601611e4d565b9150509250929050565b600080600060608486031215611f9857600080fd5b6000611fa686828701611e4d565b9350506020611fb786828701611e4d565b9250506040611fc886828701611eb6565b9150509250925092565b600080600080600080600060e0888a031215611fed57600080fd5b6000611ffb8a828b01611e4d565b975050602061200c8a828b01611e4d565b965050604061201d8a828b01611eb6565b955050606061202e8a828b01611eb6565b945050608061203f8a828b01611ee0565b93505060a06120508a828b01611e8c565b92505060c06120618a828b01611e8c565b91505092959891949750929550565b6000806040838503121561208357600080fd5b600061209185828601611e4d565b92505060206120a285828601611eb6565b9150509250929050565b6000602082840312156120be57600080fd5b60006120cc84828501611e77565b91505092915050565b6000602082840312156120e757600080fd5b60006120f584828501611ea1565b91505092915050565b60006020828403121561211057600080fd5b600061211e84828501611ecb565b91505092915050565b61213081612989565b82525050565b61213f8161299b565b82525050565b61214e816129a7565b82525050565b612165612160826129a7565b612b14565b82525050565b612174816129fa565b82525050565b61218381612a1e565b82525050565b61219281612a42565b82525050565b60006121a3826128d8565b6121ad81856128e3565b93506121bd818560208601612a66565b6121c681612b7c565b840191505092915050565b60006121de6023836128e3565b91506121e982612b8d565b604082019050919050565b60006122016014836128e3565b915061220c82612bdc565b602082019050919050565b60006122246019836128e3565b915061222f82612c05565b602082019050919050565b60006122476022836128e3565b915061225282612c2e565b604082019050919050565b600061226a601f836128e3565b915061227582612c7d565b602082019050919050565b600061228d6022836128e3565b915061229882612ca6565b604082019050919050565b60006122b06002836128f4565b91506122bb82612cf5565b600282019050919050565b60006122d36026836128e3565b91506122de82612d1e565b604082019050919050565b60006122f6601f836128e3565b915061230182612d6d565b602082019050919050565b6000612319600f836128e3565b915061232482612d96565b602082019050919050565b600061233c6010836128e3565b915061234782612dbf565b602082019050919050565b600061235f6028836128e3565b915061236a82612de8565b604082019050919050565b60006123826021836128e3565b915061238d82612e37565b604082019050919050565b60006123a56025836128e3565b91506123b082612e86565b604082019050919050565b60006123c86024836128e3565b91506123d382612ed5565b604082019050919050565b60006123eb6021836128e3565b91506123f682612f24565b604082019050919050565b600061240e6025836128e3565b915061241982612f73565b604082019050919050565b6000612431601f836128e3565b915061243c82612fc2565b602082019050919050565b612450816129e3565b82525050565b61245f816129ed565b82525050565b6000612470826122a3565b915061247c8285612154565b60208201915061248c8284612154565b6020820191508190509392505050565b60006020820190506124b16000830184612127565b92915050565b60006040820190506124cc6000830185612127565b6124d96020830184612447565b9392505050565b60006020820190506124f56000830184612136565b92915050565b60006020820190506125106000830184612145565b92915050565b600060c08201905061252b6000830189612145565b6125386020830188612127565b6125456040830187612127565b6125526060830186612447565b61255f6080830185612447565b61256c60a0830184612447565b979650505050505050565b600060a08201905061258c6000830188612145565b6125996020830187612145565b6125a66040830186612145565b6125b36060830185612447565b6125c06080830184612127565b9695505050505050565b60006080820190506125df6000830187612145565b6125ec6020830186612456565b6125f96040830185612145565b6126066060830184612145565b95945050505050565b6000602082019050612624600083018461216b565b92915050565b600060208201905061263f600083018461217a565b92915050565b600060208201905061265a6000830184612189565b92915050565b6000602082019050818103600083015261267a8184612198565b905092915050565b6000602082019050818103600083015261269b816121d1565b9050919050565b600060208201905081810360008301526126bb816121f4565b9050919050565b600060208201905081810360008301526126db81612217565b9050919050565b600060208201905081810360008301526126fb8161223a565b9050919050565b6000602082019050818103600083015261271b8161225d565b9050919050565b6000602082019050818103600083015261273b81612280565b9050919050565b6000602082019050818103600083015261275b816122c6565b9050919050565b6000602082019050818103600083015261277b816122e9565b9050919050565b6000602082019050818103600083015261279b8161230c565b9050919050565b600060208201905081810360008301526127bb8161232f565b9050919050565b600060208201905081810360008301526127db81612352565b9050919050565b600060208201905081810360008301526127fb81612375565b9050919050565b6000602082019050818103600083015261281b81612398565b9050919050565b6000602082019050818103600083015261283b816123bb565b9050919050565b6000602082019050818103600083015261285b816123de565b9050919050565b6000602082019050818103600083015261287b81612401565b9050919050565b6000602082019050818103600083015261289b81612424565b9050919050565b60006020820190506128b76000830184612447565b92915050565b60006020820190506128d26000830184612456565b92915050565b600081519050919050565b600082825260208201905092915050565b600081905092915050565b600061290a826129e3565b9150612915836129e3565b9250827fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0382111561294a57612949612b1e565b5b828201905092915050565b6000612960826129e3565b915061296b836129e3565b92508282101561297e5761297d612b1e565b5b828203905092915050565b6000612994826129c3565b9050919050565b60008115159050919050565b6000819050919050565b60006129bc82612989565b9050919050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000819050919050565b600060ff82169050919050565b6000612a0582612a0c565b9050919050565b6000612a17826129c3565b9050919050565b6000612a2982612a30565b9050919050565b6000612a3b826129c3565b9050919050565b6000612a4d82612a54565b9050919050565b6000612a5f826129c3565b9050919050565b60005b83811015612a84578082015181840152602081019050612a69565b83811115612a93576000848401525b50505050565b60006002820490506001821680612ab157607f821691505b60208210811415612ac557612ac4612b4d565b5b50919050565b6000612ad6826129e3565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff821415612b0957612b08612b1e565b5b600182019050919050565b6000819050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b6000601f19601f8301169050919050565b7f45524332303a207472616e7366657220746f20746865207a65726f206164647260008201527f6573730000000000000000000000000000000000000000000000000000000000602082015250565b7f5061757361626c653a206e6f7420706175736564000000000000000000000000600082015250565b7f73746b4574683a20494e56414c49445f5349474e415455524500000000000000600082015250565b7f45524332303a206275726e20616d6f756e7420657863656564732062616c616e60008201527f6365000000000000000000000000000000000000000000000000000000000000602082015250565b7f436f72655265663a2043616c6c6572206973206e6f742061206d696e74657200600082015250565b7f45524332303a20617070726f766520746f20746865207a65726f20616464726560008201527f7373000000000000000000000000000000000000000000000000000000000000602082015250565b7f1901000000000000000000000000000000000000000000000000000000000000600082015250565b7f45524332303a207472616e7366657220616d6f756e742065786365656473206260008201527f616c616e63650000000000000000000000000000000000000000000000000000602082015250565b7f436f72655265663a2043616c6c6572206973206e6f742061206275726e657200600082015250565b7f73746b4574683a20455850495245440000000000000000000000000000000000600082015250565b7f5061757361626c653a2070617573656400000000000000000000000000000000600082015250565b7f45524332303a207472616e7366657220616d6f756e742065786365656473206160008201527f6c6c6f77616e6365000000000000000000000000000000000000000000000000602082015250565b7f45524332303a206275726e2066726f6d20746865207a65726f2061646472657360008201527f7300000000000000000000000000000000000000000000000000000000000000602082015250565b7f45524332303a207472616e736665722066726f6d20746865207a65726f20616460008201527f6472657373000000000000000000000000000000000000000000000000000000602082015250565b7f45524332303a20617070726f76652066726f6d20746865207a65726f2061646460008201527f7265737300000000000000000000000000000000000000000000000000000000602082015250565b7f436f72655265663a2043616c6c6572206973206e6f74206120676f7665726e6f60008201527f7200000000000000000000000000000000000000000000000000000000000000602082015250565b7f45524332303a2064656372656173656420616c6c6f77616e63652062656c6f7760008201527f207a65726f000000000000000000000000000000000000000000000000000000602082015250565b7f45524332303a206d696e7420746f20746865207a65726f206164647265737300600082015250565b612ff481612989565b8114612fff57600080fd5b50565b61300b8161299b565b811461301657600080fd5b50565b613022816129a7565b811461302d57600080fd5b50565b613039816129b1565b811461304457600080fd5b50565b613050816129e3565b811461305b57600080fd5b50565b613067816129ed565b811461307257600080fd5b5056fea2646970667358221220cb1f8488642a50365b7d2101d3a4aa0433a2a1bf931b1a988337dd129866c72e64736f6c63430008040033000000000000000000000000fb1d0bdfdf1d3cbd5188cea5cff6595d6f67e059

Deployed Bytecode

0x608060405234801561001057600080fd5b506004361061018e5760003560e01c80637dc0d1d0116100de5780639dc29fac11610097578063cd0d009611610071578063cd0d009614610477578063d505accf14610495578063dd62ed3e146104b1578063f2f4eb26146104e15761018e565b80639dc29fac146103fb578063a457c2d714610417578063a9059cbb146104475761018e565b80637dc0d1d01461034b5780637ecebe001461036957806380009630146103995780638456cb59146103b557806395d89b41146103bf57806399530b06146103dd5761018e565b80633644e5151161014b57806340c10f191161012557806340c10f19146102c35780635c975abb146102df57806370a08231146102fd5780637cd854851461032d5761018e565b80633644e5151461026b57806339509351146102895780633f4ba83a146102b95761018e565b806306fdde0314610193578063095ea7b3146101b157806318160ddd146101e157806323b872dd146101ff57806330adf81f1461022f578063313ce5671461024d575b600080fd5b61019b6104ff565b6040516101a89190612660565b60405180910390f35b6101cb60048036038101906101c69190612070565b610591565b6040516101d891906124e0565b60405180910390f35b6101e96105af565b6040516101f691906128a2565b60405180910390f35b61021960048036038101906102149190611f83565b6105b9565b60405161022691906124e0565b60405180910390f35b6102376106b1565b60405161024491906124fb565b60405180910390f35b6102556106d8565b60405161026291906128bd565b60405180910390f35b6102736106e1565b60405161028091906124fb565b60405180910390f35b6102a3600480360381019061029e9190612070565b610744565b6040516102b091906124e0565b60405180910390f35b6102c16107f0565b005b6102dd60048036038101906102d89190612070565b6108e4565b005b6102e76109dc565b6040516102f491906124e0565b60405180910390f35b61031760048036038101906103129190611ef5565b6109f3565b60405161032491906128a2565b60405180910390f35b610335610a3b565b6040516103429190612645565b60405180910390f35b610353610ae2565b604051610360919061262a565b60405180910390f35b610383600480360381019061037e9190611ef5565b610b89565b60405161039091906128a2565b60405180910390f35b6103b360048036038101906103ae9190611ef5565b610ba1565b005b6103bd610d06565b005b6103c7610dfa565b6040516103d49190612660565b60405180910390f35b6103e5610e8c565b6040516103f291906128a2565b60405180910390f35b61041560048036038101906104109190612070565b610f95565b005b610431600480360381019061042c9190612070565b6110c6565b60405161043e91906124e0565b60405180910390f35b610461600480360381019061045c9190612070565b6111b1565b60405161046e91906124e0565b60405180910390f35b61047f6111cf565b60405161048c91906128a2565b60405180910390f35b6104af60048036038101906104aa9190611fd2565b6111f3565b005b6104cb60048036038101906104c69190611f47565b611420565b6040516104d891906128a2565b60405180910390f35b6104e96114a7565b6040516104f6919061260f565b60405180910390f35b60606003805461050e90612a99565b80601f016020809104026020016040519081016040528092919081815260200182805461053a90612a99565b80156105875780601f1061055c57610100808354040283529160200191610587565b820191906000526020600020905b81548152906001019060200180831161056a57829003601f168201915b5050505050905090565b60006105a561059e6114d1565b84846114d9565b6001905092915050565b6000600254905090565b60006105c68484846116a4565b6000600160008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006106116114d1565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054905082811015610691576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610688906127c2565b60405180910390fd5b6106a58561069d6114d1565b8584036114d9565b60019150509392505050565b7f6e71edae12b1b97f4d1f60370fef10105fa2faae0126114a169c64845d6126c960001b81565b60006012905090565b6000804690507f0000000000000000000000000000000000000000000000000000000000000001811461071c5761071781611925565b61073e565b7f953f5f7573e729e7f77a653cdf2994c27ab4e15d144a9cc1b6ed4cbabf267eff5b91505090565b60006107e66107516114d1565b84846001600061075f6114d1565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008873ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020546107e191906128ff565b6114d9565b6001905092915050565b600560019054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663e43581b8336040518263ffffffff1660e01b815260040161084b919061249c565b60206040518083038186803b15801561086357600080fd5b505afa158015610877573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061089b91906120ac565b6108da576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016108d190612842565b60405180910390fd5b6108e26119c7565b565b600560019054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663aa271e1a336040518263ffffffff1660e01b815260040161093f919061249c565b60206040518083038186803b15801561095757600080fd5b505afa15801561096b573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061098f91906120ac565b6109ce576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016109c590612702565b60405180910390fd5b6109d88282611a69565b5050565b6000600560009054906101000a900460ff16905090565b60008060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020549050919050565b6000600560019054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16637cd854856040518163ffffffff1660e01b815260040160206040518083038186803b158015610aa557600080fd5b505afa158015610ab9573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610add91906120d5565b905090565b6000600560019054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16637dc0d1d06040518163ffffffff1660e01b815260040160206040518083038186803b158015610b4c57600080fd5b505afa158015610b60573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610b849190611f1e565b905090565b60066020528060005260406000206000915090505481565b600560019054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663e43581b8336040518263ffffffff1660e01b8152600401610bfc919061249c565b60206040518083038186803b158015610c1457600080fd5b505afa158015610c28573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610c4c91906120ac565b610c8b576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610c8290612842565b60405180910390fd5b80600560016101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055507fb509f1ef29149e474db3a4776b2b658ad1b70710ceb0a5635a375a4c388eed8e81604051610cfb919061249c565b60405180910390a150565b600560019054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663e43581b8336040518263ffffffff1660e01b8152600401610d61919061249c565b60206040518083038186803b158015610d7957600080fd5b505afa158015610d8d573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610db191906120ac565b610df0576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610de790612842565b60405180910390fd5b610df8611bc9565b565b606060048054610e0990612a99565b80601f0160208091040260200160405190810160405280929190818152602001828054610e3590612a99565b8015610e825780601f10610e5757610100808354040283529160200191610e82565b820191906000526020600020905b815481529060010190602001808311610e6557829003601f168201915b5050505050905090565b6000610e966114a7565b73ffffffffffffffffffffffffffffffffffffffff16637dc0d1d06040518163ffffffff1660e01b815260040160206040518083038186803b158015610edb57600080fd5b505afa158015610eef573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610f139190611f1e565b73ffffffffffffffffffffffffffffffffffffffff166399530b066040518163ffffffff1660e01b815260040160206040518083038186803b158015610f5857600080fd5b505afa158015610f6c573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610f9091906120fe565b905090565b600560019054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16634334614a336040518263ffffffff1660e01b8152600401610ff0919061249c565b60206040518083038186803b15801561100857600080fd5b505afa15801561101c573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061104091906120ac565b61107f576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161107690612762565b60405180910390fd5b6110898282611c6c565b7fd1df306c742159c188c29d2c167874a39b84fd0f96f794ad7ea53295680ec1c582826040516110ba9291906124b7565b60405180910390a15050565b600080600160006110d56114d1565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054905082811015611192576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161118990612862565b60405180910390fd5b6111a661119d6114d1565b858584036114d9565b600191505092915050565b60006111c56111be6114d1565b84846116a4565b6001905092915050565b7f000000000000000000000000000000000000000000000000000000000000000181565b42841015611236576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161122d90612782565b60405180910390fd5b60006112406106e1565b7f6e71edae12b1b97f4d1f60370fef10105fa2faae0126114a169c64845d6126c960001b898989600660008e73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008154809291906112b790612acb565b919050558a6040516020016112d196959493929190612516565b604051602081830303815290604052805190602001206040516020016112f8929190612465565b60405160208183030381529060405280519060200120905060006001828686866040516000815260200160405260405161133594939291906125ca565b6020604051602081039080840390855afa158015611357573d6000803e3d6000fd5b505050602060405103519050600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16141580156113cb57508873ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16145b61140a576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611401906126c2565b60405180910390fd5b6114158989896114d9565b505050505050505050565b6000600160008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054905092915050565b6000600560019054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b600033905090565b600073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff161415611549576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161154090612822565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1614156115b9576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016115b090612722565b60405180910390fd5b80600160008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055508173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b9258360405161169791906128a2565b60405180910390a3505050565b600073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff161415611714576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161170b90612802565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415611784576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161177b90612682565b60405180910390fd5b61178f838383611e43565b60008060008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054905081811015611815576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161180c90612742565b60405180910390fd5b8181036000808673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002081905550816000808573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008282546118a891906128ff565b925050819055508273ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef8460405161190c91906128a2565b60405180910390a361191f848484611e48565b50505050565b60007f8b73c3c69bb8fe3d512ecc4cf759cc79239f7b179b0ffacaa9a75d522b39400f6119506104ff565b805190602001206040518060400160405280600181526020017f31000000000000000000000000000000000000000000000000000000000000008152508051906020012084306040516020016119aa959493929190612577565b604051602081830303815290604052805190602001209050919050565b6119cf6109dc565b611a0e576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611a05906126a2565b60405180910390fd5b6000600560006101000a81548160ff0219169083151502179055507f5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa611a526114d1565b604051611a5f919061249c565b60405180910390a1565b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415611ad9576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611ad090612882565b60405180910390fd5b611ae560008383611e43565b8060026000828254611af791906128ff565b92505081905550806000808473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000828254611b4c91906128ff565b925050819055508173ffffffffffffffffffffffffffffffffffffffff16600073ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef83604051611bb191906128a2565b60405180910390a3611bc560008383611e48565b5050565b611bd16109dc565b15611c11576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611c08906127a2565b60405180910390fd5b6001600560006101000a81548160ff0219169083151502179055507f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a258611c556114d1565b604051611c62919061249c565b60405180910390a1565b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415611cdc576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611cd3906127e2565b60405180910390fd5b611ce882600083611e43565b60008060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054905081811015611d6e576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611d65906126e2565b60405180910390fd5b8181036000808573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055508160026000828254611dc59190612955565b92505081905550600073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef84604051611e2a91906128a2565b60405180910390a3611e3e83600084611e48565b505050565b505050565b505050565b600081359050611e5c81612feb565b92915050565b600081519050611e7181612feb565b92915050565b600081519050611e8681613002565b92915050565b600081359050611e9b81613019565b92915050565b600081519050611eb081613030565b92915050565b600081359050611ec581613047565b92915050565b600081519050611eda81613047565b92915050565b600081359050611eef8161305e565b92915050565b600060208284031215611f0757600080fd5b6000611f1584828501611e4d565b91505092915050565b600060208284031215611f3057600080fd5b6000611f3e84828501611e62565b91505092915050565b60008060408385031215611f5a57600080fd5b6000611f6885828601611e4d565b9250506020611f7985828601611e4d565b9150509250929050565b600080600060608486031215611f9857600080fd5b6000611fa686828701611e4d565b9350506020611fb786828701611e4d565b9250506040611fc886828701611eb6565b9150509250925092565b600080600080600080600060e0888a031215611fed57600080fd5b6000611ffb8a828b01611e4d565b975050602061200c8a828b01611e4d565b965050604061201d8a828b01611eb6565b955050606061202e8a828b01611eb6565b945050608061203f8a828b01611ee0565b93505060a06120508a828b01611e8c565b92505060c06120618a828b01611e8c565b91505092959891949750929550565b6000806040838503121561208357600080fd5b600061209185828601611e4d565b92505060206120a285828601611eb6565b9150509250929050565b6000602082840312156120be57600080fd5b60006120cc84828501611e77565b91505092915050565b6000602082840312156120e757600080fd5b60006120f584828501611ea1565b91505092915050565b60006020828403121561211057600080fd5b600061211e84828501611ecb565b91505092915050565b61213081612989565b82525050565b61213f8161299b565b82525050565b61214e816129a7565b82525050565b612165612160826129a7565b612b14565b82525050565b612174816129fa565b82525050565b61218381612a1e565b82525050565b61219281612a42565b82525050565b60006121a3826128d8565b6121ad81856128e3565b93506121bd818560208601612a66565b6121c681612b7c565b840191505092915050565b60006121de6023836128e3565b91506121e982612b8d565b604082019050919050565b60006122016014836128e3565b915061220c82612bdc565b602082019050919050565b60006122246019836128e3565b915061222f82612c05565b602082019050919050565b60006122476022836128e3565b915061225282612c2e565b604082019050919050565b600061226a601f836128e3565b915061227582612c7d565b602082019050919050565b600061228d6022836128e3565b915061229882612ca6565b604082019050919050565b60006122b06002836128f4565b91506122bb82612cf5565b600282019050919050565b60006122d36026836128e3565b91506122de82612d1e565b604082019050919050565b60006122f6601f836128e3565b915061230182612d6d565b602082019050919050565b6000612319600f836128e3565b915061232482612d96565b602082019050919050565b600061233c6010836128e3565b915061234782612dbf565b602082019050919050565b600061235f6028836128e3565b915061236a82612de8565b604082019050919050565b60006123826021836128e3565b915061238d82612e37565b604082019050919050565b60006123a56025836128e3565b91506123b082612e86565b604082019050919050565b60006123c86024836128e3565b91506123d382612ed5565b604082019050919050565b60006123eb6021836128e3565b91506123f682612f24565b604082019050919050565b600061240e6025836128e3565b915061241982612f73565b604082019050919050565b6000612431601f836128e3565b915061243c82612fc2565b602082019050919050565b612450816129e3565b82525050565b61245f816129ed565b82525050565b6000612470826122a3565b915061247c8285612154565b60208201915061248c8284612154565b6020820191508190509392505050565b60006020820190506124b16000830184612127565b92915050565b60006040820190506124cc6000830185612127565b6124d96020830184612447565b9392505050565b60006020820190506124f56000830184612136565b92915050565b60006020820190506125106000830184612145565b92915050565b600060c08201905061252b6000830189612145565b6125386020830188612127565b6125456040830187612127565b6125526060830186612447565b61255f6080830185612447565b61256c60a0830184612447565b979650505050505050565b600060a08201905061258c6000830188612145565b6125996020830187612145565b6125a66040830186612145565b6125b36060830185612447565b6125c06080830184612127565b9695505050505050565b60006080820190506125df6000830187612145565b6125ec6020830186612456565b6125f96040830185612145565b6126066060830184612145565b95945050505050565b6000602082019050612624600083018461216b565b92915050565b600060208201905061263f600083018461217a565b92915050565b600060208201905061265a6000830184612189565b92915050565b6000602082019050818103600083015261267a8184612198565b905092915050565b6000602082019050818103600083015261269b816121d1565b9050919050565b600060208201905081810360008301526126bb816121f4565b9050919050565b600060208201905081810360008301526126db81612217565b9050919050565b600060208201905081810360008301526126fb8161223a565b9050919050565b6000602082019050818103600083015261271b8161225d565b9050919050565b6000602082019050818103600083015261273b81612280565b9050919050565b6000602082019050818103600083015261275b816122c6565b9050919050565b6000602082019050818103600083015261277b816122e9565b9050919050565b6000602082019050818103600083015261279b8161230c565b9050919050565b600060208201905081810360008301526127bb8161232f565b9050919050565b600060208201905081810360008301526127db81612352565b9050919050565b600060208201905081810360008301526127fb81612375565b9050919050565b6000602082019050818103600083015261281b81612398565b9050919050565b6000602082019050818103600083015261283b816123bb565b9050919050565b6000602082019050818103600083015261285b816123de565b9050919050565b6000602082019050818103600083015261287b81612401565b9050919050565b6000602082019050818103600083015261289b81612424565b9050919050565b60006020820190506128b76000830184612447565b92915050565b60006020820190506128d26000830184612456565b92915050565b600081519050919050565b600082825260208201905092915050565b600081905092915050565b600061290a826129e3565b9150612915836129e3565b9250827fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0382111561294a57612949612b1e565b5b828201905092915050565b6000612960826129e3565b915061296b836129e3565b92508282101561297e5761297d612b1e565b5b828203905092915050565b6000612994826129c3565b9050919050565b60008115159050919050565b6000819050919050565b60006129bc82612989565b9050919050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000819050919050565b600060ff82169050919050565b6000612a0582612a0c565b9050919050565b6000612a17826129c3565b9050919050565b6000612a2982612a30565b9050919050565b6000612a3b826129c3565b9050919050565b6000612a4d82612a54565b9050919050565b6000612a5f826129c3565b9050919050565b60005b83811015612a84578082015181840152602081019050612a69565b83811115612a93576000848401525b50505050565b60006002820490506001821680612ab157607f821691505b60208210811415612ac557612ac4612b4d565b5b50919050565b6000612ad6826129e3565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff821415612b0957612b08612b1e565b5b600182019050919050565b6000819050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b6000601f19601f8301169050919050565b7f45524332303a207472616e7366657220746f20746865207a65726f206164647260008201527f6573730000000000000000000000000000000000000000000000000000000000602082015250565b7f5061757361626c653a206e6f7420706175736564000000000000000000000000600082015250565b7f73746b4574683a20494e56414c49445f5349474e415455524500000000000000600082015250565b7f45524332303a206275726e20616d6f756e7420657863656564732062616c616e60008201527f6365000000000000000000000000000000000000000000000000000000000000602082015250565b7f436f72655265663a2043616c6c6572206973206e6f742061206d696e74657200600082015250565b7f45524332303a20617070726f766520746f20746865207a65726f20616464726560008201527f7373000000000000000000000000000000000000000000000000000000000000602082015250565b7f1901000000000000000000000000000000000000000000000000000000000000600082015250565b7f45524332303a207472616e7366657220616d6f756e742065786365656473206260008201527f616c616e63650000000000000000000000000000000000000000000000000000602082015250565b7f436f72655265663a2043616c6c6572206973206e6f742061206275726e657200600082015250565b7f73746b4574683a20455850495245440000000000000000000000000000000000600082015250565b7f5061757361626c653a2070617573656400000000000000000000000000000000600082015250565b7f45524332303a207472616e7366657220616d6f756e742065786365656473206160008201527f6c6c6f77616e6365000000000000000000000000000000000000000000000000602082015250565b7f45524332303a206275726e2066726f6d20746865207a65726f2061646472657360008201527f7300000000000000000000000000000000000000000000000000000000000000602082015250565b7f45524332303a207472616e736665722066726f6d20746865207a65726f20616460008201527f6472657373000000000000000000000000000000000000000000000000000000602082015250565b7f45524332303a20617070726f76652066726f6d20746865207a65726f2061646460008201527f7265737300000000000000000000000000000000000000000000000000000000602082015250565b7f436f72655265663a2043616c6c6572206973206e6f74206120676f7665726e6f60008201527f7200000000000000000000000000000000000000000000000000000000000000602082015250565b7f45524332303a2064656372656173656420616c6c6f77616e63652062656c6f7760008201527f207a65726f000000000000000000000000000000000000000000000000000000602082015250565b7f45524332303a206d696e7420746f20746865207a65726f206164647265737300600082015250565b612ff481612989565b8114612fff57600080fd5b50565b61300b8161299b565b811461301657600080fd5b50565b613022816129a7565b811461302d57600080fd5b50565b613039816129b1565b811461304457600080fd5b50565b613050816129e3565b811461305b57600080fd5b50565b613067816129ed565b811461307257600080fd5b5056fea2646970667358221220cb1f8488642a50365b7d2101d3a4aa0433a2a1bf931b1a988337dd129866c72e64736f6c63430008040033

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

000000000000000000000000fb1d0bdfdf1d3cbd5188cea5cff6595d6f67e059

-----Decoded View---------------
Arg [0] : _core (address): 0xfB1D0bDFDF1D3CBd5188CEA5cFF6595d6f67E059

-----Encoded View---------------
1 Constructor Arguments found :
Arg [0] : 000000000000000000000000fb1d0bdfdf1d3cbd5188cea5cff6595d6f67e059


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.