ETH Price: $4,228.44 (+0.60%)

Contract

0x1c21d5B5bd5d2b859D1D5B12Fd72db5ff7e98E92
 

Overview

ETH Balance

0 ETH

Eth Value

$0.00

Token Holdings

More Info

Private Name Tags

Multichain Info

No addresses found
Transaction Hash
Method
Block
From
To
Unstake235688462025-10-13 12:39:3512 hrs ago1760359175IN
0x1c21d5B5...ff7e98E92
0 ETH0.001661453.07637616
Unstake235679472025-10-13 9:37:1115 hrs ago1760348231IN
0x1c21d5B5...ff7e98E92
0 ETH0.000670271.2411019
Unstake235626662025-10-12 15:54:1133 hrs ago1760284451IN
0x1c21d5B5...ff7e98E92
0 ETH0.001494362.76699446
Queue Unstake235598992025-10-12 6:37:4742 hrs ago1760251067IN
0x1c21d5B5...ff7e98E92
0 ETH0.000623860.65002716
Unstake235594042025-10-12 4:58:2344 hrs ago1760245103IN
0x1c21d5B5...ff7e98E92
0 ETH0.000063450.11994443
Unstake235587292025-10-12 2:42:3546 hrs ago1760236955IN
0x1c21d5B5...ff7e98E92
0 ETH0.000368270.6960764
Unstake235587052025-10-12 2:37:3546 hrs ago1760236655IN
0x1c21d5B5...ff7e98E92
0 ETH0.000361870.68397939
Unstake235586552025-10-12 2:27:3547 hrs ago1760236055IN
0x1c21d5B5...ff7e98E92
0 ETH0.00036720.6940418
Unstake235579942025-10-12 0:14:472 days ago1760228087IN
0x1c21d5B5...ff7e98E92
0 ETH0.000418170.77430222
Queue Unstake235525562025-10-11 6:00:472 days ago1760162447IN
0x1c21d5B5...ff7e98E92
0 ETH0.001321561.37700053
Unstake235510882025-10-11 1:05:233 days ago1760144723IN
0x1c21d5B5...ff7e98E92
0 ETH0.004868669.20218631
Queue Unstake235481902025-10-10 15:21:353 days ago1760109695IN
0x1c21d5B5...ff7e98E92
0 ETH0.005254275.47459146
Queue Unstake235475142025-10-10 13:04:473 days ago1760101487IN
0x1c21d5B5...ff7e98E92
0 ETH0.000797440.83089569
Unstake235471812025-10-10 11:57:473 days ago1760097467IN
0x1c21d5B5...ff7e98E92
0 ETH0.000333270.62991496
Queue Unstake235457652025-10-10 7:12:473 days ago1760080367IN
0x1c21d5B5...ff7e98E92
0 ETH0.000648410.67560109
Queue Unstake235456622025-10-10 6:51:593 days ago1760079119IN
0x1c21d5B5...ff7e98E92
0 ETH0.000622160.64825179
Queue Unstake235453202025-10-10 5:43:113 days ago1760074991IN
0x1c21d5B5...ff7e98E92
0 ETH0.000101170.10541913
Queue Unstake235437592025-10-10 0:28:474 days ago1760056127IN
0x1c21d5B5...ff7e98E92
0 ETH0.000606660.63210735
Queue Unstake235414072025-10-09 16:35:594 days ago1760027759IN
0x1c21d5B5...ff7e98E92
0 ETH0.00390644.07020395
Unstake235413712025-10-09 16:28:474 days ago1760027327IN
0x1c21d5B5...ff7e98E92
0 ETH0.002164884.0085371
Queue Unstake235394862025-10-09 10:09:114 days ago1760004551IN
0x1c21d5B5...ff7e98E92
0 ETH0.000054530.26659964
Queue Unstake235391142025-10-09 8:54:114 days ago1760000051IN
0x1c21d5B5...ff7e98E92
0 ETH0.001173621.22284202
Queue Unstake235387912025-10-09 7:49:234 days ago1759996163IN
0x1c21d5B5...ff7e98E92
0 ETH0.00065880.6864348
Queue Unstake235387762025-10-09 7:46:234 days ago1759995983IN
0x1c21d5B5...ff7e98E92
0 ETH0.000631880.65837581
Queue Unstake235387492025-10-09 7:40:594 days ago1759995659IN
0x1c21d5B5...ff7e98E92
0 ETH0.000621820.64789725
View all transactions

Latest 25 internal transactions (View All)

Advanced mode:
Parent Transaction Hash Method Block
From
To
Deposit235688592025-10-13 12:42:1112 hrs ago1760359331
0x1c21d5B5...ff7e98E92
0.01 ETH
Stake235688592025-10-13 12:42:1112 hrs ago1760359331
0x1c21d5B5...ff7e98E92
0.01 ETH
Transfer235688462025-10-13 12:39:3512 hrs ago1760359175
0x1c21d5B5...ff7e98E92
1.00872413 ETH
Transfer235688462025-10-13 12:39:3512 hrs ago1760359175
0x1c21d5B5...ff7e98E92
1.00872413 ETH
Transfer235679472025-10-13 9:37:1115 hrs ago1760348231
0x1c21d5B5...ff7e98E92
0.10146399 ETH
Transfer235679472025-10-13 9:37:1115 hrs ago1760348231
0x1c21d5B5...ff7e98E92
0.10146399 ETH
Transfer235626662025-10-12 15:54:1133 hrs ago1760284451
0x1c21d5B5...ff7e98E92
0.2161304 ETH
Transfer235626662025-10-12 15:54:1133 hrs ago1760284451
0x1c21d5B5...ff7e98E92
0.2161304 ETH
Transfer235594042025-10-12 4:58:2344 hrs ago1760245103
0x1c21d5B5...ff7e98E92
0.1004933 ETH
Transfer235594042025-10-12 4:58:2344 hrs ago1760245103
0x1c21d5B5...ff7e98E92
0.1004933 ETH
Transfer235587292025-10-12 2:42:3546 hrs ago1760236955
0x1c21d5B5...ff7e98E92
0.01808733 ETH
Transfer235587292025-10-12 2:42:3546 hrs ago1760236955
0x1c21d5B5...ff7e98E92
0.01808733 ETH
Transfer235587052025-10-12 2:37:3546 hrs ago1760236655
0x1c21d5B5...ff7e98E92
0.01503613 ETH
Transfer235587052025-10-12 2:37:3546 hrs ago1760236655
0x1c21d5B5...ff7e98E92
0.01503613 ETH
Transfer235586552025-10-12 2:27:3547 hrs ago1760236055
0x1c21d5B5...ff7e98E92
0.01505951 ETH
Transfer235586552025-10-12 2:27:3547 hrs ago1760236055
0x1c21d5B5...ff7e98E92
0.01505951 ETH
Transfer235579942025-10-12 0:14:472 days ago1760228087
0x1c21d5B5...ff7e98E92
0.31443811 ETH
Transfer235579942025-10-12 0:14:472 days ago1760228087
0x1c21d5B5...ff7e98E92
0.31443811 ETH
Deposit235577282025-10-11 23:21:352 days ago1760224895
0x1c21d5B5...ff7e98E92
0.0005 ETH
Stake235577282025-10-11 23:21:352 days ago1760224895
0x1c21d5B5...ff7e98E92
0.0005 ETH
Transfer235510882025-10-11 1:05:233 days ago1760144723
0x1c21d5B5...ff7e98E92
0.50156064 ETH
Transfer235510882025-10-11 1:05:233 days ago1760144723
0x1c21d5B5...ff7e98E92
0.50156064 ETH
Transfer235471812025-10-10 11:57:473 days ago1760097467
0x1c21d5B5...ff7e98E92
0.01531623 ETH
Transfer235471812025-10-10 11:57:473 days ago1760097467
0x1c21d5B5...ff7e98E92
0.01531623 ETH
Transfer235413712025-10-09 16:28:474 days ago1760027327
0x1c21d5B5...ff7e98E92
5.83396552 ETH
View All Internal Transactions
Cross-Chain Transactions

Block Transaction Difficulty Gas Used Reward
View All Blocks Produced

Validator Index Block Amount
View All Withdrawals

Transaction Hash Block Value Eth2 PubKey Valid
View All Deposits
Loading...
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
LiquidityManager

Compiler Version
v0.8.27+commit.40a35a09

Optimization Enabled:
Yes with 100 runs

Other Settings:
paris EvmVersion
// SPDX-License-Identifier: GPL-3.0
pragma solidity 0.8.27;

import {IERC20} from "@openzeppelin/contracts/token/ERC20/IERC20.sol";
import {ERC20} from "@openzeppelin/contracts/token/ERC20/ERC20.sol";
import {IERC4626Partial} from "../IERC4626Partial.sol";
import {IOracle} from "../IOracle.sol";
import "@openzeppelin/contracts/utils/ReentrancyGuard.sol";
import "@openzeppelin/contracts/utils/structs/EnumerableSet.sol";
import "@openzeppelin/contracts/utils/Pausable.sol";
import {IMintAndBurn} from "./IMintAndBurn.sol";
import "@openzeppelin/contracts/access/AccessControl.sol";

contract LiquidityManager is AccessControl, ReentrancyGuard, Pausable {
    bytes32 public constant ADMIN_ROLE = keccak256("ADMIN_ROLE");
    bytes32 public constant MODIFIER_ROLE = keccak256("MODIFIER_ROLE");

    using EnumerableSet for EnumerableSet.Bytes32Set;

    struct Vault {
        uint8 weight;
        address vault;
    }

    struct UnstakeRequest {
        address account;
        uint256 shares;
        uint256[] indices;
        address[] vaults;
        uint256 cliff;
        bool processed;
    }

    EnumerableSet.Bytes32Set private _vaults;
    address private immutable _self;
    uint256 private _nonce;
    uint256 public totalWeight;
    uint256 constant SCALE = 1e18;
    uint256 public immutable _vesting_period;
    address public underlying;

    mapping(uint256 => UnstakeRequest) public unstakeRequests;

    constructor(address _underlying, address _defaultAdmin) {
        require(_underlying != address(0), "lm: underlying 0");
        if (_defaultAdmin == address(0)) {
            _defaultAdmin = msg.sender;
        }

        _grantRole(DEFAULT_ADMIN_ROLE, _defaultAdmin);
        _self = address(this);
        _vesting_period = 10 days;
        underlying = _underlying;
    }

    function setUnderlying(address _underlying) external onlyRole(ADMIN_ROLE) {
        underlying = _underlying;

        emit UnderlyingSet(_underlying);
    }

    function getVaultCount() external view returns (uint256) {
        return _vaults.length();
    }

    function getNonce() external view returns (uint256) {
        return _nonce;
    }

    function getVaultAt(uint256 index) external view returns (Vault memory) {
        require(index < _vaults.length(), "getVaultAt: Index out of bounds");
        return _bytes32ToVault(_vaults.at(index));
    }

    // Helper function to convert Vault struct to bytes32
    function _vaultToBytes32(
        Vault memory vault
    ) internal pure returns (bytes32) {
        return
            bytes32(
                (uint256(uint8(vault.weight)) << 160) | uint160(vault.vault)
            );
    }

    // Helper function to convert bytes32 to Vault struct
    function _bytes32ToVault(
        bytes32 data
    ) internal pure returns (Vault memory) {
        uint8 weight = uint8(uint256(data) >> 160);
        address vault = address(uint160(uint256(data)));
        return Vault(weight, vault);
    }

    function virtualBalance() external returns (uint256) {
        return _virtualBalance();
    }

    function _virtualBalance() private returns (uint256) {
        // iterate over all vaults and calculate total value
        uint256 value;
        uint256 count = _vaults.length();
        for (uint256 i = 0; i < count; i++) {
            Vault memory v = _bytes32ToVault(_vaults.at(i));
            value += IERC4626Partial(v.vault).virtualBalance();
        }

        return value;
    }

    function previewDeposit(uint256 amount) external returns (uint256) {
        uint256 value = _virtualBalance();
        return value == 0 ? 0 : (IERC20(underlying).totalSupply() * amount) / value;
    }

    function addVault(
        address vault,
        uint8 weight
    ) external onlyRole(MODIFIER_ROLE) {
        Vault memory newVault = Vault(weight, vault);
        require(
            _vaults.add(_vaultToBytes32(newVault)),
            "addVault: Vault already exists"
        );
        totalWeight += weight;
        emit VaultAdded(vault);
    }

    function removeVault(uint256 index) external onlyRole(MODIFIER_ROLE) {
        Vault memory vaultToRemove = _bytes32ToVault(_vaults.at(index));
        require(
            _vaults.remove(_vaultToBytes32(vaultToRemove)),
            "removeVault: Vault does not exist"
        );

        totalWeight -= vaultToRemove.weight;
        emit VaultRemoved(vaultToRemove.vault);
    }

    function stake() external payable nonReentrant whenNotPaused {
        require(msg.value > 0, "stake: Invalid amount");
        require(totalWeight > 0, "stake: Total weight is 0");

        uint256 amount = msg.value;
        uint256 count = _vaults.length();

        // need to check for zero balance on first deposit
        uint256 vaultsVirtualBalance;

        for (uint256 i = 0; i < count; i++) {
            Vault memory v = _bytes32ToVault(_vaults.at(i));
            uint256 portion = (amount * v.weight) / totalWeight;

            IERC4626Partial vault = IERC4626Partial(v.vault);
            // add virtual balance of each vault to mem virtualBalance
            vaultsVirtualBalance += vault.virtualBalance();
            // Deposit assets into the vault, use 0 as there's no ERC20 token to transfer
            vault.deposit{value: portion}(0, _self);
        }

        uint256 sharesToMint = vaultsVirtualBalance == 0 /* first deposit */
            ? amount
            : (amount * IERC20(underlying).totalSupply()) /
                vaultsVirtualBalance /* amount multiplied by share value */;

        require(sharesToMint > 0, "stake: No shares to mint");

        if (sharesToMint > 0) {
            IMintAndBurn(underlying).mint(msg.sender, sharesToMint);
        }
        
        emit Staked(msg.sender, msg.value);
    }

    function queueUnstake(uint256 shares) external whenNotPaused {
        uint256 count = _vaults.length();
        // Burn the shares from the sender
        // ratio burned
        uint256 ratio = (shares * SCALE) / IERC20(underlying).totalSupply();
        // burn
        IMintAndBurn(underlying).burn(msg.sender, shares);

        uint256[] memory indices = new uint256[](count);
        address[] memory vaults = new address[](count);

        for (uint256 i = 0; i < count; i++) {
            Vault memory v = _bytes32ToVault(_vaults.at(i));
            vaults[i] = v.vault;
            IERC4626Partial vault = IERC4626Partial(v.vault);
            (uint256 index, ) = vault.queueWithdraw(ratio, _self, _self);
            indices[i] = index;
        }

        uint256 cliff = block.timestamp + _vesting_period;
        UnstakeRequest memory request = UnstakeRequest(
            msg.sender,
            shares,
            indices,
            vaults,
            cliff,
            false
        );
        _nonce++; // make sure nonce start at 1 not at 0 (default)
        unstakeRequests[_nonce] = request;
        emit UnstakeQueued(msg.sender, shares, cliff, _nonce);
    }

    function unstake(uint256 nonce) external nonReentrant whenNotPaused {
        UnstakeRequest storage request = unstakeRequests[nonce];
        require(!request.processed, "unstake: Request already processed");
        require(request.account == msg.sender, "unstake: Invalid request");
        require(block.timestamp >= request.cliff, "unstake: Cliff not reached");

        request.processed = true;
        uint256 assets;
        uint256 count = request.indices.length;

        for (uint256 i = 0; i < count; i++) {
            IERC4626Partial vault = IERC4626Partial(request.vaults[i]);
            assets += vault.withdraw(request.indices[i]); // this throws if not ready
        }

        require(assets > 0, "unstake: No assets withdrawn");
        unstakeRequests[nonce].processed = true;
        // do native eth transfer
        (bool sent, ) = payable(msg.sender).call{value: assets}("");
        require(sent, "Failed to send Ether");

        emit Unstaked(msg.sender, assets, nonce);
    }

    /*
     * @notice Rebalance the vaults
     */
    function rebalance() external onlyRole(ADMIN_ROLE) {
        uint256 count = _vaults.length();
        for (uint256 i = 0; i < count; i++) {
            Vault memory v = _bytes32ToVault(_vaults.at(i));
            IERC4626Partial vault = IERC4626Partial(v.vault);
            address asset = vault.asset();
            uint256 assets = IERC20(asset).balanceOf(_self);

            if (assets > 0) {
                vault.deposit(assets, _self);
            }
        }
    }

    /*
     * @notice Pause or Unpause the contract
     */
    function togglePause() external onlyRole(ADMIN_ROLE) {
        paused() ? _unpause() : _pause();
    }

    receive() external payable {}

    event Staked(address indexed account, uint256 assets);
    event UnderlyingSet(address indexed underlying);
    event Unstaked(address indexed account, uint256 assets, uint256 nonce);
    event UnstakeQueued(address indexed account, uint256 shares, uint256 cliff, uint256 nonce);
    event VaultAdded(address indexed vault);
    event VaultRemoved(address indexed vault);
}

// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.0.0) (access/AccessControl.sol)

pragma solidity ^0.8.20;

import {IAccessControl} from "./IAccessControl.sol";
import {Context} from "../utils/Context.sol";
import {ERC165} from "../utils/introspection/ERC165.sol";

/**
 * @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:
 *
 * ```solidity
 * 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}:
 *
 * ```solidity
 * 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. We recommend using {AccessControlDefaultAdminRules}
 * to enforce additional security measures for this role.
 */
abstract contract AccessControl is Context, IAccessControl, ERC165 {
    struct RoleData {
        mapping(address account => bool) hasRole;
        bytes32 adminRole;
    }

    mapping(bytes32 role => RoleData) private _roles;

    bytes32 public constant DEFAULT_ADMIN_ROLE = 0x00;

    /**
     * @dev Modifier that checks that an account has a specific role. Reverts
     * with an {AccessControlUnauthorizedAccount} error including the required role.
     */
    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 returns (bool) {
        return _roles[role].hasRole[account];
    }

    /**
     * @dev Reverts with an {AccessControlUnauthorizedAccount} error if `_msgSender()`
     * is missing `role`. Overriding this function changes the behavior of the {onlyRole} modifier.
     */
    function _checkRole(bytes32 role) internal view virtual {
        _checkRole(role, _msgSender());
    }

    /**
     * @dev Reverts with an {AccessControlUnauthorizedAccount} error if `account`
     * is missing `role`.
     */
    function _checkRole(bytes32 role, address account) internal view virtual {
        if (!hasRole(role, account)) {
            revert AccessControlUnauthorizedAccount(account, role);
        }
    }

    /**
     * @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 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.
     *
     * May emit a {RoleGranted} event.
     */
    function grantRole(bytes32 role, address account) public virtual 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.
     *
     * May emit a {RoleRevoked} event.
     */
    function revokeRole(bytes32 role, address account) public virtual 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 `callerConfirmation`.
     *
     * May emit a {RoleRevoked} event.
     */
    function renounceRole(bytes32 role, address callerConfirmation) public virtual {
        if (callerConfirmation != _msgSender()) {
            revert AccessControlBadConfirmation();
        }

        _revokeRole(role, callerConfirmation);
    }

    /**
     * @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 Attempts to grant `role` to `account` and returns a boolean indicating if `role` was granted.
     *
     * Internal function without access restriction.
     *
     * May emit a {RoleGranted} event.
     */
    function _grantRole(bytes32 role, address account) internal virtual returns (bool) {
        if (!hasRole(role, account)) {
            _roles[role].hasRole[account] = true;
            emit RoleGranted(role, account, _msgSender());
            return true;
        } else {
            return false;
        }
    }

    /**
     * @dev Attempts to revoke `role` to `account` and returns a boolean indicating if `role` was revoked.
     *
     * Internal function without access restriction.
     *
     * May emit a {RoleRevoked} event.
     */
    function _revokeRole(bytes32 role, address account) internal virtual returns (bool) {
        if (hasRole(role, account)) {
            _roles[role].hasRole[account] = false;
            emit RoleRevoked(role, account, _msgSender());
            return true;
        } else {
            return false;
        }
    }
}

// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.1.0) (access/IAccessControl.sol)

pragma solidity ^0.8.20;

/**
 * @dev External interface of AccessControl declared to support ERC-165 detection.
 */
interface IAccessControl {
    /**
     * @dev The `account` is missing a role.
     */
    error AccessControlUnauthorizedAccount(address account, bytes32 neededRole);

    /**
     * @dev The caller of a function is not the expected one.
     *
     * NOTE: Don't confuse with {AccessControlUnauthorizedAccount}.
     */
    error AccessControlBadConfirmation();

    /**
     * @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.
     */
    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. This account bears the admin role (for the granted role).
     * Expected in cases where the role was granted using the internal {AccessControl-_grantRole}.
     */
    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 `callerConfirmation`.
     */
    function renounceRole(bytes32 role, address callerConfirmation) external;
}

// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.1.0) (interfaces/draft-IERC6093.sol)
pragma solidity ^0.8.20;

/**
 * @dev Standard ERC-20 Errors
 * Interface of the https://eips.ethereum.org/EIPS/eip-6093[ERC-6093] custom errors for ERC-20 tokens.
 */
interface IERC20Errors {
    /**
     * @dev Indicates an error related to the current `balance` of a `sender`. Used in transfers.
     * @param sender Address whose tokens are being transferred.
     * @param balance Current balance for the interacting account.
     * @param needed Minimum amount required to perform a transfer.
     */
    error ERC20InsufficientBalance(address sender, uint256 balance, uint256 needed);

    /**
     * @dev Indicates a failure with the token `sender`. Used in transfers.
     * @param sender Address whose tokens are being transferred.
     */
    error ERC20InvalidSender(address sender);

    /**
     * @dev Indicates a failure with the token `receiver`. Used in transfers.
     * @param receiver Address to which tokens are being transferred.
     */
    error ERC20InvalidReceiver(address receiver);

    /**
     * @dev Indicates a failure with the `spender`’s `allowance`. Used in transfers.
     * @param spender Address that may be allowed to operate on tokens without being their owner.
     * @param allowance Amount of tokens a `spender` is allowed to operate with.
     * @param needed Minimum amount required to perform a transfer.
     */
    error ERC20InsufficientAllowance(address spender, uint256 allowance, uint256 needed);

    /**
     * @dev Indicates a failure with the `approver` of a token to be approved. Used in approvals.
     * @param approver Address initiating an approval operation.
     */
    error ERC20InvalidApprover(address approver);

    /**
     * @dev Indicates a failure with the `spender` to be approved. Used in approvals.
     * @param spender Address that may be allowed to operate on tokens without being their owner.
     */
    error ERC20InvalidSpender(address spender);
}

/**
 * @dev Standard ERC-721 Errors
 * Interface of the https://eips.ethereum.org/EIPS/eip-6093[ERC-6093] custom errors for ERC-721 tokens.
 */
interface IERC721Errors {
    /**
     * @dev Indicates that an address can't be an owner. For example, `address(0)` is a forbidden owner in ERC-20.
     * Used in balance queries.
     * @param owner Address of the current owner of a token.
     */
    error ERC721InvalidOwner(address owner);

    /**
     * @dev Indicates a `tokenId` whose `owner` is the zero address.
     * @param tokenId Identifier number of a token.
     */
    error ERC721NonexistentToken(uint256 tokenId);

    /**
     * @dev Indicates an error related to the ownership over a particular token. Used in transfers.
     * @param sender Address whose tokens are being transferred.
     * @param tokenId Identifier number of a token.
     * @param owner Address of the current owner of a token.
     */
    error ERC721IncorrectOwner(address sender, uint256 tokenId, address owner);

    /**
     * @dev Indicates a failure with the token `sender`. Used in transfers.
     * @param sender Address whose tokens are being transferred.
     */
    error ERC721InvalidSender(address sender);

    /**
     * @dev Indicates a failure with the token `receiver`. Used in transfers.
     * @param receiver Address to which tokens are being transferred.
     */
    error ERC721InvalidReceiver(address receiver);

    /**
     * @dev Indicates a failure with the `operator`’s approval. Used in transfers.
     * @param operator Address that may be allowed to operate on tokens without being their owner.
     * @param tokenId Identifier number of a token.
     */
    error ERC721InsufficientApproval(address operator, uint256 tokenId);

    /**
     * @dev Indicates a failure with the `approver` of a token to be approved. Used in approvals.
     * @param approver Address initiating an approval operation.
     */
    error ERC721InvalidApprover(address approver);

    /**
     * @dev Indicates a failure with the `operator` to be approved. Used in approvals.
     * @param operator Address that may be allowed to operate on tokens without being their owner.
     */
    error ERC721InvalidOperator(address operator);
}

/**
 * @dev Standard ERC-1155 Errors
 * Interface of the https://eips.ethereum.org/EIPS/eip-6093[ERC-6093] custom errors for ERC-1155 tokens.
 */
interface IERC1155Errors {
    /**
     * @dev Indicates an error related to the current `balance` of a `sender`. Used in transfers.
     * @param sender Address whose tokens are being transferred.
     * @param balance Current balance for the interacting account.
     * @param needed Minimum amount required to perform a transfer.
     * @param tokenId Identifier number of a token.
     */
    error ERC1155InsufficientBalance(address sender, uint256 balance, uint256 needed, uint256 tokenId);

    /**
     * @dev Indicates a failure with the token `sender`. Used in transfers.
     * @param sender Address whose tokens are being transferred.
     */
    error ERC1155InvalidSender(address sender);

    /**
     * @dev Indicates a failure with the token `receiver`. Used in transfers.
     * @param receiver Address to which tokens are being transferred.
     */
    error ERC1155InvalidReceiver(address receiver);

    /**
     * @dev Indicates a failure with the `operator`’s approval. Used in transfers.
     * @param operator Address that may be allowed to operate on tokens without being their owner.
     * @param owner Address of the current owner of a token.
     */
    error ERC1155MissingApprovalForAll(address operator, address owner);

    /**
     * @dev Indicates a failure with the `approver` of a token to be approved. Used in approvals.
     * @param approver Address initiating an approval operation.
     */
    error ERC1155InvalidApprover(address approver);

    /**
     * @dev Indicates a failure with the `operator` to be approved. Used in approvals.
     * @param operator Address that may be allowed to operate on tokens without being their owner.
     */
    error ERC1155InvalidOperator(address operator);

    /**
     * @dev Indicates an array length mismatch between ids and values in a safeBatchTransferFrom operation.
     * Used in batch transfers.
     * @param idsLength Length of the array of token identifiers
     * @param valuesLength Length of the array of token amounts
     */
    error ERC1155InvalidArrayLength(uint256 idsLength, uint256 valuesLength);
}

// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.1.0) (token/ERC20/ERC20.sol)

pragma solidity ^0.8.20;

import {IERC20} from "./IERC20.sol";
import {IERC20Metadata} from "./extensions/IERC20Metadata.sol";
import {Context} from "../../utils/Context.sol";
import {IERC20Errors} from "../../interfaces/draft-IERC6093.sol";

/**
 * @dev Implementation of the {IERC20} interface.
 *
 * This implementation is agnostic to the way tokens are created. This means
 * that a supply mechanism has to be added in a derived contract using {_mint}.
 *
 * TIP: For a detailed writeup see our guide
 * https://forum.openzeppelin.com/t/how-to-implement-erc20-supply-mechanisms/226[How
 * to implement supply mechanisms].
 *
 * The default value of {decimals} is 18. To change this, you should override
 * this function so it returns a different value.
 *
 * 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 ERC-20
 * applications.
 */
abstract contract ERC20 is Context, IERC20, IERC20Metadata, IERC20Errors {
    mapping(address account => uint256) private _balances;

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

    uint256 private _totalSupply;

    string private _name;
    string private _symbol;

    /**
     * @dev Sets the values for {name} and {symbol}.
     *
     * 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 returns (string memory) {
        return _name;
    }

    /**
     * @dev Returns the symbol of the token, usually a shorter version of the
     * name.
     */
    function symbol() public view virtual 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 default value returned by this function, unless
     * it's 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 returns (uint8) {
        return 18;
    }

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

    /**
     * @dev See {IERC20-balanceOf}.
     */
    function balanceOf(address account) public view virtual 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 `value`.
     */
    function transfer(address to, uint256 value) public virtual returns (bool) {
        address owner = _msgSender();
        _transfer(owner, to, value);
        return true;
    }

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

    /**
     * @dev See {IERC20-approve}.
     *
     * NOTE: If `value` 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 value) public virtual returns (bool) {
        address owner = _msgSender();
        _approve(owner, spender, value);
        return true;
    }

    /**
     * @dev See {IERC20-transferFrom}.
     *
     * Skips emitting an {Approval} event indicating an allowance update. This is not
     * required by the ERC. See {xref-ERC20-_approve-address-address-uint256-bool-}[_approve].
     *
     * 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 `value`.
     * - the caller must have allowance for ``from``'s tokens of at least
     * `value`.
     */
    function transferFrom(address from, address to, uint256 value) public virtual returns (bool) {
        address spender = _msgSender();
        _spendAllowance(from, spender, value);
        _transfer(from, to, value);
        return true;
    }

    /**
     * @dev Moves a `value` amount of tokens from `from` to `to`.
     *
     * 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.
     *
     * NOTE: This function is not virtual, {_update} should be overridden instead.
     */
    function _transfer(address from, address to, uint256 value) internal {
        if (from == address(0)) {
            revert ERC20InvalidSender(address(0));
        }
        if (to == address(0)) {
            revert ERC20InvalidReceiver(address(0));
        }
        _update(from, to, value);
    }

    /**
     * @dev Transfers a `value` amount of tokens from `from` to `to`, or alternatively mints (or burns) if `from`
     * (or `to`) is the zero address. All customizations to transfers, mints, and burns should be done by overriding
     * this function.
     *
     * Emits a {Transfer} event.
     */
    function _update(address from, address to, uint256 value) internal virtual {
        if (from == address(0)) {
            // Overflow check required: The rest of the code assumes that totalSupply never overflows
            _totalSupply += value;
        } else {
            uint256 fromBalance = _balances[from];
            if (fromBalance < value) {
                revert ERC20InsufficientBalance(from, fromBalance, value);
            }
            unchecked {
                // Overflow not possible: value <= fromBalance <= totalSupply.
                _balances[from] = fromBalance - value;
            }
        }

        if (to == address(0)) {
            unchecked {
                // Overflow not possible: value <= totalSupply or value <= fromBalance <= totalSupply.
                _totalSupply -= value;
            }
        } else {
            unchecked {
                // Overflow not possible: balance + value is at most totalSupply, which we know fits into a uint256.
                _balances[to] += value;
            }
        }

        emit Transfer(from, to, value);
    }

    /**
     * @dev Creates a `value` amount of tokens and assigns them to `account`, by transferring it from address(0).
     * Relies on the `_update` mechanism
     *
     * Emits a {Transfer} event with `from` set to the zero address.
     *
     * NOTE: This function is not virtual, {_update} should be overridden instead.
     */
    function _mint(address account, uint256 value) internal {
        if (account == address(0)) {
            revert ERC20InvalidReceiver(address(0));
        }
        _update(address(0), account, value);
    }

    /**
     * @dev Destroys a `value` amount of tokens from `account`, lowering the total supply.
     * Relies on the `_update` mechanism.
     *
     * Emits a {Transfer} event with `to` set to the zero address.
     *
     * NOTE: This function is not virtual, {_update} should be overridden instead
     */
    function _burn(address account, uint256 value) internal {
        if (account == address(0)) {
            revert ERC20InvalidSender(address(0));
        }
        _update(account, address(0), value);
    }

    /**
     * @dev Sets `value` 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.
     *
     * Overrides to this logic should be done to the variant with an additional `bool emitEvent` argument.
     */
    function _approve(address owner, address spender, uint256 value) internal {
        _approve(owner, spender, value, true);
    }

    /**
     * @dev Variant of {_approve} with an optional flag to enable or disable the {Approval} event.
     *
     * By default (when calling {_approve}) the flag is set to true. On the other hand, approval changes made by
     * `_spendAllowance` during the `transferFrom` operation set the flag to false. This saves gas by not emitting any
     * `Approval` event during `transferFrom` operations.
     *
     * Anyone who wishes to continue emitting `Approval` events on the`transferFrom` operation can force the flag to
     * true using the following override:
     *
     * ```solidity
     * function _approve(address owner, address spender, uint256 value, bool) internal virtual override {
     *     super._approve(owner, spender, value, true);
     * }
     * ```
     *
     * Requirements are the same as {_approve}.
     */
    function _approve(address owner, address spender, uint256 value, bool emitEvent) internal virtual {
        if (owner == address(0)) {
            revert ERC20InvalidApprover(address(0));
        }
        if (spender == address(0)) {
            revert ERC20InvalidSpender(address(0));
        }
        _allowances[owner][spender] = value;
        if (emitEvent) {
            emit Approval(owner, spender, value);
        }
    }

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

// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.1.0) (token/ERC20/extensions/IERC20Metadata.sol)

pragma solidity ^0.8.20;

import {IERC20} from "../IERC20.sol";

/**
 * @dev Interface for the optional metadata functions from the ERC-20 standard.
 */
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);
}

// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.1.0) (token/ERC20/IERC20.sol)

pragma solidity ^0.8.20;

/**
 * @dev Interface of the ERC-20 standard as defined in the ERC.
 */
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 value of tokens in existence.
     */
    function totalSupply() external view returns (uint256);

    /**
     * @dev Returns the value of tokens owned by `account`.
     */
    function balanceOf(address account) external view returns (uint256);

    /**
     * @dev Moves a `value` amount of 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 value) 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 a `value` amount of tokens 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 value) external returns (bool);

    /**
     * @dev Moves a `value` amount of tokens from `from` to `to` using the
     * allowance mechanism. `value` 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 value) external returns (bool);
}

// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.0.1) (utils/Context.sol)

pragma solidity ^0.8.20;

/**
 * @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;
    }

    function _contextSuffixLength() internal view virtual returns (uint256) {
        return 0;
    }
}

// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.1.0) (utils/introspection/ERC165.sol)

pragma solidity ^0.8.20;

import {IERC165} from "./IERC165.sol";

/**
 * @dev Implementation of the {IERC165} interface.
 *
 * Contracts that want to implement ERC-165 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);
 * }
 * ```
 */
abstract contract ERC165 is IERC165 {
    /**
     * @dev See {IERC165-supportsInterface}.
     */
    function supportsInterface(bytes4 interfaceId) public view virtual returns (bool) {
        return interfaceId == type(IERC165).interfaceId;
    }
}

// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.1.0) (utils/introspection/IERC165.sol)

pragma solidity ^0.8.20;

/**
 * @dev Interface of the ERC-165 standard, as defined in the
 * https://eips.ethereum.org/EIPS/eip-165[ERC].
 *
 * 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[ERC 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);
}

// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.0.0) (utils/Pausable.sol)

pragma solidity ^0.8.20;

import {Context} from "../utils/Context.sol";

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

    /**
     * @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);

    /**
     * @dev The operation failed because the contract is paused.
     */
    error EnforcedPause();

    /**
     * @dev The operation failed because the contract is not paused.
     */
    error ExpectedPause();

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

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

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

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

    /**
     * @dev Throws if the contract is paused.
     */
    function _requireNotPaused() internal view virtual {
        if (paused()) {
            revert EnforcedPause();
        }
    }

    /**
     * @dev Throws if the contract is not paused.
     */
    function _requirePaused() internal view virtual {
        if (!paused()) {
            revert ExpectedPause();
        }
    }

    /**
     * @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());
    }
}

// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.1.0) (utils/ReentrancyGuard.sol)

pragma solidity ^0.8.20;

/**
 * @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 EIP-1153 (transient storage) is available on the chain you're deploying at,
 * consider using {ReentrancyGuardTransient} instead.
 *
 * 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;

    /**
     * @dev Unauthorized reentrant call.
     */
    error ReentrancyGuardReentrantCall();

    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() {
        _nonReentrantBefore();
        _;
        _nonReentrantAfter();
    }

    function _nonReentrantBefore() private {
        // On the first call to nonReentrant, _status will be NOT_ENTERED
        if (_status == ENTERED) {
            revert ReentrancyGuardReentrantCall();
        }

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

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

    /**
     * @dev Returns true if the reentrancy guard is currently set to "entered", which indicates there is a
     * `nonReentrant` function in the call stack.
     */
    function _reentrancyGuardEntered() internal view returns (bool) {
        return _status == ENTERED;
    }
}

// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.1.0) (utils/structs/EnumerableSet.sol)
// This file was procedurally generated from scripts/generate/templates/EnumerableSet.js.

pragma solidity ^0.8.20;

/**
 * @dev Library for managing
 * https://en.wikipedia.org/wiki/Set_(abstract_data_type)[sets] of primitive
 * types.
 *
 * Sets have the following properties:
 *
 * - Elements are added, removed, and checked for existence in constant time
 * (O(1)).
 * - Elements are enumerated in O(n). No guarantees are made on the ordering.
 *
 * ```solidity
 * contract Example {
 *     // Add the library methods
 *     using EnumerableSet for EnumerableSet.AddressSet;
 *
 *     // Declare a set state variable
 *     EnumerableSet.AddressSet private mySet;
 * }
 * ```
 *
 * As of v3.3.0, sets of type `bytes32` (`Bytes32Set`), `address` (`AddressSet`)
 * and `uint256` (`UintSet`) are supported.
 *
 * [WARNING]
 * ====
 * Trying to delete such a structure from storage will likely result in data corruption, rendering the structure
 * unusable.
 * See https://github.com/ethereum/solidity/pull/11843[ethereum/solidity#11843] for more info.
 *
 * In order to clean an EnumerableSet, you can either remove all elements one by one or create a fresh instance using an
 * array of EnumerableSet.
 * ====
 */
library EnumerableSet {
    // To implement this library for multiple types with as little code
    // repetition as possible, we write it in terms of a generic Set type with
    // bytes32 values.
    // The Set implementation uses private functions, and user-facing
    // implementations (such as AddressSet) are just wrappers around the
    // underlying Set.
    // This means that we can only create new EnumerableSets for types that fit
    // in bytes32.

    struct Set {
        // Storage of set values
        bytes32[] _values;
        // Position is the index of the value in the `values` array plus 1.
        // Position 0 is used to mean a value is not in the set.
        mapping(bytes32 value => uint256) _positions;
    }

    /**
     * @dev Add a value to a set. O(1).
     *
     * Returns true if the value was added to the set, that is if it was not
     * already present.
     */
    function _add(Set storage set, bytes32 value) private returns (bool) {
        if (!_contains(set, value)) {
            set._values.push(value);
            // The value is stored at length-1, but we add 1 to all indexes
            // and use 0 as a sentinel value
            set._positions[value] = set._values.length;
            return true;
        } else {
            return false;
        }
    }

    /**
     * @dev Removes a value from a set. O(1).
     *
     * Returns true if the value was removed from the set, that is if it was
     * present.
     */
    function _remove(Set storage set, bytes32 value) private returns (bool) {
        // We cache the value's position to prevent multiple reads from the same storage slot
        uint256 position = set._positions[value];

        if (position != 0) {
            // Equivalent to contains(set, value)
            // To delete an element from the _values array in O(1), we swap the element to delete with the last one in
            // the array, and then remove the last element (sometimes called as 'swap and pop').
            // This modifies the order of the array, as noted in {at}.

            uint256 valueIndex = position - 1;
            uint256 lastIndex = set._values.length - 1;

            if (valueIndex != lastIndex) {
                bytes32 lastValue = set._values[lastIndex];

                // Move the lastValue to the index where the value to delete is
                set._values[valueIndex] = lastValue;
                // Update the tracked position of the lastValue (that was just moved)
                set._positions[lastValue] = position;
            }

            // Delete the slot where the moved value was stored
            set._values.pop();

            // Delete the tracked position for the deleted slot
            delete set._positions[value];

            return true;
        } else {
            return false;
        }
    }

    /**
     * @dev Returns true if the value is in the set. O(1).
     */
    function _contains(Set storage set, bytes32 value) private view returns (bool) {
        return set._positions[value] != 0;
    }

    /**
     * @dev Returns the number of values on the set. O(1).
     */
    function _length(Set storage set) private view returns (uint256) {
        return set._values.length;
    }

    /**
     * @dev Returns the value stored at position `index` in the set. O(1).
     *
     * Note that there are no guarantees on the ordering of values inside the
     * array, and it may change when more values are added or removed.
     *
     * Requirements:
     *
     * - `index` must be strictly less than {length}.
     */
    function _at(Set storage set, uint256 index) private view returns (bytes32) {
        return set._values[index];
    }

    /**
     * @dev Return the entire set in an array
     *
     * WARNING: This operation will copy the entire storage to memory, which can be quite expensive. This is designed
     * to mostly be used by view accessors that are queried without any gas fees. Developers should keep in mind that
     * this function has an unbounded cost, and using it as part of a state-changing function may render the function
     * uncallable if the set grows to a point where copying to memory consumes too much gas to fit in a block.
     */
    function _values(Set storage set) private view returns (bytes32[] memory) {
        return set._values;
    }

    // Bytes32Set

    struct Bytes32Set {
        Set _inner;
    }

    /**
     * @dev Add a value to a set. O(1).
     *
     * Returns true if the value was added to the set, that is if it was not
     * already present.
     */
    function add(Bytes32Set storage set, bytes32 value) internal returns (bool) {
        return _add(set._inner, value);
    }

    /**
     * @dev Removes a value from a set. O(1).
     *
     * Returns true if the value was removed from the set, that is if it was
     * present.
     */
    function remove(Bytes32Set storage set, bytes32 value) internal returns (bool) {
        return _remove(set._inner, value);
    }

    /**
     * @dev Returns true if the value is in the set. O(1).
     */
    function contains(Bytes32Set storage set, bytes32 value) internal view returns (bool) {
        return _contains(set._inner, value);
    }

    /**
     * @dev Returns the number of values in the set. O(1).
     */
    function length(Bytes32Set storage set) internal view returns (uint256) {
        return _length(set._inner);
    }

    /**
     * @dev Returns the value stored at position `index` in the set. O(1).
     *
     * Note that there are no guarantees on the ordering of values inside the
     * array, and it may change when more values are added or removed.
     *
     * Requirements:
     *
     * - `index` must be strictly less than {length}.
     */
    function at(Bytes32Set storage set, uint256 index) internal view returns (bytes32) {
        return _at(set._inner, index);
    }

    /**
     * @dev Return the entire set in an array
     *
     * WARNING: This operation will copy the entire storage to memory, which can be quite expensive. This is designed
     * to mostly be used by view accessors that are queried without any gas fees. Developers should keep in mind that
     * this function has an unbounded cost, and using it as part of a state-changing function may render the function
     * uncallable if the set grows to a point where copying to memory consumes too much gas to fit in a block.
     */
    function values(Bytes32Set storage set) internal view returns (bytes32[] memory) {
        bytes32[] memory store = _values(set._inner);
        bytes32[] memory result;

        assembly ("memory-safe") {
            result := store
        }

        return result;
    }

    // AddressSet

    struct AddressSet {
        Set _inner;
    }

    /**
     * @dev Add a value to a set. O(1).
     *
     * Returns true if the value was added to the set, that is if it was not
     * already present.
     */
    function add(AddressSet storage set, address value) internal returns (bool) {
        return _add(set._inner, bytes32(uint256(uint160(value))));
    }

    /**
     * @dev Removes a value from a set. O(1).
     *
     * Returns true if the value was removed from the set, that is if it was
     * present.
     */
    function remove(AddressSet storage set, address value) internal returns (bool) {
        return _remove(set._inner, bytes32(uint256(uint160(value))));
    }

    /**
     * @dev Returns true if the value is in the set. O(1).
     */
    function contains(AddressSet storage set, address value) internal view returns (bool) {
        return _contains(set._inner, bytes32(uint256(uint160(value))));
    }

    /**
     * @dev Returns the number of values in the set. O(1).
     */
    function length(AddressSet storage set) internal view returns (uint256) {
        return _length(set._inner);
    }

    /**
     * @dev Returns the value stored at position `index` in the set. O(1).
     *
     * Note that there are no guarantees on the ordering of values inside the
     * array, and it may change when more values are added or removed.
     *
     * Requirements:
     *
     * - `index` must be strictly less than {length}.
     */
    function at(AddressSet storage set, uint256 index) internal view returns (address) {
        return address(uint160(uint256(_at(set._inner, index))));
    }

    /**
     * @dev Return the entire set in an array
     *
     * WARNING: This operation will copy the entire storage to memory, which can be quite expensive. This is designed
     * to mostly be used by view accessors that are queried without any gas fees. Developers should keep in mind that
     * this function has an unbounded cost, and using it as part of a state-changing function may render the function
     * uncallable if the set grows to a point where copying to memory consumes too much gas to fit in a block.
     */
    function values(AddressSet storage set) internal view returns (address[] memory) {
        bytes32[] memory store = _values(set._inner);
        address[] memory result;

        assembly ("memory-safe") {
            result := store
        }

        return result;
    }

    // UintSet

    struct UintSet {
        Set _inner;
    }

    /**
     * @dev Add a value to a set. O(1).
     *
     * Returns true if the value was added to the set, that is if it was not
     * already present.
     */
    function add(UintSet storage set, uint256 value) internal returns (bool) {
        return _add(set._inner, bytes32(value));
    }

    /**
     * @dev Removes a value from a set. O(1).
     *
     * Returns true if the value was removed from the set, that is if it was
     * present.
     */
    function remove(UintSet storage set, uint256 value) internal returns (bool) {
        return _remove(set._inner, bytes32(value));
    }

    /**
     * @dev Returns true if the value is in the set. O(1).
     */
    function contains(UintSet storage set, uint256 value) internal view returns (bool) {
        return _contains(set._inner, bytes32(value));
    }

    /**
     * @dev Returns the number of values in the set. O(1).
     */
    function length(UintSet storage set) internal view returns (uint256) {
        return _length(set._inner);
    }

    /**
     * @dev Returns the value stored at position `index` in the set. O(1).
     *
     * Note that there are no guarantees on the ordering of values inside the
     * array, and it may change when more values are added or removed.
     *
     * Requirements:
     *
     * - `index` must be strictly less than {length}.
     */
    function at(UintSet storage set, uint256 index) internal view returns (uint256) {
        return uint256(_at(set._inner, index));
    }

    /**
     * @dev Return the entire set in an array
     *
     * WARNING: This operation will copy the entire storage to memory, which can be quite expensive. This is designed
     * to mostly be used by view accessors that are queried without any gas fees. Developers should keep in mind that
     * this function has an unbounded cost, and using it as part of a state-changing function may render the function
     * uncallable if the set grows to a point where copying to memory consumes too much gas to fit in a block.
     */
    function values(UintSet storage set) internal view returns (uint256[] memory) {
        bytes32[] memory store = _values(set._inner);
        uint256[] memory result;

        assembly ("memory-safe") {
            result := store
        }

        return result;
    }
}

// SPDX-License-Identifier: GPL-3.0
pragma solidity 0.8.27;

interface IMintable {
    function mint(address account, uint256 amount) external;
}

interface IBurnable {
    function burn(address account, uint256 amount) external;
}

interface IMintAndBurn is IMintable, IBurnable {}

// SPDX-License-Identifier: GPL-3.0
pragma solidity ^0.8.27;

interface IERC4626Partial {
    function asset() external view returns (address);
//    function canWithdraw(uint256 index) external view returns (bool);
    function deposit(
        uint256 assets,
        address receiver
    ) external payable returns (uint256 shares);
    function queueWithdraw(
        uint256 shares,
        address receiver,
        address owner
    ) external returns (uint256 index, uint256 cliff);
    function withdraw(uint256 index) external returns (uint256 assets);
    function totalAssets() external view returns (uint256);
    function virtualBalance() external returns (uint256);

    event Deposit(
        address indexed sender,
        address indexed owner,
        uint256 shares
    );
    event Withdraw(address indexed sender, uint256 assets);
    event QueueWithdraw(
        address indexed sender,
        uint256 shares,
        address indexed receiver,
        address indexed owner,
        uint256 cliff,
        uint256 nonce
    );
}

// SPDX-License-Identifier: GPL-3.0
pragma solidity ^0.8.27;

interface IOracle {
    function getValueInEth(address token) external returns (uint256);
}

Settings
{
  "optimizer": {
    "enabled": true,
    "runs": 100
  },
  "viaIR": true,
  "evmVersion": "paris",
  "outputSelection": {
    "*": {
      "*": [
        "evm.bytecode",
        "evm.deployedBytecode",
        "devdoc",
        "userdoc",
        "metadata",
        "abi"
      ]
    }
  }
}

Contract Security Audit

Contract ABI

API
[{"inputs":[{"internalType":"address","name":"_underlying","type":"address"},{"internalType":"address","name":"_defaultAdmin","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[],"name":"AccessControlBadConfirmation","type":"error"},{"inputs":[{"internalType":"address","name":"account","type":"address"},{"internalType":"bytes32","name":"neededRole","type":"bytes32"}],"name":"AccessControlUnauthorizedAccount","type":"error"},{"inputs":[],"name":"EnforcedPause","type":"error"},{"inputs":[],"name":"ExpectedPause","type":"error"},{"inputs":[],"name":"ReentrancyGuardReentrantCall","type":"error"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"account","type":"address"}],"name":"Paused","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"bytes32","name":"role","type":"bytes32"},{"indexed":true,"internalType":"bytes32","name":"previousAdminRole","type":"bytes32"},{"indexed":true,"internalType":"bytes32","name":"newAdminRole","type":"bytes32"}],"name":"RoleAdminChanged","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"bytes32","name":"role","type":"bytes32"},{"indexed":true,"internalType":"address","name":"account","type":"address"},{"indexed":true,"internalType":"address","name":"sender","type":"address"}],"name":"RoleGranted","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"bytes32","name":"role","type":"bytes32"},{"indexed":true,"internalType":"address","name":"account","type":"address"},{"indexed":true,"internalType":"address","name":"sender","type":"address"}],"name":"RoleRevoked","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"account","type":"address"},{"indexed":false,"internalType":"uint256","name":"assets","type":"uint256"}],"name":"Staked","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"underlying","type":"address"}],"name":"UnderlyingSet","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"account","type":"address"}],"name":"Unpaused","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"account","type":"address"},{"indexed":false,"internalType":"uint256","name":"shares","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"cliff","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"nonce","type":"uint256"}],"name":"UnstakeQueued","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"account","type":"address"},{"indexed":false,"internalType":"uint256","name":"assets","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"nonce","type":"uint256"}],"name":"Unstaked","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"vault","type":"address"}],"name":"VaultAdded","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"vault","type":"address"}],"name":"VaultRemoved","type":"event"},{"inputs":[],"name":"ADMIN_ROLE","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"DEFAULT_ADMIN_ROLE","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"MODIFIER_ROLE","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"_vesting_period","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"vault","type":"address"},{"internalType":"uint8","name":"weight","type":"uint8"}],"name":"addVault","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"getNonce","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"}],"name":"getRoleAdmin","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"index","type":"uint256"}],"name":"getVaultAt","outputs":[{"components":[{"internalType":"uint8","name":"weight","type":"uint8"},{"internalType":"address","name":"vault","type":"address"}],"internalType":"struct LiquidityManager.Vault","name":"","type":"tuple"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getVaultCount","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"account","type":"address"}],"name":"grantRole","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"account","type":"address"}],"name":"hasRole","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"paused","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"previewDeposit","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"shares","type":"uint256"}],"name":"queueUnstake","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"rebalance","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"index","type":"uint256"}],"name":"removeVault","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"callerConfirmation","type":"address"}],"name":"renounceRole","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"account","type":"address"}],"name":"revokeRole","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_underlying","type":"address"}],"name":"setUnderlying","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"stake","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"togglePause","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"totalWeight","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"underlying","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"nonce","type":"uint256"}],"name":"unstake","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"unstakeRequests","outputs":[{"internalType":"address","name":"account","type":"address"},{"internalType":"uint256","name":"shares","type":"uint256"},{"internalType":"uint256","name":"cliff","type":"uint256"},{"internalType":"bool","name":"processed","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"virtualBalance","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"nonpayable","type":"function"},{"stateMutability":"payable","type":"receive"}]

60c03461012057601f611ed138819003918201601f19168301916001600160401b0383118484101761012557808492604094855283398101031261012057610052602061004b8361013b565b920161013b565b600180556002805460ff191690556001600160a01b039091169081156100e8576001600160a01b038116156100e1575b61008b9061014f565b5030608052620d2f0060a052600780546001600160a01b031916919091179055604051611cd390816101de82396080518181816106a901528181610a9e0152610f03015260a05181818161053201526106e50152f35b5033610082565b60405162461bcd60e51b815260206004820152601060248201526f06c6d3a20756e6465726c79696e6720360841b6044820152606490fd5b600080fd5b634e487b7160e01b600052604160045260246000fd5b51906001600160a01b038216820361012057565b6001600160a01b0381166000908152600080516020611eb1833981519152602052604090205460ff166101d7576001600160a01b03166000818152600080516020611eb183398151915260205260408120805460ff191660011790553391907f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d8180a4600190565b5060009056fe608080604052600436101561001d575b50361561001b57600080fd5b005b600090813560e01c90816301ffc9a71461162a57508063248a9ca3146115fc5780632e17de78146112cc5780632f2ff15d1461128b57806336568abe146112465780633a4b66f114610ed25780635c975abb14610eaf5780636f307dc314610e8657806374d4e49114610e685780637575aa8a14610e2d57806375b238fc14610df25780637a98742d14610d565780637a9b27d014610c665780637d7c2a1c14610a8057806391d1485414610a355780639525d58b1461058f57806396c82e5714610571578063a217fddf14610555578063a407c1d81461051a578063bdb2321f146104b2578063c4ae3168146103fd578063d087d288146103df578063d547741f14610395578063dcd2af171461037a578063eaadd9761461026d578063ef8b30f7146101ab5763f87975af0361000f57346101a85760203660031901126101a8576040608091600435815260086020522060018060a01b038154169060018101549060ff6005600483015492015416916040519384526020840152604083015215156060820152f35b80fd5b50346101a85760203660031901126101a8576101c5611abf565b90816101d857602091505b604051908152f35b6007546040516318160ddd60e01b815290602090829060049082906001600160a01b03165afa9182156102615791610229575b5060209161021f6102249260043590611778565b61178b565b6101d0565b90506020813d602011610259575b8161024460209383611725565b810103126102545751602061020b565b600080fd5b3d9150610237565b604051903d90823e3d90fd5b50346101a85760203660031901126101a857610287611862565b6102a16102956004356116ab565b90549060031b1c611a8e565b805160208201516102c99160ff60a01b60a09190911b166001600160a01b0390911617611bd3565b1561032b5760ff81511660065490810390811161031757600655602001516001600160a01b03167fe71f3a50e5ad81964f352c411f1d45e35438ecd1acecef59ac81d9fbbf6cbc0a8280a280f35b634e487b7160e01b83526011600452602483fd5b60405162461bcd60e51b815260206004820152602160248201527f72656d6f76655661756c743a205661756c7420646f6573206e6f7420657869736044820152601d60fa1b6064820152608490fd5b50346101a857806003193601126101a85760206101d0611abf565b50346101a85760403660031901126101a8576103db6004356103b561167f565b906103d66103d182600052600060205260016040600020015490565b611946565b611a0c565b5080f35b50346101a857806003193601126101a8576020600554604051908152f35b50346101a857806003193601126101a8576104166118d4565b60025460ff811615610472575060025460ff8116156104635760ff19166002557f5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa6020604051338152a180f35b638dfc202b60e01b8252600482fd5b60019061047d611845565b60ff1916176002557f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a2586020604051338152a180f35b50346101a85760203660031901126101a8576104cc611695565b6104d46118d4565b600780546001600160a01b0319166001600160a01b039290921691821790557f48cb986ada9abba1c545a38db9a3dce91cb57f74826464b95a9d887a6457251c8280a280f35b50346101a857806003193601126101a85760206040517f00000000000000000000000000000000000000000000000000000000000000008152f35b50346101a857806003193601126101a857602090604051908152f35b50346101a857806003193601126101a8576020600654604051908152f35b50346101a85760203660031901126101a8576004356105ac611845565b600354670de0b6b3a76400008202828104670de0b6b3a76400001483151715610a21576007546040516318160ddd60e01b81526001600160a01b0390911691908590602081600481875afa9081156109db5782916109ea575b50610610919261178b565b91803b156109e657604051632770a7eb60e21b8152336004820152602481018690529082908290604490829084905af180156109db576109c2575b5050610656826117c4565b916106646040519384611725565b808352601f19610673826117c4565b01366020850137610683816117c4565b916106916040519384611725565b818352601f196106a0836117c4565b013660208501377f00000000000000000000000000000000000000000000000000000000000000006001600160a01b031686805b84811061090157505050505061070a7f000000000000000000000000000000000000000000000000000000000000000042611755565b916040519060c082018281106001600160401b038211176108ed5760405233825260208201928584526040830191825260608301908152608083019185835260a084019488865260055460001981146108d957600190810160058190558a52600860205260408a20955186546001600160a01b0319166001600160a01b03919091161786559051908501555180519060028501906001600160401b0383116108c557600160401b83116108c5576020906107c9848454818655856117ef565b0190895260208920895b8381106108b15750505050600383019051908151916001600160401b03831161089d57600160401b831161089d57602090610813848454818655856117ef565b0190885260208820885b838110610880575050505090600591516004820155019051151560ff8019835416911617905560055490604051928352602083015260408201527f41eefa78fc02f42c76e9656c020be15f3a1991b977d6166fb57140857c61bccb60603392a280f35b82516001600160a01b03168183015560209092019160010161081d565b634e487b7160e01b89526041600452602489fd5b6001906020845194019381840155016107d3565b634e487b7160e01b8a52604160045260248afd5b634e487b7160e01b8a52601160045260248afd5b634e487b7160e01b87526041600452602487fd5b60406020610911610295846116ab565b0180516001600160a01b0316610927848a6117db565b5251815163142cfe6160e21b815260048101879052602481018690526044810186905293849160649183916001600160a01b03165af180156109b7578990610981575b6001925061097882896117db565b520187906106d4565b506040823d82116109af575b8161099a60409383611725565b810103126109ab576001915161096a565b8880fd5b3d915061098d565b6040513d8b823e3d90fd5b816109cc91611725565b6109d757833861064b565b8380fd5b6040513d84823e3d90fd5b5080fd5b9150506020813d602011610a19575b81610a0660209383611725565b8101031261025457518590610610610605565b3d91506109f9565b634e487b7160e01b84526011600452602484fd5b50346101a85760403660031901126101a8576040610a5161167f565b91600435815280602052209060018060a01b0316600052602052602060ff604060002054166040519015158152f35b50346101a857806003193601126101a857610a996118d4565b6003547f00000000000000000000000000000000000000000000000000000000000000006001600160a01b031682805b838110610ad4575080f35b610af76020610ae2836116ab565b90546001600160a01b03939160031b1c611a8e565b0151166040516338d52e0f60e01b8152602081600481855afa908115610c19578491610c24575b506040516370a0823160e01b81526004810186905290602090829060249082906001600160a01b03165afa908115610c19578491610bdf575b5080610b6b575b5085925050600101610ac9565b9060446020926040519586938492636e553f6560e01b845260048401528860248401525af1918215610bd457600192610ba6575b8592610b5e565b610bc69060203d8111610bcd575b610bbe8183611725565b810190611746565b5038610b9f565b503d610bb4565b6040513d87823e3d90fd5b919293505060203d8111610c12575b610bf88183611725565b602082600092810103126101a85750908592915138610b57565b503d610bee565b6040513d86823e3d90fd5b90506020813d8211610c5e575b81610c3e60209383611725565b810103126109d757516001600160a01b03811681036109d7576020610b1e565b3d9150610c31565b50346101a85760403660031901126101a857610c80611695565b60243560ff8116809103610d5257610c96611862565b610cd2610ccd60405193610ca9856116f4565b8385526001600160a01b0316602090940184905260a083901b60ff60a01b16841790565b611b61565b15610d0d57610ce390600654611755565b6006557f7b7ef7a864d96a85497a1ed846adb39940dd6ccef678ff6ac8d55505e09b8cc48280a280f35b60405162461bcd60e51b815260206004820152601e60248201527f6164645661756c743a205661756c7420616c72656164792065786973747300006044820152606490fd5b8280fd5b50346101a85760203660031901126101a857600435610d736117ab565b50600354811015610dad57610d8c6102956040926116ab565b8151815160ff1681526020918201516001600160a01b031691810191909152f35b60405162461bcd60e51b815260206004820152601f60248201527f6765745661756c7441743a20496e646578206f7574206f6620626f756e6473006044820152606490fd5b50346101a857806003193601126101a85760206040517fa49807205ce4d355092ef5a8a18f56e8913cf4a201fbe287825b095693c217758152f35b50346101a857806003193601126101a85760206040517f62ca43aa15f7f495faa685ce5a258aa390fdc8d7094251dd23d32353f496ddfe8152f35b50346101a857806003193601126101a8576020600354604051908152f35b50346101a857806003193601126101a8576007546040516001600160a01b039091168152602090f35b50346101a857806003193601126101a857602060ff600254166040519015158152f35b50806003193601126101a857610ee6611823565b610eee611845565b341561120957600654156111c95760035481907f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316825b8281106110bc57505050806110335750345b80159081610ff357829115610f83575b506040513481527f9e71bc8eea02a63969f509818f2dafb9254532904319f9dbda79b67bd34a5f3d60203392a26001805580f35b6007546001600160a01b0316803b15610fef576040516340c10f1960e01b8152336004820152602481019290925290919081908390604490829084905af18015610fe257610fd2575b90610f4f565b610fdb91611725565b3881610fcc565b50604051903d90823e3d90fd5b5050fd5b60405162461bcd60e51b81526020600482015260186024820152771cdd185ad94e88139bc81cda185c995cc81d1bc81b5a5b9d60421b6044820152606490fd5b6007546040516318160ddd60e01b81529190602090839060049082906001600160a01b03165afa9182156110b157839261107b575b5061021f6110769234611778565b610f3f565b91506020823d6020116110a9575b8161109660209383611725565b81010312610d525790519061021f611068565b3d9150611089565b6040513d85823e3d90fd5b6110c8610295826116ab565b906110e36110da60ff84511634611778565b6006549061178b565b60209283015160405163dcd2af1760e01b81526001600160a01b03909116969193816004818b8b5af19081156111be578891611188575b5061112790602092611755565b95604460405180958193636e553f6560e01b83528b60048401528860248401525af191821561117d5760019261115f575b5001610f2d565b6111769060203d8111610bcd57610bbe8183611725565b5038611158565b6040513d88823e3d90fd5b90506020813d82116111b6575b816111a260209383611725565b810103126111b25751602061111a565b8780fd5b3d9150611195565b6040513d8a823e3d90fd5b60405162461bcd60e51b815260206004820152601860248201527707374616b653a20546f74616c2077656967687420697320360441b6044820152606490fd5b60405162461bcd60e51b81526020600482015260156024820152741cdd185ad94e88125b9d985b1a5908185b5bdd5b9d605a1b6044820152606490fd5b50346101a85760403660031901126101a85761126061167f565b336001600160a01b0382160361127c576103db90600435611a0c565b63334bd91960e11b8252600482fd5b50346101a85760403660031901126101a8576103db6004356112ab61167f565b906112c76103d182600052600060205260016040600020015490565b611981565b50346101a85760203660031901126101a8576004356112e9611823565b6112f1611845565b8082526008602052604082209060058201805460ff81166115ac5783546001600160a01b0316330361156c57600484015442106115275760ff1916600117905560028201805484938492906003015b8284106114815750505050811561143c57808352600860205260408320600501805460ff191660011790558280808085335af13d15611437573d6001600160401b03811161142357604051906113a0601f8201601f191660200183611725565b81528460203d92013e5b156113e75760405191825260208201527f7fc4727e062e336010f2c282598ef5f14facb3de68cf8195c2f23e1454b2b74e60403392a26001805580f35b60405162461bcd60e51b81526020600482015260146024820152732330b4b632b2103a379039b2b7321022ba3432b960611b6044820152606490fd5b634e487b7160e01b85526041600452602485fd5b6113aa565b60405162461bcd60e51b815260206004820152601c60248201527f756e7374616b653a204e6f206173736574732077697468647261776e000000006044820152606490fd5b9091929486602061149288856116dc565b905460039190911b1c6001600160a01b031660246114b08a886116dc565b90549060031b1c6040519485938492632e1a7d4d60e01b845260048401525af19081156111be5788916114f5575b506114eb90600192611755565b9501929190611340565b90506020813d821161151f575b8161150f60209383611725565b810103126111b2575160016114de565b3d9150611502565b60405162461bcd60e51b815260206004820152601a60248201527f756e7374616b653a20436c696666206e6f7420726561636865640000000000006044820152606490fd5b60405162461bcd60e51b81526020600482015260186024820152771d5b9cdd185ad94e88125b9d985b1a59081c995c5d595cdd60421b6044820152606490fd5b60405162461bcd60e51b815260206004820152602260248201527f756e7374616b653a205265717565737420616c72656164792070726f63657373604482015261195960f21b6064820152608490fd5b50346101a85760203660031901126101a85760206101d0600435600052600060205260016040600020015490565b9050346109e65760203660031901126109e65760043563ffffffff60e01b8116809103610d525760209250637965db0b60e01b811490811561166e575b5015158152f35b6301ffc9a760e01b14905038611667565b602435906001600160a01b038216820361025457565b600435906001600160a01b038216820361025457565b6003548110156116c657600360005260206000200190600090565b634e487b7160e01b600052603260045260246000fd5b80548210156116c65760005260206000200190600090565b604081019081106001600160401b0382111761170f57604052565b634e487b7160e01b600052604160045260246000fd5b90601f801991011681019081106001600160401b0382111761170f57604052565b90816020910312610254575190565b9190820180921161176257565b634e487b7160e01b600052601160045260246000fd5b8181029291811591840414171561176257565b8115611795570490565b634e487b7160e01b600052601260045260246000fd5b604051906117b8826116f4565b60006020838281520152565b6001600160401b03811161170f5760051b60200190565b80518210156116c65760209160051b010190565b9190918282106117fe57505050565b600052602060002091820191015b818110611817575050565b6000815560010161180c565b600260015414611834576002600155565b633ee5aeb560e01b60005260046000fd5b60ff6002541661185157565b63d93c066560e01b60005260046000fd5b3360009081527f8e247ec2353329eb6cef487516da6e5284b530b980fe2dcf0d916f918bc4519f602052604090205460ff161561189b57565b63e2517d3f60e01b600052336004527f62ca43aa15f7f495faa685ce5a258aa390fdc8d7094251dd23d32353f496ddfe60245260446000fd5b3360009081527f7d7ffb7a348e1c6a02869081a26547b49160dd3df72d1d75a570eb9b698292ec602052604090205460ff161561190d57565b63e2517d3f60e01b600052336004527fa49807205ce4d355092ef5a8a18f56e8913cf4a201fbe287825b095693c2177560245260446000fd5b60008181526020818152604080832033845290915290205460ff16156119695750565b63e2517d3f60e01b6000523360045260245260446000fd5b6000818152602081815260408083206001600160a01b038616845290915290205460ff16611a05576000818152602081815260408083206001600160a01b0395909516808452949091528120805460ff19166001179055339291907f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d9080a4600190565b5050600090565b6000818152602081815260408083206001600160a01b038616845290915290205460ff1615611a05576000818152602081815260408083206001600160a01b0395909516808452949091528120805460ff19169055339291907ff6391f5c32d9c69d2a47ea670b442974b53935d1edc7fd64eb21e047a839171b9080a4600190565b611a966117ab565b5060405190611aa4826116f4565b60a081901c60ff1682526001600160a01b0316602082015290565b60006003546000905b808210611ad457505090565b909160006020611ae781610ae2876116ab565b01511660046040518094819363dcd2af1760e01b83525af1908115611b5557600091611b23575b50611b1b90600192611755565b920190611ac8565b906020823d8211611b4d575b81611b3c60209383611725565b810103126101a85750516001611b0e565b3d9150611b2f565b6040513d6000823e3d90fd5b80600052600460205260406000205415600014611bcd57600354600160401b81101561170f57611bb4611b9d82600185940160035560036116dc565b819391549060031b91821b91600019901b19161790565b9055600354906000526004602052604060002055600190565b50600090565b6000818152600460205260409020548015611a055760001981018181116117625760035460001981019190821161176257818103611c63575b5050506003548015611c4d5760001901611c278160036116dc565b8154906000199060031b1b19169055600355600052600460205260006040812055600190565b634e487b7160e01b600052603160045260246000fd5b611c85611c74611b9d9360036116dc565b90549060031b1c92839260036116dc565b90556000526004602052604060002055388080611c0c56fea2646970667358221220edefd57a93d4872da1bb1e8f9a7fd9d61b3404ef8ab8f8340fba13808f7f24a764736f6c634300081b0033ad3228b676f7d3cd4284a5443f17f1962b36e491b30a40b2405849e597ba5fb500000000000000000000000003f5be358fc2c4df88723a63148bd829b8aa5c91000000000000000000000000d25d9f25899b3dff18a9a37459a7c75d8c89a7c9

Deployed Bytecode

0x608080604052600436101561001d575b50361561001b57600080fd5b005b600090813560e01c90816301ffc9a71461162a57508063248a9ca3146115fc5780632e17de78146112cc5780632f2ff15d1461128b57806336568abe146112465780633a4b66f114610ed25780635c975abb14610eaf5780636f307dc314610e8657806374d4e49114610e685780637575aa8a14610e2d57806375b238fc14610df25780637a98742d14610d565780637a9b27d014610c665780637d7c2a1c14610a8057806391d1485414610a355780639525d58b1461058f57806396c82e5714610571578063a217fddf14610555578063a407c1d81461051a578063bdb2321f146104b2578063c4ae3168146103fd578063d087d288146103df578063d547741f14610395578063dcd2af171461037a578063eaadd9761461026d578063ef8b30f7146101ab5763f87975af0361000f57346101a85760203660031901126101a8576040608091600435815260086020522060018060a01b038154169060018101549060ff6005600483015492015416916040519384526020840152604083015215156060820152f35b80fd5b50346101a85760203660031901126101a8576101c5611abf565b90816101d857602091505b604051908152f35b6007546040516318160ddd60e01b815290602090829060049082906001600160a01b03165afa9182156102615791610229575b5060209161021f6102249260043590611778565b61178b565b6101d0565b90506020813d602011610259575b8161024460209383611725565b810103126102545751602061020b565b600080fd5b3d9150610237565b604051903d90823e3d90fd5b50346101a85760203660031901126101a857610287611862565b6102a16102956004356116ab565b90549060031b1c611a8e565b805160208201516102c99160ff60a01b60a09190911b166001600160a01b0390911617611bd3565b1561032b5760ff81511660065490810390811161031757600655602001516001600160a01b03167fe71f3a50e5ad81964f352c411f1d45e35438ecd1acecef59ac81d9fbbf6cbc0a8280a280f35b634e487b7160e01b83526011600452602483fd5b60405162461bcd60e51b815260206004820152602160248201527f72656d6f76655661756c743a205661756c7420646f6573206e6f7420657869736044820152601d60fa1b6064820152608490fd5b50346101a857806003193601126101a85760206101d0611abf565b50346101a85760403660031901126101a8576103db6004356103b561167f565b906103d66103d182600052600060205260016040600020015490565b611946565b611a0c565b5080f35b50346101a857806003193601126101a8576020600554604051908152f35b50346101a857806003193601126101a8576104166118d4565b60025460ff811615610472575060025460ff8116156104635760ff19166002557f5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa6020604051338152a180f35b638dfc202b60e01b8252600482fd5b60019061047d611845565b60ff1916176002557f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a2586020604051338152a180f35b50346101a85760203660031901126101a8576104cc611695565b6104d46118d4565b600780546001600160a01b0319166001600160a01b039290921691821790557f48cb986ada9abba1c545a38db9a3dce91cb57f74826464b95a9d887a6457251c8280a280f35b50346101a857806003193601126101a85760206040517f00000000000000000000000000000000000000000000000000000000000d2f008152f35b50346101a857806003193601126101a857602090604051908152f35b50346101a857806003193601126101a8576020600654604051908152f35b50346101a85760203660031901126101a8576004356105ac611845565b600354670de0b6b3a76400008202828104670de0b6b3a76400001483151715610a21576007546040516318160ddd60e01b81526001600160a01b0390911691908590602081600481875afa9081156109db5782916109ea575b50610610919261178b565b91803b156109e657604051632770a7eb60e21b8152336004820152602481018690529082908290604490829084905af180156109db576109c2575b5050610656826117c4565b916106646040519384611725565b808352601f19610673826117c4565b01366020850137610683816117c4565b916106916040519384611725565b818352601f196106a0836117c4565b013660208501377f0000000000000000000000001c21d5b5bd5d2b859d1d5b12fd72db5ff7e98e926001600160a01b031686805b84811061090157505050505061070a7f00000000000000000000000000000000000000000000000000000000000d2f0042611755565b916040519060c082018281106001600160401b038211176108ed5760405233825260208201928584526040830191825260608301908152608083019185835260a084019488865260055460001981146108d957600190810160058190558a52600860205260408a20955186546001600160a01b0319166001600160a01b03919091161786559051908501555180519060028501906001600160401b0383116108c557600160401b83116108c5576020906107c9848454818655856117ef565b0190895260208920895b8381106108b15750505050600383019051908151916001600160401b03831161089d57600160401b831161089d57602090610813848454818655856117ef565b0190885260208820885b838110610880575050505090600591516004820155019051151560ff8019835416911617905560055490604051928352602083015260408201527f41eefa78fc02f42c76e9656c020be15f3a1991b977d6166fb57140857c61bccb60603392a280f35b82516001600160a01b03168183015560209092019160010161081d565b634e487b7160e01b89526041600452602489fd5b6001906020845194019381840155016107d3565b634e487b7160e01b8a52604160045260248afd5b634e487b7160e01b8a52601160045260248afd5b634e487b7160e01b87526041600452602487fd5b60406020610911610295846116ab565b0180516001600160a01b0316610927848a6117db565b5251815163142cfe6160e21b815260048101879052602481018690526044810186905293849160649183916001600160a01b03165af180156109b7578990610981575b6001925061097882896117db565b520187906106d4565b506040823d82116109af575b8161099a60409383611725565b810103126109ab576001915161096a565b8880fd5b3d915061098d565b6040513d8b823e3d90fd5b816109cc91611725565b6109d757833861064b565b8380fd5b6040513d84823e3d90fd5b5080fd5b9150506020813d602011610a19575b81610a0660209383611725565b8101031261025457518590610610610605565b3d91506109f9565b634e487b7160e01b84526011600452602484fd5b50346101a85760403660031901126101a8576040610a5161167f565b91600435815280602052209060018060a01b0316600052602052602060ff604060002054166040519015158152f35b50346101a857806003193601126101a857610a996118d4565b6003547f0000000000000000000000001c21d5b5bd5d2b859d1d5b12fd72db5ff7e98e926001600160a01b031682805b838110610ad4575080f35b610af76020610ae2836116ab565b90546001600160a01b03939160031b1c611a8e565b0151166040516338d52e0f60e01b8152602081600481855afa908115610c19578491610c24575b506040516370a0823160e01b81526004810186905290602090829060249082906001600160a01b03165afa908115610c19578491610bdf575b5080610b6b575b5085925050600101610ac9565b9060446020926040519586938492636e553f6560e01b845260048401528860248401525af1918215610bd457600192610ba6575b8592610b5e565b610bc69060203d8111610bcd575b610bbe8183611725565b810190611746565b5038610b9f565b503d610bb4565b6040513d87823e3d90fd5b919293505060203d8111610c12575b610bf88183611725565b602082600092810103126101a85750908592915138610b57565b503d610bee565b6040513d86823e3d90fd5b90506020813d8211610c5e575b81610c3e60209383611725565b810103126109d757516001600160a01b03811681036109d7576020610b1e565b3d9150610c31565b50346101a85760403660031901126101a857610c80611695565b60243560ff8116809103610d5257610c96611862565b610cd2610ccd60405193610ca9856116f4565b8385526001600160a01b0316602090940184905260a083901b60ff60a01b16841790565b611b61565b15610d0d57610ce390600654611755565b6006557f7b7ef7a864d96a85497a1ed846adb39940dd6ccef678ff6ac8d55505e09b8cc48280a280f35b60405162461bcd60e51b815260206004820152601e60248201527f6164645661756c743a205661756c7420616c72656164792065786973747300006044820152606490fd5b8280fd5b50346101a85760203660031901126101a857600435610d736117ab565b50600354811015610dad57610d8c6102956040926116ab565b8151815160ff1681526020918201516001600160a01b031691810191909152f35b60405162461bcd60e51b815260206004820152601f60248201527f6765745661756c7441743a20496e646578206f7574206f6620626f756e6473006044820152606490fd5b50346101a857806003193601126101a85760206040517fa49807205ce4d355092ef5a8a18f56e8913cf4a201fbe287825b095693c217758152f35b50346101a857806003193601126101a85760206040517f62ca43aa15f7f495faa685ce5a258aa390fdc8d7094251dd23d32353f496ddfe8152f35b50346101a857806003193601126101a8576020600354604051908152f35b50346101a857806003193601126101a8576007546040516001600160a01b039091168152602090f35b50346101a857806003193601126101a857602060ff600254166040519015158152f35b50806003193601126101a857610ee6611823565b610eee611845565b341561120957600654156111c95760035481907f0000000000000000000000001c21d5b5bd5d2b859d1d5b12fd72db5ff7e98e926001600160a01b0316825b8281106110bc57505050806110335750345b80159081610ff357829115610f83575b506040513481527f9e71bc8eea02a63969f509818f2dafb9254532904319f9dbda79b67bd34a5f3d60203392a26001805580f35b6007546001600160a01b0316803b15610fef576040516340c10f1960e01b8152336004820152602481019290925290919081908390604490829084905af18015610fe257610fd2575b90610f4f565b610fdb91611725565b3881610fcc565b50604051903d90823e3d90fd5b5050fd5b60405162461bcd60e51b81526020600482015260186024820152771cdd185ad94e88139bc81cda185c995cc81d1bc81b5a5b9d60421b6044820152606490fd5b6007546040516318160ddd60e01b81529190602090839060049082906001600160a01b03165afa9182156110b157839261107b575b5061021f6110769234611778565b610f3f565b91506020823d6020116110a9575b8161109660209383611725565b81010312610d525790519061021f611068565b3d9150611089565b6040513d85823e3d90fd5b6110c8610295826116ab565b906110e36110da60ff84511634611778565b6006549061178b565b60209283015160405163dcd2af1760e01b81526001600160a01b03909116969193816004818b8b5af19081156111be578891611188575b5061112790602092611755565b95604460405180958193636e553f6560e01b83528b60048401528860248401525af191821561117d5760019261115f575b5001610f2d565b6111769060203d8111610bcd57610bbe8183611725565b5038611158565b6040513d88823e3d90fd5b90506020813d82116111b6575b816111a260209383611725565b810103126111b25751602061111a565b8780fd5b3d9150611195565b6040513d8a823e3d90fd5b60405162461bcd60e51b815260206004820152601860248201527707374616b653a20546f74616c2077656967687420697320360441b6044820152606490fd5b60405162461bcd60e51b81526020600482015260156024820152741cdd185ad94e88125b9d985b1a5908185b5bdd5b9d605a1b6044820152606490fd5b50346101a85760403660031901126101a85761126061167f565b336001600160a01b0382160361127c576103db90600435611a0c565b63334bd91960e11b8252600482fd5b50346101a85760403660031901126101a8576103db6004356112ab61167f565b906112c76103d182600052600060205260016040600020015490565b611981565b50346101a85760203660031901126101a8576004356112e9611823565b6112f1611845565b8082526008602052604082209060058201805460ff81166115ac5783546001600160a01b0316330361156c57600484015442106115275760ff1916600117905560028201805484938492906003015b8284106114815750505050811561143c57808352600860205260408320600501805460ff191660011790558280808085335af13d15611437573d6001600160401b03811161142357604051906113a0601f8201601f191660200183611725565b81528460203d92013e5b156113e75760405191825260208201527f7fc4727e062e336010f2c282598ef5f14facb3de68cf8195c2f23e1454b2b74e60403392a26001805580f35b60405162461bcd60e51b81526020600482015260146024820152732330b4b632b2103a379039b2b7321022ba3432b960611b6044820152606490fd5b634e487b7160e01b85526041600452602485fd5b6113aa565b60405162461bcd60e51b815260206004820152601c60248201527f756e7374616b653a204e6f206173736574732077697468647261776e000000006044820152606490fd5b9091929486602061149288856116dc565b905460039190911b1c6001600160a01b031660246114b08a886116dc565b90549060031b1c6040519485938492632e1a7d4d60e01b845260048401525af19081156111be5788916114f5575b506114eb90600192611755565b9501929190611340565b90506020813d821161151f575b8161150f60209383611725565b810103126111b2575160016114de565b3d9150611502565b60405162461bcd60e51b815260206004820152601a60248201527f756e7374616b653a20436c696666206e6f7420726561636865640000000000006044820152606490fd5b60405162461bcd60e51b81526020600482015260186024820152771d5b9cdd185ad94e88125b9d985b1a59081c995c5d595cdd60421b6044820152606490fd5b60405162461bcd60e51b815260206004820152602260248201527f756e7374616b653a205265717565737420616c72656164792070726f63657373604482015261195960f21b6064820152608490fd5b50346101a85760203660031901126101a85760206101d0600435600052600060205260016040600020015490565b9050346109e65760203660031901126109e65760043563ffffffff60e01b8116809103610d525760209250637965db0b60e01b811490811561166e575b5015158152f35b6301ffc9a760e01b14905038611667565b602435906001600160a01b038216820361025457565b600435906001600160a01b038216820361025457565b6003548110156116c657600360005260206000200190600090565b634e487b7160e01b600052603260045260246000fd5b80548210156116c65760005260206000200190600090565b604081019081106001600160401b0382111761170f57604052565b634e487b7160e01b600052604160045260246000fd5b90601f801991011681019081106001600160401b0382111761170f57604052565b90816020910312610254575190565b9190820180921161176257565b634e487b7160e01b600052601160045260246000fd5b8181029291811591840414171561176257565b8115611795570490565b634e487b7160e01b600052601260045260246000fd5b604051906117b8826116f4565b60006020838281520152565b6001600160401b03811161170f5760051b60200190565b80518210156116c65760209160051b010190565b9190918282106117fe57505050565b600052602060002091820191015b818110611817575050565b6000815560010161180c565b600260015414611834576002600155565b633ee5aeb560e01b60005260046000fd5b60ff6002541661185157565b63d93c066560e01b60005260046000fd5b3360009081527f8e247ec2353329eb6cef487516da6e5284b530b980fe2dcf0d916f918bc4519f602052604090205460ff161561189b57565b63e2517d3f60e01b600052336004527f62ca43aa15f7f495faa685ce5a258aa390fdc8d7094251dd23d32353f496ddfe60245260446000fd5b3360009081527f7d7ffb7a348e1c6a02869081a26547b49160dd3df72d1d75a570eb9b698292ec602052604090205460ff161561190d57565b63e2517d3f60e01b600052336004527fa49807205ce4d355092ef5a8a18f56e8913cf4a201fbe287825b095693c2177560245260446000fd5b60008181526020818152604080832033845290915290205460ff16156119695750565b63e2517d3f60e01b6000523360045260245260446000fd5b6000818152602081815260408083206001600160a01b038616845290915290205460ff16611a05576000818152602081815260408083206001600160a01b0395909516808452949091528120805460ff19166001179055339291907f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d9080a4600190565b5050600090565b6000818152602081815260408083206001600160a01b038616845290915290205460ff1615611a05576000818152602081815260408083206001600160a01b0395909516808452949091528120805460ff19169055339291907ff6391f5c32d9c69d2a47ea670b442974b53935d1edc7fd64eb21e047a839171b9080a4600190565b611a966117ab565b5060405190611aa4826116f4565b60a081901c60ff1682526001600160a01b0316602082015290565b60006003546000905b808210611ad457505090565b909160006020611ae781610ae2876116ab565b01511660046040518094819363dcd2af1760e01b83525af1908115611b5557600091611b23575b50611b1b90600192611755565b920190611ac8565b906020823d8211611b4d575b81611b3c60209383611725565b810103126101a85750516001611b0e565b3d9150611b2f565b6040513d6000823e3d90fd5b80600052600460205260406000205415600014611bcd57600354600160401b81101561170f57611bb4611b9d82600185940160035560036116dc565b819391549060031b91821b91600019901b19161790565b9055600354906000526004602052604060002055600190565b50600090565b6000818152600460205260409020548015611a055760001981018181116117625760035460001981019190821161176257818103611c63575b5050506003548015611c4d5760001901611c278160036116dc565b8154906000199060031b1b19169055600355600052600460205260006040812055600190565b634e487b7160e01b600052603160045260246000fd5b611c85611c74611b9d9360036116dc565b90549060031b1c92839260036116dc565b90556000526004602052604060002055388080611c0c56fea2646970667358221220edefd57a93d4872da1bb1e8f9a7fd9d61b3404ef8ab8f8340fba13808f7f24a764736f6c634300081b0033

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

00000000000000000000000003f5be358fc2c4df88723a63148bd829b8aa5c91000000000000000000000000d25d9f25899b3dff18a9a37459a7c75d8c89a7c9

-----Decoded View---------------
Arg [0] : _underlying (address): 0x03F5BE358fc2C4DF88723a63148bd829B8AA5c91
Arg [1] : _defaultAdmin (address): 0xd25D9f25899B3DFf18A9A37459A7C75d8c89a7c9

-----Encoded View---------------
2 Constructor Arguments found :
Arg [0] : 00000000000000000000000003f5be358fc2c4df88723a63148bd829b8aa5c91
Arg [1] : 000000000000000000000000d25d9f25899b3dff18a9a37459a7c75d8c89a7c9


Block Uncle Number Difficulty Gas Used Reward
View All Uncles
Loading...
Loading
Loading...
Loading
Loading...
Loading
[ Download: CSV Export  ]
[ Download: CSV Export  ]

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