Contract 0xcfd11808c59b6739f0666dd1e0d4d8c59b6266cf

Txn Hash Method
Block
From
To
Value [Txn Fee]
0x3ba5b406644fe1733f0a8ceb60897720c148d3aa6e45649cb5078399c4efcb8aMint UP(pending)2022-12-09 0:53:5926 mins ago0xe37f7f523e8b72fb06c4d8ccf9631a74a8fcd414 IN 0xcfd11808c59b6739f0666dd1e0d4d8c59b6266cf1,000 BTT(Pending)
0x505e3a7bf152ef5991b20b8a280c454415c63ab4fe50cef1faeca4f5291a7128Mint UP142723082022-11-16 13:26:3922 days 11 hrs ago0xe37f7f523e8b72fb06c4d8ccf9631a74a8fcd414 IN  0xcfd11808c59b6739f0666dd1e0d4d8c59b6266cf10,000 BTT23.654301
0x789b3aef777d15fb52af1beb3b428a8409d9f8ea97fbeacf11e7d438e168fd54Mint UP136789892022-11-02 9:31:1936 days 15 hrs ago0xc8d150b2d8d985e11d428484cb14c057ce394288 IN  0xcfd11808c59b6739f0666dd1e0d4d8c59b6266cf0.11 BTT28.835601
0x2f7f5eb617b9c2691a83f360ce8e04f49c4df1bfe614aa739524319c1f731f0eMint UP136789842022-11-02 9:31:0936 days 15 hrs ago0xfac55168086cfe3284b5874ae2738a68ee6710d2 IN  0xcfd11808c59b6739f0666dd1e0d4d8c59b6266cf8 BTT28.835601
0xc7dfa49d7aaaaae771b8fe1259c16738e84e6f8b12858820f6630ab8ed420ab0Mint UP136789432022-11-02 9:29:4336 days 15 hrs ago0x7a70f91600490245b7d7e3f460587a1fd7f44eb2 IN  0xcfd11808c59b6739f0666dd1e0d4d8c59b6266cf1 BTT28.831965
0x3aea321043ccb34cc6e501ee6eabdfd9949860fdbf51da1fe2e9aa5f541c2d6dTransfer Ownersh...136789102022-11-02 9:28:3336 days 15 hrs ago0xf6fd1ff727ec6a678a35b993e85efe529aea7403 IN  0xcfd11808c59b6739f0666dd1e0d4d8c59b6266cf0 BTT8.7129
0x983988c11da0225f5d6737d2eb3ca2d5289136d47b4b471f7d113554d577d3640x60806040136785312022-11-02 9:15:3536 days 16 hrs ago0xf6fd1ff727ec6a678a35b993e85efe529aea7403 IN  Create: UPMintPublic0 BTT612.4431
[ Download CSV Export 
Latest 4 internal transactions
Parent Txn Hash Block From To Value
0x505e3a7bf152ef5991b20b8a280c454415c63ab4fe50cef1faeca4f5291a7128142723082022-11-16 13:26:3922 days 11 hrs ago 0xcfd11808c59b6739f0666dd1e0d4d8c59b6266cf 0x7d5a89c57bef19a9c893a600a5f2d58ffb81a63310,000 BTT
0x789b3aef777d15fb52af1beb3b428a8409d9f8ea97fbeacf11e7d438e168fd54136789892022-11-02 9:31:1936 days 15 hrs ago 0xcfd11808c59b6739f0666dd1e0d4d8c59b6266cf 0x7d5a89c57bef19a9c893a600a5f2d58ffb81a6330.11 BTT
0x2f7f5eb617b9c2691a83f360ce8e04f49c4df1bfe614aa739524319c1f731f0e136789842022-11-02 9:31:0936 days 15 hrs ago 0xcfd11808c59b6739f0666dd1e0d4d8c59b6266cf 0x7d5a89c57bef19a9c893a600a5f2d58ffb81a6338 BTT
0xc7dfa49d7aaaaae771b8fe1259c16738e84e6f8b12858820f6630ab8ed420ab0136789432022-11-02 9:29:4336 days 15 hrs ago 0xcfd11808c59b6739f0666dd1e0d4d8c59b6266cf 0x7d5a89c57bef19a9c893a600a5f2d58ffb81a6331 BTT
[ Download CSV Export 
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
UPMintPublic

Compiler Version
v0.8.7+commit.e28d00a7

Optimization Enabled:
No with 200 runs

Other Settings:
default evmVersion, MIT license

Contract Source Code (Solidity)

/**
 *Submitted for verification at bttcscan.com on 2022-11-02
*/

// File: @openzeppelin/contracts/utils/Address.sol


// OpenZeppelin Contracts (last updated v4.5.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
     * ====
     *
     * [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://diligence.consensys.net/posts/2019/09/stop-using-soliditys-transfer-now/[Learn more].
     *
     * IMPORTANT: because control is transferred to `recipient`, care must be
     * taken to not create reentrancy vulnerabilities. Consider using
     * {ReentrancyGuard} or the
     * https://solidity.readthedocs.io/en/v0.5.11/security-considerations.html#use-the-checks-effects-interactions-pattern[checks-effects-interactions pattern].
     */
    function sendValue(address payable recipient, uint256 amount) internal {
        require(address(this).balance >= amount, "Address: insufficient balance");

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

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

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

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

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

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

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

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

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

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

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

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

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

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

// File: @openzeppelin/contracts/utils/introspection/IERC165.sol


// OpenZeppelin Contracts v4.4.1 (utils/introspection/IERC165.sol)

pragma solidity ^0.8.0;

/**
 * @dev Interface of the ERC165 standard, as defined in the
 * https://eips.ethereum.org/EIPS/eip-165[EIP].
 *
 * Implementers can declare support of contract interfaces, which can then be
 * queried by others ({ERC165Checker}).
 *
 * For an implementation, see {ERC165}.
 */
interface IERC165 {
    /**
     * @dev Returns true if this contract implements the interface defined by
     * `interfaceId`. See the corresponding
     * https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified[EIP section]
     * to learn more about how these ids are created.
     *
     * This function call must use less than 30 000 gas.
     */
    function supportsInterface(bytes4 interfaceId) external view returns (bool);
}

// File: @openzeppelin/contracts/utils/introspection/ERC165.sol


// OpenZeppelin Contracts v4.4.1 (utils/introspection/ERC165.sol)

pragma solidity ^0.8.0;


/**
 * @dev Implementation of the {IERC165} interface.
 *
 * Contracts that want to implement ERC165 should inherit from this contract and override {supportsInterface} to check
 * for the additional interface id that will be supported. For example:
 *
 * ```solidity
 * function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) {
 *     return interfaceId == type(MyInterface).interfaceId || super.supportsInterface(interfaceId);
 * }
 * ```
 *
 * Alternatively, {ERC165Storage} provides an easier to use but more expensive implementation.
 */
abstract contract ERC165 is IERC165 {
    /**
     * @dev See {IERC165-supportsInterface}.
     */
    function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) {
        return interfaceId == type(IERC165).interfaceId;
    }
}

// File: @openzeppelin/contracts/utils/Strings.sol


// OpenZeppelin Contracts v4.4.1 (utils/Strings.sol)

pragma solidity ^0.8.0;

/**
 * @dev String operations.
 */
library Strings {
    bytes16 private constant _HEX_SYMBOLS = "0123456789abcdef";

    /**
     * @dev Converts a `uint256` to its ASCII `string` decimal representation.
     */
    function toString(uint256 value) internal pure returns (string memory) {
        // Inspired by OraclizeAPI's implementation - MIT licence
        // https://github.com/oraclize/ethereum-api/blob/b42146b063c7d6ee1358846c198246239e9360e8/oraclizeAPI_0.4.25.sol

        if (value == 0) {
            return "0";
        }
        uint256 temp = value;
        uint256 digits;
        while (temp != 0) {
            digits++;
            temp /= 10;
        }
        bytes memory buffer = new bytes(digits);
        while (value != 0) {
            digits -= 1;
            buffer[digits] = bytes1(uint8(48 + uint256(value % 10)));
            value /= 10;
        }
        return string(buffer);
    }

    /**
     * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation.
     */
    function toHexString(uint256 value) internal pure returns (string memory) {
        if (value == 0) {
            return "0x00";
        }
        uint256 temp = value;
        uint256 length = 0;
        while (temp != 0) {
            length++;
            temp >>= 8;
        }
        return toHexString(value, length);
    }

    /**
     * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation with fixed length.
     */
    function toHexString(uint256 value, uint256 length) internal pure returns (string memory) {
        bytes memory buffer = new bytes(2 * length + 2);
        buffer[0] = "0";
        buffer[1] = "x";
        for (uint256 i = 2 * length + 1; i > 1; --i) {
            buffer[i] = _HEX_SYMBOLS[value & 0xf];
            value >>= 4;
        }
        require(value == 0, "Strings: hex length insufficient");
        return string(buffer);
    }
}

// File: @openzeppelin/contracts/access/IAccessControl.sol


// OpenZeppelin Contracts v4.4.1 (access/IAccessControl.sol)

pragma solidity ^0.8.0;

/**
 * @dev External interface of AccessControl declared to support ERC165 detection.
 */
interface IAccessControl {
    /**
     * @dev Emitted when `newAdminRole` is set as ``role``'s admin role, replacing `previousAdminRole`
     *
     * `DEFAULT_ADMIN_ROLE` is the starting admin for all roles, despite
     * {RoleAdminChanged} not being emitted signaling this.
     *
     * _Available since v3.1._
     */
    event RoleAdminChanged(bytes32 indexed role, bytes32 indexed previousAdminRole, bytes32 indexed newAdminRole);

    /**
     * @dev Emitted when `account` is granted `role`.
     *
     * `sender` is the account that originated the contract call, an admin role
     * bearer except when using {AccessControl-_setupRole}.
     */
    event RoleGranted(bytes32 indexed role, address indexed account, address indexed sender);

    /**
     * @dev Emitted when `account` is revoked `role`.
     *
     * `sender` is the account that originated the contract call:
     *   - if using `revokeRole`, it is the admin role bearer
     *   - if using `renounceRole`, it is the role bearer (i.e. `account`)
     */
    event RoleRevoked(bytes32 indexed role, address indexed account, address indexed sender);

    /**
     * @dev Returns `true` if `account` has been granted `role`.
     */
    function hasRole(bytes32 role, address account) external view returns (bool);

    /**
     * @dev Returns the admin role that controls `role`. See {grantRole} and
     * {revokeRole}.
     *
     * To change a role's admin, use {AccessControl-_setRoleAdmin}.
     */
    function getRoleAdmin(bytes32 role) external view returns (bytes32);

    /**
     * @dev Grants `role` to `account`.
     *
     * If `account` had not been already granted `role`, emits a {RoleGranted}
     * event.
     *
     * Requirements:
     *
     * - the caller must have ``role``'s admin role.
     */
    function grantRole(bytes32 role, address account) external;

    /**
     * @dev Revokes `role` from `account`.
     *
     * If `account` had been granted `role`, emits a {RoleRevoked} event.
     *
     * Requirements:
     *
     * - the caller must have ``role``'s admin role.
     */
    function revokeRole(bytes32 role, address account) external;

    /**
     * @dev Revokes `role` from the calling account.
     *
     * Roles are often managed via {grantRole} and {revokeRole}: this function's
     * purpose is to provide a mechanism for accounts to lose their privileges
     * if they are compromised (such as when a trusted device is misplaced).
     *
     * If the calling account had been granted `role`, emits a {RoleRevoked}
     * event.
     *
     * Requirements:
     *
     * - the caller must be `account`.
     */
    function renounceRole(bytes32 role, address account) external;
}

// File: @openzeppelin/contracts/token/ERC20/IERC20.sol


// OpenZeppelin Contracts (last updated v4.6.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);
}

// File: @openzeppelin/contracts/token/ERC20/utils/SafeERC20.sol


// OpenZeppelin Contracts v4.4.1 (token/ERC20/utils/SafeERC20.sol)

pragma solidity ^0.8.0;



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

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

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

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

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

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

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

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

// File: contracts/Helpers/Safe.sol



pragma solidity ^0.8.4;


abstract contract Safe {
  using SafeERC20 for IERC20;

  address target;

  constructor(address _target) {
    target = _target;
  }

  function _withdrawFunds() internal returns (bool) {
    (bool sent, ) = address(target).call{value: address(this).balance}("");
    require(sent, "Safe: Failed to send Ether");
    return sent;
  }

  function _withdrawFundsERC20(address tokenAddress) internal returns (bool) {
    IERC20 token = IERC20(tokenAddress);
    token.safeTransfer(target, token.balanceOf(address(this)));
    return true;
  }
}

// File: @openzeppelin/contracts/token/ERC20/extensions/IERC20Metadata.sol


// OpenZeppelin Contracts v4.4.1 (token/ERC20/extensions/IERC20Metadata.sol)

pragma solidity ^0.8.0;


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

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

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

// File: @openzeppelin/contracts/security/ReentrancyGuard.sol


// OpenZeppelin Contracts v4.4.1 (security/ReentrancyGuard.sol)

pragma solidity ^0.8.0;

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

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

    uint256 private _status;

    constructor() {
        _status = _NOT_ENTERED;
    }

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

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

        _;

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

// File: @openzeppelin/contracts/utils/Context.sol


// OpenZeppelin Contracts v4.4.1 (utils/Context.sol)

pragma solidity ^0.8.0;

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

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

// File: @openzeppelin/contracts/access/AccessControl.sol


// OpenZeppelin Contracts (last updated v4.6.0) (access/AccessControl.sol)

pragma solidity ^0.8.0;





/**
 * @dev Contract module that allows children to implement role-based access
 * control mechanisms. This is a lightweight version that doesn't allow enumerating role
 * members except through off-chain means by accessing the contract event logs. Some
 * applications may benefit from on-chain enumerability, for those cases see
 * {AccessControlEnumerable}.
 *
 * Roles are referred to by their `bytes32` identifier. These should be exposed
 * in the external API and be unique. The best way to achieve this is by
 * using `public constant` hash digests:
 *
 * ```
 * bytes32 public constant MY_ROLE = keccak256("MY_ROLE");
 * ```
 *
 * Roles can be used to represent a set of permissions. To restrict access to a
 * function call, use {hasRole}:
 *
 * ```
 * function foo() public {
 *     require(hasRole(MY_ROLE, msg.sender));
 *     ...
 * }
 * ```
 *
 * Roles can be granted and revoked dynamically via the {grantRole} and
 * {revokeRole} functions. Each role has an associated admin role, and only
 * accounts that have a role's admin role can call {grantRole} and {revokeRole}.
 *
 * By default, the admin role for all roles is `DEFAULT_ADMIN_ROLE`, which means
 * that only accounts with this role will be able to grant or revoke other
 * roles. More complex role relationships can be created by using
 * {_setRoleAdmin}.
 *
 * WARNING: The `DEFAULT_ADMIN_ROLE` is also its own admin: it has permission to
 * grant and revoke this role. Extra precautions should be taken to secure
 * accounts that have been granted it.
 */
abstract contract AccessControl is Context, IAccessControl, ERC165 {
    struct RoleData {
        mapping(address => bool) members;
        bytes32 adminRole;
    }

    mapping(bytes32 => RoleData) private _roles;

    bytes32 public constant DEFAULT_ADMIN_ROLE = 0x00;

    /**
     * @dev Modifier that checks that an account has a specific role. Reverts
     * with a standardized message including the required role.
     *
     * The format of the revert reason is given by the following regular expression:
     *
     *  /^AccessControl: account (0x[0-9a-f]{40}) is missing role (0x[0-9a-f]{64})$/
     *
     * _Available since v4.1._
     */
    modifier onlyRole(bytes32 role) {
        _checkRole(role);
        _;
    }

    /**
     * @dev See {IERC165-supportsInterface}.
     */
    function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) {
        return interfaceId == type(IAccessControl).interfaceId || super.supportsInterface(interfaceId);
    }

    /**
     * @dev Returns `true` if `account` has been granted `role`.
     */
    function hasRole(bytes32 role, address account) public view virtual override returns (bool) {
        return _roles[role].members[account];
    }

    /**
     * @dev Revert with a standard message if `_msgSender()` is missing `role`.
     * Overriding this function changes the behavior of the {onlyRole} modifier.
     *
     * Format of the revert message is described in {_checkRole}.
     *
     * _Available since v4.6._
     */
    function _checkRole(bytes32 role) internal view virtual {
        _checkRole(role, _msgSender());
    }

    /**
     * @dev Revert with a standard message if `account` is missing `role`.
     *
     * The format of the revert reason is given by the following regular expression:
     *
     *  /^AccessControl: account (0x[0-9a-f]{40}) is missing role (0x[0-9a-f]{64})$/
     */
    function _checkRole(bytes32 role, address account) internal view virtual {
        if (!hasRole(role, account)) {
            revert(
                string(
                    abi.encodePacked(
                        "AccessControl: account ",
                        Strings.toHexString(uint160(account), 20),
                        " is missing role ",
                        Strings.toHexString(uint256(role), 32)
                    )
                )
            );
        }
    }

    /**
     * @dev Returns the admin role that controls `role`. See {grantRole} and
     * {revokeRole}.
     *
     * To change a role's admin, use {_setRoleAdmin}.
     */
    function getRoleAdmin(bytes32 role) public view virtual override returns (bytes32) {
        return _roles[role].adminRole;
    }

    /**
     * @dev Grants `role` to `account`.
     *
     * If `account` had not been already granted `role`, emits a {RoleGranted}
     * event.
     *
     * Requirements:
     *
     * - the caller must have ``role``'s admin role.
     */
    function grantRole(bytes32 role, address account) public virtual override onlyRole(getRoleAdmin(role)) {
        _grantRole(role, account);
    }

    /**
     * @dev Revokes `role` from `account`.
     *
     * If `account` had been granted `role`, emits a {RoleRevoked} event.
     *
     * Requirements:
     *
     * - the caller must have ``role``'s admin role.
     */
    function revokeRole(bytes32 role, address account) public virtual override onlyRole(getRoleAdmin(role)) {
        _revokeRole(role, account);
    }

    /**
     * @dev Revokes `role` from the calling account.
     *
     * Roles are often managed via {grantRole} and {revokeRole}: this function's
     * purpose is to provide a mechanism for accounts to lose their privileges
     * if they are compromised (such as when a trusted device is misplaced).
     *
     * If the calling account had been revoked `role`, emits a {RoleRevoked}
     * event.
     *
     * Requirements:
     *
     * - the caller must be `account`.
     */
    function renounceRole(bytes32 role, address account) public virtual override {
        require(account == _msgSender(), "AccessControl: can only renounce roles for self");

        _revokeRole(role, account);
    }

    /**
     * @dev Grants `role` to `account`.
     *
     * If `account` had not been already granted `role`, emits a {RoleGranted}
     * event. Note that unlike {grantRole}, this function doesn't perform any
     * checks on the calling account.
     *
     * [WARNING]
     * ====
     * This function should only be called from the constructor when setting
     * up the initial roles for the system.
     *
     * Using this function in any other way is effectively circumventing the admin
     * system imposed by {AccessControl}.
     * ====
     *
     * NOTE: This function is deprecated in favor of {_grantRole}.
     */
    function _setupRole(bytes32 role, address account) internal virtual {
        _grantRole(role, account);
    }

    /**
     * @dev Sets `adminRole` as ``role``'s admin role.
     *
     * Emits a {RoleAdminChanged} event.
     */
    function _setRoleAdmin(bytes32 role, bytes32 adminRole) internal virtual {
        bytes32 previousAdminRole = getRoleAdmin(role);
        _roles[role].adminRole = adminRole;
        emit RoleAdminChanged(role, previousAdminRole, adminRole);
    }

    /**
     * @dev Grants `role` to `account`.
     *
     * Internal function without access restriction.
     */
    function _grantRole(bytes32 role, address account) internal virtual {
        if (!hasRole(role, account)) {
            _roles[role].members[account] = true;
            emit RoleGranted(role, account, _msgSender());
        }
    }

    /**
     * @dev Revokes `role` from `account`.
     *
     * Internal function without access restriction.
     */
    function _revokeRole(bytes32 role, address account) internal virtual {
        if (hasRole(role, account)) {
            _roles[role].members[account] = false;
            emit RoleRevoked(role, account, _msgSender());
        }
    }
}

// File: @openzeppelin/contracts/token/ERC20/ERC20.sol


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

pragma solidity ^0.8.0;




/**
 * @dev Implementation of the {IERC20} interface.
 *
 * This implementation is agnostic to the way tokens are created. This means
 * that a supply mechanism has to be added in a derived contract using {_mint}.
 * For a generic mechanism see {ERC20PresetMinterPauser}.
 *
 * TIP: For a detailed writeup see our guide
 * https://forum.zeppelin.solutions/t/how-to-implement-erc20-supply-mechanisms/226[How
 * to implement supply mechanisms].
 *
 * We have followed general OpenZeppelin Contracts guidelines: functions revert
 * instead returning `false` on failure. This behavior is nonetheless
 * conventional and does not conflict with the expectations of ERC20
 * applications.
 *
 * Additionally, an {Approval} event is emitted on calls to {transferFrom}.
 * This allows applications to reconstruct the allowance for all accounts just
 * by listening to said events. Other implementations of the EIP may not emit
 * these events, as it isn't required by the specification.
 *
 * Finally, the non-standard {decreaseAllowance} and {increaseAllowance}
 * functions have been added to mitigate the well-known issues around setting
 * allowances. See {IERC20-approve}.
 */
contract ERC20 is Context, IERC20, IERC20Metadata {
    mapping(address => uint256) private _balances;

    mapping(address => mapping(address => uint256)) private _allowances;

    uint256 private _totalSupply;

    string private _name;
    string private _symbol;

    /**
     * @dev Sets the values for {name} and {symbol}.
     *
     * The default value of {decimals} is 18. To select a different value for
     * {decimals} you should overload it.
     *
     * All two of these values are immutable: they can only be set once during
     * construction.
     */
    constructor(string memory name_, string memory symbol_) {
        _name = name_;
        _symbol = symbol_;
    }

    /**
     * @dev Returns the name of the token.
     */
    function name() public view virtual override returns (string memory) {
        return _name;
    }

    /**
     * @dev Returns the symbol of the token, usually a shorter version of the
     * name.
     */
    function symbol() public view virtual override returns (string memory) {
        return _symbol;
    }

    /**
     * @dev Returns the number of decimals used to get its user representation.
     * For example, if `decimals` equals `2`, a balance of `505` tokens should
     * be displayed to a user as `5.05` (`505 / 10 ** 2`).
     *
     * Tokens usually opt for a value of 18, imitating the relationship between
     * Ether and Wei. This is the value {ERC20} uses, unless this function is
     * overridden;
     *
     * NOTE: This information is only used for _display_ purposes: it in
     * no way affects any of the arithmetic of the contract, including
     * {IERC20-balanceOf} and {IERC20-transfer}.
     */
    function decimals() public view virtual override returns (uint8) {
        return 18;
    }

    /**
     * @dev See {IERC20-totalSupply}.
     */
    function totalSupply() public view virtual override returns (uint256) {
        return _totalSupply;
    }

    /**
     * @dev See {IERC20-balanceOf}.
     */
    function balanceOf(address account) public view virtual override returns (uint256) {
        return _balances[account];
    }

    /**
     * @dev See {IERC20-transfer}.
     *
     * Requirements:
     *
     * - `to` cannot be the zero address.
     * - the caller must have a balance of at least `amount`.
     */
    function transfer(address to, uint256 amount) public virtual override returns (bool) {
        address owner = _msgSender();
        _transfer(owner, to, amount);
        return true;
    }

    /**
     * @dev See {IERC20-allowance}.
     */
    function allowance(address owner, address spender) public view virtual override returns (uint256) {
        return _allowances[owner][spender];
    }

    /**
     * @dev See {IERC20-approve}.
     *
     * NOTE: If `amount` is the maximum `uint256`, the allowance is not updated on
     * `transferFrom`. This is semantically equivalent to an infinite approval.
     *
     * Requirements:
     *
     * - `spender` cannot be the zero address.
     */
    function approve(address spender, uint256 amount) public virtual override returns (bool) {
        address owner = _msgSender();
        _approve(owner, spender, amount);
        return true;
    }

    /**
     * @dev See {IERC20-transferFrom}.
     *
     * Emits an {Approval} event indicating the updated allowance. This is not
     * required by the EIP. See the note at the beginning of {ERC20}.
     *
     * NOTE: Does not update the allowance if the current allowance
     * is the maximum `uint256`.
     *
     * Requirements:
     *
     * - `from` and `to` cannot be the zero address.
     * - `from` must have a balance of at least `amount`.
     * - the caller must have allowance for ``from``'s tokens of at least
     * `amount`.
     */
    function transferFrom(
        address from,
        address to,
        uint256 amount
    ) public virtual override returns (bool) {
        address spender = _msgSender();
        _spendAllowance(from, spender, amount);
        _transfer(from, to, amount);
        return true;
    }

    /**
     * @dev Atomically increases the allowance granted to `spender` by the caller.
     *
     * This is an alternative to {approve} that can be used as a mitigation for
     * problems described in {IERC20-approve}.
     *
     * Emits an {Approval} event indicating the updated allowance.
     *
     * Requirements:
     *
     * - `spender` cannot be the zero address.
     */
    function increaseAllowance(address spender, uint256 addedValue) public virtual returns (bool) {
        address owner = _msgSender();
        _approve(owner, spender, allowance(owner, spender) + addedValue);
        return true;
    }

    /**
     * @dev Atomically decreases the allowance granted to `spender` by the caller.
     *
     * This is an alternative to {approve} that can be used as a mitigation for
     * problems described in {IERC20-approve}.
     *
     * Emits an {Approval} event indicating the updated allowance.
     *
     * Requirements:
     *
     * - `spender` cannot be the zero address.
     * - `spender` must have allowance for the caller of at least
     * `subtractedValue`.
     */
    function decreaseAllowance(address spender, uint256 subtractedValue) public virtual returns (bool) {
        address owner = _msgSender();
        uint256 currentAllowance = allowance(owner, spender);
        require(currentAllowance >= subtractedValue, "ERC20: decreased allowance below zero");
        unchecked {
            _approve(owner, spender, currentAllowance - subtractedValue);
        }

        return true;
    }

    /**
     * @dev Moves `amount` of tokens from `sender` to `recipient`.
     *
     * This internal function is equivalent to {transfer}, and can be used to
     * e.g. implement automatic token fees, slashing mechanisms, etc.
     *
     * Emits a {Transfer} event.
     *
     * Requirements:
     *
     * - `from` cannot be the zero address.
     * - `to` cannot be the zero address.
     * - `from` must have a balance of at least `amount`.
     */
    function _transfer(
        address from,
        address to,
        uint256 amount
    ) internal virtual {
        require(from != address(0), "ERC20: transfer from the zero address");
        require(to != address(0), "ERC20: transfer to the zero address");

        _beforeTokenTransfer(from, to, amount);

        uint256 fromBalance = _balances[from];
        require(fromBalance >= amount, "ERC20: transfer amount exceeds balance");
        unchecked {
            _balances[from] = fromBalance - amount;
        }
        _balances[to] += amount;

        emit Transfer(from, to, amount);

        _afterTokenTransfer(from, to, amount);
    }

    /** @dev Creates `amount` tokens and assigns them to `account`, increasing
     * the total supply.
     *
     * Emits a {Transfer} event with `from` set to the zero address.
     *
     * Requirements:
     *
     * - `account` cannot be the zero address.
     */
    function _mint(address account, uint256 amount) internal virtual {
        require(account != address(0), "ERC20: mint to the zero address");

        _beforeTokenTransfer(address(0), account, amount);

        _totalSupply += amount;
        _balances[account] += amount;
        emit Transfer(address(0), account, amount);

        _afterTokenTransfer(address(0), account, amount);
    }

    /**
     * @dev Destroys `amount` tokens from `account`, reducing the
     * total supply.
     *
     * Emits a {Transfer} event with `to` set to the zero address.
     *
     * Requirements:
     *
     * - `account` cannot be the zero address.
     * - `account` must have at least `amount` tokens.
     */
    function _burn(address account, uint256 amount) internal virtual {
        require(account != address(0), "ERC20: burn from the zero address");

        _beforeTokenTransfer(account, address(0), amount);

        uint256 accountBalance = _balances[account];
        require(accountBalance >= amount, "ERC20: burn amount exceeds balance");
        unchecked {
            _balances[account] = accountBalance - amount;
        }
        _totalSupply -= amount;

        emit Transfer(account, address(0), amount);

        _afterTokenTransfer(account, address(0), amount);
    }

    /**
     * @dev Sets `amount` as the allowance of `spender` over the `owner` s tokens.
     *
     * This internal function is equivalent to `approve`, and can be used to
     * e.g. set automatic allowances for certain subsystems, etc.
     *
     * Emits an {Approval} event.
     *
     * Requirements:
     *
     * - `owner` cannot be the zero address.
     * - `spender` cannot be the zero address.
     */
    function _approve(
        address owner,
        address spender,
        uint256 amount
    ) internal virtual {
        require(owner != address(0), "ERC20: approve from the zero address");
        require(spender != address(0), "ERC20: approve to the zero address");

        _allowances[owner][spender] = amount;
        emit Approval(owner, spender, amount);
    }

    /**
     * @dev Updates `owner` s allowance for `spender` based on spent `amount`.
     *
     * Does not update the allowance amount in case of infinite allowance.
     * Revert if not enough allowance is available.
     *
     * Might emit an {Approval} event.
     */
    function _spendAllowance(
        address owner,
        address spender,
        uint256 amount
    ) internal virtual {
        uint256 currentAllowance = allowance(owner, spender);
        if (currentAllowance != type(uint256).max) {
            require(currentAllowance >= amount, "ERC20: insufficient allowance");
            unchecked {
                _approve(owner, spender, currentAllowance - amount);
            }
        }
    }

    /**
     * @dev Hook that is called before any transfer of tokens. This includes
     * minting and burning.
     *
     * Calling conditions:
     *
     * - when `from` and `to` are both non-zero, `amount` of ``from``'s tokens
     * will be transferred to `to`.
     * - when `from` is zero, `amount` tokens will be minted for `to`.
     * - when `to` is zero, `amount` of ``from``'s tokens will be burned.
     * - `from` and `to` are never both zero.
     *
     * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks].
     */
    function _beforeTokenTransfer(
        address from,
        address to,
        uint256 amount
    ) internal virtual {}

    /**
     * @dev Hook that is called after any transfer of tokens. This includes
     * minting and burning.
     *
     * Calling conditions:
     *
     * - when `from` and `to` are both non-zero, `amount` of ``from``'s tokens
     * has been transferred to `to`.
     * - when `from` is zero, `amount` tokens have been minted for `to`.
     * - when `to` is zero, `amount` of ``from``'s tokens have been burned.
     * - `from` and `to` are never both zero.
     *
     * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks].
     */
    function _afterTokenTransfer(
        address from,
        address to,
        uint256 amount
    ) internal virtual {}
}

// File: contracts/UP.sol



pragma solidity ^0.8.4;



contract UP is ERC20, AccessControl {
  bytes32 public constant MINT_ROLE = keccak256("MINT_ROLE");
  bytes32 public constant LEGACY_MINT_ROLE = keccak256("LEGACY_MINT_ROLE");
  address public UP_CONTROLLER = address(0);

  event SetUPController(address _setter, address _newController);

  modifier onlyMint() {
    require(hasRole(MINT_ROLE, msg.sender), "UP: ONLY_MINT");
    _;
  }

  modifier onlyAdmin() {
    require(hasRole(DEFAULT_ADMIN_ROLE, msg.sender), "UP: ONLY_ADMIN");
    _;
  }

  constructor() ERC20("UPbttc", "UPbttc") {
    _setupRole(DEFAULT_ADMIN_ROLE, msg.sender);
  }

  /// @notice UPv1 legacy
  receive() external payable {}

  function burn(uint256 amount) public {
    _burn(_msgSender(), amount);
  }

  function burnFrom(address account, uint256 amount) public {
    _spendAllowance(account, _msgSender(), amount);
    _burn(account, amount);
  }

  /// @notice Retrocompatible function with v1
  function justBurn(uint256 amount) external {
    burn(amount);
  }

  /// @notice Mints token and have logic for supporting legacy mint logic
  function mint(address to, uint256 amount) public payable onlyMint returns (bool) {
    /// LEGACY_MINT_ROLE retrocompatible with UPv1
    if (hasRole(LEGACY_MINT_ROLE, msg.sender) && UP_CONTROLLER != address(0)) {
      (bool success, ) = UP_CONTROLLER.call{value: msg.value}(
        abi.encodeWithSignature(("mintUP(address)"), to)
      );
      require(success, "UP: LEGACY_MINT_FAILED");
    } else {
      _mint(to, amount);
    }
    /// Legacy UPv1 return
    return true;
  }

  /// @notice Sets a controller address that will receive the funds from LEGACY_MINT_ROLE
  function setController(address newController) public onlyAdmin {
    UP_CONTROLLER = newController;
    emit SetUPController(msg.sender, newController);
  }

  function withdrawFunds() public {
    require(UP_CONTROLLER != address(0));
    (bool success, ) = UP_CONTROLLER.call{value: address(this).balance}("");
    require(success);
  }
}

// File: @openzeppelin/contracts/security/Pausable.sol


// OpenZeppelin Contracts v4.4.1 (security/Pausable.sol)

pragma solidity ^0.8.0;


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

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

    bool private _paused;

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

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

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

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

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

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

// File: contracts/UPController.sol



pragma solidity ^0.8.4;





/// @title UP Controller
/// @author dxffffff & A Fistful of Stray Cat Hair
/// @notice This controller back up the UP token and has the logic for borrowing tokens.

contract UPController is AccessControl, Safe, Pausable {
  bytes32 public constant REBALANCER_ROLE = keccak256("REBALANCER_ROLE");
  bytes32 public constant REDEEMER_ROLE = keccak256("REDEEMER_ROLE");

  address payable public UP_TOKEN = payable(address(0));
  uint256 public nativeBorrowed = 0;
  uint256 public upBorrowed = 0;

  event SyntheticMint(address _from, uint256 _amount, uint256 _newUpBorrowed);
  event BorrowNative(address _from, uint256 _amount, uint256 _newNativeBorrowed);
  event Repay(uint256 _nativeAmount, uint256 _upAmount);
  event Redeem(uint256 _upAmount, uint256 _redeemAmount);

  modifier onlyRebalancer() {
    require(hasRole(REBALANCER_ROLE, msg.sender), "UPController: ONLY_REBALANCER");
    _;
  }

  modifier onlyAdmin() {
    require(hasRole(DEFAULT_ADMIN_ROLE, msg.sender), "UPController: ONLY_ADMIN");
    _;
  }

  modifier onlyRedeemer() {
    require(hasRole(REDEEMER_ROLE, msg.sender), "UPController: ONLY_REDEEMER");
    _;
  }

  constructor(address _UP, address _fundsTarget) Safe(_fundsTarget) {
    require(_UP != address(0), "UPController: Invalid UP address");
    UP_TOKEN = payable(_UP);
    _setupRole(DEFAULT_ADMIN_ROLE, msg.sender);
  }

  receive() external payable {}

  /// @notice Returns price of UP token based on its reserves
  function getVirtualPrice() public view returns (uint256) {
    if (getNativeBalance() == 0) return 0;
    return ((getNativeBalance() * 1e18) / actualTotalSupply());
  }

  /// @notice Returns price of UP token based on its reserves minus amount sent to the contract
  function getVirtualPrice(uint256 sentValue) public view returns (uint256) {
    if (getNativeBalance() == 0) return 0;
    uint256 nativeBalance = getNativeBalance() - sentValue;
    return ((nativeBalance * 1e18) / actualTotalSupply());
  }

  /// @notice Computed the actual native balances of the contract
  function getNativeBalance() public view returns (uint256) {
    return address(this).balance + nativeBorrowed;
  }

  /// @notice Computed total supply of UP token
  function actualTotalSupply() public view returns (uint256) {
    return UP(UP_TOKEN).totalSupply() - upBorrowed;
  }

  /// @notice Borrows native token from the back up reserves
  function borrowNative(uint256 _borrowAmount, address _to) public onlyRebalancer whenNotPaused {
    require(address(this).balance >= _borrowAmount, "UPController: NOT_ENOUGH_BALANCE");
    (bool success, ) = _to.call{value: _borrowAmount}("");
    nativeBorrowed += _borrowAmount;
    require(success, "UPController: BORROW_NATIVE_FAILED");
    emit BorrowNative(_to, _borrowAmount, nativeBorrowed);
  }

  /// @notice Borrows UP token minting it
  function borrowUP(uint256 _borrowAmount, address _to) public onlyRebalancer whenNotPaused {
    upBorrowed += _borrowAmount;
    UP(UP_TOKEN).mint(_to, _borrowAmount);
    emit SyntheticMint(msg.sender, _borrowAmount, upBorrowed);
  }

  function mintSyntheticUP(uint256 _mintAmount, address _to) public onlyRebalancer whenNotPaused {
    borrowUP(_mintAmount, _to);
  }

  /// @notice Mints UP based on virtual price - UPv1 logic
  function mintUP(address to) external payable whenNotPaused {
    require(msg.sender == UP_TOKEN, "UPController: NON_UP_CONTRACT");
    uint256 mintAmount = (msg.value * 1e18) / getVirtualPrice(msg.value);
    UP(UP_TOKEN).mint(to, mintAmount);
  }

  /// @notice Allows to return back borrowed amounts to the controller
  function repay(uint256 upAmount) public payable onlyRebalancer whenNotPaused {
    UP(UP_TOKEN).burnFrom(msg.sender, upAmount);
    upBorrowed -= upAmount <= upBorrowed ? upAmount : upBorrowed;
    nativeBorrowed -= msg.value <= nativeBorrowed ? msg.value : nativeBorrowed;
    emit Repay(msg.value, upAmount);
  }

  /// @notice Swaps UP token by native token
  function redeem(uint256 upAmount) public onlyRedeemer whenNotPaused {
    require(upAmount > 0, "UPController: AMOUNT_EQ_0");
    uint256 redeemAmount = (getVirtualPrice() * upAmount) / 1e18;
    UP(UP_TOKEN).burnFrom(msg.sender, upAmount);
    (bool success, ) = msg.sender.call{value: redeemAmount}("");
    require(success, "UPController: REDEEM_FAILED");
    emit Redeem(upAmount, redeemAmount);
  }

  function pause() public onlyAdmin {
    _pause();
  }

  function unpause() public onlyAdmin {
    _unpause();
  }

  function withdrawFunds() public onlyAdmin returns (bool) {
    return _withdrawFunds();
  }

  function withdrawFundsERC20(address tokenAddress) public onlyAdmin returns (bool) {
    return _withdrawFundsERC20(tokenAddress);
  }
}

// File: @openzeppelin/contracts/access/Ownable.sol


// OpenZeppelin Contracts v4.4.1 (access/Ownable.sol)

pragma solidity ^0.8.0;


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

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

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

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

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

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

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

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

// File: contracts/UPMintPublic.sol



pragma solidity ^0.8.4;







/// @title UP Public Mint
/// @author dxffffff & A Fistful of Stray Cat Hair
/// @notice This contract is for the public minting of UP token, allowing users to deposit native tokens and receive UP tokens.

contract UPMintPublic is Ownable, Pausable, ReentrancyGuard, Safe {
  uint256 public mintRate; // with 2 decimals - 150 = 1.50%
  address payable public UP_TOKEN = payable(address(0));
  address payable public UP_CONTROLLER = payable(address(0));

  event NewPublicMintRate(uint256 _newMintRate);
  event PublicMint(
    address indexed _from,
    address _to,
    uint256 _amount,
    uint256 _price,
    uint256 _value
  );
  event UpdateController(address _upController);

  constructor(
    address _UP,
    address _UPController,
    uint256 _mintRate,
    address _targetFunds
  ) Safe(_targetFunds) {
    require(_UP != address(0), "UPMintPublic: Invalid UP address");
    UP_TOKEN = payable(_UP);
    UP_CONTROLLER = payable(_UPController);
    setMintRate(_mintRate);
  }

  /// @notice Payable function that mints UP at the mint rate, deposits the native tokens to the UP Controller, Sends UP to the Msg.sender
  /// @param to Destination address for minted tokens
  function mintUP(address to) public payable virtual whenNotPaused nonReentrant {
    require(msg.value > 0, "UPMintPublic: INVALID_PAYABLE_AMOUNT");
    uint256 currentPrice = UPController(UP_CONTROLLER).getVirtualPrice();
    require(currentPrice > 0, "UPMintPublic: UP_PRICE_0");
    uint256 discountedAmount = msg.value - ((msg.value * (mintRate * 100)) / 1000000);
    uint256 mintAmount = (discountedAmount * 1e18) / currentPrice;
    UP(UP_TOKEN).mint(to, mintAmount);
    (bool successTransfer, ) = address(UP_CONTROLLER).call{value: msg.value}("");
    require(successTransfer, "UPMintPublic: FAIL_SENDING_NATIVE");
    emit PublicMint(msg.sender, to, mintAmount, currentPrice, msg.value);
  }

  /// @notice Permissioned function that sets the public rint of UP.
  /// @param _mintRate - mint rate in percent terms, _mintRate = 5 = 5%.
  function setMintRate(uint256 _mintRate) public onlyOwner {
    require(_mintRate <= 10000, "UPMintPublic: MINT_RATE_GT_10000");
    require(_mintRate > 0, "UPMintPublic: MINT_RATE_EQ_0");
    mintRate = _mintRate;
    emit NewPublicMintRate(_mintRate);
  }

  /// @notice Permissioned function to update the address of the UP Controller
  /// @param _upController - the address of the new UP Controller
  function updateController(address _upController) public onlyOwner {
    require(_upController != address(0), "UPMintPublic: INVALID_ADDRESS");
    UP_CONTROLLER = payable(_upController);
    emit UpdateController(_upController);
  }

  /// @notice Permissioned function to pause public minting
  function pause() public onlyOwner {
    _pause();
  }

  /// @notice Permissioned function to unpause public minting
  function unpause() public onlyOwner {
    _unpause();
  }

  /// @notice Permissioned function to withdraw any native coins accidentally deposited to the Public Mint contract.
  function withdrawFunds() public onlyOwner returns (bool) {
    return _withdrawFunds();
  }

  /// @notice Permissioned function to withdraw any tokens accidentally deposited to the Public Mint contract.
  function withdrawFundsERC20(address tokenAddress) public onlyOwner returns (bool) {
    return _withdrawFundsERC20(tokenAddress);
  }
}

Contract ABI

[{"inputs":[{"internalType":"address","name":"_UP","type":"address"},{"internalType":"address","name":"_UPController","type":"address"},{"internalType":"uint256","name":"_mintRate","type":"uint256"},{"internalType":"address","name":"_targetFunds","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"_newMintRate","type":"uint256"}],"name":"NewPublicMintRate","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"account","type":"address"}],"name":"Paused","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"_from","type":"address"},{"indexed":false,"internalType":"address","name":"_to","type":"address"},{"indexed":false,"internalType":"uint256","name":"_amount","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"_price","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"_value","type":"uint256"}],"name":"PublicMint","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"account","type":"address"}],"name":"Unpaused","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"_upController","type":"address"}],"name":"UpdateController","type":"event"},{"inputs":[],"name":"UP_CONTROLLER","outputs":[{"internalType":"address payable","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"UP_TOKEN","outputs":[{"internalType":"address payable","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"mintRate","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"}],"name":"mintUP","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"pause","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"paused","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_mintRate","type":"uint256"}],"name":"setMintRate","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"unpause","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_upController","type":"address"}],"name":"updateController","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"withdrawFunds","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"tokenAddress","type":"address"}],"name":"withdrawFundsERC20","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"}]

60806040526000600460006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055506000600560006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055503480156200009557600080fd5b50604051620028f4380380620028f48339818101604052810190620000bb9190620004d2565b80620000dc620000d06200024f60201b60201c565b6200025760201b60201c565b60008060146101000a81548160ff0219169083151502179055506001808190555080600260006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050600073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff161415620001b2576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401620001a990620005f1565b60405180910390fd5b83600460006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555082600560006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555062000245826200031b60201b60201c565b50505050620007c2565b600033905090565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050816000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b6200032b6200024f60201b60201c565b73ffffffffffffffffffffffffffffffffffffffff16620003516200047b60201b60201c565b73ffffffffffffffffffffffffffffffffffffffff1614620003aa576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401620003a19062000635565b60405180910390fd5b612710811115620003f2576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401620003e99062000657565b60405180910390fd5b6000811162000438576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016200042f9062000613565b60405180910390fd5b806003819055507f483c138ece842cd60a27e14c92b7d032d95bf28aec10e1170745595528fe9daf8160405162000470919062000679565b60405180910390a150565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b600081519050620004b5816200078e565b92915050565b600081519050620004cc81620007a8565b92915050565b60008060008060808587031215620004ef57620004ee620006e5565b5b6000620004ff87828801620004a4565b94505060206200051287828801620004a4565b93505060406200052587828801620004bb565b92505060606200053887828801620004a4565b91505092959194509250565b60006200055360208362000696565b91506200056082620006ea565b602082019050919050565b60006200057a601c8362000696565b9150620005878262000713565b602082019050919050565b6000620005a160208362000696565b9150620005ae826200073c565b602082019050919050565b6000620005c860208362000696565b9150620005d58262000765565b602082019050919050565b620005eb81620006db565b82525050565b600060208201905081810360008301526200060c8162000544565b9050919050565b600060208201905081810360008301526200062e816200056b565b9050919050565b60006020820190508181036000830152620006508162000592565b9050919050565b600060208201905081810360008301526200067281620005b9565b9050919050565b6000602082019050620006906000830184620005e0565b92915050565b600082825260208201905092915050565b6000620006b482620006bb565b9050919050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000819050919050565b600080fd5b7f55504d696e745075626c69633a20496e76616c69642055502061646472657373600082015250565b7f55504d696e745075626c69633a204d494e545f524154455f45515f3000000000600082015250565b7f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572600082015250565b7f55504d696e745075626c69633a204d494e545f524154455f47545f3130303030600082015250565b6200079981620006a7565b8114620007a557600080fd5b50565b620007b381620006db565b8114620007bf57600080fd5b50565b61212280620007d26000396000f3fe6080604052600436106100dd5760003560e01c80638456cb591161007f578063aba2f2d411610059578063aba2f2d414610264578063ca0dcf1614610280578063dbe2193f146102ab578063f2fde38b146102d4576100dd565b80638456cb59146101e55780638da5cb5b146101fc578063a4125eb714610227576100dd565b80635c975abb116100bb5780635c975abb1461014d5780635df3937314610178578063715018a6146101a357806378093117146101ba576100dd565b806306cb5b66146100e257806324600fc31461010b5780633f4ba83a14610136575b600080fd5b3480156100ee57600080fd5b50610109600480360381019061010491906114fb565b6102fd565b005b34801561011757600080fd5b50610120610464565b60405161012d9190611955565b60405180910390f35b34801561014257600080fd5b5061014b6104ef565b005b34801561015957600080fd5b50610162610575565b60405161016f9190611955565b60405180910390f35b34801561018457600080fd5b5061018d61058b565b60405161019a91906118cc565b60405180910390f35b3480156101af57600080fd5b506101b86105b1565b005b3480156101c657600080fd5b506101cf610639565b6040516101dc91906118cc565b60405180910390f35b3480156101f157600080fd5b506101fa61065f565b005b34801561020857600080fd5b506102116106e5565b60405161021e91906118b1565b60405180910390f35b34801561023357600080fd5b5061024e600480360381019061024991906114fb565b61070e565b60405161025b9190611955565b60405180910390f35b61027e600480360381019061027991906114fb565b61079c565b005b34801561028c57600080fd5b50610295610b96565b6040516102a29190611b72565b60405180910390f35b3480156102b757600080fd5b506102d260048036038101906102cd9190611555565b610b9c565b005b3480156102e057600080fd5b506102fb60048036038101906102f691906114fb565b610ce1565b005b610305610dd9565b73ffffffffffffffffffffffffffffffffffffffff166103236106e5565b73ffffffffffffffffffffffffffffffffffffffff1614610379576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161037090611ab2565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614156103e9576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016103e0906119b2565b60405180910390fd5b80600560006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055507ffce593255b7647c9b730cf207aed89b0761a9c7ff374009a869068dffa08fb2a8160405161045991906118b1565b60405180910390a150565b600061046e610dd9565b73ffffffffffffffffffffffffffffffffffffffff1661048c6106e5565b73ffffffffffffffffffffffffffffffffffffffff16146104e2576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016104d990611ab2565b60405180910390fd5b6104ea610de1565b905090565b6104f7610dd9565b73ffffffffffffffffffffffffffffffffffffffff166105156106e5565b73ffffffffffffffffffffffffffffffffffffffff161461056b576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161056290611ab2565b60405180910390fd5b610573610eb7565b565b60008060149054906101000a900460ff16905090565b600560009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b6105b9610dd9565b73ffffffffffffffffffffffffffffffffffffffff166105d76106e5565b73ffffffffffffffffffffffffffffffffffffffff161461062d576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161062490611ab2565b60405180910390fd5b6106376000610f58565b565b600460009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b610667610dd9565b73ffffffffffffffffffffffffffffffffffffffff166106856106e5565b73ffffffffffffffffffffffffffffffffffffffff16146106db576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016106d290611ab2565b60405180910390fd5b6106e361101c565b565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b6000610718610dd9565b73ffffffffffffffffffffffffffffffffffffffff166107366106e5565b73ffffffffffffffffffffffffffffffffffffffff161461078c576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161078390611ab2565b60405180910390fd5b610795826110bf565b9050919050565b6107a4610575565b156107e4576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016107db90611a52565b60405180910390fd5b6002600154141561082a576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161082190611b32565b60405180910390fd5b600260018190555060003411610875576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161086c90611a72565b60405180910390fd5b6000600560009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663e25aa5fa6040518163ffffffff1660e01b815260040160206040518083038186803b1580156108df57600080fd5b505afa1580156108f3573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906109179190611582565b90506000811161095c576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610953906119f2565b60405180910390fd5b6000620f424060646003546109719190611bf0565b3461097c9190611bf0565b6109869190611bbf565b346109919190611c4a565b9050600082670de0b6b3a7640000836109aa9190611bf0565b6109b49190611bbf565b9050600460009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166340c10f1985836040518363ffffffff1660e01b8152600401610a139291906118e7565b602060405180830381600087803b158015610a2d57600080fd5b505af1158015610a41573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610a659190611528565b506000600560009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1634604051610aae9061189c565b60006040518083038185875af1925050503d8060008114610aeb576040519150601f19603f3d011682016040523d82523d6000602084013e610af0565b606091505b5050905080610b34576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610b2b90611b52565b60405180910390fd5b3373ffffffffffffffffffffffffffffffffffffffff167f68868a0c8c24438491cf13ccb4fb0e15c55dc72c300910366fbdcdd6c3e485fa86848734604051610b809493929190611910565b60405180910390a2505050506001808190555050565b60035481565b610ba4610dd9565b73ffffffffffffffffffffffffffffffffffffffff16610bc26106e5565b73ffffffffffffffffffffffffffffffffffffffff1614610c18576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610c0f90611ab2565b60405180910390fd5b612710811115610c5d576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610c5490611ad2565b60405180910390fd5b60008111610ca0576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610c9790611a92565b60405180910390fd5b806003819055507f483c138ece842cd60a27e14c92b7d032d95bf28aec10e1170745595528fe9daf81604051610cd69190611b72565b60405180910390a150565b610ce9610dd9565b73ffffffffffffffffffffffffffffffffffffffff16610d076106e5565b73ffffffffffffffffffffffffffffffffffffffff1614610d5d576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610d5490611ab2565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff161415610dcd576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610dc4906119d2565b60405180910390fd5b610dd681610f58565b50565b600033905090565b600080600260009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1647604051610e2a9061189c565b60006040518083038185875af1925050503d8060008114610e67576040519150601f19603f3d011682016040523d82523d6000602084013e610e6c565b606091505b5050905080610eb0576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610ea790611a32565b60405180910390fd5b8091505090565b610ebf610575565b610efe576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610ef590611992565b60405180910390fd5b60008060146101000a81548160ff0219169083151502179055507f5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa610f41610dd9565b604051610f4e91906118b1565b60405180910390a1565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050816000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b611024610575565b15611064576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161105b90611a52565b60405180910390fd5b6001600060146101000a81548160ff0219169083151502179055507f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a2586110a8610dd9565b6040516110b591906118b1565b60405180910390a1565b60008082905061119a600260009054906101000a900473ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff166370a08231306040518263ffffffff1660e01b815260040161112491906118b1565b60206040518083038186803b15801561113c57600080fd5b505afa158015611150573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906111749190611582565b8373ffffffffffffffffffffffffffffffffffffffff166111a49092919063ffffffff16565b6001915050919050565b6112258363a9059cbb60e01b84846040516024016111c39291906118e7565b604051602081830303815290604052907bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19166020820180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff838183161783525050505061122a565b505050565b600061128c826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c65648152508573ffffffffffffffffffffffffffffffffffffffff166112f19092919063ffffffff16565b90506000815111156112ec57808060200190518101906112ac9190611528565b6112eb576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016112e290611b12565b60405180910390fd5b5b505050565b60606113008484600085611309565b90509392505050565b60608247101561134e576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161134590611a12565b60405180910390fd5b6113578561141d565b611396576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161138d90611af2565b60405180910390fd5b6000808673ffffffffffffffffffffffffffffffffffffffff1685876040516113bf9190611885565b60006040518083038185875af1925050503d80600081146113fc576040519150601f19603f3d011682016040523d82523d6000602084013e611401565b606091505b5091509150611411828286611440565b92505050949350505050565b6000808273ffffffffffffffffffffffffffffffffffffffff163b119050919050565b60608315611450578290506114a0565b6000835111156114635782518084602001fd5b816040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016114979190611970565b60405180910390fd5b9392505050565b6000813590506114b6816120a7565b92915050565b6000815190506114cb816120be565b92915050565b6000813590506114e0816120d5565b92915050565b6000815190506114f5816120d5565b92915050565b60006020828403121561151157611510611d69565b5b600061151f848285016114a7565b91505092915050565b60006020828403121561153e5761153d611d69565b5b600061154c848285016114bc565b91505092915050565b60006020828403121561156b5761156a611d69565b5b6000611579848285016114d1565b91505092915050565b60006020828403121561159857611597611d69565b5b60006115a6848285016114e6565b91505092915050565b6115b881611c90565b82525050565b6115c781611c7e565b82525050565b6115d681611ca2565b82525050565b60006115e782611b8d565b6115f18185611ba3565b9350611601818560208601611cd8565b80840191505092915050565b600061161882611b98565b6116228185611bae565b9350611632818560208601611cd8565b61163b81611d6e565b840191505092915050565b6000611653601483611bae565b915061165e82611d7f565b602082019050919050565b6000611676601d83611bae565b915061168182611da8565b602082019050919050565b6000611699602683611bae565b91506116a482611dd1565b604082019050919050565b60006116bc601883611bae565b91506116c782611e20565b602082019050919050565b60006116df602683611bae565b91506116ea82611e49565b604082019050919050565b6000611702601a83611bae565b915061170d82611e98565b602082019050919050565b6000611725601083611bae565b915061173082611ec1565b602082019050919050565b6000611748602483611bae565b915061175382611eea565b604082019050919050565b600061176b601c83611bae565b915061177682611f39565b602082019050919050565b600061178e602083611bae565b915061179982611f62565b602082019050919050565b60006117b1602083611bae565b91506117bc82611f8b565b602082019050919050565b60006117d4600083611ba3565b91506117df82611fb4565b600082019050919050565b60006117f7601d83611bae565b915061180282611fb7565b602082019050919050565b600061181a602a83611bae565b915061182582611fe0565b604082019050919050565b600061183d601f83611bae565b91506118488261202f565b602082019050919050565b6000611860602183611bae565b915061186b82612058565b604082019050919050565b61187f81611cce565b82525050565b600061189182846115dc565b915081905092915050565b60006118a7826117c7565b9150819050919050565b60006020820190506118c660008301846115be565b92915050565b60006020820190506118e160008301846115af565b92915050565b60006040820190506118fc60008301856115be565b6119096020830184611876565b9392505050565b600060808201905061192560008301876115be565b6119326020830186611876565b61193f6040830185611876565b61194c6060830184611876565b95945050505050565b600060208201905061196a60008301846115cd565b92915050565b6000602082019050818103600083015261198a818461160d565b905092915050565b600060208201905081810360008301526119ab81611646565b9050919050565b600060208201905081810360008301526119cb81611669565b9050919050565b600060208201905081810360008301526119eb8161168c565b9050919050565b60006020820190508181036000830152611a0b816116af565b9050919050565b60006020820190508181036000830152611a2b816116d2565b9050919050565b60006020820190508181036000830152611a4b816116f5565b9050919050565b60006020820190508181036000830152611a6b81611718565b9050919050565b60006020820190508181036000830152611a8b8161173b565b9050919050565b60006020820190508181036000830152611aab8161175e565b9050919050565b60006020820190508181036000830152611acb81611781565b9050919050565b60006020820190508181036000830152611aeb816117a4565b9050919050565b60006020820190508181036000830152611b0b816117ea565b9050919050565b60006020820190508181036000830152611b2b8161180d565b9050919050565b60006020820190508181036000830152611b4b81611830565b9050919050565b60006020820190508181036000830152611b6b81611853565b9050919050565b6000602082019050611b876000830184611876565b92915050565b600081519050919050565b600081519050919050565b600081905092915050565b600082825260208201905092915050565b6000611bca82611cce565b9150611bd583611cce565b925082611be557611be4611d3a565b5b828204905092915050565b6000611bfb82611cce565b9150611c0683611cce565b9250817fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0483118215151615611c3f57611c3e611d0b565b5b828202905092915050565b6000611c5582611cce565b9150611c6083611cce565b925082821015611c7357611c72611d0b565b5b828203905092915050565b6000611c8982611cae565b9050919050565b6000611c9b82611cae565b9050919050565b60008115159050919050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000819050919050565b60005b83811015611cf6578082015181840152602081019050611cdb565b83811115611d05576000848401525b50505050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b600080fd5b6000601f19601f8301169050919050565b7f5061757361626c653a206e6f7420706175736564000000000000000000000000600082015250565b7f55504d696e745075626c69633a20494e56414c49445f41444452455353000000600082015250565b7f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160008201527f6464726573730000000000000000000000000000000000000000000000000000602082015250565b7f55504d696e745075626c69633a2055505f50524943455f300000000000000000600082015250565b7f416464726573733a20696e73756666696369656e742062616c616e636520666f60008201527f722063616c6c0000000000000000000000000000000000000000000000000000602082015250565b7f536166653a204661696c656420746f2073656e64204574686572000000000000600082015250565b7f5061757361626c653a2070617573656400000000000000000000000000000000600082015250565b7f55504d696e745075626c69633a20494e56414c49445f50415941424c455f414d60008201527f4f554e5400000000000000000000000000000000000000000000000000000000602082015250565b7f55504d696e745075626c69633a204d494e545f524154455f45515f3000000000600082015250565b7f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572600082015250565b7f55504d696e745075626c69633a204d494e545f524154455f47545f3130303030600082015250565b50565b7f416464726573733a2063616c6c20746f206e6f6e2d636f6e7472616374000000600082015250565b7f5361666545524332303a204552433230206f7065726174696f6e20646964206e60008201527f6f74207375636365656400000000000000000000000000000000000000000000602082015250565b7f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00600082015250565b7f55504d696e745075626c69633a204641494c5f53454e44494e475f4e4154495660008201527f4500000000000000000000000000000000000000000000000000000000000000602082015250565b6120b081611c7e565b81146120bb57600080fd5b50565b6120c781611ca2565b81146120d257600080fd5b50565b6120de81611cce565b81146120e957600080fd5b5056fea2646970667358221220c5af27c078e69bdbd8dd4b1a78abc08f124e39b8647bf12824f70e8f3317dfe064736f6c634300080700330000000000000000000000005dd380cbdcfeccc8a987ff46e3b9d479e0497a180000000000000000000000007d5a89c57bef19a9c893a600a5f2d58ffb81a63300000000000000000000000000000000000000000000000000000000000000fa000000000000000000000000c814444deca35e56c59b51c858c26213d6977f90

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

0000000000000000000000005dd380cbdcfeccc8a987ff46e3b9d479e0497a180000000000000000000000007d5a89c57bef19a9c893a600a5f2d58ffb81a63300000000000000000000000000000000000000000000000000000000000000fa000000000000000000000000c814444deca35e56c59b51c858c26213d6977f90

-----Decoded View---------------
Arg [0] : _UP (address): 0x5dd380cbdcfeccc8a987ff46e3b9d479e0497a18
Arg [1] : _UPController (address): 0x7d5a89c57bef19a9c893a600a5f2d58ffb81a633
Arg [2] : _mintRate (uint256): 250
Arg [3] : _targetFunds (address): 0xc814444deca35e56c59b51c858c26213d6977f90

-----Encoded View---------------
4 Constructor Arguments found :
Arg [0] : 0000000000000000000000005dd380cbdcfeccc8a987ff46e3b9d479e0497a18
Arg [1] : 0000000000000000000000007d5a89c57bef19a9c893a600a5f2d58ffb81a633
Arg [2] : 00000000000000000000000000000000000000000000000000000000000000fa
Arg [3] : 000000000000000000000000c814444deca35e56c59b51c858c26213d6977f90


Deployed ByteCode Sourcemap

60593:3239:0:-:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;62873:236;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;:::i;:::-;;63483:93;;;;;;;;;;;;;:::i;:::-;;;;;;;:::i;:::-;;;;;;;;63300:59;;;;;;;;;;;;;:::i;:::-;;51676:86;;;;;;;;;;;;;:::i;:::-;;;;;;;:::i;:::-;;;;;;;;60783:58;;;;;;;;;;;;;:::i;:::-;;;;;;;:::i;:::-;;;;;;;;59484:103;;;;;;;;;;;;;:::i;:::-;;60725:53;;;;;;;;;;;;;:::i;:::-;;;;;;;:::i;:::-;;;;;;;;63176:55;;;;;;;;;;;;;:::i;:::-;;58833:87;;;;;;;;;;;;;:::i;:::-;;;;;;;:::i;:::-;;;;;;;;63694:135;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;:::i;:::-;;;;;;;:::i;:::-;;;;;;;;61599:710;;;;;;;;;;;;;:::i;:::-;;:::i;:::-;;60664:23;;;;;;;;;;;;;:::i;:::-;;;;;;;:::i;:::-;;;;;;;;62459:261;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;:::i;:::-;;59742:201;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;:::i;:::-;;62873:236;59064:12;:10;:12::i;:::-;59053:23;;:7;:5;:7::i;:::-;:23;;;59045:68;;;;;;;;;;;;:::i;:::-;;;;;;;;;62979:1:::1;62954:27;;:13;:27;;;;62946:69;;;;;;;;;;;;:::i;:::-;;;;;;;;;63046:13;63022;;:38;;;;;;;;;;;;;;;;;;63072:31;63089:13;63072:31;;;;;;:::i;:::-;;;;;;;;62873:236:::0;:::o;63483:93::-;63534:4;59064:12;:10;:12::i;:::-;59053:23;;:7;:5;:7::i;:::-;:23;;;59045:68;;;;;;;;;;;;:::i;:::-;;;;;;;;;63554:16:::1;:14;:16::i;:::-;63547:23;;63483:93:::0;:::o;63300:59::-;59064:12;:10;:12::i;:::-;59053:23;;:7;:5;:7::i;:::-;:23;;;59045:68;;;;;;;;;;;;:::i;:::-;;;;;;;;;63343:10:::1;:8;:10::i;:::-;63300:59::o:0;51676:86::-;51723:4;51747:7;;;;;;;;;;;51740:14;;51676:86;:::o;60783:58::-;;;;;;;;;;;;;:::o;59484:103::-;59064:12;:10;:12::i;:::-;59053:23;;:7;:5;:7::i;:::-;:23;;;59045:68;;;;;;;;;;;;:::i;:::-;;;;;;;;;59549:30:::1;59576:1;59549:18;:30::i;:::-;59484:103::o:0;60725:53::-;;;;;;;;;;;;;:::o;63176:55::-;59064:12;:10;:12::i;:::-;59053:23;;:7;:5;:7::i;:::-;:23;;;59045:68;;;;;;;;;;;;:::i;:::-;;;;;;;;;63217:8:::1;:6;:8::i;:::-;63176:55::o:0;58833:87::-;58879:7;58906:6;;;;;;;;;;;58899:13;;58833:87;:::o;63694:135::-;63770:4;59064:12;:10;:12::i;:::-;59053:23;;:7;:5;:7::i;:::-;:23;;;59045:68;;;;;;;;;;;;:::i;:::-;;;;;;;;;63790:33:::1;63810:12;63790:19;:33::i;:::-;63783:40;;63694:135:::0;;;:::o;61599:710::-;52002:8;:6;:8::i;:::-;52001:9;51993:38;;;;;;;;;;;;:::i;:::-;;;;;;;;;25671:1:::1;26269:7;;:19;;26261:63;;;;;;;;;;;;:::i;:::-;;;;;;;;;25671:1;26402:7;:18;;;;61704:1:::2;61692:9;:13;61684:62;;;;;;;;;;;;:::i;:::-;;;;;;;;;61753:20;61789:13;;;;;;;;;;;61776:43;;;:45;;;;;;;;;;;;;;;;;;;;;;;;;;;::::0;::::2;;;;;;;;;;;;::::0;::::2;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;61753:68;;61851:1;61836:12;:16;61828:53;;;;;;;;;;;;:::i;:::-;;;;;;;;;61888:24;61961:7;61953:3;61942:8;;:14;;;;:::i;:::-;61929:9;:28;;;;:::i;:::-;61928:40;;;;:::i;:::-;61915:9;:54;;;;:::i;:::-;61888:81;;61976:18;62025:12;62017:4;61998:16;:23;;;;:::i;:::-;61997:40;;;;:::i;:::-;61976:61;;62047:8;;;;;;;;;;;62044:17;;;62062:2;62066:10;62044:33;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;::::0;::::2;;;;;;;;;;;;::::0;::::2;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;62085:20;62119:13;;;;;;;;;;;62111:27;;62146:9;62111:49;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;62084:76;;;62175:15;62167:61;;;;;;;;;;;;:::i;:::-;;;;;;;;;62251:10;62240:63;;;62263:2;62267:10;62279:12;62293:9;62240:63;;;;;;;;;:::i;:::-;;;;;;;;61677:632;;;;25627:1:::1;26581:7:::0;:22:::1;;;;61599:710:::0;:::o;60664:23::-;;;;:::o;62459:261::-;59064:12;:10;:12::i;:::-;59053:23;;:7;:5;:7::i;:::-;:23;;;59045:68;;;;;;;;;;;;:::i;:::-;;;;;;;;;62544:5:::1;62531:9;:18;;62523:63;;;;;;;;;;;;:::i;:::-;;;;;;;;;62613:1;62601:9;:13;62593:54;;;;;;;;;;;;:::i;:::-;;;;;;;;;62665:9;62654:8;:20;;;;62686:28;62704:9;62686:28;;;;;;:::i;:::-;;;;;;;;62459:261:::0;:::o;59742:201::-;59064:12;:10;:12::i;:::-;59053:23;;:7;:5;:7::i;:::-;:23;;;59045:68;;;;;;;;;;;;:::i;:::-;;;;;;;;;59851:1:::1;59831:22;;:8;:22;;;;59823:73;;;;;;;;;;;;:::i;:::-;;;;;;;;;59907:28;59926:8;59907:18;:28::i;:::-;59742:201:::0;:::o;27297:98::-;27350:7;27377:10;27370:17;;27297:98;:::o;22704:201::-;22748:4;22762:9;22785:6;;;;;;;;;;;22777:20;;22805:21;22777:54;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;22761:70;;;22846:4;22838:43;;;;;;;;;;;;:::i;:::-;;;;;;;;;22895:4;22888:11;;;22704:201;:::o;52735:120::-;52279:8;:6;:8::i;:::-;52271:41;;;;;;;;;;;;:::i;:::-;;;;;;;;;52804:5:::1;52794:7:::0;::::1;:15;;;;;;;;;;;;;;;;;;52825:22;52834:12;:10;:12::i;:::-;52825:22;;;;;;:::i;:::-;;;;;;;;52735:120::o:0;60103:191::-;60177:16;60196:6;;;;;;;;;;;60177:25;;60222:8;60213:6;;:17;;;;;;;;;;;;;;;;;;60277:8;60246:40;;60267:8;60246:40;;;;;;;;;;;;60166:128;60103:191;:::o;52476:118::-;52002:8;:6;:8::i;:::-;52001:9;51993:38;;;;;;;;;;;;:::i;:::-;;;;;;;;;52546:4:::1;52536:7;;:14;;;;;;;;;;;;;;;;;;52566:20;52573:12;:10;:12::i;:::-;52566:20;;;;;;:::i;:::-;;;;;;;;52476:118::o:0;22911:206::-;22980:4;22993:12;23015;22993:35;;23035:58;23054:6;;;;;;;;;;;23062:5;:15;;;23086:4;23062:30;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;23035:5;:18;;;;:58;;;;;:::i;:::-;23107:4;23100:11;;;22911:206;;;:::o;19190:211::-;19307:86;19327:5;19357:23;;;19382:2;19386:5;19334:58;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;19307:19;:86::i;:::-;19190:211;;;:::o;21763:716::-;22187:23;22213:69;22241:4;22213:69;;;;;;;;;;;;;;;;;22221:5;22213:27;;;;:69;;;;;:::i;:::-;22187:95;;22317:1;22297:10;:17;:21;22293:179;;;22394:10;22383:30;;;;;;;;;;;;:::i;:::-;22375:85;;;;;;;;;;;;:::i;:::-;;;;;;;;;22293:179;21833:646;21763:716;;:::o;3978:229::-;4115:12;4147:52;4169:6;4177:4;4183:1;4186:12;4147:21;:52::i;:::-;4140:59;;3978:229;;;;;:::o;5098:510::-;5268:12;5326:5;5301:21;:30;;5293:81;;;;;;;;;;;;:::i;:::-;;;;;;;;;5393:18;5404:6;5393:10;:18::i;:::-;5385:60;;;;;;;;;;;;:::i;:::-;;;;;;;;;5459:12;5473:23;5500:6;:11;;5519:5;5526:4;5500:31;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;5458:73;;;;5549:51;5566:7;5575:10;5587:12;5549:16;:51::i;:::-;5542:58;;;;5098:510;;;;;;:::o;1233:326::-;1293:4;1550:1;1528:7;:19;;;:23;1521:30;;1233:326;;;:::o;7784:712::-;7934:12;7963:7;7959:530;;;7994:10;7987:17;;;;7959:530;8128:1;8108:10;:17;:21;8104:374;;;8306:10;8300:17;8367:15;8354:10;8350:2;8346:19;8339:44;8104:374;8449:12;8442:20;;;;;;;;;;;:::i;:::-;;;;;;;;7784:712;;;;;;:::o;7:139:1:-;53:5;91:6;78:20;69:29;;107:33;134:5;107:33;:::i;:::-;7:139;;;;:::o;152:137::-;206:5;237:6;231:13;222:22;;253:30;277:5;253:30;:::i;:::-;152:137;;;;:::o;295:139::-;341:5;379:6;366:20;357:29;;395:33;422:5;395:33;:::i;:::-;295:139;;;;:::o;440:143::-;497:5;528:6;522:13;513:22;;544:33;571:5;544:33;:::i;:::-;440:143;;;;:::o;589:329::-;648:6;697:2;685:9;676:7;672:23;668:32;665:119;;;703:79;;:::i;:::-;665:119;823:1;848:53;893:7;884:6;873:9;869:22;848:53;:::i;:::-;838:63;;794:117;589:329;;;;:::o;924:345::-;991:6;1040:2;1028:9;1019:7;1015:23;1011:32;1008:119;;;1046:79;;:::i;:::-;1008:119;1166:1;1191:61;1244:7;1235:6;1224:9;1220:22;1191:61;:::i;:::-;1181:71;;1137:125;924:345;;;;:::o;1275:329::-;1334:6;1383:2;1371:9;1362:7;1358:23;1354:32;1351:119;;;1389:79;;:::i;:::-;1351:119;1509:1;1534:53;1579:7;1570:6;1559:9;1555:22;1534:53;:::i;:::-;1524:63;;1480:117;1275:329;;;;:::o;1610:351::-;1680:6;1729:2;1717:9;1708:7;1704:23;1700:32;1697:119;;;1735:79;;:::i;:::-;1697:119;1855:1;1880:64;1936:7;1927:6;1916:9;1912:22;1880:64;:::i;:::-;1870:74;;1826:128;1610:351;;;;:::o;1967:142::-;2070:32;2096:5;2070:32;:::i;:::-;2065:3;2058:45;1967:142;;:::o;2115:118::-;2202:24;2220:5;2202:24;:::i;:::-;2197:3;2190:37;2115:118;;:::o;2239:109::-;2320:21;2335:5;2320:21;:::i;:::-;2315:3;2308:34;2239:109;;:::o;2354:373::-;2458:3;2486:38;2518:5;2486:38;:::i;:::-;2540:88;2621:6;2616:3;2540:88;:::i;:::-;2533:95;;2637:52;2682:6;2677:3;2670:4;2663:5;2659:16;2637:52;:::i;:::-;2714:6;2709:3;2705:16;2698:23;;2462:265;2354:373;;;;:::o;2733:364::-;2821:3;2849:39;2882:5;2849:39;:::i;:::-;2904:71;2968:6;2963:3;2904:71;:::i;:::-;2897:78;;2984:52;3029:6;3024:3;3017:4;3010:5;3006:16;2984:52;:::i;:::-;3061:29;3083:6;3061:29;:::i;:::-;3056:3;3052:39;3045:46;;2825:272;2733:364;;;;:::o;3103:366::-;3245:3;3266:67;3330:2;3325:3;3266:67;:::i;:::-;3259:74;;3342:93;3431:3;3342:93;:::i;:::-;3460:2;3455:3;3451:12;3444:19;;3103:366;;;:::o;3475:::-;3617:3;3638:67;3702:2;3697:3;3638:67;:::i;:::-;3631:74;;3714:93;3803:3;3714:93;:::i;:::-;3832:2;3827:3;3823:12;3816:19;;3475:366;;;:::o;3847:::-;3989:3;4010:67;4074:2;4069:3;4010:67;:::i;:::-;4003:74;;4086:93;4175:3;4086:93;:::i;:::-;4204:2;4199:3;4195:12;4188:19;;3847:366;;;:::o;4219:::-;4361:3;4382:67;4446:2;4441:3;4382:67;:::i;:::-;4375:74;;4458:93;4547:3;4458:93;:::i;:::-;4576:2;4571:3;4567:12;4560:19;;4219:366;;;:::o;4591:::-;4733:3;4754:67;4818:2;4813:3;4754:67;:::i;:::-;4747:74;;4830:93;4919:3;4830:93;:::i;:::-;4948:2;4943:3;4939:12;4932:19;;4591:366;;;:::o;4963:::-;5105:3;5126:67;5190:2;5185:3;5126:67;:::i;:::-;5119:74;;5202:93;5291:3;5202:93;:::i;:::-;5320:2;5315:3;5311:12;5304:19;;4963:366;;;:::o;5335:::-;5477:3;5498:67;5562:2;5557:3;5498:67;:::i;:::-;5491:74;;5574:93;5663:3;5574:93;:::i;:::-;5692:2;5687:3;5683:12;5676:19;;5335:366;;;:::o;5707:::-;5849:3;5870:67;5934:2;5929:3;5870:67;:::i;:::-;5863:74;;5946:93;6035:3;5946:93;:::i;:::-;6064:2;6059:3;6055:12;6048:19;;5707:366;;;:::o;6079:::-;6221:3;6242:67;6306:2;6301:3;6242:67;:::i;:::-;6235:74;;6318:93;6407:3;6318:93;:::i;:::-;6436:2;6431:3;6427:12;6420:19;;6079:366;;;:::o;6451:::-;6593:3;6614:67;6678:2;6673:3;6614:67;:::i;:::-;6607:74;;6690:93;6779:3;6690:93;:::i;:::-;6808:2;6803:3;6799:12;6792:19;;6451:366;;;:::o;6823:::-;6965:3;6986:67;7050:2;7045:3;6986:67;:::i;:::-;6979:74;;7062:93;7151:3;7062:93;:::i;:::-;7180:2;7175:3;7171:12;7164:19;;6823:366;;;:::o;7195:398::-;7354:3;7375:83;7456:1;7451:3;7375:83;:::i;:::-;7368:90;;7467:93;7556:3;7467:93;:::i;:::-;7585:1;7580:3;7576:11;7569:18;;7195:398;;;:::o;7599:366::-;7741:3;7762:67;7826:2;7821:3;7762:67;:::i;:::-;7755:74;;7838:93;7927:3;7838:93;:::i;:::-;7956:2;7951:3;7947:12;7940:19;;7599:366;;;:::o;7971:::-;8113:3;8134:67;8198:2;8193:3;8134:67;:::i;:::-;8127:74;;8210:93;8299:3;8210:93;:::i;:::-;8328:2;8323:3;8319:12;8312:19;;7971:366;;;:::o;8343:::-;8485:3;8506:67;8570:2;8565:3;8506:67;:::i;:::-;8499:74;;8582:93;8671:3;8582:93;:::i;:::-;8700:2;8695:3;8691:12;8684:19;;8343:366;;;:::o;8715:::-;8857:3;8878:67;8942:2;8937:3;8878:67;:::i;:::-;8871:74;;8954:93;9043:3;8954:93;:::i;:::-;9072:2;9067:3;9063:12;9056:19;;8715:366;;;:::o;9087:118::-;9174:24;9192:5;9174:24;:::i;:::-;9169:3;9162:37;9087:118;;:::o;9211:271::-;9341:3;9363:93;9452:3;9443:6;9363:93;:::i;:::-;9356:100;;9473:3;9466:10;;9211:271;;;;:::o;9488:379::-;9672:3;9694:147;9837:3;9694:147;:::i;:::-;9687:154;;9858:3;9851:10;;9488:379;;;:::o;9873:222::-;9966:4;10004:2;9993:9;9989:18;9981:26;;10017:71;10085:1;10074:9;10070:17;10061:6;10017:71;:::i;:::-;9873:222;;;;:::o;10101:254::-;10210:4;10248:2;10237:9;10233:18;10225:26;;10261:87;10345:1;10334:9;10330:17;10321:6;10261:87;:::i;:::-;10101:254;;;;:::o;10361:332::-;10482:4;10520:2;10509:9;10505:18;10497:26;;10533:71;10601:1;10590:9;10586:17;10577:6;10533:71;:::i;:::-;10614:72;10682:2;10671:9;10667:18;10658:6;10614:72;:::i;:::-;10361:332;;;;;:::o;10699:553::-;10876:4;10914:3;10903:9;10899:19;10891:27;;10928:71;10996:1;10985:9;10981:17;10972:6;10928:71;:::i;:::-;11009:72;11077:2;11066:9;11062:18;11053:6;11009:72;:::i;:::-;11091;11159:2;11148:9;11144:18;11135:6;11091:72;:::i;:::-;11173;11241:2;11230:9;11226:18;11217:6;11173:72;:::i;:::-;10699:553;;;;;;;:::o;11258:210::-;11345:4;11383:2;11372:9;11368:18;11360:26;;11396:65;11458:1;11447:9;11443:17;11434:6;11396:65;:::i;:::-;11258:210;;;;:::o;11474:313::-;11587:4;11625:2;11614:9;11610:18;11602:26;;11674:9;11668:4;11664:20;11660:1;11649:9;11645:17;11638:47;11702:78;11775:4;11766:6;11702:78;:::i;:::-;11694:86;;11474:313;;;;:::o;11793:419::-;11959:4;11997:2;11986:9;11982:18;11974:26;;12046:9;12040:4;12036:20;12032:1;12021:9;12017:17;12010:47;12074:131;12200:4;12074:131;:::i;:::-;12066:139;;11793:419;;;:::o;12218:::-;12384:4;12422:2;12411:9;12407:18;12399:26;;12471:9;12465:4;12461:20;12457:1;12446:9;12442:17;12435:47;12499:131;12625:4;12499:131;:::i;:::-;12491:139;;12218:419;;;:::o;12643:::-;12809:4;12847:2;12836:9;12832:18;12824:26;;12896:9;12890:4;12886:20;12882:1;12871:9;12867:17;12860:47;12924:131;13050:4;12924:131;:::i;:::-;12916:139;;12643:419;;;:::o;13068:::-;13234:4;13272:2;13261:9;13257:18;13249:26;;13321:9;13315:4;13311:20;13307:1;13296:9;13292:17;13285:47;13349:131;13475:4;13349:131;:::i;:::-;13341:139;;13068:419;;;:::o;13493:::-;13659:4;13697:2;13686:9;13682:18;13674:26;;13746:9;13740:4;13736:20;13732:1;13721:9;13717:17;13710:47;13774:131;13900:4;13774:131;:::i;:::-;13766:139;;13493:419;;;:::o;13918:::-;14084:4;14122:2;14111:9;14107:18;14099:26;;14171:9;14165:4;14161:20;14157:1;14146:9;14142:17;14135:47;14199:131;14325:4;14199:131;:::i;:::-;14191:139;;13918:419;;;:::o;14343:::-;14509:4;14547:2;14536:9;14532:18;14524:26;;14596:9;14590:4;14586:20;14582:1;14571:9;14567:17;14560:47;14624:131;14750:4;14624:131;:::i;:::-;14616:139;;14343:419;;;:::o;14768:::-;14934:4;14972:2;14961:9;14957:18;14949:26;;15021:9;15015:4;15011:20;15007:1;14996:9;14992:17;14985:47;15049:131;15175:4;15049:131;:::i;:::-;15041:139;;14768:419;;;:::o;15193:::-;15359:4;15397:2;15386:9;15382:18;15374:26;;15446:9;15440:4;15436:20;15432:1;15421:9;15417:17;15410:47;15474:131;15600:4;15474:131;:::i;:::-;15466:139;;15193:419;;;:::o;15618:::-;15784:4;15822:2;15811:9;15807:18;15799:26;;15871:9;15865:4;15861:20;15857:1;15846:9;15842:17;15835:47;15899:131;16025:4;15899:131;:::i;:::-;15891:139;;15618:419;;;:::o;16043:::-;16209:4;16247:2;16236:9;16232:18;16224:26;;16296:9;16290:4;16286:20;16282:1;16271:9;16267:17;16260:47;16324:131;16450:4;16324:131;:::i;:::-;16316:139;;16043:419;;;:::o;16468:::-;16634:4;16672:2;16661:9;16657:18;16649:26;;16721:9;16715:4;16711:20;16707:1;16696:9;16692:17;16685:47;16749:131;16875:4;16749:131;:::i;:::-;16741:139;;16468:419;;;:::o;16893:::-;17059:4;17097:2;17086:9;17082:18;17074:26;;17146:9;17140:4;17136:20;17132:1;17121:9;17117:17;17110:47;17174:131;17300:4;17174:131;:::i;:::-;17166:139;;16893:419;;;:::o;17318:::-;17484:4;17522:2;17511:9;17507:18;17499:26;;17571:9;17565:4;17561:20;17557:1;17546:9;17542:17;17535:47;17599:131;17725:4;17599:131;:::i;:::-;17591:139;;17318:419;;;:::o;17743:::-;17909:4;17947:2;17936:9;17932:18;17924:26;;17996:9;17990:4;17986:20;17982:1;17971:9;17967:17;17960:47;18024:131;18150:4;18024:131;:::i;:::-;18016:139;;17743:419;;;:::o;18168:222::-;18261:4;18299:2;18288:9;18284:18;18276:26;;18312:71;18380:1;18369:9;18365:17;18356:6;18312:71;:::i;:::-;18168:222;;;;:::o;18477:98::-;18528:6;18562:5;18556:12;18546:22;;18477:98;;;:::o;18581:99::-;18633:6;18667:5;18661:12;18651:22;;18581:99;;;:::o;18686:147::-;18787:11;18824:3;18809:18;;18686:147;;;;:::o;18839:169::-;18923:11;18957:6;18952:3;18945:19;18997:4;18992:3;18988:14;18973:29;;18839:169;;;;:::o;19014:185::-;19054:1;19071:20;19089:1;19071:20;:::i;:::-;19066:25;;19105:20;19123:1;19105:20;:::i;:::-;19100:25;;19144:1;19134:35;;19149:18;;:::i;:::-;19134:35;19191:1;19188;19184:9;19179:14;;19014:185;;;;:::o;19205:348::-;19245:7;19268:20;19286:1;19268:20;:::i;:::-;19263:25;;19302:20;19320:1;19302:20;:::i;:::-;19297:25;;19490:1;19422:66;19418:74;19415:1;19412:81;19407:1;19400:9;19393:17;19389:105;19386:131;;;19497:18;;:::i;:::-;19386:131;19545:1;19542;19538:9;19527:20;;19205:348;;;;:::o;19559:191::-;19599:4;19619:20;19637:1;19619:20;:::i;:::-;19614:25;;19653:20;19671:1;19653:20;:::i;:::-;19648:25;;19692:1;19689;19686:8;19683:34;;;19697:18;;:::i;:::-;19683:34;19742:1;19739;19735:9;19727:17;;19559:191;;;;:::o;19756:96::-;19793:7;19822:24;19840:5;19822:24;:::i;:::-;19811:35;;19756:96;;;:::o;19858:104::-;19903:7;19932:24;19950:5;19932:24;:::i;:::-;19921:35;;19858:104;;;:::o;19968:90::-;20002:7;20045:5;20038:13;20031:21;20020:32;;19968:90;;;:::o;20064:126::-;20101:7;20141:42;20134:5;20130:54;20119:65;;20064:126;;;:::o;20196:77::-;20233:7;20262:5;20251:16;;20196:77;;;:::o;20279:307::-;20347:1;20357:113;20371:6;20368:1;20365:13;20357:113;;;20456:1;20451:3;20447:11;20441:18;20437:1;20432:3;20428:11;20421:39;20393:2;20390:1;20386:10;20381:15;;20357:113;;;20488:6;20485:1;20482:13;20479:101;;;20568:1;20559:6;20554:3;20550:16;20543:27;20479:101;20328:258;20279:307;;;:::o;20592:180::-;20640:77;20637:1;20630:88;20737:4;20734:1;20727:15;20761:4;20758:1;20751:15;20778:180;20826:77;20823:1;20816:88;20923:4;20920:1;20913:15;20947:4;20944:1;20937:15;21087:117;21196:1;21193;21186:12;21210:102;21251:6;21302:2;21298:7;21293:2;21286:5;21282:14;21278:28;21268:38;;21210:102;;;:::o;21318:170::-;21458:22;21454:1;21446:6;21442:14;21435:46;21318:170;:::o;21494:179::-;21634:31;21630:1;21622:6;21618:14;21611:55;21494:179;:::o;21679:225::-;21819:34;21815:1;21807:6;21803:14;21796:58;21888:8;21883:2;21875:6;21871:15;21864:33;21679:225;:::o;21910:174::-;22050:26;22046:1;22038:6;22034:14;22027:50;21910:174;:::o;22090:225::-;22230:34;22226:1;22218:6;22214:14;22207:58;22299:8;22294:2;22286:6;22282:15;22275:33;22090:225;:::o;22321:176::-;22461:28;22457:1;22449:6;22445:14;22438:52;22321:176;:::o;22503:166::-;22643:18;22639:1;22631:6;22627:14;22620:42;22503:166;:::o;22675:223::-;22815:34;22811:1;22803:6;22799:14;22792:58;22884:6;22879:2;22871:6;22867:15;22860:31;22675:223;:::o;22904:178::-;23044:30;23040:1;23032:6;23028:14;23021:54;22904:178;:::o;23088:182::-;23228:34;23224:1;23216:6;23212:14;23205:58;23088:182;:::o;23276:::-;23416:34;23412:1;23404:6;23400:14;23393:58;23276:182;:::o;23464:114::-;;:::o;23584:179::-;23724:31;23720:1;23712:6;23708:14;23701:55;23584:179;:::o;23769:229::-;23909:34;23905:1;23897:6;23893:14;23886:58;23978:12;23973:2;23965:6;23961:15;23954:37;23769:229;:::o;24004:181::-;24144:33;24140:1;24132:6;24128:14;24121:57;24004:181;:::o;24191:220::-;24331:34;24327:1;24319:6;24315:14;24308:58;24400:3;24395:2;24387:6;24383:15;24376:28;24191:220;:::o;24417:122::-;24490:24;24508:5;24490:24;:::i;:::-;24483:5;24480:35;24470:63;;24529:1;24526;24519:12;24470:63;24417:122;:::o;24545:116::-;24615:21;24630:5;24615:21;:::i;:::-;24608:5;24605:32;24595:60;;24651:1;24648;24641:12;24595:60;24545:116;:::o;24667:122::-;24740:24;24758:5;24740:24;:::i;:::-;24733:5;24730:35;24720:63;;24779:1;24776;24769:12;24720:63;24667:122;:::o

Swarm Source

ipfs://c5af27c078e69bdbd8dd4b1a78abc08f124e39b8647bf12824f70e8f3317dfe0
Block Transaction Gas Used Reward
Age Block Fee Address BC Fee Address Voting Power Jailed Incoming
Block Uncle Number Difficulty Gas Used Reward
Loading
Make sure to use the "Vote Down" button for any spammy posts, and the "Vote Up" for interesting conversations.