ETH Price: $2,271.50 (+1.23%)

Token

Enhanced PHTR (ePHTR)
 

Overview

Max Total Supply

4,950,085.397836788632506708 ePHTR

Holders

215

Market

Onchain Market Cap

$0.00

Circulating Supply Market Cap

-

Other Info

Token Contract (WITH 18 Decimals)

Filtered by Token Holder
blackbeard1337.eth
Balance
1,111.056978590979293868 ePHTR

Value
$0.00
0xE5B453C540D30Ae261fC1920bf34197BC6Bbf435
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:
ePHTR

Compiler Version
v0.8.4+commit.c7e474f2

Optimization Enabled:
Yes with 999999 runs

Other Settings:
default evmVersion
File 1 of 14 : ePHTR.sol
// SPDX-License-Identifier: Apache-2.0

pragma solidity >=0.8.0;

import "@openzeppelin/contracts/security/ReentrancyGuard.sol";
import "@openzeppelin/contracts/token/ERC20/utils/SafeERC20.sol";
import "./Emission.sol";
import "./PhutureERC20.sol";
import "./interfaces/IePHTR.sol";
import "./interfaces/IEmission.sol";

contract ePHTR is IePHTR, PhutureERC20, ReentrancyGuard {
    using SafeERC20 for IERC20;

    uint constant INITIAL_QUANTITY = 10000;

    address private immutable token;
    uint private lastBalance;

    address public emission;

    constructor(address _token, uint _distributedPerBlock) {
        token = _token; 
        name = "Enhanced PHTR";
        symbol = "ePHTR";

        Emission _emission = new Emission(_token, address(this), _distributedPerBlock);
        _emission.transferOwnership(msg.sender);
        emission = address(_emission);  
    }   

    function withdrawableAmount(uint _value) external view override returns (uint) {
        uint _totalSupply = totalSupply;
        if (_totalSupply == 0) {
            return 0;
        }
        uint balance = IERC20(token).balanceOf(address(this)) + IEmission(emission).withdrawable();
        return _value * balance / _totalSupply;
    }

    function mint(address _recipient) external override nonReentrant {
        uint balance = IERC20(token).balanceOf(address(this));
        IEmission(emission).withdraw();
        uint amount = balance - lastBalance;
        uint value;
        uint _totalSupply = totalSupply;
        if (_totalSupply != 0) {
            value = amount * _totalSupply / lastBalance;
        } else {
            value = amount - INITIAL_QUANTITY;
            _mint(address(0), INITIAL_QUANTITY);
        }
        require(value > 0, 'ePHTR: INSUFFICIENT_AMOUNT');
        _mint(_recipient, value);
        _update(IERC20(token).balanceOf(address(this)));
    }

    function burn(address _recipient) external override nonReentrant {
        IEmission(emission).withdraw();
        uint balance = IERC20(token).balanceOf(address(this));
        uint value = balanceOf[address(this)];
        uint amount = value * balance / totalSupply;
        require(amount > 0, 'ePHTR: INSUFFICIENT_VALUE_BURNED');
        IERC20(token).safeTransfer(_recipient, amount);
        _burn(address(this), value);
        _update(IERC20(token).balanceOf(address(this)));
    }

    function sync() external override nonReentrant {
        _update(IERC20(token).balanceOf(address(this)));
    }

    function _update(uint _newBalance) private {
        lastBalance = _newBalance;
    }
}

File 2 of 14 : ReentrancyGuard.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

/**
 * @dev Contract module that helps prevent reentrant calls to a function.
 *
 * Inheriting from `ReentrancyGuard` will make the {nonReentrant} modifier
 * available, which can be applied to functions to make sure there are no nested
 * (reentrant) calls to them.
 *
 * Note that because there is a single `nonReentrant` guard, functions marked as
 * `nonReentrant` may not call one another. This can be worked around by making
 * those functions `private`, and then adding `external` `nonReentrant` entry
 * points to them.
 *
 * TIP: If you would like to learn more about reentrancy and alternative ways
 * to protect against it, check out our blog post
 * https://blog.openzeppelin.com/reentrancy-after-istanbul/[Reentrancy After Istanbul].
 */
abstract contract ReentrancyGuard {
    // Booleans are more expensive than uint256 or any type that takes up a full
    // word because each write operation emits an extra SLOAD to first read the
    // slot's contents, replace the bits taken up by the boolean, and then write
    // back. This is the compiler's defense against contract upgrades and
    // pointer aliasing, and it cannot be disabled.

    // The values being non-zero value makes deployment a bit more expensive,
    // but in exchange the refund on every call to nonReentrant will be lower in
    // amount. Since refunds are capped to a percentage of the total
    // transaction's gas, it is best to keep them low in cases like this one, to
    // increase the likelihood of the full refund coming into effect.
    uint256 private constant _NOT_ENTERED = 1;
    uint256 private constant _ENTERED = 2;

    uint256 private _status;

    constructor () {
        _status = _NOT_ENTERED;
    }

    /**
     * @dev Prevents a contract from calling itself, directly or indirectly.
     * Calling a `nonReentrant` function from another `nonReentrant`
     * function is not supported. It is possible to prevent this from happening
     * by making the `nonReentrant` function external, and make it call a
     * `private` function that does the actual work.
     */
    modifier nonReentrant() {
        // On the first call to nonReentrant, _notEntered will be true
        require(_status != _ENTERED, "ReentrancyGuard: reentrant call");

        // Any calls to nonReentrant after this point will fail
        _status = _ENTERED;

        _;

        // By storing the original value once again, a refund is triggered (see
        // https://eips.ethereum.org/EIPS/eip-2200)
        _status = _NOT_ENTERED;
    }
}

File 3 of 14 : SafeERC20.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

import "../IERC20.sol";
import "../../../utils/Address.sol";

/**
 * @title SafeERC20
 * @dev Wrappers around ERC20 operations that throw on failure (when the token
 * contract returns false). Tokens that return no value (and instead revert or
 * throw on failure) are also supported, non-reverting calls are assumed to be
 * successful.
 * To use this library you can add a `using SafeERC20 for IERC20;` statement to your contract,
 * which allows you to call the safe operations as `token.safeTransfer(...)`, etc.
 */
library SafeERC20 {
    using Address for address;

    function safeTransfer(IERC20 token, address to, uint256 value) internal {
        _callOptionalReturn(token, abi.encodeWithSelector(token.transfer.selector, to, value));
    }

    function safeTransferFrom(IERC20 token, address from, address to, uint256 value) internal {
        _callOptionalReturn(token, abi.encodeWithSelector(token.transferFrom.selector, from, to, value));
    }

    /**
     * @dev Deprecated. This function has issues similar to the ones found in
     * {IERC20-approve}, and its usage is discouraged.
     *
     * Whenever possible, use {safeIncreaseAllowance} and
     * {safeDecreaseAllowance} instead.
     */
    function safeApprove(IERC20 token, address spender, uint256 value) internal {
        // safeApprove should only be called when setting an initial allowance,
        // or when resetting it to zero. To increase and decrease it, use
        // 'safeIncreaseAllowance' and 'safeDecreaseAllowance'
        // solhint-disable-next-line max-line-length
        require((value == 0) || (token.allowance(address(this), spender) == 0),
            "SafeERC20: approve from non-zero to non-zero allowance"
        );
        _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, value));
    }

    function safeIncreaseAllowance(IERC20 token, address spender, uint256 value) internal {
        uint256 newAllowance = token.allowance(address(this), spender) + value;
        _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, newAllowance));
    }

    function safeDecreaseAllowance(IERC20 token, address spender, uint256 value) internal {
        unchecked {
            uint256 oldAllowance = token.allowance(address(this), spender);
            require(oldAllowance >= value, "SafeERC20: decreased allowance below zero");
            uint256 newAllowance = oldAllowance - value;
            _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, newAllowance));
        }
    }

    /**
     * @dev Imitates a Solidity high-level call (i.e. a regular function call to a contract), relaxing the requirement
     * on the return value: the return value is optional (but if data is returned, it must not be false).
     * @param token The token targeted by the call.
     * @param data The call data (encoded using abi.encode or one of its variants).
     */
    function _callOptionalReturn(IERC20 token, bytes memory data) private {
        // We need to perform a low level call here, to bypass Solidity's return data size checking mechanism, since
        // we're implementing it ourselves. We use {Address.functionCall} to perform this call, which verifies that
        // the target address contains contract code and also asserts for success in the low-level call.

        bytes memory returndata = address(token).functionCall(data, "SafeERC20: low-level call failed");
        if (returndata.length > 0) { // Return data is optional
            // solhint-disable-next-line max-line-length
            require(abi.decode(returndata, (bool)), "SafeERC20: ERC20 operation did not succeed");
        }
    }
}

File 4 of 14 : Emission.sol
// SPDX-License-Identifier: Apache-2.0

pragma solidity >=0.8.0;

import "@openzeppelin/contracts/utils/math/Math.sol";
import "@openzeppelin/contracts/security/ReentrancyGuard.sol";
import "@openzeppelin/contracts/token/ERC20/utils/SafeERC20.sol";
import "@openzeppelin/contracts/access/Ownable.sol";
import "@openzeppelin/contracts/utils/math/SafeCast.sol";
import "./interfaces/IEmission.sol";

contract Emission is IEmission, Ownable, ReentrancyGuard {
    using SafeCast for uint;
    using SafeERC20 for IERC20;

    address public token;
    address public stakingToken;

    uint constant INITIAL_QUANTITY = 10000;
    
    uint public override distributedPerBlock;
    uint public lastWithdrawalBlock;

    constructor(address _token, address _stakingToken, uint _distributedPerBlock) {
        require(_token != address(0), "Emission: ZERO");
        token = _token;
        stakingToken = _stakingToken;
        distributedPerBlock = _distributedPerBlock;
        lastWithdrawalBlock = block.number;
    }

    function setDistribution(uint _distributedPerBlock) external override onlyOwner {
        _withdraw();
        distributedPerBlock = _distributedPerBlock;
    }

    function withdraw() external override nonReentrant {
        _withdraw();
    }

    function withdrawable() external view override returns (uint) {
        uint balance = IERC20(token).balanceOf(address(this));
        if (balance == 0 || IERC20(stakingToken).totalSupply() <= INITIAL_QUANTITY) {
            return 0;
        }
        uint blocksPassed = block.number - lastWithdrawalBlock;
        return Math.min(balance, blocksPassed * distributedPerBlock);
    }

    function _withdraw() private {
        uint balance = IERC20(token).balanceOf(address(this));
        if (balance == 0 || IERC20(stakingToken).totalSupply() <= INITIAL_QUANTITY) {
            lastWithdrawalBlock = block.number; // increment last withdrawal time when there is no funds to reduce time delta
            return;
        }
        uint blocksPassed = block.number - lastWithdrawalBlock;
        if (blocksPassed == 0) {
            return;
        }
        uint amount = Math.min(balance, blocksPassed * distributedPerBlock);
        lastWithdrawalBlock = block.number;
        IERC20(token).safeTransfer(stakingToken, amount);
    }
}

File 5 of 14 : PhutureERC20.sol
// SPDX-License-Identifier: Apache-2.0

pragma solidity >=0.8.0;

import "./interfaces/IPhutureERC20.sol";

contract PhutureERC20 is IPhutureERC20 {

    string public override name;
    string public override symbol;
    uint8 public override decimals = 18;
    uint public override totalSupply;
    mapping(address => uint) public override balanceOf;
    mapping(address => mapping(address => uint)) public override allowance;

    bytes32 public override DOMAIN_SEPARATOR;
    // keccak256("Permit(address owner,address spender,uint256 value,uint256 nonce,uint256 deadline)");
    bytes32 public override constant PERMIT_TYPEHASH = 0x6e71edae12b1b97f4d1f60370fef10105fa2faae0126114a169c64845d6126c9;
    mapping(address => uint) public override nonces;

    constructor() {
        uint chainId;
        assembly {
            chainId := chainid()
        }
        DOMAIN_SEPARATOR = keccak256(
            abi.encode(
                keccak256("EIP712Domain(string name,string version,uint256 chainId,address verifyingContract)"),
                keccak256(bytes(name)),
                keccak256(bytes('1')),
                chainId,
                address(this)
            )
        );
    }

    function _mint(address to, uint value) internal virtual {
        balanceOf[to] += value;
        totalSupply += value;
        emit Transfer(address(0), to, value);
    }

    function _burn(address from, uint value) internal virtual {
        balanceOf[from] -= value;
        totalSupply -= value;
        emit Transfer(from, address(0), value);
    }

    function _approve(address owner, address spender, uint value) private {
        allowance[owner][spender] = value;
        emit Approval(owner, spender, value);
    }

    function _transfer(address from, address to, uint value) internal virtual {
        balanceOf[from] -= value;
        balanceOf[to] += value;
        emit Transfer(from, to, value);
    }

    function approve(address spender, uint value) external override returns (bool) {
        _approve(msg.sender, spender, value);
        return true;
    }

    function transfer(address to, uint value) external override returns (bool) {
        _transfer(msg.sender, to, value);
        return true;
    }

    function transferFrom(address from, address to, uint value) external override returns (bool) {
        if (allowance[from][msg.sender] != type(uint).max) {
            allowance[from][msg.sender] -= value;
        }
        _transfer(from, to, value);
        return true;
    }

    function permit(address owner, address spender, uint value, uint deadline, uint8 v, bytes32 r, bytes32 s) external override {
        require(deadline >= block.timestamp, "PhutureERC20: 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, "PhutureERC20: INVALID_SIGNATURE");
        _approve(owner, spender, value);
    }
}

File 6 of 14 : IePHTR.sol
// SPDX-License-Identifier: Apache-2.0

pragma solidity >=0.8.0;

interface IePHTR {
    function withdrawableAmount(uint _value) external view returns (uint);
    function mint(address _recipient) external;
    function burn(address _recipient) external;
    function sync() external;
}

File 7 of 14 : IEmission.sol
// SPDX-License-Identifier: Apache-2.0

pragma solidity >=0.8.0;

interface IEmission {
    function setDistribution(uint _distributedPerBlock) external;
    function withdraw() external;
    function withdrawable() external view returns (uint);
    function distributedPerBlock() external view returns (uint);
}

File 8 of 14 : 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 9 of 14 : 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;
        // solhint-disable-next-line no-inline-assembly
        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");

        // solhint-disable-next-line avoid-low-level-calls, avoid-call-value
        (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");

        // solhint-disable-next-line avoid-low-level-calls
        (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");

        // solhint-disable-next-line avoid-low-level-calls
        (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");

        // solhint-disable-next-line avoid-low-level-calls
        (bool success, bytes memory returndata) = target.delegatecall(data);
        return _verifyCallResult(success, returndata, errorMessage);
    }

    function _verifyCallResult(bool success, bytes memory returndata, string memory errorMessage) private 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

                // solhint-disable-next-line no-inline-assembly
                assembly {
                    let returndata_size := mload(returndata)
                    revert(add(32, returndata), returndata_size)
                }
            } else {
                revert(errorMessage);
            }
        }
    }
}

File 10 of 14 : Math.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

/**
 * @dev Standard math utilities missing in the Solidity language.
 */
library Math {
    /**
     * @dev Returns the largest of two numbers.
     */
    function max(uint256 a, uint256 b) internal pure returns (uint256) {
        return a >= b ? a : b;
    }

    /**
     * @dev Returns the smallest of two numbers.
     */
    function min(uint256 a, uint256 b) internal pure returns (uint256) {
        return a < b ? a : b;
    }

    /**
     * @dev Returns the average of two numbers. The result is rounded towards
     * zero.
     */
    function average(uint256 a, uint256 b) internal pure returns (uint256) {
        // (a + b) / 2 can overflow, so we distribute
        return (a / 2) + (b / 2) + ((a % 2 + b % 2) / 2);
    }
}

File 11 of 14 : Ownable.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

import "../utils/Context.sol";
/**
 * @dev Contract module which provides a basic access control mechanism, where
 * there is an account (an owner) that can be granted exclusive access to
 * specific functions.
 *
 * By default, the owner account will be the one that deploys the contract. This
 * can later be changed with {transferOwnership}.
 *
 * This module is used through inheritance. It will make available the modifier
 * `onlyOwner`, which can be applied to your functions to restrict their use to
 * the owner.
 */
abstract contract Ownable is Context {
    address private _owner;

    event OwnershipTransferred(address indexed previousOwner, address indexed newOwner);

    /**
     * @dev Initializes the contract setting the deployer as the initial owner.
     */
    constructor () {
        address msgSender = _msgSender();
        _owner = msgSender;
        emit OwnershipTransferred(address(0), msgSender);
    }

    /**
     * @dev Returns the address of the current owner.
     */
    function owner() public view virtual returns (address) {
        return _owner;
    }

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

    /**
     * @dev Leaves the contract without owner. It will not be possible to call
     * `onlyOwner` functions anymore. Can only be called by the current owner.
     *
     * NOTE: Renouncing ownership will leave the contract without an owner,
     * thereby removing any functionality that is only available to the owner.
     */
    function renounceOwnership() public virtual onlyOwner {
        emit OwnershipTransferred(_owner, address(0));
        _owner = address(0);
    }

    /**
     * @dev Transfers ownership of the contract to a new account (`newOwner`).
     * Can only be called by the current owner.
     */
    function transferOwnership(address newOwner) public virtual onlyOwner {
        require(newOwner != address(0), "Ownable: new owner is the zero address");
        emit OwnershipTransferred(_owner, newOwner);
        _owner = newOwner;
    }
}

File 12 of 14 : SafeCast.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

/**
 * @dev Wrappers over Solidity's uintXX/intXX casting operators with added overflow
 * checks.
 *
 * Downcasting from uint256/int256 in Solidity does not revert on overflow. This can
 * easily result in undesired exploitation or bugs, since developers usually
 * assume that overflows raise errors. `SafeCast` restores this intuition by
 * reverting the transaction when such an operation overflows.
 *
 * Using this library instead of the unchecked operations eliminates an entire
 * class of bugs, so it's recommended to use it always.
 *
 * Can be combined with {SafeMath} and {SignedSafeMath} to extend it to smaller types, by performing
 * all math on `uint256` and `int256` and then downcasting.
 */
library SafeCast {
    /**
     * @dev Returns the downcasted uint128 from uint256, reverting on
     * overflow (when the input is greater than largest uint128).
     *
     * Counterpart to Solidity's `uint128` operator.
     *
     * Requirements:
     *
     * - input must fit into 128 bits
     */
    function toUint128(uint256 value) internal pure returns (uint128) {
        require(value < 2**128, "SafeCast: value doesn\'t fit in 128 bits");
        return uint128(value);
    }

    /**
     * @dev Returns the downcasted uint64 from uint256, reverting on
     * overflow (when the input is greater than largest uint64).
     *
     * Counterpart to Solidity's `uint64` operator.
     *
     * Requirements:
     *
     * - input must fit into 64 bits
     */
    function toUint64(uint256 value) internal pure returns (uint64) {
        require(value < 2**64, "SafeCast: value doesn\'t fit in 64 bits");
        return uint64(value);
    }

    /**
     * @dev Returns the downcasted uint32 from uint256, reverting on
     * overflow (when the input is greater than largest uint32).
     *
     * Counterpart to Solidity's `uint32` operator.
     *
     * Requirements:
     *
     * - input must fit into 32 bits
     */
    function toUint32(uint256 value) internal pure returns (uint32) {
        require(value < 2**32, "SafeCast: value doesn\'t fit in 32 bits");
        return uint32(value);
    }

    /**
     * @dev Returns the downcasted uint16 from uint256, reverting on
     * overflow (when the input is greater than largest uint16).
     *
     * Counterpart to Solidity's `uint16` operator.
     *
     * Requirements:
     *
     * - input must fit into 16 bits
     */
    function toUint16(uint256 value) internal pure returns (uint16) {
        require(value < 2**16, "SafeCast: value doesn\'t fit in 16 bits");
        return uint16(value);
    }

    /**
     * @dev Returns the downcasted uint8 from uint256, reverting on
     * overflow (when the input is greater than largest uint8).
     *
     * Counterpart to Solidity's `uint8` operator.
     *
     * Requirements:
     *
     * - input must fit into 8 bits.
     */
    function toUint8(uint256 value) internal pure returns (uint8) {
        require(value < 2**8, "SafeCast: value doesn\'t fit in 8 bits");
        return uint8(value);
    }

    /**
     * @dev Converts a signed int256 into an unsigned uint256.
     *
     * Requirements:
     *
     * - input must be greater than or equal to 0.
     */
    function toUint256(int256 value) internal pure returns (uint256) {
        require(value >= 0, "SafeCast: value must be positive");
        return uint256(value);
    }

    /**
     * @dev Returns the downcasted int128 from int256, reverting on
     * overflow (when the input is less than smallest int128 or
     * greater than largest int128).
     *
     * Counterpart to Solidity's `int128` operator.
     *
     * Requirements:
     *
     * - input must fit into 128 bits
     *
     * _Available since v3.1._
     */
    function toInt128(int256 value) internal pure returns (int128) {
        require(value >= -2**127 && value < 2**127, "SafeCast: value doesn\'t fit in 128 bits");
        return int128(value);
    }

    /**
     * @dev Returns the downcasted int64 from int256, reverting on
     * overflow (when the input is less than smallest int64 or
     * greater than largest int64).
     *
     * Counterpart to Solidity's `int64` operator.
     *
     * Requirements:
     *
     * - input must fit into 64 bits
     *
     * _Available since v3.1._
     */
    function toInt64(int256 value) internal pure returns (int64) {
        require(value >= -2**63 && value < 2**63, "SafeCast: value doesn\'t fit in 64 bits");
        return int64(value);
    }

    /**
     * @dev Returns the downcasted int32 from int256, reverting on
     * overflow (when the input is less than smallest int32 or
     * greater than largest int32).
     *
     * Counterpart to Solidity's `int32` operator.
     *
     * Requirements:
     *
     * - input must fit into 32 bits
     *
     * _Available since v3.1._
     */
    function toInt32(int256 value) internal pure returns (int32) {
        require(value >= -2**31 && value < 2**31, "SafeCast: value doesn\'t fit in 32 bits");
        return int32(value);
    }

    /**
     * @dev Returns the downcasted int16 from int256, reverting on
     * overflow (when the input is less than smallest int16 or
     * greater than largest int16).
     *
     * Counterpart to Solidity's `int16` operator.
     *
     * Requirements:
     *
     * - input must fit into 16 bits
     *
     * _Available since v3.1._
     */
    function toInt16(int256 value) internal pure returns (int16) {
        require(value >= -2**15 && value < 2**15, "SafeCast: value doesn\'t fit in 16 bits");
        return int16(value);
    }

    /**
     * @dev Returns the downcasted int8 from int256, reverting on
     * overflow (when the input is less than smallest int8 or
     * greater than largest int8).
     *
     * Counterpart to Solidity's `int8` operator.
     *
     * Requirements:
     *
     * - input must fit into 8 bits.
     *
     * _Available since v3.1._
     */
    function toInt8(int256 value) internal pure returns (int8) {
        require(value >= -2**7 && value < 2**7, "SafeCast: value doesn\'t fit in 8 bits");
        return int8(value);
    }

    /**
     * @dev Converts an unsigned uint256 into a signed int256.
     *
     * Requirements:
     *
     * - input must be less than or equal to maxInt256.
     */
    function toInt256(uint256 value) internal pure returns (int256) {
        require(value < 2**255, "SafeCast: value doesn't fit in an int256");
        return int256(value);
    }
}

File 13 of 14 : 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) {
        this; // silence state mutability warning without generating bytecode - see https://github.com/ethereum/solidity/issues/2691
        return msg.data;
    }
}

File 14 of 14 : IPhutureERC20.sol
// SPDX-License-Identifier: Apache-2.0

pragma solidity >=0.8.0;

interface IPhutureERC20 {
    event Approval(address indexed owner, address indexed spender, uint value);
    event Transfer(address indexed from, address indexed to, uint value);

    function name() external view returns (string memory);
    function symbol() external view returns (string memory);
    function decimals() external view returns (uint8);
    function totalSupply() external view returns (uint);
    function balanceOf(address owner) external view returns (uint);
    function allowance(address owner, address spender) external view returns (uint);

    function approve(address spender, uint value) external returns (bool);
    function transfer(address to, uint value) external returns (bool);
    function transferFrom(address from, address to, uint value) external returns (bool);

    function DOMAIN_SEPARATOR() external view returns (bytes32);
    function PERMIT_TYPEHASH() external pure returns (bytes32);
    function nonces(address owner) external view returns (uint);

    function permit(address owner, address spender, uint value, uint deadline, uint8 v, bytes32 r, bytes32 s) external;
}

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

Contract Security Audit

Contract ABI

[{"inputs":[{"internalType":"address","name":"_token","type":"address"},{"internalType":"uint256","name":"_distributedPerBlock","type":"uint256"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"spender","type":"address"},{"indexed":false,"internalType":"uint256","name":"value","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":false,"internalType":"uint256","name":"value","type":"uint256"}],"name":"Transfer","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":"","type":"address"},{"internalType":"address","name":"","type":"address"}],"name":"allowance","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"value","type":"uint256"}],"name":"approve","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_recipient","type":"address"}],"name":"burn","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"decimals","outputs":[{"internalType":"uint8","name":"","type":"uint8"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"emission","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_recipient","type":"address"}],"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":[{"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":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"sync","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"value","type":"uint256"}],"name":"transfer","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"value","type":"uint256"}],"name":"transferFrom","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_value","type":"uint256"}],"name":"withdrawableAmount","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"}]

60a06040526002805460ff191660121790553480156200001e57600080fd5b5060405162002d7538038062002d758339810160408190526200004191620002f8565b60405146907f8b73c3c69bb8fe3d512ecc4cf759cc79239f7b179b0ffacaa9a75d522b39400f90620000769060009062000332565b60408051918290038220828201825260018352603160f81b6020938401528151928301939093528101919091527fc89efdaa54c0f20c7adf612882df0950f5a951637e0307cdcb4c672f298b8bc66060820152608081018290523060a082015260c00160408051808303601f1901815282825280516020918201206006556001600855606086901b6001600160601b031916608052828201909152600d8083526c22b73430b731b2b21028242a2960991b919092019081526200013d925060009162000244565b506040805180820190915260058082526432a8242a2960d91b60209092019182526200016c9160019162000244565b5060008230836040516200018090620002d3565b6001600160a01b0393841681529290911660208301526040820152606001604051809103906000f080158015620001bb573d6000803e3d6000fd5b5060405163f2fde38b60e01b81523360048201529091506001600160a01b0382169063f2fde38b90602401600060405180830381600087803b1580156200020157600080fd5b505af115801562000216573d6000803e3d6000fd5b5050600a80546001600160a01b0319166001600160a01b039490941693909317909255506200041292505050565b8280546200025290620003d5565b90600052602060002090601f016020900481019282620002765760008555620002c1565b82601f106200029157805160ff1916838001178555620002c1565b82800160010185558215620002c1579182015b82811115620002c1578251825591602001919060010190620002a4565b50620002cf929150620002e1565b5090565b610f698062001e0c83390190565b5b80821115620002cf5760008155600101620002e2565b600080604083850312156200030b578182fd5b82516001600160a01b038116811462000322578283fd5b6020939093015192949293505050565b600080835482600182811c9150808316806200034f57607f831692505b60208084108214156200037057634e487b7160e01b87526022600452602487fd5b8180156200038757600181146200039957620003c7565b60ff19861689528489019650620003c7565b60008a815260209020885b86811015620003bf5781548b820152908501908301620003a4565b505084890196505b509498975050505050505050565b600181811c90821680620003ea57607f821691505b602082108114156200040c57634e487b7160e01b600052602260045260246000fd5b50919050565b60805160601c6119b16200045b6000396000818161051501528181610726015281816108ed01528181610a2e01528181610a9101528181610bdf015261102601526119b16000f3fe608060405234801561001057600080fd5b50600436106101365760003560e01c80637ecebe00116100b2578063a9059cbb11610081578063d505accf11610066578063d505accf146102d0578063dd62ed3e146102e3578063fff6cae91461030e57600080fd5b8063a9059cbb146102aa578063d0cee66a146102bd57600080fd5b80637ecebe001461022a578063827c049e1461024a57806389afcb441461028f57806395d89b41146102a257600080fd5b806330adf81f116101095780633644e515116100ee5780633644e515146101ec5780636a627842146101f557806370a082311461020a57600080fd5b806330adf81f146101a6578063313ce567146101cd57600080fd5b806306fdde031461013b578063095ea7b31461015957806318160ddd1461017c57806323b872dd14610193575b600080fd5b610143610316565b6040516101509190611799565b60405180910390f35b61016c610167366004611704565b6103a4565b6040519015158152602001610150565b61018560035481565b604051908152602001610150565b61016c6101a1366004611658565b6103ba565b6101857f6e71edae12b1b97f4d1f60370fef10105fa2faae0126114a169c64845d6126c981565b6002546101da9060ff1681565b60405160ff9091168152602001610150565b61018560065481565b61020861020336600461160c565b61046d565b005b61018561021836600461160c565b60046020526000908152604090205481565b61018561023836600461160c565b60076020526000908152604090205481565b600a5461026a9073ffffffffffffffffffffffffffffffffffffffff1681565b60405173ffffffffffffffffffffffffffffffffffffffff9091168152602001610150565b61020861029d36600461160c565b6107c7565b610143610ae0565b61016c6102b8366004611704565b610aed565b6101856102cb36600461174d565b610afa565b6102086102de366004611693565b610c97565b6101856102f1366004611626565b600560209081526000928352604080842090915290825290205481565b610208610f82565b60008054610323906118bf565b80601f016020809104026020016040519081016040528092919081815260200182805461034f906118bf565b801561039c5780601f106103715761010080835404028352916020019161039c565b820191906000526020600020905b81548152906001019060200180831161037f57829003601f168201915b505050505081565b60006103b1338484611071565b50600192915050565b73ffffffffffffffffffffffffffffffffffffffff831660009081526005602090815260408083203384529091528120547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff146104575773ffffffffffffffffffffffffffffffffffffffff8416600090815260056020908152604080832033845290915281208054849290610451908490611878565b90915550505b6104628484846110e0565b5060015b9392505050565b600260085414156104df576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c0060448201526064015b60405180910390fd5b60026008556040517f70a082310000000000000000000000000000000000000000000000000000000081523060048201526000907f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff16906370a082319060240160206040518083038186803b15801561056c57600080fd5b505afa158015610580573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906105a49190611765565b9050600a60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16633ccfd60b6040518163ffffffff1660e01b8152600401600060405180830381600087803b15801561061057600080fd5b505af1158015610624573d6000803e3d6000fd5b505050506000600954826106389190611878565b600354909150600090801561066557600954610654828561183b565b61065e9190611802565b9150610680565b61067161271084611878565b915061068060006127106111b5565b600082116106ea576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601a60248201527f65504854523a20494e53554646494349454e545f414d4f554e5400000000000060448201526064016104d6565b6106f485836111b5565b6040517f70a082310000000000000000000000000000000000000000000000000000000081523060048201526107bb907f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff16906370a08231906024015b60206040518083038186803b15801561077e57600080fd5b505afa158015610792573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906107b69190611765565b600955565b50506001600855505050565b60026008541415610834576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c0060448201526064016104d6565b6002600855600a54604080517f3ccfd60b000000000000000000000000000000000000000000000000000000008152905173ffffffffffffffffffffffffffffffffffffffff90921691633ccfd60b9160048082019260009290919082900301818387803b1580156108a557600080fd5b505af11580156108b9573d6000803e3d6000fd5b50506040517f70a08231000000000000000000000000000000000000000000000000000000008152306004820152600092507f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff1691506370a082319060240160206040518083038186803b15801561094557600080fd5b505afa158015610959573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061097d9190611765565b306000908152600460205260408120546003549293509161099e848461183b565b6109a89190611802565b905060008111610a14576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f65504854523a20494e53554646494349454e545f56414c55455f4255524e454460448201526064016104d6565b610a5573ffffffffffffffffffffffffffffffffffffffff7f000000000000000000000000000000000000000000000000000000000000000016858361125b565b610a5f30836112ed565b6040517f70a08231000000000000000000000000000000000000000000000000000000008152306004820152610ad5907f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff16906370a0823190602401610766565b505060016008555050565b60018054610323906118bf565b60006103b13384846110e0565b60035460009080610b0e5750600092915050565b600a54604080517f50188301000000000000000000000000000000000000000000000000000000008152905160009273ffffffffffffffffffffffffffffffffffffffff16916350188301916004808301926020929190829003018186803b158015610b7957600080fd5b505afa158015610b8d573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610bb19190611765565b6040517f70a082310000000000000000000000000000000000000000000000000000000081523060048201527f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff16906370a082319060240160206040518083038186803b158015610c3657600080fd5b505afa158015610c4a573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610c6e9190611765565b610c7891906117ea565b905081610c85828661183b565b610c8f9190611802565b949350505050565b42841015610d01576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601560248201527f5068757475726545524332303a2045585049524544000000000000000000000060448201526064016104d6565b60065473ffffffffffffffffffffffffffffffffffffffff8816600090815260076020526040812080549192917f6e71edae12b1b97f4d1f60370fef10105fa2faae0126114a169c64845d6126c9918b918b918b919087610d6183611913565b9091555060408051602081019690965273ffffffffffffffffffffffffffffffffffffffff94851690860152929091166060840152608083015260a082015260c0810187905260e00160405160208183030381529060405280519060200120604051602001610e029291907f190100000000000000000000000000000000000000000000000000000000000081526002810192909252602282015260420190565b604080517fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe08184030181528282528051602091820120600080855291840180845281905260ff88169284019290925260608301869052608083018590529092509060019060a0016020604051602081039080840390855afa158015610e8b573d6000803e3d6000fd5b50506040517fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0015191505073ffffffffffffffffffffffffffffffffffffffff811615801590610f0657508873ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16145b610f6c576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601f60248201527f5068757475726545524332303a20494e56414c49445f5349474e41545552450060448201526064016104d6565b610f77898989611071565b505050505050505050565b60026008541415610fef576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c0060448201526064016104d6565b60026008556040517f70a0823100000000000000000000000000000000000000000000000000000000815230600482015261106a907f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff16906370a0823190602401610766565b6001600855565b73ffffffffffffffffffffffffffffffffffffffff83811660008181526005602090815260408083209487168084529482529182902085905590518481527f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92591015b60405180910390a3505050565b73ffffffffffffffffffffffffffffffffffffffff831660009081526004602052604081208054839290611115908490611878565b909155505073ffffffffffffffffffffffffffffffffffffffff82166000908152600460205260408120805483929061114f9084906117ea565b925050819055508173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef836040516110d391815260200190565b73ffffffffffffffffffffffffffffffffffffffff8216600090815260046020526040812080548392906111ea9084906117ea565b92505081905550806003600082825461120391906117ea565b909155505060405181815273ffffffffffffffffffffffffffffffffffffffff8316906000907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef906020015b60405180910390a35050565b6040805173ffffffffffffffffffffffffffffffffffffffff8416602482015260448082018490528251808303909101815260649091019091526020810180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff167fa9059cbb000000000000000000000000000000000000000000000000000000001790526112e890849061138b565b505050565b73ffffffffffffffffffffffffffffffffffffffff821660009081526004602052604081208054839290611322908490611878565b92505081905550806003600082825461133b9190611878565b909155505060405181815260009073ffffffffffffffffffffffffffffffffffffffff8416907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9060200161124f565b60006113ed826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c65648152508573ffffffffffffffffffffffffffffffffffffffff166114979092919063ffffffff16565b8051909150156112e8578080602001905181019061140b919061172d565b6112e8576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602a60248201527f5361666545524332303a204552433230206f7065726174696f6e20646964206e60448201527f6f7420737563636565640000000000000000000000000000000000000000000060648201526084016104d6565b6060610c8f848460008585843b61150a576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e747261637400000060448201526064016104d6565b6000808673ffffffffffffffffffffffffffffffffffffffff168587604051611533919061177d565b60006040518083038185875af1925050503d8060008114611570576040519150601f19603f3d011682016040523d82523d6000602084013e611575565b606091505b5091509150611585828286611590565b979650505050505050565b6060831561159f575081610466565b8251156115af5782518084602001fd5b816040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016104d69190611799565b803573ffffffffffffffffffffffffffffffffffffffff8116811461160757600080fd5b919050565b60006020828403121561161d578081fd5b610466826115e3565b60008060408385031215611638578081fd5b611641836115e3565b915061164f602084016115e3565b90509250929050565b60008060006060848603121561166c578081fd5b611675846115e3565b9250611683602085016115e3565b9150604084013590509250925092565b600080600080600080600060e0888a0312156116ad578283fd5b6116b6886115e3565b96506116c4602089016115e3565b95506040880135945060608801359350608088013560ff811681146116e7578384fd5b9699959850939692959460a0840135945060c09093013592915050565b60008060408385031215611716578182fd5b61171f836115e3565b946020939093013593505050565b60006020828403121561173e578081fd5b81518015158114610466578182fd5b60006020828403121561175e578081fd5b5035919050565b600060208284031215611776578081fd5b5051919050565b6000825161178f81846020870161188f565b9190910192915050565b60208152600082518060208401526117b881604085016020870161188f565b601f017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0169190910160400192915050565b600082198211156117fd576117fd61194c565b500190565b600082611836577f4e487b710000000000000000000000000000000000000000000000000000000081526012600452602481fd5b500490565b6000817fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff04831182151516156118735761187361194c565b500290565b60008282101561188a5761188a61194c565b500390565b60005b838110156118aa578181015183820152602001611892565b838111156118b9576000848401525b50505050565b600181811c908216806118d357607f821691505b6020821081141561190d577f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b50919050565b60007fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff8214156119455761194561194c565b5060010190565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fdfea26469706673582212207f605759d54a6bf836f3b97e15cdd108708b12e1f5140b3f719f2bb2b35b590764736f6c63430008040033608060405234801561001057600080fd5b50604051610f69380380610f6983398101604081905261002f91610117565b600080546001600160a01b031916339081178255604051909182917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908290a350600180556001600160a01b0383166100bf5760405162461bcd60e51b815260206004820152600e60248201526d456d697373696f6e3a205a45524f60901b604482015260640160405180910390fd5b600280546001600160a01b039485166001600160a01b031991821617909155600380549390941692169190911790915560045543600555610152565b80516001600160a01b038116811461011257600080fd5b919050565b60008060006060848603121561012b578283fd5b610134846100fb565b9250610142602085016100fb565b9150604084015190509250925092565b610e08806101616000396000f3fe608060405234801561001057600080fd5b50600436106100be5760003560e01c80638da5cb5b11610076578063f2fde38b1161005b578063f2fde38b14610165578063fc0c546a14610178578063fc7511551461019857600080fd5b80638da5cb5b1461013e578063ee03de551461015c57600080fd5b806350188301116100a757806350188301146100e9578063715018a6146100f157806372f702f3146100f957600080fd5b80633ccfd60b146100c35780634d8c4e6d146100cd575b600080fd5b6100cb6101ab565b005b6100d660055481565b6040519081526020015b60405180910390f35b6100d6610230565b6100cb6103c4565b6003546101199073ffffffffffffffffffffffffffffffffffffffff1681565b60405173ffffffffffffffffffffffffffffffffffffffff90911681526020016100e0565b60005473ffffffffffffffffffffffffffffffffffffffff16610119565b6100d660045481565b6100cb610173366004610c2e565b6104b4565b6002546101199073ffffffffffffffffffffffffffffffffffffffff1681565b6100cb6101a6366004610c82565b610665565b6002600154141561021d576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c0060448201526064015b60405180910390fd5b600260015561022a6106f3565b60018055565b6002546040517f70a08231000000000000000000000000000000000000000000000000000000008152306004820152600091829173ffffffffffffffffffffffffffffffffffffffff909116906370a082319060240160206040518083038186803b15801561029e57600080fd5b505afa1580156102b2573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906102d69190610c9a565b90508015806103875750600354604080517f18160ddd00000000000000000000000000000000000000000000000000000000815290516127109273ffffffffffffffffffffffffffffffffffffffff16916318160ddd916004808301926020929190829003018186803b15801561034c57600080fd5b505afa158015610360573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906103849190610c9a565b11155b1561039457600091505090565b6000600554436103a49190610d5c565b90506103bd82600454836103b89190610d1f565b6108b7565b9250505090565b60005473ffffffffffffffffffffffffffffffffffffffff163314610445576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610214565b6000805460405173ffffffffffffffffffffffffffffffffffffffff909116907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908390a3600080547fffffffffffffffffffffffff0000000000000000000000000000000000000000169055565b60005473ffffffffffffffffffffffffffffffffffffffff163314610535576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610214565b73ffffffffffffffffffffffffffffffffffffffff81166105d8576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201527f64647265737300000000000000000000000000000000000000000000000000006064820152608401610214565b6000805460405173ffffffffffffffffffffffffffffffffffffffff808516939216917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e091a3600080547fffffffffffffffffffffffff00000000000000000000000000000000000000001673ffffffffffffffffffffffffffffffffffffffff92909216919091179055565b60005473ffffffffffffffffffffffffffffffffffffffff1633146106e6576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610214565b6106ee6106f3565b600455565b6002546040517f70a0823100000000000000000000000000000000000000000000000000000000815230600482015260009173ffffffffffffffffffffffffffffffffffffffff16906370a082319060240160206040518083038186803b15801561075d57600080fd5b505afa158015610771573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906107959190610c9a565b90508015806108465750600354604080517f18160ddd00000000000000000000000000000000000000000000000000000000815290516127109273ffffffffffffffffffffffffffffffffffffffff16916318160ddd916004808301926020929190829003018186803b15801561080b57600080fd5b505afa15801561081f573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906108439190610c9a565b11155b15610852575043600555565b6000600554436108629190610d5c565b90508061086d575050565b600061088183600454846103b89190610d1f565b436005556003546002549192506108b29173ffffffffffffffffffffffffffffffffffffffff9081169116836108cf565b505050565b60008183106108c657816108c8565b825b9392505050565b6040805173ffffffffffffffffffffffffffffffffffffffff848116602483015260448083018590528351808403909101815260649092018352602080830180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff167fa9059cbb0000000000000000000000000000000000000000000000000000000017905283518085019094528084527f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564908401526108b29286929160009161099a918516908490610a44565b8051909150156108b257808060200190518101906109b89190610c62565b6108b2576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602a60248201527f5361666545524332303a204552433230206f7065726174696f6e20646964206e60448201527f6f742073756363656564000000000000000000000000000000000000000000006064820152608401610214565b6060610a538484600085610a5b565b949350505050565b606082471015610aed576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602660248201527f416464726573733a20696e73756666696369656e742062616c616e636520666f60448201527f722063616c6c00000000000000000000000000000000000000000000000000006064820152608401610214565b843b610b55576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e74726163740000006044820152606401610214565b6000808673ffffffffffffffffffffffffffffffffffffffff168587604051610b7e9190610cb2565b60006040518083038185875af1925050503d8060008114610bbb576040519150601f19603f3d011682016040523d82523d6000602084013e610bc0565b606091505b5091509150610bd0828286610bdb565b979650505050505050565b60608315610bea5750816108c8565b825115610bfa5782518084602001fd5b816040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016102149190610cce565b600060208284031215610c3f578081fd5b813573ffffffffffffffffffffffffffffffffffffffff811681146108c8578182fd5b600060208284031215610c73578081fd5b815180151581146108c8578182fd5b600060208284031215610c93578081fd5b5035919050565b600060208284031215610cab578081fd5b5051919050565b60008251610cc4818460208701610d73565b9190910192915050565b6020815260008251806020840152610ced816040850160208701610d73565b601f017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0169190910160400192915050565b6000817fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0483118215151615610d5757610d57610da3565b500290565b600082821015610d6e57610d6e610da3565b500390565b60005b83811015610d8e578181015183820152602001610d76565b83811115610d9d576000848401525b50505050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fdfea2646970667358221220bf2665bbd24eb577ce02de4fb940a51ec6bc7028d3cb62f39d163def19d723f164736f6c63430008040033000000000000000000000000e1fc4455f62a6e89476f1072530c20cf1a0622da00000000000000000000000000000000000000000000000001ae540e20abfe00

Deployed Bytecode

0x608060405234801561001057600080fd5b50600436106101365760003560e01c80637ecebe00116100b2578063a9059cbb11610081578063d505accf11610066578063d505accf146102d0578063dd62ed3e146102e3578063fff6cae91461030e57600080fd5b8063a9059cbb146102aa578063d0cee66a146102bd57600080fd5b80637ecebe001461022a578063827c049e1461024a57806389afcb441461028f57806395d89b41146102a257600080fd5b806330adf81f116101095780633644e515116100ee5780633644e515146101ec5780636a627842146101f557806370a082311461020a57600080fd5b806330adf81f146101a6578063313ce567146101cd57600080fd5b806306fdde031461013b578063095ea7b31461015957806318160ddd1461017c57806323b872dd14610193575b600080fd5b610143610316565b6040516101509190611799565b60405180910390f35b61016c610167366004611704565b6103a4565b6040519015158152602001610150565b61018560035481565b604051908152602001610150565b61016c6101a1366004611658565b6103ba565b6101857f6e71edae12b1b97f4d1f60370fef10105fa2faae0126114a169c64845d6126c981565b6002546101da9060ff1681565b60405160ff9091168152602001610150565b61018560065481565b61020861020336600461160c565b61046d565b005b61018561021836600461160c565b60046020526000908152604090205481565b61018561023836600461160c565b60076020526000908152604090205481565b600a5461026a9073ffffffffffffffffffffffffffffffffffffffff1681565b60405173ffffffffffffffffffffffffffffffffffffffff9091168152602001610150565b61020861029d36600461160c565b6107c7565b610143610ae0565b61016c6102b8366004611704565b610aed565b6101856102cb36600461174d565b610afa565b6102086102de366004611693565b610c97565b6101856102f1366004611626565b600560209081526000928352604080842090915290825290205481565b610208610f82565b60008054610323906118bf565b80601f016020809104026020016040519081016040528092919081815260200182805461034f906118bf565b801561039c5780601f106103715761010080835404028352916020019161039c565b820191906000526020600020905b81548152906001019060200180831161037f57829003601f168201915b505050505081565b60006103b1338484611071565b50600192915050565b73ffffffffffffffffffffffffffffffffffffffff831660009081526005602090815260408083203384529091528120547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff146104575773ffffffffffffffffffffffffffffffffffffffff8416600090815260056020908152604080832033845290915281208054849290610451908490611878565b90915550505b6104628484846110e0565b5060015b9392505050565b600260085414156104df576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c0060448201526064015b60405180910390fd5b60026008556040517f70a082310000000000000000000000000000000000000000000000000000000081523060048201526000907f000000000000000000000000e1fc4455f62a6e89476f1072530c20cf1a0622da73ffffffffffffffffffffffffffffffffffffffff16906370a082319060240160206040518083038186803b15801561056c57600080fd5b505afa158015610580573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906105a49190611765565b9050600a60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16633ccfd60b6040518163ffffffff1660e01b8152600401600060405180830381600087803b15801561061057600080fd5b505af1158015610624573d6000803e3d6000fd5b505050506000600954826106389190611878565b600354909150600090801561066557600954610654828561183b565b61065e9190611802565b9150610680565b61067161271084611878565b915061068060006127106111b5565b600082116106ea576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601a60248201527f65504854523a20494e53554646494349454e545f414d4f554e5400000000000060448201526064016104d6565b6106f485836111b5565b6040517f70a082310000000000000000000000000000000000000000000000000000000081523060048201526107bb907f000000000000000000000000e1fc4455f62a6e89476f1072530c20cf1a0622da73ffffffffffffffffffffffffffffffffffffffff16906370a08231906024015b60206040518083038186803b15801561077e57600080fd5b505afa158015610792573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906107b69190611765565b600955565b50506001600855505050565b60026008541415610834576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c0060448201526064016104d6565b6002600855600a54604080517f3ccfd60b000000000000000000000000000000000000000000000000000000008152905173ffffffffffffffffffffffffffffffffffffffff90921691633ccfd60b9160048082019260009290919082900301818387803b1580156108a557600080fd5b505af11580156108b9573d6000803e3d6000fd5b50506040517f70a08231000000000000000000000000000000000000000000000000000000008152306004820152600092507f000000000000000000000000e1fc4455f62a6e89476f1072530c20cf1a0622da73ffffffffffffffffffffffffffffffffffffffff1691506370a082319060240160206040518083038186803b15801561094557600080fd5b505afa158015610959573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061097d9190611765565b306000908152600460205260408120546003549293509161099e848461183b565b6109a89190611802565b905060008111610a14576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f65504854523a20494e53554646494349454e545f56414c55455f4255524e454460448201526064016104d6565b610a5573ffffffffffffffffffffffffffffffffffffffff7f000000000000000000000000e1fc4455f62a6e89476f1072530c20cf1a0622da16858361125b565b610a5f30836112ed565b6040517f70a08231000000000000000000000000000000000000000000000000000000008152306004820152610ad5907f000000000000000000000000e1fc4455f62a6e89476f1072530c20cf1a0622da73ffffffffffffffffffffffffffffffffffffffff16906370a0823190602401610766565b505060016008555050565b60018054610323906118bf565b60006103b13384846110e0565b60035460009080610b0e5750600092915050565b600a54604080517f50188301000000000000000000000000000000000000000000000000000000008152905160009273ffffffffffffffffffffffffffffffffffffffff16916350188301916004808301926020929190829003018186803b158015610b7957600080fd5b505afa158015610b8d573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610bb19190611765565b6040517f70a082310000000000000000000000000000000000000000000000000000000081523060048201527f000000000000000000000000e1fc4455f62a6e89476f1072530c20cf1a0622da73ffffffffffffffffffffffffffffffffffffffff16906370a082319060240160206040518083038186803b158015610c3657600080fd5b505afa158015610c4a573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610c6e9190611765565b610c7891906117ea565b905081610c85828661183b565b610c8f9190611802565b949350505050565b42841015610d01576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601560248201527f5068757475726545524332303a2045585049524544000000000000000000000060448201526064016104d6565b60065473ffffffffffffffffffffffffffffffffffffffff8816600090815260076020526040812080549192917f6e71edae12b1b97f4d1f60370fef10105fa2faae0126114a169c64845d6126c9918b918b918b919087610d6183611913565b9091555060408051602081019690965273ffffffffffffffffffffffffffffffffffffffff94851690860152929091166060840152608083015260a082015260c0810187905260e00160405160208183030381529060405280519060200120604051602001610e029291907f190100000000000000000000000000000000000000000000000000000000000081526002810192909252602282015260420190565b604080517fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe08184030181528282528051602091820120600080855291840180845281905260ff88169284019290925260608301869052608083018590529092509060019060a0016020604051602081039080840390855afa158015610e8b573d6000803e3d6000fd5b50506040517fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0015191505073ffffffffffffffffffffffffffffffffffffffff811615801590610f0657508873ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16145b610f6c576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601f60248201527f5068757475726545524332303a20494e56414c49445f5349474e41545552450060448201526064016104d6565b610f77898989611071565b505050505050505050565b60026008541415610fef576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c0060448201526064016104d6565b60026008556040517f70a0823100000000000000000000000000000000000000000000000000000000815230600482015261106a907f000000000000000000000000e1fc4455f62a6e89476f1072530c20cf1a0622da73ffffffffffffffffffffffffffffffffffffffff16906370a0823190602401610766565b6001600855565b73ffffffffffffffffffffffffffffffffffffffff83811660008181526005602090815260408083209487168084529482529182902085905590518481527f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92591015b60405180910390a3505050565b73ffffffffffffffffffffffffffffffffffffffff831660009081526004602052604081208054839290611115908490611878565b909155505073ffffffffffffffffffffffffffffffffffffffff82166000908152600460205260408120805483929061114f9084906117ea565b925050819055508173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef836040516110d391815260200190565b73ffffffffffffffffffffffffffffffffffffffff8216600090815260046020526040812080548392906111ea9084906117ea565b92505081905550806003600082825461120391906117ea565b909155505060405181815273ffffffffffffffffffffffffffffffffffffffff8316906000907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef906020015b60405180910390a35050565b6040805173ffffffffffffffffffffffffffffffffffffffff8416602482015260448082018490528251808303909101815260649091019091526020810180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff167fa9059cbb000000000000000000000000000000000000000000000000000000001790526112e890849061138b565b505050565b73ffffffffffffffffffffffffffffffffffffffff821660009081526004602052604081208054839290611322908490611878565b92505081905550806003600082825461133b9190611878565b909155505060405181815260009073ffffffffffffffffffffffffffffffffffffffff8416907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9060200161124f565b60006113ed826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c65648152508573ffffffffffffffffffffffffffffffffffffffff166114979092919063ffffffff16565b8051909150156112e8578080602001905181019061140b919061172d565b6112e8576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602a60248201527f5361666545524332303a204552433230206f7065726174696f6e20646964206e60448201527f6f7420737563636565640000000000000000000000000000000000000000000060648201526084016104d6565b6060610c8f848460008585843b61150a576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e747261637400000060448201526064016104d6565b6000808673ffffffffffffffffffffffffffffffffffffffff168587604051611533919061177d565b60006040518083038185875af1925050503d8060008114611570576040519150601f19603f3d011682016040523d82523d6000602084013e611575565b606091505b5091509150611585828286611590565b979650505050505050565b6060831561159f575081610466565b8251156115af5782518084602001fd5b816040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016104d69190611799565b803573ffffffffffffffffffffffffffffffffffffffff8116811461160757600080fd5b919050565b60006020828403121561161d578081fd5b610466826115e3565b60008060408385031215611638578081fd5b611641836115e3565b915061164f602084016115e3565b90509250929050565b60008060006060848603121561166c578081fd5b611675846115e3565b9250611683602085016115e3565b9150604084013590509250925092565b600080600080600080600060e0888a0312156116ad578283fd5b6116b6886115e3565b96506116c4602089016115e3565b95506040880135945060608801359350608088013560ff811681146116e7578384fd5b9699959850939692959460a0840135945060c09093013592915050565b60008060408385031215611716578182fd5b61171f836115e3565b946020939093013593505050565b60006020828403121561173e578081fd5b81518015158114610466578182fd5b60006020828403121561175e578081fd5b5035919050565b600060208284031215611776578081fd5b5051919050565b6000825161178f81846020870161188f565b9190910192915050565b60208152600082518060208401526117b881604085016020870161188f565b601f017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0169190910160400192915050565b600082198211156117fd576117fd61194c565b500190565b600082611836577f4e487b710000000000000000000000000000000000000000000000000000000081526012600452602481fd5b500490565b6000817fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff04831182151516156118735761187361194c565b500290565b60008282101561188a5761188a61194c565b500390565b60005b838110156118aa578181015183820152602001611892565b838111156118b9576000848401525b50505050565b600181811c908216806118d357607f821691505b6020821081141561190d577f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b50919050565b60007fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff8214156119455761194561194c565b5060010190565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fdfea26469706673582212207f605759d54a6bf836f3b97e15cdd108708b12e1f5140b3f719f2bb2b35b590764736f6c63430008040033

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

000000000000000000000000e1fc4455f62a6e89476f1072530c20cf1a0622da00000000000000000000000000000000000000000000000001ae540e20abfe00

-----Decoded View---------------
Arg [0] : _token (address): 0xE1Fc4455f62a6E89476f1072530C20CF1A0622dA
Arg [1] : _distributedPerBlock (uint256): 121126659640000000

-----Encoded View---------------
2 Constructor Arguments found :
Arg [0] : 000000000000000000000000e1fc4455f62a6e89476f1072530c20cf1a0622da
Arg [1] : 00000000000000000000000000000000000000000000000001ae540e20abfe00


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.