ETH Price: $3,044.17 (+2.54%)
Gas: 16 Gwei

Contract

0xa8de64eB54C4f7Dc122C7D242d84516E8201AFbD
 

Overview

ETH Balance

0 ETH

Eth Value

$0.00

Token Holdings

Multichain Info

No addresses found
Transaction Hash
Method
Block
From
To
Value
Renounce Ownersh...185988302023-11-18 12:49:35234 days ago1700311775IN
0xa8de64eB...E8201AFbD
0 ETH0.0005339722.97366635
Set Start Time185988262023-11-18 12:48:47234 days ago1700311727IN
0xa8de64eB...E8201AFbD
0 ETH0.0006523322.50897249
Set Token Stakin...185985982023-11-18 12:02:47234 days ago1700308967IN
0xa8de64eB...E8201AFbD
0 ETH0.0009294420.09774128
0x60e06040185985652023-11-18 11:55:59234 days ago1700308559IN
 Create: UlsTokenSupplier
0 ETH0.0182292417.91747698

View more zero value Internal Transactions in Advanced View mode

Advanced mode:
Loading...
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
UlsTokenSupplier

Compiler Version
v0.8.23+commit.f704f362

Optimization Enabled:
Yes with 200 runs

Other Settings:
default evmVersion, MIT license

Contract Source Code (Solidity)

/**
 *Submitted for verification at Etherscan.io on 2023-11-18
*/

/*
 _   _ _   _ ___ _____ ____
| | | | \ | |_ _|_   _/ ___|
| | | |  \| || |  | | \___ \
| |_| | |\  || |  | |  ___) |
 \___/|_| \_|___| |_| |____/

 _    ___ __  __ ___ _____ _____ ____
| |  |_ _|  \/  |_ _|_   _| ____|  _ \
| |   | || |\/| || |  | | |  _| | | | |
| |__ | || |  | || |  | | | |___| |_| |
|____|___|_|  |_|___| |_| |_____|____/

 ____  _   _ ____  ____  _ __   __
/ ___|| | | |  _ \|  _ \| |\ \ / /
\___ \| | | | |_) | |_) | | \ V /
 ___) | |_| |  __/|  __/| |__| |
|____/ \___/|_|   |_|   |____|_|
*/

// Dependency file: @openzeppelin/contracts/utils/Context.sol

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

// pragma solidity ^0.8.0;

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

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


// Dependency file: @openzeppelin/contracts/access/Ownable.sol

// OpenZeppelin Contracts (last updated v4.9.0) (access/Ownable.sol)

// pragma solidity ^0.8.0;

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

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

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

    /**
     * @dev Initializes the contract setting the deployer as the initial owner.
     */
    constructor() {
        _transferOwnership(_msgSender());
    }

    /**
     * @dev Throws if called by any account other than the owner.
     */
    modifier onlyOwner() {
        _checkOwner();
        _;
    }

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

    /**
     * @dev Throws if the sender is not the owner.
     */
    function _checkOwner() internal view virtual {
        require(owner() == _msgSender(), "Ownable: caller is not the owner");
    }

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

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

    /**
     * @dev Transfers ownership of the contract to a new account (`newOwner`).
     * Internal function without access restriction.
     */
    function _transferOwnership(address newOwner) internal virtual {
        address oldOwner = _owner;
        _owner = newOwner;
        emit OwnershipTransferred(oldOwner, newOwner);
    }
}


// Dependency file: @openzeppelin/contracts/token/ERC20/IERC20.sol

// OpenZeppelin Contracts (last updated v4.9.0) (token/ERC20/IERC20.sol)

// pragma solidity ^0.8.0;

/**
 * @dev Interface of the ERC20 standard as defined in the EIP.
 */
interface IERC20 {
    /**
     * @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);

    /**
     * @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 `to`.
     *
     * Returns a boolean value indicating whether the operation succeeded.
     *
     * Emits a {Transfer} event.
     */
    function transfer(address to, 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 `from` to `to` 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 from, address to, uint256 amount) external returns (bool);
}


// Dependency file: @openzeppelin/contracts/token/ERC20/extensions/IERC20Permit.sol

// OpenZeppelin Contracts (last updated v4.9.0) (token/ERC20/extensions/IERC20Permit.sol)

// pragma solidity ^0.8.0;

/**
 * @dev Interface of the ERC20 Permit extension allowing approvals to be made via signatures, as defined in
 * https://eips.ethereum.org/EIPS/eip-2612[EIP-2612].
 *
 * Adds the {permit} method, which can be used to change an account's ERC20 allowance (see {IERC20-allowance}) by
 * presenting a message signed by the account. By not relying on {IERC20-approve}, the token holder account doesn't
 * need to send a transaction, and thus is not required to hold Ether at all.
 */
interface IERC20Permit {
    /**
     * @dev Sets `value` as the allowance of `spender` over ``owner``'s tokens,
     * given ``owner``'s signed approval.
     *
     * IMPORTANT: The same issues {IERC20-approve} has related to transaction
     * ordering also apply here.
     *
     * Emits an {Approval} event.
     *
     * Requirements:
     *
     * - `spender` cannot be the zero address.
     * - `deadline` must be a timestamp in the future.
     * - `v`, `r` and `s` must be a valid `secp256k1` signature from `owner`
     * over the EIP712-formatted function arguments.
     * - the signature must use ``owner``'s current nonce (see {nonces}).
     *
     * For more information on the signature format, see the
     * https://eips.ethereum.org/EIPS/eip-2612#specification[relevant EIP
     * section].
     */
    function permit(
        address owner,
        address spender,
        uint256 value,
        uint256 deadline,
        uint8 v,
        bytes32 r,
        bytes32 s
    ) external;

    /**
     * @dev Returns the current nonce for `owner`. This value must be
     * included whenever a signature is generated for {permit}.
     *
     * Every successful call to {permit} increases ``owner``'s nonce by one. This
     * prevents a signature from being used multiple times.
     */
    function nonces(address owner) external view returns (uint256);

    /**
     * @dev Returns the domain separator used in the encoding of the signature for {permit}, as defined by {EIP712}.
     */
    // solhint-disable-next-line func-name-mixedcase
    function DOMAIN_SEPARATOR() external view returns (bytes32);
}


// Dependency file: @openzeppelin/contracts/utils/Address.sol

// OpenZeppelin Contracts (last updated v4.9.0) (utils/Address.sol)

// pragma solidity ^0.8.1;

/**
 * @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
     *
     * Furthermore, `isContract` will also return true if the target contract within
     * the same transaction is already scheduled for destruction by `SELFDESTRUCT`,
     * which only has an effect at the end of a transaction.
     * ====
     *
     * [IMPORTANT]
     * ====
     * You shouldn't rely on `isContract` to protect against flash loan attacks!
     *
     * Preventing calls from contracts is highly discouraged. It breaks composability, breaks support for smart wallets
     * like Gnosis Safe, and does not provide security since it can be circumvented by calling from a contract
     * constructor.
     * ====
     */
    function isContract(address account) internal view returns (bool) {
        // This method relies on extcodesize/address.code.length, which returns 0
        // for contracts in construction, since the code is only stored at the end
        // of the constructor execution.

        return account.code.length > 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://consensys.net/diligence/blog/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.8.0/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 functionCallWithValue(target, data, 0, "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");
        (bool success, bytes memory returndata) = target.call{value: value}(data);
        return verifyCallResultFromTarget(target, 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) {
        (bool success, bytes memory returndata) = target.staticcall(data);
        return verifyCallResultFromTarget(target, 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) {
        (bool success, bytes memory returndata) = target.delegatecall(data);
        return verifyCallResultFromTarget(target, success, returndata, errorMessage);
    }

    /**
     * @dev Tool to verify that a low level call to smart-contract was successful, and revert (either by bubbling
     * the revert reason or using the provided one) in case of unsuccessful call or if target was not a contract.
     *
     * _Available since v4.8._
     */
    function verifyCallResultFromTarget(
        address target,
        bool success,
        bytes memory returndata,
        string memory errorMessage
    ) internal view returns (bytes memory) {
        if (success) {
            if (returndata.length == 0) {
                // only check isContract if the call was successful and the return data is empty
                // otherwise we already know that it was a contract
                require(isContract(target), "Address: call to non-contract");
            }
            return returndata;
        } else {
            _revert(returndata, errorMessage);
        }
    }

    /**
     * @dev Tool to verify that a low level call was successful, and revert if it wasn't, either by bubbling the
     * revert reason or 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 {
            _revert(returndata, errorMessage);
        }
    }

    function _revert(bytes memory returndata, string memory errorMessage) private pure {
        // 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
            /// @solidity memory-safe-assembly
            assembly {
                let returndata_size := mload(returndata)
                revert(add(32, returndata), returndata_size)
            }
        } else {
            revert(errorMessage);
        }
    }
}


// Dependency file: @openzeppelin/contracts/token/ERC20/utils/SafeERC20.sol

// OpenZeppelin Contracts (last updated v4.9.0) (token/ERC20/utils/SafeERC20.sol)

// pragma solidity ^0.8.0;

// import "@openzeppelin/contracts/token/ERC20/IERC20.sol";
// import "@openzeppelin/contracts/token/ERC20/extensions/IERC20Permit.sol";
// import "@openzeppelin/contracts/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;

    /**
     * @dev Transfer `value` amount of `token` from the calling contract to `to`. If `token` returns no value,
     * non-reverting calls are assumed to be successful.
     */
    function safeTransfer(IERC20 token, address to, uint256 value) internal {
        _callOptionalReturn(token, abi.encodeWithSelector(token.transfer.selector, to, value));
    }

    /**
     * @dev Transfer `value` amount of `token` from `from` to `to`, spending the approval given by `from` to the
     * calling contract. If `token` returns no value, non-reverting calls are assumed to be successful.
     */
    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'
        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));
    }

    /**
     * @dev Increase the calling contract's allowance toward `spender` by `value`. If `token` returns no value,
     * non-reverting calls are assumed to be successful.
     */
    function safeIncreaseAllowance(IERC20 token, address spender, uint256 value) internal {
        uint256 oldAllowance = token.allowance(address(this), spender);
        _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, oldAllowance + value));
    }

    /**
     * @dev Decrease the calling contract's allowance toward `spender` by `value`. If `token` returns no value,
     * non-reverting calls are assumed to be successful.
     */
    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");
            _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, oldAllowance - value));
        }
    }

    /**
     * @dev Set the calling contract's allowance toward `spender` to `value`. If `token` returns no value,
     * non-reverting calls are assumed to be successful. Compatible with tokens that require the approval to be set to
     * 0 before setting it to a non-zero value.
     */
    function forceApprove(IERC20 token, address spender, uint256 value) internal {
        bytes memory approvalCall = abi.encodeWithSelector(token.approve.selector, spender, value);

        if (!_callOptionalReturnBool(token, approvalCall)) {
            _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, 0));
            _callOptionalReturn(token, approvalCall);
        }
    }

    /**
     * @dev Use a ERC-2612 signature to set the `owner` approval toward `spender` on `token`.
     * Revert on invalid signature.
     */
    function safePermit(
        IERC20Permit token,
        address owner,
        address spender,
        uint256 value,
        uint256 deadline,
        uint8 v,
        bytes32 r,
        bytes32 s
    ) internal {
        uint256 nonceBefore = token.nonces(owner);
        token.permit(owner, spender, value, deadline, v, r, s);
        uint256 nonceAfter = token.nonces(owner);
        require(nonceAfter == nonceBefore + 1, "SafeERC20: permit did not succeed");
    }

    /**
     * @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");
        require(returndata.length == 0 || abi.decode(returndata, (bool)), "SafeERC20: ERC20 operation did not succeed");
    }

    /**
     * @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).
     *
     * This is a variant of {_callOptionalReturn} that silents catches all reverts and returns a bool instead.
     */
    function _callOptionalReturnBool(IERC20 token, bytes memory data) private returns (bool) {
        // 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 cannot use {Address-functionCall} here since this should return false
        // and not revert is the subcall reverts.

        (bool success, bytes memory returndata) = address(token).call(data);
        return
            success && (returndata.length == 0 || abi.decode(returndata, (bool))) && Address.isContract(address(token));
    }
}


// Dependency file: contracts/utils/Lib.sol

// pragma solidity 0.8.23;

/**
 * @dev kinds of possible pools.
 * @param DEFAULT_VALUE - dummy type for null value.
 * @param PRIMARY - blockchain based staking. All rules are declared in the  contracts.
 */
enum MintPool {
    DEFAULT_VALUE,
    PRIMARY
}

/**
 * @dev current state of the schedule for each MintPool.
 * @param time last invocation time.
 * @param itemIndex index of current item in UlsTokenSchedule.items.
 * @param yearIndex index of current year in current item in UlsTokenSchedule.items.
 * @param yearStartTime start time of the current year.
 * @param nextTickSupply amount of Token to be distributed next second.
 */
struct ScheduleState {
    uint40 time;
    uint8 itemIndex;
    uint16 yearIndex;
    uint40 yearStartTime;
    uint128 nextTickSupply;
}


// Dependency file: contracts/utils/ABDKMath64x64.sol

/*
 * ABDK Math 64.64 Smart Contract Library.  Copyright © 2019 by ABDK Consulting.
 * Author: Mikhail Vladimirov <[email protected]>
 * https://github.com/abdk-consulting/abdk-libraries-solidity/blob/master/ABDKMath64x64.sol
 */
// pragma solidity ^0.8.0;

/**
 * Smart contract library of mathematical functions operating with signed
 * 64.64-bit fixed point numbers.  Signed 64.64-bit fixed point number is
 * basically a simple fraction whose numerator is signed 128-bit integer and
 * denominator is 2^64.  As long as denominator is always the same, there is no
 * need to store it, thus in Solidity signed 64.64-bit fixed point numbers are
 * represented by int128 type holding only the numerator.
 */
library ABDKMath64x64 {
    /*
     * Minimum value signed 64.64-bit fixed point number may have.
     */
    int128 private constant MIN_64x64 = -0x80000000000000000000000000000000;

    /*
     * Maximum value signed 64.64-bit fixed point number may have.
     */
    int128 private constant MAX_64x64 = 0x7FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF;

    /**
     * Convert signed 256-bit integer number into signed 64.64-bit fixed point
     * number.  Revert on overflow.
     *
     * @param x signed 256-bit integer number
     * @return signed 64.64-bit fixed point number
     */
    function fromInt(int256 x) internal pure returns (int128) {
        unchecked {
            require(x >= -0x8000000000000000 && x <= 0x7FFFFFFFFFFFFFFF);
            return int128(x << 64);
        }
    }

    /**
     * Convert signed 64.64 fixed point number into signed 64-bit integer number
     * rounding down.
     *
     * @param x signed 64.64-bit fixed point number
     * @return signed 64-bit integer number
     */
    function toInt(int128 x) internal pure returns (int64) {
        unchecked {
            return int64(x >> 64);
        }
    }

    /**
     * Convert unsigned 256-bit integer number into signed 64.64-bit fixed point
     * number.  Revert on overflow.
     *
     * @param x unsigned 256-bit integer number
     * @return signed 64.64-bit fixed point number
     */
    function fromUInt(uint256 x) internal pure returns (int128) {
        unchecked {
            require(x <= 0x7FFFFFFFFFFFFFFF);
            return int128(int256(x << 64));
        }
    }

    /**
     * Convert signed 64.64 fixed point number into unsigned 64-bit integer
     * number rounding down.  Revert on underflow.
     *
     * @param x signed 64.64-bit fixed point number
     * @return unsigned 64-bit integer number
     */
    function toUInt(int128 x) internal pure returns (uint64) {
        unchecked {
            require(x >= 0);
            return uint64(uint128(x >> 64));
        }
    }

    /**
     * Convert signed 128.128 fixed point number into signed 64.64-bit fixed point
     * number rounding down.  Revert on overflow.
     *
     * @param x signed 128.128-bin fixed point number
     * @return signed 64.64-bit fixed point number
     */
    function from128x128(int256 x) internal pure returns (int128) {
        unchecked {
            int256 result = x >> 64;
            require(result >= MIN_64x64 && result <= MAX_64x64);
            return int128(result);
        }
    }

    /**
     * Convert signed 64.64 fixed point number into signed 128.128 fixed point
     * number.
     *
     * @param x signed 64.64-bit fixed point number
     * @return signed 128.128 fixed point number
     */
    function to128x128(int128 x) internal pure returns (int256) {
        unchecked {
            return int256(x) << 64;
        }
    }

    /**
     * Calculate x + y.  Revert on overflow.
     *
     * @param x signed 64.64-bit fixed point number
     * @param y signed 64.64-bit fixed point number
     * @return signed 64.64-bit fixed point number
     */
    function add(int128 x, int128 y) internal pure returns (int128) {
        unchecked {
            int256 result = int256(x) + y;
            require(result >= MIN_64x64 && result <= MAX_64x64);
            return int128(result);
        }
    }

    /**
     * Calculate x - y.  Revert on overflow.
     *
     * @param x signed 64.64-bit fixed point number
     * @param y signed 64.64-bit fixed point number
     * @return signed 64.64-bit fixed point number
     */
    function sub(int128 x, int128 y) internal pure returns (int128) {
        unchecked {
            int256 result = int256(x) - y;
            require(result >= MIN_64x64 && result <= MAX_64x64);
            return int128(result);
        }
    }

    /**
     * Calculate x * y rounding down.  Revert on overflow.
     *
     * @param x signed 64.64-bit fixed point number
     * @param y signed 64.64-bit fixed point number
     * @return signed 64.64-bit fixed point number
     */
    function mul(int128 x, int128 y) internal pure returns (int128) {
        unchecked {
            int256 result = (int256(x) * y) >> 64;
            require(result >= MIN_64x64 && result <= MAX_64x64);
            return int128(result);
        }
    }

    /**
     * Calculate x * y rounding towards zero, where x is signed 64.64 fixed point
     * number and y is signed 256-bit integer number.  Revert on overflow.
     *
     * @param x signed 64.64 fixed point number
     * @param y signed 256-bit integer number
     * @return signed 256-bit integer number
     */
    function muli(int128 x, int256 y) internal pure returns (int256) {
        unchecked {
            if (x == MIN_64x64) {
                require(
                    y >= -0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF &&
                        y <= 0x1000000000000000000000000000000000000000000000000
                );
                return -y << 63;
            } else {
                bool negativeResult = false;
                if (x < 0) {
                    x = -x;
                    negativeResult = true;
                }
                if (y < 0) {
                    y = -y; // We rely on overflow behavior here
                    negativeResult = !negativeResult;
                }
                uint256 absoluteResult = mulu(x, uint256(y));
                if (negativeResult) {
                    require(
                        absoluteResult <=
                            0x8000000000000000000000000000000000000000000000000000000000000000
                    );
                    return -int256(absoluteResult); // We rely on overflow behavior here
                } else {
                    require(
                        absoluteResult <=
                            0x7FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF
                    );
                    return int256(absoluteResult);
                }
            }
        }
    }

    /**
     * Calculate x * y rounding down, where x is signed 64.64 fixed point number
     * and y is unsigned 256-bit integer number.  Revert on overflow.
     *
     * @param x signed 64.64 fixed point number
     * @param y unsigned 256-bit integer number
     * @return unsigned 256-bit integer number
     */
    function mulu(int128 x, uint256 y) internal pure returns (uint256) {
        unchecked {
            if (y == 0) return 0;

            require(x >= 0);

            uint256 lo = (uint256(int256(x)) *
                (y & 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF)) >> 64;
            uint256 hi = uint256(int256(x)) * (y >> 128);

            require(hi <= 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF);
            hi <<= 64;

            require(
                hi <=
                    0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF -
                        lo
            );
            return hi + lo;
        }
    }

    /**
     * Calculate x / y rounding towards zero.  Revert on overflow or when y is
     * zero.
     *
     * @param x signed 64.64-bit fixed point number
     * @param y signed 64.64-bit fixed point number
     * @return signed 64.64-bit fixed point number
     */
    function div(int128 x, int128 y) internal pure returns (int128) {
        unchecked {
            require(y != 0);
            int256 result = (int256(x) << 64) / y;
            require(result >= MIN_64x64 && result <= MAX_64x64);
            return int128(result);
        }
    }

    /**
     * Calculate x / y rounding towards zero, where x and y are signed 256-bit
     * integer numbers.  Revert on overflow or when y is zero.
     *
     * @param x signed 256-bit integer number
     * @param y signed 256-bit integer number
     * @return signed 64.64-bit fixed point number
     */
    function divi(int256 x, int256 y) internal pure returns (int128) {
        unchecked {
            require(y != 0);

            bool negativeResult = false;
            if (x < 0) {
                x = -x; // We rely on overflow behavior here
                negativeResult = true;
            }
            if (y < 0) {
                y = -y; // We rely on overflow behavior here
                negativeResult = !negativeResult;
            }
            uint128 absoluteResult = divuu(uint256(x), uint256(y));
            if (negativeResult) {
                require(absoluteResult <= 0x80000000000000000000000000000000);
                return -int128(absoluteResult); // We rely on overflow behavior here
            } else {
                require(absoluteResult <= 0x7FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF);
                return int128(absoluteResult); // We rely on overflow behavior here
            }
        }
    }

    /**
     * Calculate x / y rounding towards zero, where x and y are unsigned 256-bit
     * integer numbers.  Revert on overflow or when y is zero.
     *
     * @param x unsigned 256-bit integer number
     * @param y unsigned 256-bit integer number
     * @return signed 64.64-bit fixed point number
     */
    function divu(uint256 x, uint256 y) internal pure returns (int128) {
        unchecked {
            require(y != 0);
            uint128 result = divuu(x, y);
            require(result <= uint128(MAX_64x64));
            return int128(result);
        }
    }

    /**
     * Calculate -x.  Revert on overflow.
     *
     * @param x signed 64.64-bit fixed point number
     * @return signed 64.64-bit fixed point number
     */
    function neg(int128 x) internal pure returns (int128) {
        unchecked {
            require(x != MIN_64x64);
            return -x;
        }
    }

    /**
     * Calculate |x|.  Revert on overflow.
     *
     * @param x signed 64.64-bit fixed point number
     * @return signed 64.64-bit fixed point number
     */
    function abs(int128 x) internal pure returns (int128) {
        unchecked {
            require(x != MIN_64x64);
            return x < 0 ? -x : x;
        }
    }

    /**
     * Calculate 1 / x rounding towards zero.  Revert on overflow or when x is
     * zero.
     *
     * @param x signed 64.64-bit fixed point number
     * @return signed 64.64-bit fixed point number
     */
    function inv(int128 x) internal pure returns (int128) {
        unchecked {
            require(x != 0);
            int256 result = int256(0x100000000000000000000000000000000) / x;
            require(result >= MIN_64x64 && result <= MAX_64x64);
            return int128(result);
        }
    }

    /**
     * Calculate arithmetics average of x and y, i.e. (x + y) / 2 rounding down.
     *
     * @param x signed 64.64-bit fixed point number
     * @param y signed 64.64-bit fixed point number
     * @return signed 64.64-bit fixed point number
     */
    function avg(int128 x, int128 y) internal pure returns (int128) {
        unchecked {
            return int128((int256(x) + int256(y)) >> 1);
        }
    }

    /**
     * Calculate geometric average of x and y, i.e. sqrt (x * y) rounding down.
     * Revert on overflow or in case x * y is negative.
     *
     * @param x signed 64.64-bit fixed point number
     * @param y signed 64.64-bit fixed point number
     * @return signed 64.64-bit fixed point number
     */
    function gavg(int128 x, int128 y) internal pure returns (int128) {
        unchecked {
            int256 m = int256(x) * int256(y);
            require(m >= 0);
            require(
                m <
                    0x4000000000000000000000000000000000000000000000000000000000000000
            );
            return int128(sqrtu(uint256(m)));
        }
    }

    /**
     * Calculate x^y assuming 0^0 is 1, where x is signed 64.64 fixed point number
     * and y is unsigned 256-bit integer number.  Revert on overflow.
     *
     * @param x signed 64.64-bit fixed point number
     * @param y uint256 value
     * @return signed 64.64-bit fixed point number
     */
    function pow(int128 x, uint256 y) internal pure returns (int128) {
        unchecked {
            bool negative = x < 0 && y & 1 == 1;

            uint256 absX = uint128(x < 0 ? -x : x);
            uint256 absResult;
            absResult = 0x100000000000000000000000000000000;

            if (absX <= 0x10000000000000000) {
                absX <<= 63;
                while (y != 0) {
                    if (y & 0x1 != 0) {
                        absResult = (absResult * absX) >> 127;
                    }
                    absX = (absX * absX) >> 127;

                    if (y & 0x2 != 0) {
                        absResult = (absResult * absX) >> 127;
                    }
                    absX = (absX * absX) >> 127;

                    if (y & 0x4 != 0) {
                        absResult = (absResult * absX) >> 127;
                    }
                    absX = (absX * absX) >> 127;

                    if (y & 0x8 != 0) {
                        absResult = (absResult * absX) >> 127;
                    }
                    absX = (absX * absX) >> 127;

                    y >>= 4;
                }

                absResult >>= 64;
            } else {
                uint256 absXShift = 63;
                if (absX < 0x1000000000000000000000000) {
                    absX <<= 32;
                    absXShift -= 32;
                }
                if (absX < 0x10000000000000000000000000000) {
                    absX <<= 16;
                    absXShift -= 16;
                }
                if (absX < 0x1000000000000000000000000000000) {
                    absX <<= 8;
                    absXShift -= 8;
                }
                if (absX < 0x10000000000000000000000000000000) {
                    absX <<= 4;
                    absXShift -= 4;
                }
                if (absX < 0x40000000000000000000000000000000) {
                    absX <<= 2;
                    absXShift -= 2;
                }
                if (absX < 0x80000000000000000000000000000000) {
                    absX <<= 1;
                    absXShift -= 1;
                }

                uint256 resultShift = 0;
                while (y != 0) {
                    require(absXShift < 64);

                    if (y & 0x1 != 0) {
                        absResult = (absResult * absX) >> 127;
                        resultShift += absXShift;
                        if (absResult > 0x100000000000000000000000000000000) {
                            absResult >>= 1;
                            resultShift += 1;
                        }
                    }
                    absX = (absX * absX) >> 127;
                    absXShift <<= 1;
                    if (absX >= 0x100000000000000000000000000000000) {
                        absX >>= 1;
                        absXShift += 1;
                    }

                    y >>= 1;
                }

                require(resultShift < 64);
                absResult >>= 64 - resultShift;
            }
            int256 result = negative ? -int256(absResult) : int256(absResult);
            require(result >= MIN_64x64 && result <= MAX_64x64);
            return int128(result);
        }
    }

    /**
     * Calculate sqrt (x) rounding down.  Revert if x < 0.
     *
     * @param x signed 64.64-bit fixed point number
     * @return signed 64.64-bit fixed point number
     */
    function sqrt(int128 x) internal pure returns (int128) {
        unchecked {
            require(x >= 0);
            return int128(sqrtu(uint256(int256(x)) << 64));
        }
    }

    /**
     * Calculate binary logarithm of x.  Revert if x <= 0.
     *
     * @param x signed 64.64-bit fixed point number
     * @return signed 64.64-bit fixed point number
     */
    function log_2(int128 x) internal pure returns (int128) {
        unchecked {
            require(x > 0);

            int256 msb = 0;
            int256 xc = x;
            if (xc >= 0x10000000000000000) {
                xc >>= 64;
                msb += 64;
            }
            if (xc >= 0x100000000) {
                xc >>= 32;
                msb += 32;
            }
            if (xc >= 0x10000) {
                xc >>= 16;
                msb += 16;
            }
            if (xc >= 0x100) {
                xc >>= 8;
                msb += 8;
            }
            if (xc >= 0x10) {
                xc >>= 4;
                msb += 4;
            }
            if (xc >= 0x4) {
                xc >>= 2;
                msb += 2;
            }
            if (xc >= 0x2) msb += 1; // No need to shift xc anymore

            int256 result = (msb - 64) << 64;
            uint256 ux = uint256(int256(x)) << uint256(127 - msb);
            for (int256 bit = 0x8000000000000000; bit > 0; bit >>= 1) {
                ux *= ux;
                uint256 b = ux >> 255;
                ux >>= 127 + b;
                result += bit * int256(b);
            }

            return int128(result);
        }
    }

    /**
     * Calculate natural logarithm of x.  Revert if x <= 0.
     *
     * @param x signed 64.64-bit fixed point number
     * @return signed 64.64-bit fixed point number
     */
    function ln(int128 x) internal pure returns (int128) {
        unchecked {
            require(x > 0);

            return
                int128(
                    int256(
                        (uint256(int256(log_2(x))) *
                            0xB17217F7D1CF79ABC9E3B39803F2F6AF) >> 128
                    )
                );
        }
    }

    /**
     * Calculate binary exponent of x.  Revert on overflow.
     *
     * @param x signed 64.64-bit fixed point number
     * @return signed 64.64-bit fixed point number
     */
    function exp_2(int128 x) internal pure returns (int128) {
        unchecked {
            require(x < 0x400000000000000000); // Overflow

            if (x < -0x400000000000000000) return 0; // Underflow

            uint256 result = 0x80000000000000000000000000000000;

            if (x & 0x8000000000000000 > 0)
                result = (result * 0x16A09E667F3BCC908B2FB1366EA957D3E) >> 128;
            if (x & 0x4000000000000000 > 0)
                result = (result * 0x1306FE0A31B7152DE8D5A46305C85EDEC) >> 128;
            if (x & 0x2000000000000000 > 0)
                result = (result * 0x1172B83C7D517ADCDF7C8C50EB14A791F) >> 128;
            if (x & 0x1000000000000000 > 0)
                result = (result * 0x10B5586CF9890F6298B92B71842A98363) >> 128;
            if (x & 0x800000000000000 > 0)
                result = (result * 0x1059B0D31585743AE7C548EB68CA417FD) >> 128;
            if (x & 0x400000000000000 > 0)
                result = (result * 0x102C9A3E778060EE6F7CACA4F7A29BDE8) >> 128;
            if (x & 0x200000000000000 > 0)
                result = (result * 0x10163DA9FB33356D84A66AE336DCDFA3F) >> 128;
            if (x & 0x100000000000000 > 0)
                result = (result * 0x100B1AFA5ABCBED6129AB13EC11DC9543) >> 128;
            if (x & 0x80000000000000 > 0)
                result = (result * 0x10058C86DA1C09EA1FF19D294CF2F679B) >> 128;
            if (x & 0x40000000000000 > 0)
                result = (result * 0x1002C605E2E8CEC506D21BFC89A23A00F) >> 128;
            if (x & 0x20000000000000 > 0)
                result = (result * 0x100162F3904051FA128BCA9C55C31E5DF) >> 128;
            if (x & 0x10000000000000 > 0)
                result = (result * 0x1000B175EFFDC76BA38E31671CA939725) >> 128;
            if (x & 0x8000000000000 > 0)
                result = (result * 0x100058BA01FB9F96D6CACD4B180917C3D) >> 128;
            if (x & 0x4000000000000 > 0)
                result = (result * 0x10002C5CC37DA9491D0985C348C68E7B3) >> 128;
            if (x & 0x2000000000000 > 0)
                result = (result * 0x1000162E525EE054754457D5995292026) >> 128;
            if (x & 0x1000000000000 > 0)
                result = (result * 0x10000B17255775C040618BF4A4ADE83FC) >> 128;
            if (x & 0x800000000000 > 0)
                result = (result * 0x1000058B91B5BC9AE2EED81E9B7D4CFAB) >> 128;
            if (x & 0x400000000000 > 0)
                result = (result * 0x100002C5C89D5EC6CA4D7C8ACC017B7C9) >> 128;
            if (x & 0x200000000000 > 0)
                result = (result * 0x10000162E43F4F831060E02D839A9D16D) >> 128;
            if (x & 0x100000000000 > 0)
                result = (result * 0x100000B1721BCFC99D9F890EA06911763) >> 128;
            if (x & 0x80000000000 > 0)
                result = (result * 0x10000058B90CF1E6D97F9CA14DBCC1628) >> 128;
            if (x & 0x40000000000 > 0)
                result = (result * 0x1000002C5C863B73F016468F6BAC5CA2B) >> 128;
            if (x & 0x20000000000 > 0)
                result = (result * 0x100000162E430E5A18F6119E3C02282A5) >> 128;
            if (x & 0x10000000000 > 0)
                result = (result * 0x1000000B1721835514B86E6D96EFD1BFE) >> 128;
            if (x & 0x8000000000 > 0)
                result = (result * 0x100000058B90C0B48C6BE5DF846C5B2EF) >> 128;
            if (x & 0x4000000000 > 0)
                result = (result * 0x10000002C5C8601CC6B9E94213C72737A) >> 128;
            if (x & 0x2000000000 > 0)
                result = (result * 0x1000000162E42FFF037DF38AA2B219F06) >> 128;
            if (x & 0x1000000000 > 0)
                result = (result * 0x10000000B17217FBA9C739AA5819F44F9) >> 128;
            if (x & 0x800000000 > 0)
                result = (result * 0x1000000058B90BFCDEE5ACD3C1CEDC823) >> 128;
            if (x & 0x400000000 > 0)
                result = (result * 0x100000002C5C85FE31F35A6A30DA1BE50) >> 128;
            if (x & 0x200000000 > 0)
                result = (result * 0x10000000162E42FF0999CE3541B9FFFCF) >> 128;
            if (x & 0x100000000 > 0)
                result = (result * 0x100000000B17217F80F4EF5AADDA45554) >> 128;
            if (x & 0x80000000 > 0)
                result = (result * 0x10000000058B90BFBF8479BD5A81B51AD) >> 128;
            if (x & 0x40000000 > 0)
                result = (result * 0x1000000002C5C85FDF84BD62AE30A74CC) >> 128;
            if (x & 0x20000000 > 0)
                result = (result * 0x100000000162E42FEFB2FED257559BDAA) >> 128;
            if (x & 0x10000000 > 0)
                result = (result * 0x1000000000B17217F7D5A7716BBA4A9AE) >> 128;
            if (x & 0x8000000 > 0)
                result = (result * 0x100000000058B90BFBE9DDBAC5E109CCE) >> 128;
            if (x & 0x4000000 > 0)
                result = (result * 0x10000000002C5C85FDF4B15DE6F17EB0D) >> 128;
            if (x & 0x2000000 > 0)
                result = (result * 0x1000000000162E42FEFA494F1478FDE05) >> 128;
            if (x & 0x1000000 > 0)
                result = (result * 0x10000000000B17217F7D20CF927C8E94C) >> 128;
            if (x & 0x800000 > 0)
                result = (result * 0x1000000000058B90BFBE8F71CB4E4B33D) >> 128;
            if (x & 0x400000 > 0)
                result = (result * 0x100000000002C5C85FDF477B662B26945) >> 128;
            if (x & 0x200000 > 0)
                result = (result * 0x10000000000162E42FEFA3AE53369388C) >> 128;
            if (x & 0x100000 > 0)
                result = (result * 0x100000000000B17217F7D1D351A389D40) >> 128;
            if (x & 0x80000 > 0)
                result = (result * 0x10000000000058B90BFBE8E8B2D3D4EDE) >> 128;
            if (x & 0x40000 > 0)
                result = (result * 0x1000000000002C5C85FDF4741BEA6E77E) >> 128;
            if (x & 0x20000 > 0)
                result = (result * 0x100000000000162E42FEFA39FE95583C2) >> 128;
            if (x & 0x10000 > 0)
                result = (result * 0x1000000000000B17217F7D1CFB72B45E1) >> 128;
            if (x & 0x8000 > 0)
                result = (result * 0x100000000000058B90BFBE8E7CC35C3F0) >> 128;
            if (x & 0x4000 > 0)
                result = (result * 0x10000000000002C5C85FDF473E242EA38) >> 128;
            if (x & 0x2000 > 0)
                result = (result * 0x1000000000000162E42FEFA39F02B772C) >> 128;
            if (x & 0x1000 > 0)
                result = (result * 0x10000000000000B17217F7D1CF7D83C1A) >> 128;
            if (x & 0x800 > 0)
                result = (result * 0x1000000000000058B90BFBE8E7BDCBE2E) >> 128;
            if (x & 0x400 > 0)
                result = (result * 0x100000000000002C5C85FDF473DEA871F) >> 128;
            if (x & 0x200 > 0)
                result = (result * 0x10000000000000162E42FEFA39EF44D91) >> 128;
            if (x & 0x100 > 0)
                result = (result * 0x100000000000000B17217F7D1CF79E949) >> 128;
            if (x & 0x80 > 0)
                result = (result * 0x10000000000000058B90BFBE8E7BCE544) >> 128;
            if (x & 0x40 > 0)
                result = (result * 0x1000000000000002C5C85FDF473DE6ECA) >> 128;
            if (x & 0x20 > 0)
                result = (result * 0x100000000000000162E42FEFA39EF366F) >> 128;
            if (x & 0x10 > 0)
                result = (result * 0x1000000000000000B17217F7D1CF79AFA) >> 128;
            if (x & 0x8 > 0)
                result = (result * 0x100000000000000058B90BFBE8E7BCD6D) >> 128;
            if (x & 0x4 > 0)
                result = (result * 0x10000000000000002C5C85FDF473DE6B2) >> 128;
            if (x & 0x2 > 0)
                result = (result * 0x1000000000000000162E42FEFA39EF358) >> 128;
            if (x & 0x1 > 0)
                result = (result * 0x10000000000000000B17217F7D1CF79AB) >> 128;

            result >>= uint256(int256(63 - (x >> 64)));
            require(result <= uint256(int256(MAX_64x64)));

            return int128(int256(result));
        }
    }

    /**
     * Calculate natural exponent of x.  Revert on overflow.
     *
     * @param x signed 64.64-bit fixed point number
     * @return signed 64.64-bit fixed point number
     */
    function exp(int128 x) internal pure returns (int128) {
        unchecked {
            require(x < 0x400000000000000000); // Overflow

            if (x < -0x400000000000000000) return 0; // Underflow

            return
                exp_2(
                    int128(
                        (int256(x) * 0x171547652B82FE1777D0FFDA0D23A7D12) >> 128
                    )
                );
        }
    }

    /**
     * Calculate x / y rounding towards zero, where x and y are unsigned 256-bit
     * integer numbers.  Revert on overflow or when y is zero.
     *
     * @param x unsigned 256-bit integer number
     * @param y unsigned 256-bit integer number
     * @return unsigned 64.64-bit fixed point number
     */
    function divuu(uint256 x, uint256 y) private pure returns (uint128) {
        unchecked {
            require(y != 0);

            uint256 result;

            if (x <= 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF)
                result = (x << 64) / y;
            else {
                uint256 msb = 192;
                uint256 xc = x >> 192;
                if (xc >= 0x100000000) {
                    xc >>= 32;
                    msb += 32;
                }
                if (xc >= 0x10000) {
                    xc >>= 16;
                    msb += 16;
                }
                if (xc >= 0x100) {
                    xc >>= 8;
                    msb += 8;
                }
                if (xc >= 0x10) {
                    xc >>= 4;
                    msb += 4;
                }
                if (xc >= 0x4) {
                    xc >>= 2;
                    msb += 2;
                }
                if (xc >= 0x2) msb += 1; // No need to shift xc anymore

                result = (x << (255 - msb)) / (((y - 1) >> (msb - 191)) + 1);
                require(result <= 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF);

                uint256 hi = result * (y >> 128);
                uint256 lo = result * (y & 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF);

                uint256 xh = x >> 192;
                uint256 xl = x << 64;

                if (xl < lo) xh -= 1;
                xl -= lo; // We rely on overflow behavior here
                lo = hi << 128;
                if (xl < lo) xh -= 1;
                xl -= lo; // We rely on overflow behavior here

                result += xh == hi >> 128 ? xl / y : 1;
            }

            require(result <= 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF);
            return uint128(result);
        }
    }

    /**
     * Calculate sqrt (x) rounding down, where x is unsigned 256-bit integer
     * number.
     *
     * @param x unsigned 256-bit integer number
     * @return unsigned 128-bit integer number
     */
    function sqrtu(uint256 x) private pure returns (uint128) {
        unchecked {
            if (x == 0) return 0;
            else {
                uint256 xx = x;
                uint256 r = 1;
                if (xx >= 0x100000000000000000000000000000000) {
                    xx >>= 128;
                    r <<= 64;
                }
                if (xx >= 0x10000000000000000) {
                    xx >>= 64;
                    r <<= 32;
                }
                if (xx >= 0x100000000) {
                    xx >>= 32;
                    r <<= 16;
                }
                if (xx >= 0x10000) {
                    xx >>= 16;
                    r <<= 8;
                }
                if (xx >= 0x100) {
                    xx >>= 8;
                    r <<= 4;
                }
                if (xx >= 0x10) {
                    xx >>= 4;
                    r <<= 2;
                }
                if (xx >= 0x4) {
                    r <<= 1;
                }
                r = (r + x / r) >> 1;
                r = (r + x / r) >> 1;
                r = (r + x / r) >> 1;
                r = (r + x / r) >> 1;
                r = (r + x / r) >> 1;
                r = (r + x / r) >> 1;
                r = (r + x / r) >> 1; // Seven iterations should be enough
                uint256 r1 = x / r;
                return uint128(r < r1 ? r : r1);
            }
        }
    }
}


// Dependency file: contracts/interfaces/ITokenSchedule.sol

// pragma solidity 0.8.23;

// import "contracts/utils/Lib.sol";

interface ITokenSchedule {
    /**
     * @dev Calculates changes in scheduleState based on the time passed from
     * last update and returns updated state and amount of Token to be minted.
     */
    function makeProgress(
        ScheduleState memory scheduleState,
        uint40 time,
        MintPool pool
    ) external view returns (uint256 tokenSupply, ScheduleState memory);
}


// Dependency file: contracts/interfaces/ITokenSupplier.sol

// pragma solidity 0.8.23;

/**
 * @dev Interface to got minted Token.
 */
interface ITokenSupplier {
    /**
     * @dev If caller is owner of any mint pool it will be supplied with UlsToken
     * based on the schedule and time passed from the moment
     * when the method was invoked by the same mint pool owner last time.
     * @param maxTime The upper limit of the time to make calculations.
     */
    function supplyToken(uint40 maxTime) external returns (uint256);

    function supplyTokenView(
        uint40 maxTime
    ) external view returns (uint256 supply);
}


// Root file: contracts/UlsTokenSupplier.sol

pragma solidity 0.8.23;

// import "@openzeppelin/contracts/access/Ownable.sol";
// import "@openzeppelin/contracts/token/ERC20/utils/SafeERC20.sol";
// import "@openzeppelin/contracts/token/ERC20/IERC20.sol";
// import "contracts/utils/Lib.sol";
// import "contracts/utils/ABDKMath64x64.sol";
// import "contracts/interfaces/ITokenSchedule.sol";
// import "contracts/interfaces/ITokenSupplier.sol";

contract UlsTokenSupplier is Ownable, ITokenSupplier {
    using ABDKMath64x64 for int128;
    using SafeERC20 for IERC20;

    // 365 days = 365 * 24 * 60 * 60 = 31536000 seconds
    uint40 public constant YEAR_DURATION = 365 * 24 * 60 * 60;

    /// @dev UlsToken contract
    IERC20 public immutable token;

    /// @dev UlsTokenSchedule contract
    ITokenSchedule public immutable tokenSchedule;
    ScheduleState public tokenScheduleState;

    /// @dev UlsTokenStaking contract
    address public tokenStaking;
    int128 public immutable tokenStakingShare;

    constructor(address token_, address tokenSchedule_) {
        token = IERC20(token_);
        tokenSchedule = ITokenSchedule(tokenSchedule_);

        // ABDKMath64x64.fromInt(1) = 18446744073709551616
        tokenStakingShare = 18446744073709551616;

        tokenScheduleState.time = 0;
        tokenScheduleState.yearStartTime = 0;
        tokenScheduleState.nextTickSupply =
            2_360_679_774997896964574700 /
            YEAR_DURATION;
    }

    function setTokenStaking(address tokenStaking_) external onlyOwner {
        require(
            tokenStaking == address(0),
            "UlsTokenSupplier: staking already set"
        );
        require(tokenStaking_ != address(0), "UlsTokenSupplier: zero address");
        tokenStaking = tokenStaking_;
    }

    function setStartTime(uint40 startTime) external onlyOwner {
        require(
            tokenScheduleState.time == 0,
            "UlsTokenSupplier: start time already set"
        );
        require(
            startTime >= uint40(block.timestamp),
            "UlsTokenSupplier: incorrect start time"
        );
        tokenScheduleState.time = startTime;
        tokenScheduleState.yearStartTime = startTime;
    }

    function supplyToken(
        uint40 maxTime
    ) external override returns (uint256 supply) {
        if (_msgSender() != tokenStaking) return 0;

        uint256 supplyTotal = _supplyToken(maxTime);
        supply = ABDKMath64x64.mulu(tokenStakingShare, supplyTotal);

        token.safeTransfer(_msgSender(), supply);
        return supply;
    }

    function supplyTokenView(
        uint40 maxTime
    ) external view override returns (uint256 supply) {
        if (_msgSender() != tokenStaking) return 0;

        uint256 supplyTotal = _supplyTokenView(maxTime);
        supply = ABDKMath64x64.mulu(tokenStakingShare, supplyTotal);
        return supply;
    }

    /**
     * @dev if caller is owner of any mint pool it will be supplied with Token
     * based on the schedule and time passed from the moment
     * when the method was invoked by the same mint pool owner last time.
     * @param maxTime the upper limit of the time to make calculations.
     */
    function _supplyToken(uint40 maxTime) private returns (uint256) {
        if (tokenScheduleState.time == 0) {
            return 0;
        }

        if (maxTime > uint40(block.timestamp)) {
            maxTime = uint40(block.timestamp);
        }
        (uint256 supply, ScheduleState memory newState) = tokenSchedule
            .makeProgress(tokenScheduleState, maxTime, MintPool.PRIMARY);
        tokenScheduleState = newState;
        return supply;
    }

    function _supplyTokenView(uint40 maxTime) private view returns (uint256) {
        if (tokenScheduleState.time == 0) {
            return 0;
        }

        if (maxTime > uint40(block.timestamp)) {
            maxTime = uint40(block.timestamp);
        }
        ScheduleState memory state = tokenScheduleState;
        (uint256 supply, ) = tokenSchedule.makeProgress(
            state,
            maxTime,
            MintPool.PRIMARY
        );
        return supply;
    }

    /// @dev View function to support displaying PRIMARY POOL daily supply on UI.
    function rewardRate() external view returns (uint256) {
        if (tokenScheduleState.time == 0) {
            return 0;
        }

        (, ScheduleState memory newState) = tokenSchedule.makeProgress(
            tokenScheduleState,
            uint40(block.timestamp),
            MintPool.PRIMARY
        );
        return uint256(newState.nextTickSupply);
    }
}

Contract Security Audit

Contract ABI

[{"inputs":[{"internalType":"address","name":"token_","type":"address"},{"internalType":"address","name":"tokenSchedule_","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"inputs":[],"name":"YEAR_DURATION","outputs":[{"internalType":"uint40","name":"","type":"uint40"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"rewardRate","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint40","name":"startTime","type":"uint40"}],"name":"setStartTime","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"tokenStaking_","type":"address"}],"name":"setTokenStaking","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint40","name":"maxTime","type":"uint40"}],"name":"supplyToken","outputs":[{"internalType":"uint256","name":"supply","type":"uint256"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint40","name":"maxTime","type":"uint40"}],"name":"supplyTokenView","outputs":[{"internalType":"uint256","name":"supply","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"token","outputs":[{"internalType":"contract IERC20","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"tokenSchedule","outputs":[{"internalType":"contract ITokenSchedule","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"tokenScheduleState","outputs":[{"internalType":"uint40","name":"time","type":"uint40"},{"internalType":"uint8","name":"itemIndex","type":"uint8"},{"internalType":"uint16","name":"yearIndex","type":"uint16"},{"internalType":"uint40","name":"yearStartTime","type":"uint40"},{"internalType":"uint128","name":"nextTickSupply","type":"uint128"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"tokenStaking","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"tokenStakingShare","outputs":[{"internalType":"int128","name":"","type":"int128"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"}]

60e060405234801562000010575f80fd5b506040516200126f3803806200126f833981016040819052620000339162000133565b6200003e33620000c8565b6001600160a01b03808316608052811660a0526801000000000000000060c052600180546cffffffffff000000ffffffffff191690556200008f6301e133806a01f3e4b4ffe7187b7b8dec62000169565b6001600160581b031660015f01600d6101000a8154816001600160801b0302191690836001600160801b0316021790555050506200019b565b5f80546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b80516001600160a01b03811681146200012e575f80fd5b919050565b5f806040838503121562000145575f80fd5b620001508362000117565b9150620001606020840162000117565b90509250929050565b5f6001600160581b03838116806200018f57634e487b7160e01b5f52601260045260245ffd5b92169190910492915050565b60805160a05160c05161107f620001f05f395f818161025e015281816104f9015261058f01525f81816101b801528181610437015281816107fa0152610aa101525f81816102be0152610525015261107f5ff3fe608060405234801561000f575f80fd5b50600436106100e5575f3560e01c80638da5cb5b11610088578063e6ec3c2211610063578063e6ec3c2214610259578063eae2399414610293578063f2fde38b146102a6578063fc0c546a146102b9575f80fd5b80638da5cb5b1461022357806395fda71114610233578063d6506a6f14610246575f80fd5b80635df33709116100c35780635df33709146101b3578063715018a6146101f25780637b0a47ee146101fa5780637dc30ede14610210575f80fd5b80630dc0ba72146100e95780630f913e581461010f57806351839a0b1461019e575b5f80fd5b6100f46301e1338081565b60405164ffffffffff90911681526020015b60405180910390f35b6001546101579064ffffffffff8082169165010000000000810460ff1691600160301b820461ffff1691600160401b810490911690600160681b90046001600160801b031685565b6040805164ffffffffff968716815260ff909516602086015261ffff909316928401929092529290921660608201526001600160801b03909116608082015260a001610106565b6101b16101ac366004610d98565b6102e0565b005b6101da7f000000000000000000000000000000000000000000000000000000000000000081565b6040516001600160a01b039091168152602001610106565b6101b16103f4565b610202610407565b604051908152602001610106565b6002546101da906001600160a01b031681565b5f546001600160a01b03166101da565b610202610241366004610d98565b6104c4565b610202610254366004610d98565b61055a565b6102807f000000000000000000000000000000000000000000000000000000000000000081565b604051600f9190910b8152602001610106565b6101b16102a1366004610db3565b6105bb565b6101b16102b4366004610db3565b6106a2565b6101da7f000000000000000000000000000000000000000000000000000000000000000081565b6102e861071b565b60015464ffffffffff16156103555760405162461bcd60e51b815260206004820152602860248201527f556c73546f6b656e537570706c6965723a2073746172742074696d6520616c726044820152671958591e481cd95d60c21b60648201526084015b60405180910390fd5b4264ffffffffff168164ffffffffff1610156103c25760405162461bcd60e51b815260206004820152602660248201527f556c73546f6b656e537570706c6965723a20696e636f72726563742073746172604482015265742074696d6560d01b606482015260840161034c565b60018054600160401b64ffffffffff9093169283026cffffffffff000000ffffffffff19909116909217919091179055565b6103fc61071b565b6104055f610774565b565b6001545f9064ffffffffff16810361041e57505f90565b60405163ba6af8c360e01b81525f906001600160a01b037f0000000000000000000000000000000000000000000000000000000000000000169063ba6af8c3906104719060019042908290600401610df9565b60c060405180830381865afa15801561048c573d5f803e3d5ffd5b505050506040513d601f19601f820116820180604052508101906104b09190610ea1565b608001516001600160801b03169392505050565b6002545f906001600160a01b0316336001600160a01b0316146104e857505f919050565b5f6104f2836107c3565b905061051e7f000000000000000000000000000000000000000000000000000000000000000082610944565b91506105547f00000000000000000000000000000000000000000000000000000000000000006001600160a01b031633846109aa565b50919050565b6002545f906001600160a01b0316336001600160a01b03161461057e57505f919050565b5f61058883610a01565b90506105b47f000000000000000000000000000000000000000000000000000000000000000082610944565b9392505050565b6105c361071b565b6002546001600160a01b03161561062a5760405162461bcd60e51b815260206004820152602560248201527f556c73546f6b656e537570706c6965723a207374616b696e6720616c726561646044820152641e481cd95d60da1b606482015260840161034c565b6001600160a01b0381166106805760405162461bcd60e51b815260206004820152601e60248201527f556c73546f6b656e537570706c6965723a207a65726f20616464726573730000604482015260640161034c565b600280546001600160a01b0319166001600160a01b0392909216919091179055565b6106aa61071b565b6001600160a01b03811661070f5760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b606482015260840161034c565b61071881610774565b50565b5f546001600160a01b031633146104055760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015260640161034c565b5f80546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b6001545f9064ffffffffff1681036107dc57505f919050565b4264ffffffffff168264ffffffffff1611156107f6574291505b5f807f00000000000000000000000000000000000000000000000000000000000000006001600160a01b031663ba6af8c360018660016040518463ffffffff1660e01b815260040161084a93929190610df9565b60c060405180830381865afa158015610865573d5f803e3d5ffd5b505050506040513d601f19601f820116820180604052508101906108899190610ea1565b8051600180546020840151604085015160608601516080909601516001600160801b0316600160681b026fffffffffffffffffffffffffffffffff60681b1964ffffffffff978816600160401b026cffffffffff00000000000000001961ffff909416600160301b02939093166cffffffffffffff0000000000001960ff909516650100000000000265ffffffffffff1990961698909716979097179390931791909116939093179290921792909216179055949350505050565b5f815f0361095357505f6109a4565b5f83600f0b1215610962575f80fd5b600f83900b6001600160801b038316810260401c90608084901c026001600160c01b03811115610990575f80fd5b60401b81198111156109a0575f80fd5b0190505b92915050565b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663a9059cbb60e01b1790526109fc908490610b29565b505050565b6001545f9064ffffffffff168103610a1a57505f919050565b4264ffffffffff168264ffffffffff161115610a34574291505b6040805160a0810182526001805464ffffffffff808216845265010000000000820460ff166020850152600160301b820461ffff1684860152600160401b8204166060840152600160681b90046001600160801b03166080830152915163ba6af8c360e01b815290915f917f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03169163ba6af8c391610ae1918691899190600401610f58565b60c060405180830381865afa158015610afc573d5f803e3d5ffd5b505050506040513d601f19601f82011682018060405250810190610b209190610ea1565b50949350505050565b5f610b7d826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b0316610bfc9092919063ffffffff16565b905080515f1480610b9d575080806020019051810190610b9d9190610fbb565b6109fc5760405162461bcd60e51b815260206004820152602a60248201527f5361666545524332303a204552433230206f7065726174696f6e20646964206e6044820152691bdd081cdd58d8d9595960b21b606482015260840161034c565b6060610c0a84845f85610c12565b949350505050565b606082471015610c735760405162461bcd60e51b815260206004820152602660248201527f416464726573733a20696e73756666696369656e742062616c616e636520666f6044820152651c8818d85b1b60d21b606482015260840161034c565b5f80866001600160a01b03168587604051610c8e9190610ffc565b5f6040518083038185875af1925050503d805f8114610cc8576040519150601f19603f3d011682016040523d82523d5f602084013e610ccd565b606091505b5091509150610cde87838387610ce9565b979650505050505050565b60608315610d575782515f03610d50576001600160a01b0385163b610d505760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e7472616374000000604482015260640161034c565b5081610c0a565b610c0a8383815115610d6c5781518083602001fd5b8060405162461bcd60e51b815260040161034c9190611017565b64ffffffffff81168114610718575f80fd5b5f60208284031215610da8575f80fd5b81356105b481610d86565b5f60208284031215610dc3575f80fd5b81356001600160a01b03811681146105b4575f80fd5b60028110610df557634e487b7160e01b5f52602160045260245ffd5b9052565b5f60e082019050845464ffffffffff808216845260ff8260281c16602085015261ffff8260301c166040850152808260401c1660608501526001600160801b038260681c16608085015280861660a08501525050610c0a60c0830184610dd9565b8051610e6581610d86565b919050565b805160ff81168114610e65575f80fd5b805161ffff81168114610e65575f80fd5b80516001600160801b0381168114610e65575f80fd5b5f8082840360c0811215610eb3575f80fd5b8351925060a0601f1982011215610ec8575f80fd5b5060405160a0810181811067ffffffffffffffff82111715610ef857634e487b7160e01b5f52604160045260245ffd5b604052610f0760208501610e5a565b8152610f1560408501610e6a565b6020820152610f2660608501610e7a565b6040820152610f3760808501610e5a565b6060820152610f4860a08501610e8b565b6080820152809150509250929050565b5f60e08201905064ffffffffff80865116835260ff602087015116602084015261ffff60408701511660408401528060608701511660608401526001600160801b03608087015116608084015280851660a084015250610c0a60c0830184610dd9565b5f60208284031215610fcb575f80fd5b815180151581146105b4575f80fd5b5f5b83811015610ff4578181015183820152602001610fdc565b50505f910152565b5f825161100d818460208701610fda565b9190910192915050565b602081525f8251806020840152611035816040850160208701610fda565b601f01601f1916919091016040019291505056fea26469706673582212203e83563f88a82a29459a2897a339664cf62a2402f63344844ed6be89cb471d4e64736f6c634300081700330000000000000000000000000cdbbc7fe1c8da0cc41ba96d7edb4cce5982f23f000000000000000000000000bbf30313f9e4b56f5fe0737462285595945525f0

Deployed Bytecode

0x608060405234801561000f575f80fd5b50600436106100e5575f3560e01c80638da5cb5b11610088578063e6ec3c2211610063578063e6ec3c2214610259578063eae2399414610293578063f2fde38b146102a6578063fc0c546a146102b9575f80fd5b80638da5cb5b1461022357806395fda71114610233578063d6506a6f14610246575f80fd5b80635df33709116100c35780635df33709146101b3578063715018a6146101f25780637b0a47ee146101fa5780637dc30ede14610210575f80fd5b80630dc0ba72146100e95780630f913e581461010f57806351839a0b1461019e575b5f80fd5b6100f46301e1338081565b60405164ffffffffff90911681526020015b60405180910390f35b6001546101579064ffffffffff8082169165010000000000810460ff1691600160301b820461ffff1691600160401b810490911690600160681b90046001600160801b031685565b6040805164ffffffffff968716815260ff909516602086015261ffff909316928401929092529290921660608201526001600160801b03909116608082015260a001610106565b6101b16101ac366004610d98565b6102e0565b005b6101da7f000000000000000000000000bbf30313f9e4b56f5fe0737462285595945525f081565b6040516001600160a01b039091168152602001610106565b6101b16103f4565b610202610407565b604051908152602001610106565b6002546101da906001600160a01b031681565b5f546001600160a01b03166101da565b610202610241366004610d98565b6104c4565b610202610254366004610d98565b61055a565b6102807f000000000000000000000000000000000000000000000001000000000000000081565b604051600f9190910b8152602001610106565b6101b16102a1366004610db3565b6105bb565b6101b16102b4366004610db3565b6106a2565b6101da7f0000000000000000000000000cdbbc7fe1c8da0cc41ba96d7edb4cce5982f23f81565b6102e861071b565b60015464ffffffffff16156103555760405162461bcd60e51b815260206004820152602860248201527f556c73546f6b656e537570706c6965723a2073746172742074696d6520616c726044820152671958591e481cd95d60c21b60648201526084015b60405180910390fd5b4264ffffffffff168164ffffffffff1610156103c25760405162461bcd60e51b815260206004820152602660248201527f556c73546f6b656e537570706c6965723a20696e636f72726563742073746172604482015265742074696d6560d01b606482015260840161034c565b60018054600160401b64ffffffffff9093169283026cffffffffff000000ffffffffff19909116909217919091179055565b6103fc61071b565b6104055f610774565b565b6001545f9064ffffffffff16810361041e57505f90565b60405163ba6af8c360e01b81525f906001600160a01b037f000000000000000000000000bbf30313f9e4b56f5fe0737462285595945525f0169063ba6af8c3906104719060019042908290600401610df9565b60c060405180830381865afa15801561048c573d5f803e3d5ffd5b505050506040513d601f19601f820116820180604052508101906104b09190610ea1565b608001516001600160801b03169392505050565b6002545f906001600160a01b0316336001600160a01b0316146104e857505f919050565b5f6104f2836107c3565b905061051e7f000000000000000000000000000000000000000000000001000000000000000082610944565b91506105547f0000000000000000000000000cdbbc7fe1c8da0cc41ba96d7edb4cce5982f23f6001600160a01b031633846109aa565b50919050565b6002545f906001600160a01b0316336001600160a01b03161461057e57505f919050565b5f61058883610a01565b90506105b47f000000000000000000000000000000000000000000000001000000000000000082610944565b9392505050565b6105c361071b565b6002546001600160a01b03161561062a5760405162461bcd60e51b815260206004820152602560248201527f556c73546f6b656e537570706c6965723a207374616b696e6720616c726561646044820152641e481cd95d60da1b606482015260840161034c565b6001600160a01b0381166106805760405162461bcd60e51b815260206004820152601e60248201527f556c73546f6b656e537570706c6965723a207a65726f20616464726573730000604482015260640161034c565b600280546001600160a01b0319166001600160a01b0392909216919091179055565b6106aa61071b565b6001600160a01b03811661070f5760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b606482015260840161034c565b61071881610774565b50565b5f546001600160a01b031633146104055760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015260640161034c565b5f80546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b6001545f9064ffffffffff1681036107dc57505f919050565b4264ffffffffff168264ffffffffff1611156107f6574291505b5f807f000000000000000000000000bbf30313f9e4b56f5fe0737462285595945525f06001600160a01b031663ba6af8c360018660016040518463ffffffff1660e01b815260040161084a93929190610df9565b60c060405180830381865afa158015610865573d5f803e3d5ffd5b505050506040513d601f19601f820116820180604052508101906108899190610ea1565b8051600180546020840151604085015160608601516080909601516001600160801b0316600160681b026fffffffffffffffffffffffffffffffff60681b1964ffffffffff978816600160401b026cffffffffff00000000000000001961ffff909416600160301b02939093166cffffffffffffff0000000000001960ff909516650100000000000265ffffffffffff1990961698909716979097179390931791909116939093179290921792909216179055949350505050565b5f815f0361095357505f6109a4565b5f83600f0b1215610962575f80fd5b600f83900b6001600160801b038316810260401c90608084901c026001600160c01b03811115610990575f80fd5b60401b81198111156109a0575f80fd5b0190505b92915050565b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663a9059cbb60e01b1790526109fc908490610b29565b505050565b6001545f9064ffffffffff168103610a1a57505f919050565b4264ffffffffff168264ffffffffff161115610a34574291505b6040805160a0810182526001805464ffffffffff808216845265010000000000820460ff166020850152600160301b820461ffff1684860152600160401b8204166060840152600160681b90046001600160801b03166080830152915163ba6af8c360e01b815290915f917f000000000000000000000000bbf30313f9e4b56f5fe0737462285595945525f06001600160a01b03169163ba6af8c391610ae1918691899190600401610f58565b60c060405180830381865afa158015610afc573d5f803e3d5ffd5b505050506040513d601f19601f82011682018060405250810190610b209190610ea1565b50949350505050565b5f610b7d826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b0316610bfc9092919063ffffffff16565b905080515f1480610b9d575080806020019051810190610b9d9190610fbb565b6109fc5760405162461bcd60e51b815260206004820152602a60248201527f5361666545524332303a204552433230206f7065726174696f6e20646964206e6044820152691bdd081cdd58d8d9595960b21b606482015260840161034c565b6060610c0a84845f85610c12565b949350505050565b606082471015610c735760405162461bcd60e51b815260206004820152602660248201527f416464726573733a20696e73756666696369656e742062616c616e636520666f6044820152651c8818d85b1b60d21b606482015260840161034c565b5f80866001600160a01b03168587604051610c8e9190610ffc565b5f6040518083038185875af1925050503d805f8114610cc8576040519150601f19603f3d011682016040523d82523d5f602084013e610ccd565b606091505b5091509150610cde87838387610ce9565b979650505050505050565b60608315610d575782515f03610d50576001600160a01b0385163b610d505760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e7472616374000000604482015260640161034c565b5081610c0a565b610c0a8383815115610d6c5781518083602001fd5b8060405162461bcd60e51b815260040161034c9190611017565b64ffffffffff81168114610718575f80fd5b5f60208284031215610da8575f80fd5b81356105b481610d86565b5f60208284031215610dc3575f80fd5b81356001600160a01b03811681146105b4575f80fd5b60028110610df557634e487b7160e01b5f52602160045260245ffd5b9052565b5f60e082019050845464ffffffffff808216845260ff8260281c16602085015261ffff8260301c166040850152808260401c1660608501526001600160801b038260681c16608085015280861660a08501525050610c0a60c0830184610dd9565b8051610e6581610d86565b919050565b805160ff81168114610e65575f80fd5b805161ffff81168114610e65575f80fd5b80516001600160801b0381168114610e65575f80fd5b5f8082840360c0811215610eb3575f80fd5b8351925060a0601f1982011215610ec8575f80fd5b5060405160a0810181811067ffffffffffffffff82111715610ef857634e487b7160e01b5f52604160045260245ffd5b604052610f0760208501610e5a565b8152610f1560408501610e6a565b6020820152610f2660608501610e7a565b6040820152610f3760808501610e5a565b6060820152610f4860a08501610e8b565b6080820152809150509250929050565b5f60e08201905064ffffffffff80865116835260ff602087015116602084015261ffff60408701511660408401528060608701511660608401526001600160801b03608087015116608084015280851660a084015250610c0a60c0830184610dd9565b5f60208284031215610fcb575f80fd5b815180151581146105b4575f80fd5b5f5b83811015610ff4578181015183820152602001610fdc565b50505f910152565b5f825161100d818460208701610fda565b9190910192915050565b602081525f8251806020840152611035816040850160208701610fda565b601f01601f1916919091016040019291505056fea26469706673582212203e83563f88a82a29459a2897a339664cf62a2402f63344844ed6be89cb471d4e64736f6c63430008170033

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

0000000000000000000000000cdbbc7fe1c8da0cc41ba96d7edb4cce5982f23f000000000000000000000000bbf30313f9e4b56f5fe0737462285595945525f0

-----Decoded View---------------
Arg [0] : token_ (address): 0x0cdBbc7FE1c8Da0cc41BA96d7EDB4ccE5982F23f
Arg [1] : tokenSchedule_ (address): 0xbBF30313f9e4B56F5FE0737462285595945525f0

-----Encoded View---------------
2 Constructor Arguments found :
Arg [0] : 0000000000000000000000000cdbbc7fe1c8da0cc41ba96d7edb4cce5982f23f
Arg [1] : 000000000000000000000000bbf30313f9e4b56f5fe0737462285595945525f0


Deployed Bytecode Sourcemap

60460:4284:0:-:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;60649:57;;60688:18;60649:57;;;;;188:12:1;176:25;;;158:44;;146:2;131:18;60649:57:0;;;;;;;;60877:39;;;;;;;;;;;;;;;;-1:-1:-1;;;60877:39:0;;;;;-1:-1:-1;;;60877:39:0;;;;;;-1:-1:-1;;;60877:39:0;;-1:-1:-1;;;;;60877:39:0;;;;;;;472:12:1;511:15;;;493:34;;575:4;563:17;;;558:2;543:18;;536:45;629:6;617:19;;;597:18;;;590:47;;;;673:15;;;;668:2;653:18;;646:43;-1:-1:-1;;;;;726:47:1;;;720:3;705:19;;698:76;449:3;434:19;60877:39:0;213:567:1;61850:432:0;;;;;;:::i;:::-;;:::i;:::-;;60825:45;;;;;;;;-1:-1:-1;;;;;1350:32:1;;;1332:51;;1320:2;1305:18;60825:45:0;1163:226:1;3424:103:0;;;:::i;64362:379::-;;;:::i;:::-;;;1540:25:1;;;1528:2;1513:18;64362:379:0;1394:177:1;60964:27:0;;;;;-1:-1:-1;;;;;60964:27:0;;;2783:87;2829:7;2856:6;-1:-1:-1;;;;;2856:6:0;2783:87;;62290:360;;;;;;:::i;:::-;;:::i;62658:320::-;;;;;;:::i;:::-;;:::i;60998:41::-;;;;;;;;1957:2:1;1946:22;;;;1928:41;;1916:2;1901:18;60998:41:0;1784:191:1;61523:319:0;;;;;;:::i;:::-;;:::i;3682:201::-;;;;;;:::i;:::-;;:::i;60747:29::-;;;;;61850:432;2669:13;:11;:13::i;:::-;61942:18:::1;:23:::0;::::1;;:28:::0;61920:118:::1;;;::::0;-1:-1:-1;;;61920:118:0;;2695:2:1;61920:118:0::1;::::0;::::1;2677:21:1::0;2734:2;2714:18;;;2707:30;2773:34;2753:18;;;2746:62;-1:-1:-1;;;2824:18:1;;;2817:38;2872:19;;61920:118:0::1;;;;;;;;;62091:15;62071:36;;:9;:36;;;;62049:124;;;::::0;-1:-1:-1;;;62049:124:0;;3104:2:1;62049:124:0::1;::::0;::::1;3086:21:1::0;3143:2;3123:18;;;3116:30;3182:34;3162:18;;;3155:62;-1:-1:-1;;;3233:18:1;;;3226:36;3279:19;;62049:124:0::1;2902:402:1::0;62049:124:0::1;62184:18;:35:::0;;-1:-1:-1;;;62184:35:0::1;::::0;;::::1;62230:44:::0;;::::1;-1:-1:-1::0;;62230:44:0;;;;;;;;;::::1;::::0;;61850:432::o;3424:103::-;2669:13;:11;:13::i;:::-;3489:30:::1;3516:1;3489:18;:30::i;:::-;3424:103::o:0;64362:379::-;64431:18;:23;64407:7;;64431:23;;:28;;64427:69;;-1:-1:-1;64483:1:0;;64362:379::o;64427:69::-;64544:139;;-1:-1:-1;;;64544:139:0;;64511:29;;-1:-1:-1;;;;;64544:13:0;:26;;;;:139;;64585:18;;64625:15;;64585:18;;64544:139;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;64709:23;;;-1:-1:-1;;;;;64701:32:0;;64362:379;-1:-1:-1;;;64362:379:0:o;62290:360::-;62417:12;;62370:14;;-1:-1:-1;;;;;62417:12:0;1344:10;-1:-1:-1;;;;;62401:28:0;;62397:42;;-1:-1:-1;62438:1:0;;62290:360;-1:-1:-1;62290:360:0:o;62397:42::-;62452:19;62474:21;62487:7;62474:12;:21::i;:::-;62452:43;;62515:50;62534:17;62553:11;62515:18;:50::i;:::-;62506:59;-1:-1:-1;62578:40:0;:5;-1:-1:-1;;;;;62578:18:0;1344:10;62506:59;62578:18;:40::i;:::-;62629:13;62290:360;;;:::o;62658:320::-;62794:12;;62747:14;;-1:-1:-1;;;;;62794:12:0;1344:10;-1:-1:-1;;;;;62778:28:0;;62774:42;;-1:-1:-1;62815:1:0;;62658:320;-1:-1:-1;62658:320:0:o;62774:42::-;62829:19;62851:25;62868:7;62851:16;:25::i;:::-;62829:47;;62896:50;62915:17;62934:11;62896:18;:50::i;:::-;62887:59;62658:320;-1:-1:-1;;;62658:320:0:o;61523:319::-;2669:13;:11;:13::i;:::-;61623:12:::1;::::0;-1:-1:-1;;;;;61623:12:0::1;:26:::0;61601:113:::1;;;::::0;-1:-1:-1;;;61601:113:0;;6274:2:1;61601:113:0::1;::::0;::::1;6256:21:1::0;6313:2;6293:18;;;6286:30;6352:34;6332:18;;;6325:62;-1:-1:-1;;;6403:18:1;;;6396:35;6448:19;;61601:113:0::1;6072:401:1::0;61601:113:0::1;-1:-1:-1::0;;;;;61733:27:0;::::1;61725:70;;;::::0;-1:-1:-1;;;61725:70:0;;6680:2:1;61725:70:0::1;::::0;::::1;6662:21:1::0;6719:2;6699:18;;;6692:30;6758:32;6738:18;;;6731:60;6808:18;;61725:70:0::1;6478:354:1::0;61725:70:0::1;61806:12;:28:::0;;-1:-1:-1;;;;;;61806:28:0::1;-1:-1:-1::0;;;;;61806:28:0;;;::::1;::::0;;;::::1;::::0;;61523:319::o;3682:201::-;2669:13;:11;:13::i;:::-;-1:-1:-1;;;;;3771:22:0;::::1;3763:73;;;::::0;-1:-1:-1;;;3763:73:0;;7039:2:1;3763:73:0::1;::::0;::::1;7021:21:1::0;7078:2;7058:18;;;7051:30;7117:34;7097:18;;;7090:62;-1:-1:-1;;;7168:18:1;;;7161:36;7214:19;;3763:73:0::1;6837:402:1::0;3763:73:0::1;3847:28;3866:8;3847:18;:28::i;:::-;3682:201:::0;:::o;2948:132::-;2829:7;2856:6;-1:-1:-1;;;;;2856:6:0;1344:10;3012:23;3004:68;;;;-1:-1:-1;;;3004:68:0;;7446:2:1;3004:68:0;;;7428:21:1;;;7465:18;;;7458:30;7524:34;7504:18;;;7497:62;7576:18;;3004:68:0;7244:356:1;4043:191:0;4117:16;4136:6;;-1:-1:-1;;;;;4153:17:0;;;-1:-1:-1;;;;;;4153:17:0;;;;;;4186:40;;4136:6;;;;;;;4186:40;;4117:16;4186:40;4106:128;4043:191;:::o;63294:474::-;63373:18;:23;63349:7;;63373:23;;:28;;63369:69;;-1:-1:-1;63425:1:0;;63294:474;-1:-1:-1;63294:474:0:o;63369:69::-;63471:15;63454:33;;:7;:33;;;63450:99;;;63521:15;63504:33;;63450:99;63560:14;63576:29;63609:13;-1:-1:-1;;;;;63609:40:0;;63650:18;63670:7;63679:16;63609:87;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;63707:29;;:18;:29;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;63707:29:0;-1:-1:-1;;;63707:29:0;-1:-1:-1;;;;63707:29:0;;;;-1:-1:-1;;;63707:29:0;-1:-1:-1;;63707:29:0;;;;-1:-1:-1;;;63707:29:0;;;;;-1:-1:-1;;63707:29:0;;;;;;-1:-1:-1;;63707:29:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;63559:137;63294:474;-1:-1:-1;;;;63294:474:0:o;34518:665::-;34576:7;34625:1;34630;34625:6;34621:20;;-1:-1:-1;34640:1:0;34633:8;;34621:20;34671:1;34666;:6;;;;34658:15;;;;;;34712:9;;;;-1:-1:-1;;;;;34743:38:0;;34704:78;;34787:2;34703:86;;34844:3;34839:8;;;34817:31;-1:-1:-1;;;;;34873:56:0;;;34865:65;;;;;;34952:2;34945:9;35024:96;;34997:123;;;34971:164;;;;;;35157:7;;-1:-1:-1;34518:665:0;;;;;:::o;20236:177::-;20346:58;;;-1:-1:-1;;;;;7797:32:1;;20346:58:0;;;7779:51:1;7846:18;;;;7839:34;;;20346:58:0;;;;;;;;;;7752:18:1;;;;20346:58:0;;;;;;;;-1:-1:-1;;;;;20346:58:0;-1:-1:-1;;;20346:58:0;;;20319:86;;20339:5;;20319:19;:86::i;:::-;20236:177;;;:::o;63776:495::-;63864:18;:23;63840:7;;63864:23;;:28;;63860:69;;-1:-1:-1;63916:1:0;;63776:495;-1:-1:-1;63776:495:0:o;63860:69::-;63962:15;63945:33;;:7;:33;;;63941:99;;;64012:15;63995:33;;63941:99;64050:47;;;;;;;;64079:18;64050:47;;;;;;;;;;;;;;;;;-1:-1:-1;;;64050:47:0;;;;;;;;-1:-1:-1;;;64050:47:0;;;;;;;-1:-1:-1;;;64050:47:0;;-1:-1:-1;;;;;64050:47:0;;;;;64129:110;;-1:-1:-1;;;64129:110:0;;64050:47;;-1:-1:-1;;64129:13:0;-1:-1:-1;;;;;64129:26:0;;;;:110;;64050:47;;64190:7;;64079:18;64129:110;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;-1:-1:-1;64108:131:0;63776:495;-1:-1:-1;;;;63776:495:0:o;24559:649::-;24983:23;25009:69;25037:4;25009:69;;;;;;;;;;;;;;;;;25017:5;-1:-1:-1;;;;;25009:27:0;;;:69;;;;;:::i;:::-;24983:95;;25097:10;:17;25118:1;25097:22;:56;;;;25134:10;25123:30;;;;;;;;;;;;:::i;:::-;25089:111;;;;-1:-1:-1;;;25089:111:0;;9163:2:1;25089:111:0;;;9145:21:1;9202:2;9182:18;;;9175:30;9241:34;9221:18;;;9214:62;-1:-1:-1;;;9292:18:1;;;9285:40;9342:19;;25089:111:0;8961:406:1;13725:229:0;13862:12;13894:52;13916:6;13924:4;13930:1;13933:12;13894:21;:52::i;:::-;13887:59;13725:229;-1:-1:-1;;;;13725:229:0:o;14811:455::-;14981:12;15039:5;15014:21;:30;;15006:81;;;;-1:-1:-1;;;15006:81:0;;9574:2:1;15006:81:0;;;9556:21:1;9613:2;9593:18;;;9586:30;9652:34;9632:18;;;9625:62;-1:-1:-1;;;9703:18:1;;;9696:36;9749:19;;15006:81:0;9372:402:1;15006:81:0;15099:12;15113:23;15140:6;-1:-1:-1;;;;;15140:11:0;15159:5;15166:4;15140:31;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;15098:73;;;;15189:69;15216:6;15224:7;15233:10;15245:12;15189:26;:69::i;:::-;15182:76;14811:455;-1:-1:-1;;;;;;;14811:455:0:o;17384:644::-;17569:12;17598:7;17594:427;;;17626:10;:17;17647:1;17626:22;17622:290;;-1:-1:-1;;;;;11265:19:0;;;17836:60;;;;-1:-1:-1;;;17836:60:0;;10528:2:1;17836:60:0;;;10510:21:1;10567:2;10547:18;;;10540:30;10606:31;10586:18;;;10579:59;10655:18;;17836:60:0;10326:353:1;17836:60:0;-1:-1:-1;17933:10:0;17926:17;;17594:427;17976:33;17984:10;17996:12;18731:17;;:21;18727:388;;18963:10;18957:17;19020:15;19007:10;19003:2;18999:19;18992:44;18727:388;19090:12;19083:20;;-1:-1:-1;;;19083:20:0;;;;;;;;:::i;785:123:1:-;870:12;863:5;859:24;852:5;849:35;839:63;;898:1;895;888:12;913:245;971:6;1024:2;1012:9;1003:7;999:23;995:32;992:52;;;1040:1;1037;1030:12;992:52;1079:9;1066:23;1098:30;1122:5;1098:30;:::i;1980:286::-;2039:6;2092:2;2080:9;2071:7;2067:23;2063:32;2060:52;;;2108:1;2105;2098:12;2060:52;2134:23;;-1:-1:-1;;;;;2186:31:1;;2176:42;;2166:70;;2232:1;2229;2222:12;3309:236;3389:1;3382:5;3379:12;3369:143;;3434:10;3429:3;3425:20;3422:1;3415:31;3469:4;3466:1;3459:15;3497:4;3494:1;3487:15;3369:143;3521:18;;3309:236::o;3550:801::-;3763:4;3805:3;3794:9;3790:19;3782:27;;3841:6;3835:13;3867:12;3921:2;3910:9;3906:18;3895:9;3888:37;3987:4;3975:9;3971:2;3967:18;3963:29;3956:4;3945:9;3941:20;3934:59;4055:6;4043:9;4039:2;4035:18;4031:31;4024:4;4013:9;4009:20;4002:61;4127:2;4115:9;4109:4;4105:20;4101:29;4094:4;4083:9;4079:20;4072:59;-1:-1:-1;;;;;4182:9:1;4177:3;4173:19;4169:60;4162:4;4151:9;4147:20;4140:90;4279:2;4271:6;4267:15;4261:3;4250:9;4246:19;4239:44;;;4292:53;4340:3;4329:9;4325:19;4317:6;4292:53;:::i;4356:136::-;4434:13;;4456:30;4434:13;4456:30;:::i;:::-;4356:136;;;:::o;4497:160::-;4574:13;;4627:4;4616:16;;4606:27;;4596:55;;4647:1;4644;4637:12;4662:163;4740:13;;4793:6;4782:18;;4772:29;;4762:57;;4815:1;4812;4805:12;4830:192;4909:13;;-1:-1:-1;;;;;4951:46:1;;4941:57;;4931:85;;5012:1;5009;5002:12;5027:1040;5136:6;5144;5188:9;5179:7;5175:23;5218:3;5214:2;5210:12;5207:32;;;5235:1;5232;5225:12;5207:32;5258:16;;;-1:-1:-1;5308:4:1;-1:-1:-1;;5290:16:1;;5286:27;5283:47;;;5326:1;5323;5316:12;5283:47;;5359:2;5353:9;5401:4;5393:6;5389:17;5472:6;5460:10;5457:22;5436:18;5424:10;5421:34;5418:62;5415:185;;;5522:10;5517:3;5513:20;5510:1;5503:31;5557:4;5554:1;5547:15;5585:4;5582:1;5575:15;5415:185;5616:2;5609:22;5655:48;5699:2;5684:18;;5655:48;:::i;:::-;5647:6;5640:64;5737:47;5780:2;5769:9;5765:18;5737:47;:::i;:::-;5732:2;5724:6;5720:15;5713:72;5818:48;5862:2;5851:9;5847:18;5818:48;:::i;:::-;5813:2;5805:6;5801:15;5794:73;5900:49;5944:3;5933:9;5929:19;5900:49;:::i;:::-;5895:2;5887:6;5883:15;5876:74;5984:51;6029:4;6018:9;6014:20;5984:51;:::i;:::-;5978:3;5970:6;5966:16;5959:77;6055:6;6045:16;;;5027:1040;;;;;:::o;7884:790::-;8100:4;8142:3;8131:9;8127:19;8119:27;;8165:12;8223:2;8214:6;8208:13;8204:22;8193:9;8186:41;8295:4;8287;8279:6;8275:17;8269:24;8265:35;8258:4;8247:9;8243:20;8236:65;8369:6;8361:4;8353:6;8349:17;8343:24;8339:37;8332:4;8321:9;8317:20;8310:67;8445:2;8437:4;8429:6;8425:17;8419:24;8415:33;8408:4;8397:9;8393:20;8386:63;-1:-1:-1;;;;;8509:4:1;8501:6;8497:17;8491:24;8487:65;8480:4;8469:9;8465:20;8458:95;8602:2;8594:6;8590:15;8584:3;8573:9;8569:19;8562:44;;8615:53;8663:3;8652:9;8648:19;8640:6;8615:53;:::i;8679:277::-;8746:6;8799:2;8787:9;8778:7;8774:23;8770:32;8767:52;;;8815:1;8812;8805:12;8767:52;8847:9;8841:16;8900:5;8893:13;8886:21;8879:5;8876:32;8866:60;;8922:1;8919;8912:12;9779:250;9864:1;9874:113;9888:6;9885:1;9882:13;9874:113;;;9964:11;;;9958:18;9945:11;;;9938:39;9910:2;9903:10;9874:113;;;-1:-1:-1;;10021:1:1;10003:16;;9996:27;9779:250::o;10034:287::-;10163:3;10201:6;10195:13;10217:66;10276:6;10271:3;10264:4;10256:6;10252:17;10217:66;:::i;:::-;10299:16;;;;;10034:287;-1:-1:-1;;10034:287:1:o;10684:396::-;10833:2;10822:9;10815:21;10796:4;10865:6;10859:13;10908:6;10903:2;10892:9;10888:18;10881:34;10924:79;10996:6;10991:2;10980:9;10976:18;10971:2;10963:6;10959:15;10924:79;:::i;:::-;11064:2;11043:15;-1:-1:-1;;11039:29:1;11024:45;;;;11071:2;11020:54;;10684:396;-1:-1:-1;;10684:396:1:o

Swarm Source

ipfs://3e83563f88a82a29459a2897a339664cf62a2402f63344844ed6be89cb471d4e

Block Transaction Difficulty Gas Used Reward
View All Blocks Produced

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

Validator Index Block Amount
View All Withdrawals

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

A contract address hosts a smart contract, which is a set of code stored on the blockchain that runs when predetermined conditions are met. Learn more about addresses in our Knowledge Base.