ETH Price: $2,081.06 (+6.66%)
 

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
Pause203192312024-07-16 13:00:23570 days ago1721134823IN
0xCD5dcE77...da4fa8ba1
0 ETH0.000289429.60196091
Redeem203191872024-07-16 12:51:35570 days ago1721134295IN
0xCD5dcE77...da4fa8ba1
0 ETH0.000945887.87787431
Redeem203191652024-07-16 12:47:11570 days ago1721134031IN
0xCD5dcE77...da4fa8ba1
0 ETH0.001038247.94380518
Redeem203191392024-07-16 12:41:59570 days ago1721133719IN
0xCD5dcE77...da4fa8ba1
0 ETH0.000914397.60141333
Lock203179052024-07-16 8:33:59570 days ago1721118839IN
0xCD5dcE77...da4fa8ba1
0 ETH0.000940699.66578668
Lock203179022024-07-16 8:33:23570 days ago1721118803IN
0xCD5dcE77...da4fa8ba1
0 ETH0.000832459.09828107
Redeem203147992024-07-15 22:09:59570 days ago1721081399IN
0xCD5dcE77...da4fa8ba1
0 ETH0.000708175.22790784
Redeem203147732024-07-15 22:04:47570 days ago1721081087IN
0xCD5dcE77...da4fa8ba1
0 ETH0.000589655.47470515
Redeem203146522024-07-15 21:40:35570 days ago1721079635IN
0xCD5dcE77...da4fa8ba1
0 ETH0.001194919.57327029
Lock203141702024-07-15 20:02:47570 days ago1721073767IN
0xCD5dcE77...da4fa8ba1
0 ETH0.0020159321.77196758
Lock203138272024-07-15 18:53:47570 days ago1721069627IN
0xCD5dcE77...da4fa8ba1
0 ETH0.0015750216.17185493
Redeem203116222024-07-15 11:30:11571 days ago1721043011IN
0xCD5dcE77...da4fa8ba1
0 ETH0.000372642.75117952
Redeem203115412024-07-15 11:13:59571 days ago1721042039IN
0xCD5dcE77...da4fa8ba1
0 ETH0.000380363.04852131
Lock203105262024-07-15 7:49:35571 days ago1721029775IN
0xCD5dcE77...da4fa8ba1
0 ETH0.000428034.60659139
Lock203103662024-07-15 7:17:35571 days ago1721027855IN
0xCD5dcE77...da4fa8ba1
0 ETH0.000297453.85167954
Redeem203082372024-07-15 0:10:23571 days ago1721002223IN
0xCD5dcE77...da4fa8ba1
0 ETH0.000274542.2
Redeem203069192024-07-14 19:45:47571 days ago1720986347IN
0xCD5dcE77...da4fa8ba1
0 ETH0.000407513.00890482
Lock203068192024-07-14 19:25:47571 days ago1720985147IN
0xCD5dcE77...da4fa8ba1
0 ETH0.000149731.92271387
Redeem203067442024-07-14 19:10:47571 days ago1720984247IN
0xCD5dcE77...da4fa8ba1
0 ETH0.00038793.1080438
Redeem203048312024-07-14 12:46:11572 days ago1720961171IN
0xCD5dcE77...da4fa8ba1
0 ETH0.000361262.89489184
Lock203041062024-07-14 10:20:23572 days ago1720952423IN
0xCD5dcE77...da4fa8ba1
0 ETH0.000181831.98734569
Lock203032162024-07-14 7:21:47572 days ago1720941707IN
0xCD5dcE77...da4fa8ba1
0 ETH0.00014551.86838913
Lock203005282024-07-13 22:20:35572 days ago1720909235IN
0xCD5dcE77...da4fa8ba1
0 ETH0.000162561.77678215
Redeem202973052024-07-13 11:31:35573 days ago1720870295IN
0xCD5dcE77...da4fa8ba1
0 ETH0.000221861.77785659
Redeem202972982024-07-13 11:30:11573 days ago1720870211IN
0xCD5dcE77...da4fa8ba1
0 ETH0.000215191.72420647
View all transactions

View more zero value Internal Transactions in Advanced View mode

Advanced mode:
Loading...
Loading
Loading...
Loading
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:
BridgeVault

Compiler Version
v0.8.18+commit.87f61d96

Optimization Enabled:
No with 200 runs

Other Settings:
default evmVersion
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.9;

import '@openzeppelin/contracts/interfaces/IERC20.sol';
import '@openzeppelin/contracts/access/Ownable.sol';
import '@openzeppelin/contracts/utils/cryptography/ECDSA.sol';
import '@openzeppelin/contracts/token/ERC20/utils/SafeERC20.sol';
import '@openzeppelin/contracts/security/Pausable.sol';
import './lib/massaUtils.sol';

contract BridgeVault is Ownable, Pausable {
    using SafeERC20 for IERC20;
    event Locked(address indexed sender, address indexed token, string massaAddress, uint256 amount);
    event Redeemed(address indexed recipient, address indexed token, string burnOpId, uint256 amount);
    event TokenAdded(address indexed token);
    event TokenRemoved(address indexed token);
    event SignerAdded(address indexed signer);
    event SignerRemoved(address indexed signer);
    event FeeSet(uint256 _fee, string _type);
    event FeeWithdraw(uint256 _amount, address indexed token);

    mapping(address => bool) public supportedTokens;
    address[] private tokens;

    mapping(bytes32 => bool) public executedOpIds;

    address[] public signers;

    uint256 public lockFee;
    uint256 public redeemFee;
    address public multisigAdmin;

    mapping(address => uint256) public fees;

    constructor(address[] memory initialSigners, address _multisigAdmin) {
        require(_multisigAdmin != address(0), 'Multisig admin cannot be the zero address');
        uint nbSigners = initialSigners.length;
        require(nbSigners > 0, 'At least one signer is required');
        for (uint i = 0; i < nbSigners; ) {
            for (uint j = 0; j < nbSigners; ) {
                if (i != j) {
                    require(initialSigners[i] != initialSigners[j], 'Signers must be unique');
                }
                unchecked {
                    ++j;
                }
            }
            require(initialSigners[i] != address(0), 'Signer cannot be the zero address');
            signers.push(initialSigners[i]);
            unchecked {
                ++i;
            }
        }
        lockFee = 0;
        redeemFee = 0;
        multisigAdmin = _multisigAdmin;
    }

    function lock(uint256 amount, string calldata massaAddress, address tokenContract) public whenNotPaused {
        require(supportedTokens[tokenContract], 'Token not supported');
        require(MassaUtils.validateMassaAddress(massaAddress), 'Invalid Massa address');

        uint256 feeAmount = (amount * lockFee) / 10000;
        fees[tokenContract] += feeAmount;

        IERC20(tokenContract).safeTransferFrom(msg.sender, address(this), amount);
        emit Locked(msg.sender, tokenContract, massaAddress, amount - feeAmount);
    }

    function redeem(
        uint256 amount,
        address recipient,
        string calldata burnOpId,
        address tokenContract,
        bytes[] calldata signatures
    ) external whenNotPaused {
        uint nbSigners = signers.length;
        require(supportedTokens[tokenContract], 'Token not supported');
        require(signatures.length == nbSigners, 'Amount of signatures does not match amount of signers');
        require(!executedOpIds[keccak256(abi.encodePacked(burnOpId))], 'Operation already executed');

        bytes32 message = keccak256(abi.encodePacked(amount, recipient, burnOpId, tokenContract, block.chainid));

        for (uint i; i < nbSigners; ) {
            address signer = ECDSA.recover(ECDSA.toEthSignedMessageHash(message), signatures[i]);
            require(signer == signers[i], 'Invalid signature');
            unchecked {
                ++i;
            }
        }
        executedOpIds[keccak256(abi.encodePacked(burnOpId))] = true;
        uint256 feeAmount = (amount * redeemFee) / 10000;
        fees[tokenContract] += feeAmount;
        IERC20(tokenContract).safeTransfer(recipient, amount - feeAmount);

        emit Redeemed(recipient, tokenContract, burnOpId, amount);
    }

    function addToken(address token) external onlyOwner {
        require(!supportedTokens[token], 'Token is already supported');
        supportedTokens[token] = true;
        tokens.push(token);
        emit TokenAdded(token);
    }

    function removeToken(address token) external onlyOwner {
        require(supportedTokens[token], 'Token is not supported');
        supportedTokens[token] = false;
        uint nbTokens = tokens.length;
        for (uint256 i = 0; i < nbTokens; ) {
            if (tokens[i] == token) {
                tokens[i] = tokens[nbTokens - 1];
                tokens.pop();
                break;
            }
            unchecked {
                ++i;
            }
        }
        emit TokenRemoved(token);
    }

    function supportedTokensList() public view returns (address[] memory) {
        return tokens;
    }

    function getSigners() public view returns (address[] memory) {
        return signers;
    }

    function pause() external {
        require(msg.sender == multisigAdmin || msg.sender == owner(), 'Only multisigAdmin or owner can pause');
        _pause();
    }

    function unpause() external onlyOwner {
        _unpause();
    }

    function setLockFee(uint256 _fee) external onlyOwner {
        require(_fee <= 10000, 'Fee cannot be greater than 100%');
        lockFee = _fee;
        emit FeeSet(_fee, 'lock');
    }

    function setRedeemFee(uint256 _fee) external onlyOwner {
        require(_fee <= 10000, 'Fee cannot be greater than 100%');
        redeemFee = _fee;
        emit FeeSet(_fee, 'redeem');
    }

    function withdrawFees(address token) external onlyOwner {
        uint256 amount = fees[token];
        require(amount > 0, 'No fees to withdraw');
        fees[token] = 0;
        IERC20(token).safeTransfer(msg.sender, amount);
        emit FeeWithdraw(amount, token);
    }

    function transferOwnership(address newOwner) public override onlyOwner {
        require(newOwner != address(0), 'Ownable: new owner is the zero address');
        super.transferOwnership(newOwner);
    }

    function addSigner(address newSigner) external onlyOwner {
        require(newSigner != address(0), 'Signer cannot be the zero address');
        require(!isSigner(newSigner), 'Signer is already added');
        signers.push(newSigner);
        emit SignerAdded(newSigner);
    }

    function isSigner(address signer) public view returns (bool) {
        uint nbSigners = signers.length;
        for (uint i = 0; i < nbSigners; ) {
            if (signers[i] == signer) {
                return true;
            }
            unchecked {
                ++i;
            }
        }
        return false;
    }

    function removeSigner(address signer) external onlyOwner {
        uint nbSigners = signers.length;
        for (uint i = 0; i < nbSigners; ) {
            if (signers[i] == signer) {
                signers[i] = signers[nbSigners - 1];
                signers.pop();
                emit SignerRemoved(signer);
                break;
            }
            unchecked {
                ++i;
            }
        }
    }
}

// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.9.0) (access/Ownable.sol)

pragma solidity ^0.8.0;

import "../utils/Context.sol";

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

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

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

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

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

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

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

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

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

File 3 of 14 : IERC20.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (interfaces/IERC20.sol)

pragma solidity ^0.8.0;

import "../token/ERC20/IERC20.sol";

// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.7.0) (security/Pausable.sol)

pragma solidity ^0.8.0;

import "../utils/Context.sol";

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

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

    bool private _paused;

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

    /**
     * @dev 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 {
        require(!paused(), "Pausable: paused");
    }

    /**
     * @dev Throws if the contract is not paused.
     */
    function _requirePaused() internal view virtual {
        require(paused(), "Pausable: not paused");
    }

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

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

// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.9.0) (token/ERC20/extensions/IERC20Permit.sol)

pragma solidity ^0.8.0;

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

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

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

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

pragma solidity ^0.8.0;

/**
 * @dev Interface of the ERC20 standard as defined in the EIP.
 */
interface IERC20 {
    /**
     * @dev Emitted when `value` tokens are moved from one account (`from`) to
     * another (`to`).
     *
     * Note that `value` may be zero.
     */
    event Transfer(address indexed from, address indexed to, uint256 value);

    /**
     * @dev Emitted when the allowance of a `spender` for an `owner` is set by
     * a call to {approve}. `value` is the new allowance.
     */
    event Approval(address indexed owner, address indexed spender, uint256 value);

    /**
     * @dev Returns the amount of tokens in existence.
     */
    function totalSupply() external view returns (uint256);

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

    /**
     * @dev Moves `amount` tokens from the caller's account to `to`.
     *
     * Returns a boolean value indicating whether the operation succeeded.
     *
     * Emits a {Transfer} event.
     */
    function transfer(address to, uint256 amount) external returns (bool);

    /**
     * @dev Returns the remaining number of tokens that `spender` will be
     * allowed to spend on behalf of `owner` through {transferFrom}. This is
     * zero by default.
     *
     * This value changes when {approve} or {transferFrom} are called.
     */
    function allowance(address owner, address spender) external view returns (uint256);

    /**
     * @dev Sets `amount` as the allowance of `spender` over the caller's tokens.
     *
     * Returns a boolean value indicating whether the operation succeeded.
     *
     * IMPORTANT: Beware that changing an allowance with this method brings the risk
     * that someone may use both the old and the new allowance by unfortunate
     * transaction ordering. One possible solution to mitigate this race
     * condition is to first reduce the spender's allowance to 0 and set the
     * desired value afterwards:
     * https://github.com/ethereum/EIPs/issues/20#issuecomment-263524729
     *
     * Emits an {Approval} event.
     */
    function approve(address spender, uint256 amount) external returns (bool);

    /**
     * @dev Moves `amount` tokens from `from` to `to` using the
     * allowance mechanism. `amount` is then deducted from the caller's
     * allowance.
     *
     * Returns a boolean value indicating whether the operation succeeded.
     *
     * Emits a {Transfer} event.
     */
    function transferFrom(address from, address to, uint256 amount) external returns (bool);
}

// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.9.3) (token/ERC20/utils/SafeERC20.sol)

pragma solidity ^0.8.0;

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

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

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

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

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

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

    /**
     * @dev Decrease the calling contract's allowance toward `spender` by `value`. If `token` returns no value,
     * non-reverting calls are assumed to be successful.
     */
    function safeDecreaseAllowance(IERC20 token, address spender, uint256 value) internal {
        unchecked {
            uint256 oldAllowance = token.allowance(address(this), spender);
            require(oldAllowance >= value, "SafeERC20: decreased allowance below zero");
            _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, oldAllowance - value));
        }
    }

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

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

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

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

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

    /**
     * @dev Imitates a Solidity high-level call (i.e. a regular function call to a contract), relaxing the requirement
     * on the return value: the return value is optional (but if data is returned, it must not be false).
     * @param token The token targeted by the call.
     * @param data The call data (encoded using abi.encode or one of its variants).
     *
     * This is a variant of {_callOptionalReturn} that silents catches all reverts and returns a bool instead.
     */
    function _callOptionalReturnBool(IERC20 token, bytes memory data) private returns (bool) {
        // We need to perform a low level call here, to bypass Solidity's return data size checking mechanism, since
        // we're implementing it ourselves. We cannot use {Address-functionCall} here since this should return false
        // and not revert is the subcall reverts.

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

// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.9.0) (utils/Address.sol)

pragma solidity ^0.8.1;

/**
 * @dev Collection of functions related to the address type
 */
library Address {
    /**
     * @dev Returns true if `account` is a contract.
     *
     * [IMPORTANT]
     * ====
     * It is unsafe to assume that an address for which this function returns
     * false is an externally-owned account (EOA) and not a contract.
     *
     * Among others, `isContract` will return false for the following
     * types of addresses:
     *
     *  - an externally-owned account
     *  - a contract in construction
     *  - an address where a contract will be created
     *  - an address where a contract lived, but was destroyed
     *
     * Furthermore, `isContract` will also return true if the target contract within
     * the same transaction is already scheduled for destruction by `SELFDESTRUCT`,
     * which only has an effect at the end of a transaction.
     * ====
     *
     * [IMPORTANT]
     * ====
     * You shouldn't rely on `isContract` to protect against flash loan attacks!
     *
     * Preventing calls from contracts is highly discouraged. It breaks composability, breaks support for smart wallets
     * like Gnosis Safe, and does not provide security since it can be circumvented by calling from a contract
     * constructor.
     * ====
     */
    function isContract(address account) internal view returns (bool) {
        // This method relies on extcodesize/address.code.length, which returns 0
        // for contracts in construction, since the code is only stored at the end
        // of the constructor execution.

        return account.code.length > 0;
    }

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

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

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

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

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

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

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

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`],
     * but performing a static call.
     *
     * _Available since v3.3._
     */
    function functionStaticCall(
        address target,
        bytes memory data,
        string memory errorMessage
    ) internal view returns (bytes memory) {
        (bool success, bytes memory returndata) = target.staticcall(data);
        return verifyCallResultFromTarget(target, success, returndata, errorMessage);
    }

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

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`],
     * but performing a delegate call.
     *
     * _Available since v3.4._
     */
    function functionDelegateCall(
        address target,
        bytes memory data,
        string memory errorMessage
    ) internal returns (bytes memory) {
        (bool success, bytes memory returndata) = target.delegatecall(data);
        return verifyCallResultFromTarget(target, success, returndata, errorMessage);
    }

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

    /**
     * @dev Tool to verify that a low level call was successful, and revert if it wasn't, either by bubbling the
     * revert reason or using the provided one.
     *
     * _Available since v4.3._
     */
    function verifyCallResult(
        bool success,
        bytes memory returndata,
        string memory errorMessage
    ) internal pure returns (bytes memory) {
        if (success) {
            return returndata;
        } else {
            _revert(returndata, errorMessage);
        }
    }

    function _revert(bytes memory returndata, string memory errorMessage) private pure {
        // Look for revert reason and bubble it up if present
        if (returndata.length > 0) {
            // The easiest way to bubble the revert reason is using memory via assembly
            /// @solidity memory-safe-assembly
            assembly {
                let returndata_size := mload(returndata)
                revert(add(32, returndata), returndata_size)
            }
        } else {
            revert(errorMessage);
        }
    }
}

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

pragma solidity ^0.8.0;

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

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

// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.9.0) (utils/cryptography/ECDSA.sol)

pragma solidity ^0.8.0;

import "../Strings.sol";

/**
 * @dev Elliptic Curve Digital Signature Algorithm (ECDSA) operations.
 *
 * These functions can be used to verify that a message was signed by the holder
 * of the private keys of a given address.
 */
library ECDSA {
    enum RecoverError {
        NoError,
        InvalidSignature,
        InvalidSignatureLength,
        InvalidSignatureS,
        InvalidSignatureV // Deprecated in v4.8
    }

    function _throwError(RecoverError error) private pure {
        if (error == RecoverError.NoError) {
            return; // no error: do nothing
        } else if (error == RecoverError.InvalidSignature) {
            revert("ECDSA: invalid signature");
        } else if (error == RecoverError.InvalidSignatureLength) {
            revert("ECDSA: invalid signature length");
        } else if (error == RecoverError.InvalidSignatureS) {
            revert("ECDSA: invalid signature 's' value");
        }
    }

    /**
     * @dev Returns the address that signed a hashed message (`hash`) with
     * `signature` or error string. This address can then be used for verification purposes.
     *
     * The `ecrecover` EVM opcode allows for malleable (non-unique) signatures:
     * this function rejects them by requiring the `s` value to be in the lower
     * half order, and the `v` value to be either 27 or 28.
     *
     * IMPORTANT: `hash` _must_ be the result of a hash operation for the
     * verification to be secure: it is possible to craft signatures that
     * recover to arbitrary addresses for non-hashed data. A safe way to ensure
     * this is by receiving a hash of the original message (which may otherwise
     * be too long), and then calling {toEthSignedMessageHash} on it.
     *
     * Documentation for signature generation:
     * - with https://web3js.readthedocs.io/en/v1.3.4/web3-eth-accounts.html#sign[Web3.js]
     * - with https://docs.ethers.io/v5/api/signer/#Signer-signMessage[ethers]
     *
     * _Available since v4.3._
     */
    function tryRecover(bytes32 hash, bytes memory signature) internal pure returns (address, RecoverError) {
        if (signature.length == 65) {
            bytes32 r;
            bytes32 s;
            uint8 v;
            // ecrecover takes the signature parameters, and the only way to get them
            // currently is to use assembly.
            /// @solidity memory-safe-assembly
            assembly {
                r := mload(add(signature, 0x20))
                s := mload(add(signature, 0x40))
                v := byte(0, mload(add(signature, 0x60)))
            }
            return tryRecover(hash, v, r, s);
        } else {
            return (address(0), RecoverError.InvalidSignatureLength);
        }
    }

    /**
     * @dev Returns the address that signed a hashed message (`hash`) with
     * `signature`. This address can then be used for verification purposes.
     *
     * The `ecrecover` EVM opcode allows for malleable (non-unique) signatures:
     * this function rejects them by requiring the `s` value to be in the lower
     * half order, and the `v` value to be either 27 or 28.
     *
     * IMPORTANT: `hash` _must_ be the result of a hash operation for the
     * verification to be secure: it is possible to craft signatures that
     * recover to arbitrary addresses for non-hashed data. A safe way to ensure
     * this is by receiving a hash of the original message (which may otherwise
     * be too long), and then calling {toEthSignedMessageHash} on it.
     */
    function recover(bytes32 hash, bytes memory signature) internal pure returns (address) {
        (address recovered, RecoverError error) = tryRecover(hash, signature);
        _throwError(error);
        return recovered;
    }

    /**
     * @dev Overload of {ECDSA-tryRecover} that receives the `r` and `vs` short-signature fields separately.
     *
     * See https://eips.ethereum.org/EIPS/eip-2098[EIP-2098 short signatures]
     *
     * _Available since v4.3._
     */
    function tryRecover(bytes32 hash, bytes32 r, bytes32 vs) internal pure returns (address, RecoverError) {
        bytes32 s = vs & bytes32(0x7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff);
        uint8 v = uint8((uint256(vs) >> 255) + 27);
        return tryRecover(hash, v, r, s);
    }

    /**
     * @dev Overload of {ECDSA-recover} that receives the `r and `vs` short-signature fields separately.
     *
     * _Available since v4.2._
     */
    function recover(bytes32 hash, bytes32 r, bytes32 vs) internal pure returns (address) {
        (address recovered, RecoverError error) = tryRecover(hash, r, vs);
        _throwError(error);
        return recovered;
    }

    /**
     * @dev Overload of {ECDSA-tryRecover} that receives the `v`,
     * `r` and `s` signature fields separately.
     *
     * _Available since v4.3._
     */
    function tryRecover(bytes32 hash, uint8 v, bytes32 r, bytes32 s) internal pure returns (address, RecoverError) {
        // EIP-2 still allows signature malleability for ecrecover(). Remove this possibility and make the signature
        // unique. Appendix F in the Ethereum Yellow paper (https://ethereum.github.io/yellowpaper/paper.pdf), defines
        // the valid range for s in (301): 0 < s < secp256k1n ÷ 2 + 1, and for v in (302): v ∈ {27, 28}. Most
        // signatures from current libraries generate a unique signature with an s-value in the lower half order.
        //
        // If your library generates malleable signatures, such as s-values in the upper range, calculate a new s-value
        // with 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFEBAAEDCE6AF48A03BBFD25E8CD0364141 - s1 and flip v from 27 to 28 or
        // vice versa. If your library also generates signatures with 0/1 for v instead 27/28, add 27 to v to accept
        // these malleable signatures as well.
        if (uint256(s) > 0x7FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF5D576E7357A4501DDFE92F46681B20A0) {
            return (address(0), RecoverError.InvalidSignatureS);
        }

        // If the signature is valid (and not malleable), return the signer address
        address signer = ecrecover(hash, v, r, s);
        if (signer == address(0)) {
            return (address(0), RecoverError.InvalidSignature);
        }

        return (signer, RecoverError.NoError);
    }

    /**
     * @dev Overload of {ECDSA-recover} that receives the `v`,
     * `r` and `s` signature fields separately.
     */
    function recover(bytes32 hash, uint8 v, bytes32 r, bytes32 s) internal pure returns (address) {
        (address recovered, RecoverError error) = tryRecover(hash, v, r, s);
        _throwError(error);
        return recovered;
    }

    /**
     * @dev Returns an Ethereum Signed Message, created from a `hash`. This
     * produces hash corresponding to the one signed with the
     * https://eth.wiki/json-rpc/API#eth_sign[`eth_sign`]
     * JSON-RPC method as part of EIP-191.
     *
     * See {recover}.
     */
    function toEthSignedMessageHash(bytes32 hash) internal pure returns (bytes32 message) {
        // 32 is the length in bytes of hash,
        // enforced by the type signature above
        /// @solidity memory-safe-assembly
        assembly {
            mstore(0x00, "\x19Ethereum Signed Message:\n32")
            mstore(0x1c, hash)
            message := keccak256(0x00, 0x3c)
        }
    }

    /**
     * @dev Returns an Ethereum Signed Message, created from `s`. This
     * produces hash corresponding to the one signed with the
     * https://eth.wiki/json-rpc/API#eth_sign[`eth_sign`]
     * JSON-RPC method as part of EIP-191.
     *
     * See {recover}.
     */
    function toEthSignedMessageHash(bytes memory s) internal pure returns (bytes32) {
        return keccak256(abi.encodePacked("\x19Ethereum Signed Message:\n", Strings.toString(s.length), s));
    }

    /**
     * @dev Returns an Ethereum Signed Typed Data, created from a
     * `domainSeparator` and a `structHash`. This produces hash corresponding
     * to the one signed with the
     * https://eips.ethereum.org/EIPS/eip-712[`eth_signTypedData`]
     * JSON-RPC method as part of EIP-712.
     *
     * See {recover}.
     */
    function toTypedDataHash(bytes32 domainSeparator, bytes32 structHash) internal pure returns (bytes32 data) {
        /// @solidity memory-safe-assembly
        assembly {
            let ptr := mload(0x40)
            mstore(ptr, "\x19\x01")
            mstore(add(ptr, 0x02), domainSeparator)
            mstore(add(ptr, 0x22), structHash)
            data := keccak256(ptr, 0x42)
        }
    }

    /**
     * @dev Returns an Ethereum Signed Data with intended validator, created from a
     * `validator` and `data` according to the version 0 of EIP-191.
     *
     * See {recover}.
     */
    function toDataWithIntendedValidatorHash(address validator, bytes memory data) internal pure returns (bytes32) {
        return keccak256(abi.encodePacked("\x19\x00", validator, data));
    }
}

// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.9.0) (utils/math/Math.sol)

pragma solidity ^0.8.0;

/**
 * @dev Standard math utilities missing in the Solidity language.
 */
library Math {
    enum Rounding {
        Down, // Toward negative infinity
        Up, // Toward infinity
        Zero // Toward zero
    }

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

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

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

    /**
     * @dev Returns the ceiling of the division of two numbers.
     *
     * This differs from standard division with `/` in that it rounds up instead
     * of rounding down.
     */
    function ceilDiv(uint256 a, uint256 b) internal pure returns (uint256) {
        // (a + b - 1) / b can overflow on addition, so we distribute.
        return a == 0 ? 0 : (a - 1) / b + 1;
    }

    /**
     * @notice Calculates floor(x * y / denominator) with full precision. Throws if result overflows a uint256 or denominator == 0
     * @dev Original credit to Remco Bloemen under MIT license (https://xn--2-umb.com/21/muldiv)
     * with further edits by Uniswap Labs also under MIT license.
     */
    function mulDiv(uint256 x, uint256 y, uint256 denominator) internal pure returns (uint256 result) {
        unchecked {
            // 512-bit multiply [prod1 prod0] = x * y. Compute the product mod 2^256 and mod 2^256 - 1, then use
            // use the Chinese Remainder Theorem to reconstruct the 512 bit result. The result is stored in two 256
            // variables such that product = prod1 * 2^256 + prod0.
            uint256 prod0; // Least significant 256 bits of the product
            uint256 prod1; // Most significant 256 bits of the product
            assembly {
                let mm := mulmod(x, y, not(0))
                prod0 := mul(x, y)
                prod1 := sub(sub(mm, prod0), lt(mm, prod0))
            }

            // Handle non-overflow cases, 256 by 256 division.
            if (prod1 == 0) {
                // Solidity will revert if denominator == 0, unlike the div opcode on its own.
                // The surrounding unchecked block does not change this fact.
                // See https://docs.soliditylang.org/en/latest/control-structures.html#checked-or-unchecked-arithmetic.
                return prod0 / denominator;
            }

            // Make sure the result is less than 2^256. Also prevents denominator == 0.
            require(denominator > prod1, "Math: mulDiv overflow");

            ///////////////////////////////////////////////
            // 512 by 256 division.
            ///////////////////////////////////////////////

            // Make division exact by subtracting the remainder from [prod1 prod0].
            uint256 remainder;
            assembly {
                // Compute remainder using mulmod.
                remainder := mulmod(x, y, denominator)

                // Subtract 256 bit number from 512 bit number.
                prod1 := sub(prod1, gt(remainder, prod0))
                prod0 := sub(prod0, remainder)
            }

            // Factor powers of two out of denominator and compute largest power of two divisor of denominator. Always >= 1.
            // See https://cs.stackexchange.com/q/138556/92363.

            // Does not overflow because the denominator cannot be zero at this stage in the function.
            uint256 twos = denominator & (~denominator + 1);
            assembly {
                // Divide denominator by twos.
                denominator := div(denominator, twos)

                // Divide [prod1 prod0] by twos.
                prod0 := div(prod0, twos)

                // Flip twos such that it is 2^256 / twos. If twos is zero, then it becomes one.
                twos := add(div(sub(0, twos), twos), 1)
            }

            // Shift in bits from prod1 into prod0.
            prod0 |= prod1 * twos;

            // Invert denominator mod 2^256. Now that denominator is an odd number, it has an inverse modulo 2^256 such
            // that denominator * inv = 1 mod 2^256. Compute the inverse by starting with a seed that is correct for
            // four bits. That is, denominator * inv = 1 mod 2^4.
            uint256 inverse = (3 * denominator) ^ 2;

            // Use the Newton-Raphson iteration to improve the precision. Thanks to Hensel's lifting lemma, this also works
            // in modular arithmetic, doubling the correct bits in each step.
            inverse *= 2 - denominator * inverse; // inverse mod 2^8
            inverse *= 2 - denominator * inverse; // inverse mod 2^16
            inverse *= 2 - denominator * inverse; // inverse mod 2^32
            inverse *= 2 - denominator * inverse; // inverse mod 2^64
            inverse *= 2 - denominator * inverse; // inverse mod 2^128
            inverse *= 2 - denominator * inverse; // inverse mod 2^256

            // Because the division is now exact we can divide by multiplying with the modular inverse of denominator.
            // This will give us the correct result modulo 2^256. Since the preconditions guarantee that the outcome is
            // less than 2^256, this is the final result. We don't need to compute the high bits of the result and prod1
            // is no longer required.
            result = prod0 * inverse;
            return result;
        }
    }

    /**
     * @notice Calculates x * y / denominator with full precision, following the selected rounding direction.
     */
    function mulDiv(uint256 x, uint256 y, uint256 denominator, Rounding rounding) internal pure returns (uint256) {
        uint256 result = mulDiv(x, y, denominator);
        if (rounding == Rounding.Up && mulmod(x, y, denominator) > 0) {
            result += 1;
        }
        return result;
    }

    /**
     * @dev Returns the square root of a number. If the number is not a perfect square, the value is rounded down.
     *
     * Inspired by Henry S. Warren, Jr.'s "Hacker's Delight" (Chapter 11).
     */
    function sqrt(uint256 a) internal pure returns (uint256) {
        if (a == 0) {
            return 0;
        }

        // For our first guess, we get the biggest power of 2 which is smaller than the square root of the target.
        //
        // We know that the "msb" (most significant bit) of our target number `a` is a power of 2 such that we have
        // `msb(a) <= a < 2*msb(a)`. This value can be written `msb(a)=2**k` with `k=log2(a)`.
        //
        // This can be rewritten `2**log2(a) <= a < 2**(log2(a) + 1)`
        // → `sqrt(2**k) <= sqrt(a) < sqrt(2**(k+1))`
        // → `2**(k/2) <= sqrt(a) < 2**((k+1)/2) <= 2**(k/2 + 1)`
        //
        // Consequently, `2**(log2(a) / 2)` is a good first approximation of `sqrt(a)` with at least 1 correct bit.
        uint256 result = 1 << (log2(a) >> 1);

        // At this point `result` is an estimation with one bit of precision. We know the true value is a uint128,
        // since it is the square root of a uint256. Newton's method converges quadratically (precision doubles at
        // every iteration). We thus need at most 7 iteration to turn our partial result with one bit of precision
        // into the expected uint128 result.
        unchecked {
            result = (result + a / result) >> 1;
            result = (result + a / result) >> 1;
            result = (result + a / result) >> 1;
            result = (result + a / result) >> 1;
            result = (result + a / result) >> 1;
            result = (result + a / result) >> 1;
            result = (result + a / result) >> 1;
            return min(result, a / result);
        }
    }

    /**
     * @notice Calculates sqrt(a), following the selected rounding direction.
     */
    function sqrt(uint256 a, Rounding rounding) internal pure returns (uint256) {
        unchecked {
            uint256 result = sqrt(a);
            return result + (rounding == Rounding.Up && result * result < a ? 1 : 0);
        }
    }

    /**
     * @dev Return the log in base 2, rounded down, of a positive value.
     * Returns 0 if given 0.
     */
    function log2(uint256 value) internal pure returns (uint256) {
        uint256 result = 0;
        unchecked {
            if (value >> 128 > 0) {
                value >>= 128;
                result += 128;
            }
            if (value >> 64 > 0) {
                value >>= 64;
                result += 64;
            }
            if (value >> 32 > 0) {
                value >>= 32;
                result += 32;
            }
            if (value >> 16 > 0) {
                value >>= 16;
                result += 16;
            }
            if (value >> 8 > 0) {
                value >>= 8;
                result += 8;
            }
            if (value >> 4 > 0) {
                value >>= 4;
                result += 4;
            }
            if (value >> 2 > 0) {
                value >>= 2;
                result += 2;
            }
            if (value >> 1 > 0) {
                result += 1;
            }
        }
        return result;
    }

    /**
     * @dev Return the log in base 2, following the selected rounding direction, of a positive value.
     * Returns 0 if given 0.
     */
    function log2(uint256 value, Rounding rounding) internal pure returns (uint256) {
        unchecked {
            uint256 result = log2(value);
            return result + (rounding == Rounding.Up && 1 << result < value ? 1 : 0);
        }
    }

    /**
     * @dev Return the log in base 10, rounded down, of a positive value.
     * Returns 0 if given 0.
     */
    function log10(uint256 value) internal pure returns (uint256) {
        uint256 result = 0;
        unchecked {
            if (value >= 10 ** 64) {
                value /= 10 ** 64;
                result += 64;
            }
            if (value >= 10 ** 32) {
                value /= 10 ** 32;
                result += 32;
            }
            if (value >= 10 ** 16) {
                value /= 10 ** 16;
                result += 16;
            }
            if (value >= 10 ** 8) {
                value /= 10 ** 8;
                result += 8;
            }
            if (value >= 10 ** 4) {
                value /= 10 ** 4;
                result += 4;
            }
            if (value >= 10 ** 2) {
                value /= 10 ** 2;
                result += 2;
            }
            if (value >= 10 ** 1) {
                result += 1;
            }
        }
        return result;
    }

    /**
     * @dev Return the log in base 10, following the selected rounding direction, of a positive value.
     * Returns 0 if given 0.
     */
    function log10(uint256 value, Rounding rounding) internal pure returns (uint256) {
        unchecked {
            uint256 result = log10(value);
            return result + (rounding == Rounding.Up && 10 ** result < value ? 1 : 0);
        }
    }

    /**
     * @dev Return the log in base 256, rounded down, of a positive value.
     * Returns 0 if given 0.
     *
     * Adding one to the result gives the number of pairs of hex symbols needed to represent `value` as a hex string.
     */
    function log256(uint256 value) internal pure returns (uint256) {
        uint256 result = 0;
        unchecked {
            if (value >> 128 > 0) {
                value >>= 128;
                result += 16;
            }
            if (value >> 64 > 0) {
                value >>= 64;
                result += 8;
            }
            if (value >> 32 > 0) {
                value >>= 32;
                result += 4;
            }
            if (value >> 16 > 0) {
                value >>= 16;
                result += 2;
            }
            if (value >> 8 > 0) {
                result += 1;
            }
        }
        return result;
    }

    /**
     * @dev Return the log in base 256, following the selected rounding direction, of a positive value.
     * Returns 0 if given 0.
     */
    function log256(uint256 value, Rounding rounding) internal pure returns (uint256) {
        unchecked {
            uint256 result = log256(value);
            return result + (rounding == Rounding.Up && 1 << (result << 3) < value ? 1 : 0);
        }
    }
}

// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.8.0) (utils/math/SignedMath.sol)

pragma solidity ^0.8.0;

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

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

    /**
     * @dev Returns the average of two signed numbers without overflow.
     * The result is rounded towards zero.
     */
    function average(int256 a, int256 b) internal pure returns (int256) {
        // Formula from the book "Hacker's Delight"
        int256 x = (a & b) + ((a ^ b) >> 1);
        return x + (int256(uint256(x) >> 255) & (a ^ b));
    }

    /**
     * @dev Returns the absolute unsigned value of a signed value.
     */
    function abs(int256 n) internal pure returns (uint256) {
        unchecked {
            // must be unchecked in order to support `n = type(int256).min`
            return uint256(n >= 0 ? n : -n);
        }
    }
}

// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.9.0) (utils/Strings.sol)

pragma solidity ^0.8.0;

import "./math/Math.sol";
import "./math/SignedMath.sol";

/**
 * @dev String operations.
 */
library Strings {
    bytes16 private constant _SYMBOLS = "0123456789abcdef";
    uint8 private constant _ADDRESS_LENGTH = 20;

    /**
     * @dev Converts a `uint256` to its ASCII `string` decimal representation.
     */
    function toString(uint256 value) internal pure returns (string memory) {
        unchecked {
            uint256 length = Math.log10(value) + 1;
            string memory buffer = new string(length);
            uint256 ptr;
            /// @solidity memory-safe-assembly
            assembly {
                ptr := add(buffer, add(32, length))
            }
            while (true) {
                ptr--;
                /// @solidity memory-safe-assembly
                assembly {
                    mstore8(ptr, byte(mod(value, 10), _SYMBOLS))
                }
                value /= 10;
                if (value == 0) break;
            }
            return buffer;
        }
    }

    /**
     * @dev Converts a `int256` to its ASCII `string` decimal representation.
     */
    function toString(int256 value) internal pure returns (string memory) {
        return string(abi.encodePacked(value < 0 ? "-" : "", toString(SignedMath.abs(value))));
    }

    /**
     * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation.
     */
    function toHexString(uint256 value) internal pure returns (string memory) {
        unchecked {
            return toHexString(value, Math.log256(value) + 1);
        }
    }

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

    /**
     * @dev Converts an `address` with fixed length of 20 bytes to its not checksummed ASCII `string` hexadecimal representation.
     */
    function toHexString(address addr) internal pure returns (string memory) {
        return toHexString(uint256(uint160(addr)), _ADDRESS_LENGTH);
    }

    /**
     * @dev Returns true if the two strings are equal.
     */
    function equal(string memory a, string memory b) internal pure returns (bool) {
        return keccak256(bytes(a)) == keccak256(bytes(b));
    }
}

// SPDX-License-Identifier: MIT
pragma solidity ^0.8.9;

library MassaUtils {
    function validateMassaAddress(string calldata massaAddress) internal pure returns (bool) {
        bytes memory massaAddressBytes = bytes(massaAddress);
        uint addrLength = massaAddressBytes.length;
        if (addrLength < 39 || addrLength > 64) {
            return false;
        }
        if (massaAddressBytes[0] != 'A' || (massaAddressBytes[1] != 'U' && massaAddressBytes[1] != 'S')) {
            return false;
        }
        for (uint i = 2; i < addrLength; ) {
            bytes1 char = massaAddressBytes[i];
            // Check if the character is within the allowed alphabet
            bool isValidCharacter = ((char >= 0x31 && char <= 0x39) || // 1-9
                (char >= 0x41 && char <= 0x48) || // A-H
                (char >= 0x4A && char <= 0x4E) || // J-N
                (char >= 0x50 && char <= 0x5A) || // P-Z
                (char >= 0x61 && char <= 0x6B) || // a-k
                (char >= 0x6D && char <= 0x7A)); // m-z

            if (!isValidCharacter) {
                return false;
            }
            unchecked {
                ++i;
            }
        }
        return true;
    }
}

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

Contract Security Audit

Contract ABI

API
[{"inputs":[{"internalType":"address[]","name":"initialSigners","type":"address[]"},{"internalType":"address","name":"_multisigAdmin","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"_fee","type":"uint256"},{"indexed":false,"internalType":"string","name":"_type","type":"string"}],"name":"FeeSet","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"_amount","type":"uint256"},{"indexed":true,"internalType":"address","name":"token","type":"address"}],"name":"FeeWithdraw","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"sender","type":"address"},{"indexed":true,"internalType":"address","name":"token","type":"address"},{"indexed":false,"internalType":"string","name":"massaAddress","type":"string"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"Locked","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"account","type":"address"}],"name":"Paused","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"recipient","type":"address"},{"indexed":true,"internalType":"address","name":"token","type":"address"},{"indexed":false,"internalType":"string","name":"burnOpId","type":"string"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"Redeemed","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"signer","type":"address"}],"name":"SignerAdded","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"signer","type":"address"}],"name":"SignerRemoved","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"token","type":"address"}],"name":"TokenAdded","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"token","type":"address"}],"name":"TokenRemoved","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"account","type":"address"}],"name":"Unpaused","type":"event"},{"inputs":[{"internalType":"address","name":"newSigner","type":"address"}],"name":"addSigner","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"token","type":"address"}],"name":"addToken","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"name":"executedOpIds","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"fees","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getSigners","outputs":[{"internalType":"address[]","name":"","type":"address[]"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"signer","type":"address"}],"name":"isSigner","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"},{"internalType":"string","name":"massaAddress","type":"string"},{"internalType":"address","name":"tokenContract","type":"address"}],"name":"lock","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"lockFee","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"multisigAdmin","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"pause","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"paused","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"},{"internalType":"address","name":"recipient","type":"address"},{"internalType":"string","name":"burnOpId","type":"string"},{"internalType":"address","name":"tokenContract","type":"address"},{"internalType":"bytes[]","name":"signatures","type":"bytes[]"}],"name":"redeem","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"redeemFee","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"signer","type":"address"}],"name":"removeSigner","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"token","type":"address"}],"name":"removeToken","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_fee","type":"uint256"}],"name":"setLockFee","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_fee","type":"uint256"}],"name":"setRedeemFee","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"signers","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"supportedTokens","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"supportedTokensList","outputs":[{"internalType":"address[]","name":"","type":"address[]"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"unpause","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"token","type":"address"}],"name":"withdrawFees","outputs":[],"stateMutability":"nonpayable","type":"function"}]

60806040523480156200001157600080fd5b506040516200464738038062004647833981810160405281019062000037919062000638565b620000576200004b6200037e60201b60201c565b6200038660201b60201c565b60008060146101000a81548160ff021916908315150217905550600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1603620000e3576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401620000da9062000725565b60405180910390fd5b600082519050600081116200012f576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401620001269062000797565b60405180910390fd5b60005b81811015620003235760005b828110156200020757808214620001fb57848181518110620001655762000164620007b9565b5b602002602001015173ffffffffffffffffffffffffffffffffffffffff16858381518110620001995762000198620007b9565b5b602002602001015173ffffffffffffffffffffffffffffffffffffffff1603620001fa576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401620001f19062000838565b60405180910390fd5b5b8060010190506200013e565b50600073ffffffffffffffffffffffffffffffffffffffff16848281518110620002365762000235620007b9565b5b602002602001015173ffffffffffffffffffffffffffffffffffffffff160362000297576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016200028e90620008d0565b60405180910390fd5b6004848281518110620002af57620002ae620007b9565b5b60200260200101519080600181540180825580915050600190039060005260206000200160009091909190916101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555080600101905062000132565b506000600581905550600060068190555081600760006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550505050620008f2565b600033905090565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050816000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b6000604051905090565b600080fd5b600080fd5b600080fd5b6000601f19601f8301169050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b620004ae8262000463565b810181811067ffffffffffffffff82111715620004d057620004cf62000474565b5b80604052505050565b6000620004e56200044a565b9050620004f38282620004a3565b919050565b600067ffffffffffffffff82111562000516576200051562000474565b5b602082029050602081019050919050565b600080fd5b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b600062000559826200052c565b9050919050565b6200056b816200054c565b81146200057757600080fd5b50565b6000815190506200058b8162000560565b92915050565b6000620005a8620005a284620004f8565b620004d9565b90508083825260208201905060208402830185811115620005ce57620005cd62000527565b5b835b81811015620005fb5780620005e688826200057a565b845260208401935050602081019050620005d0565b5050509392505050565b600082601f8301126200061d576200061c6200045e565b5b81516200062f84826020860162000591565b91505092915050565b6000806040838503121562000652576200065162000454565b5b600083015167ffffffffffffffff81111562000673576200067262000459565b5b620006818582860162000605565b925050602062000694858286016200057a565b9150509250929050565b600082825260208201905092915050565b7f4d756c74697369672061646d696e2063616e6e6f7420626520746865207a657260008201527f6f20616464726573730000000000000000000000000000000000000000000000602082015250565b60006200070d6029836200069e565b91506200071a82620006af565b604082019050919050565b600060208201905081810360008301526200074081620006fe565b9050919050565b7f4174206c65617374206f6e65207369676e657220697320726571756972656400600082015250565b60006200077f601f836200069e565b91506200078c8262000747565b602082019050919050565b60006020820190508181036000830152620007b28162000770565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b7f5369676e657273206d75737420626520756e6971756500000000000000000000600082015250565b6000620008206016836200069e565b91506200082d82620007e8565b602082019050919050565b60006020820190508181036000830152620008538162000811565b9050919050565b7f5369676e65722063616e6e6f7420626520746865207a65726f2061646472657360008201527f7300000000000000000000000000000000000000000000000000000000000000602082015250565b6000620008b86021836200069e565b9150620008c5826200085a565b604082019050919050565b60006020820190508181036000830152620008eb81620008a9565b9050919050565b613d4580620009026000396000f3fe608060405234801561001057600080fd5b50600436106101735760003560e01c80637e40525a116100de5780639f7260bd11610097578063e3edb89011610071578063e3edb890146103ec578063eb12d61e14610408578063f2fde38b14610424578063faaebd211461044057610173565b80639f7260bd14610396578063baab6e9a146103b2578063d48bfca7146103d057610173565b80637e40525a146102e45780638121ff90146103145780638456cb59146103325780638da5cb5b1461033c57806394cf795e1461035a578063965fa21e1461037857610173565b80635c975abb116101305780635c975abb146102245780635d841af5146102425780635fa7b5841461025e57806368c4ac261461027a578063715018a6146102aa5780637df73e27146102b457610173565b80630e316ab714610178578063164e68de146101945780631ebac5c6146101b05780632079fb9a146101cc5780633f4ba83a146101fc57806356a0623514610206575b600080fd5b610192600480360381019061018d9190612793565b610470565b005b6101ae60048036038101906101a99190612793565b610644565b005b6101ca60048036038101906101c5919061285b565b610795565b005b6101e660048036038101906101e191906128cf565b61098f565b6040516101f3919061290b565b60405180910390f35b6102046109ce565b005b61020e6109e0565b60405161021b9190612935565b60405180910390f35b61022c6109e6565b604051610239919061296b565b60405180910390f35b61025c600480360381019061025791906128cf565b6109fc565b005b61027860048036038101906102739190612793565b610a8a565b005b610294600480360381019061028f9190612793565b610d42565b6040516102a1919061296b565b60405180910390f35b6102b2610d62565b005b6102ce60048036038101906102c99190612793565b610d76565b6040516102db919061296b565b60405180910390f35b6102fe60048036038101906102f991906129bc565b610e1f565b60405161030b919061296b565b60405180910390f35b61031c610e3f565b6040516103299190612aa7565b60405180910390f35b61033a610ecd565b005b610344610fa4565b604051610351919061290b565b60405180910390f35b610362610fcd565b60405161036f9190612aa7565b60405180910390f35b61038061105b565b60405161038d9190612935565b60405180910390f35b6103b060048036038101906103ab91906128cf565b611061565b005b6103ba6110ef565b6040516103c7919061290b565b60405180910390f35b6103ea60048036038101906103e59190612793565b611115565b005b61040660048036038101906104019190612b1f565b6112aa565b005b610422600480360381019061041d9190612793565b611700565b005b61043e60048036038101906104399190612793565b611869565b005b61045a60048036038101906104559190612793565b6118ec565b6040516104679190612935565b60405180910390f35b610478611904565b6000600480549050905060005b8181101561063f578273ffffffffffffffffffffffffffffffffffffffff16600482815481106104b8576104b7612bdb565b5b9060005260206000200160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff160361063457600460018361050d9190612c39565b8154811061051e5761051d612bdb565b5b9060005260206000200160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff166004828154811061055d5761055c612bdb565b5b9060005260206000200160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555060048054806105b7576105b6612c6d565b5b6001900381819060005260206000200160006101000a81549073ffffffffffffffffffffffffffffffffffffffff021916905590558273ffffffffffffffffffffffffffffffffffffffff167f3525e22824a8a7df2c9a6029941c824cf95b6447f1e13d5128fd3826d35afe8b60405160405180910390a261063f565b806001019050610485565b505050565b61064c611904565b6000600860008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020549050600081116106d3576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016106ca90612cf9565b60405180910390fd5b6000600860008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000208190555061074333828473ffffffffffffffffffffffffffffffffffffffff166119829092919063ffffffff16565b8173ffffffffffffffffffffffffffffffffffffffff167f9826687c41651ba69cea32ce3452ab6943e1e3df42b47269d3a4b7bb5ddf8807826040516107899190612935565b60405180910390a25050565b61079d611a08565b600160008273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16610829576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161082090612d65565b60405180910390fd5b6108338383611a52565b610872576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161086990612dd1565b60405180910390fd5b6000612710600554866108859190612df1565b61088f9190612e62565b905080600860008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008282546108e09190612e93565b925050819055506109143330878573ffffffffffffffffffffffffffffffffffffffff16611eba909392919063ffffffff16565b8173ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff167f286ac76bf1c6f9ec5b0f021c8b3281f35fbf1188e1db51b154acef28248ffeb98686858a6109719190612c39565b60405161098093929190612f14565b60405180910390a35050505050565b6004818154811061099f57600080fd5b906000526020600020016000915054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b6109d6611904565b6109de611f43565b565b60055481565b60008060149054906101000a900460ff16905090565b610a04611904565b612710811115610a49576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610a4090612f92565b60405180910390fd5b806006819055507ff1c9188ac961e8bd19c50ac88f72f585b190a9af6d3796d2c5cfba24e9ec7a4281604051610a7f9190612ffe565b60405180910390a150565b610a92611904565b600160008273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16610b1e576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610b1590613078565b60405180910390fd5b6000600160008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055506000600280549050905060005b81811015610cfa578273ffffffffffffffffffffffffffffffffffffffff1660028281548110610bb657610bb5612bdb565b5b9060005260206000200160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1603610cef576002600183610c0b9190612c39565b81548110610c1c57610c1b612bdb565b5b9060005260206000200160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1660028281548110610c5b57610c5a612bdb565b5b9060005260206000200160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055506002805480610cb557610cb4612c6d565b5b6001900381819060005260206000200160006101000a81549073ffffffffffffffffffffffffffffffffffffffff02191690559055610cfa565b806001019050610b83565b508173ffffffffffffffffffffffffffffffffffffffff167f4c910b69fe65a61f7531b9c5042b2329ca7179c77290aa7e2eb3afa3c8511fd360405160405180910390a25050565b60016020528060005260406000206000915054906101000a900460ff1681565b610d6a611904565b610d746000611fa5565b565b600080600480549050905060005b81811015610e13578373ffffffffffffffffffffffffffffffffffffffff1660048281548110610db757610db6612bdb565b5b9060005260206000200160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1603610e0857600192505050610e1a565b806001019050610d84565b5060009150505b919050565b60036020528060005260406000206000915054906101000a900460ff1681565b60606002805480602002602001604051908101604052809291908181526020018280548015610ec357602002820191906000526020600020905b8160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019060010190808311610e79575b5050505050905090565b600760009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff161480610f5b5750610f2c610fa4565b73ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16145b610f9a576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610f919061310a565b60405180910390fd5b610fa2612069565b565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b6060600480548060200260200160405190810160405280929190818152602001828054801561105157602002820191906000526020600020905b8160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019060010190808311611007575b5050505050905090565b60065481565b611069611904565b6127108111156110ae576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016110a590612f92565b60405180910390fd5b806005819055507ff1c9188ac961e8bd19c50ac88f72f585b190a9af6d3796d2c5cfba24e9ec7a42816040516110e49190613176565b60405180910390a150565b600760009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b61111d611904565b600160008273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16156111aa576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016111a1906131f0565b60405180910390fd5b60018060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055506002819080600181540180825580915050600190039060005260206000200160009091909190916101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508073ffffffffffffffffffffffffffffffffffffffff167f784c8f4dbf0ffedd6e72c76501c545a70f8b203b30a26ce542bf92ba87c248a460405160405180910390a250565b6112b2611a08565b60006004805490509050600160008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16611348576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161133f90612d65565b60405180910390fd5b80838390501461138d576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161138490613282565b60405180910390fd5b6003600087876040516020016113a49291906132d2565b60405160208183030381529060405280519060200120815260200190815260200160002060009054906101000a900460ff1615611416576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161140d90613337565b60405180910390fd5b6000888888888846604051602001611433969594939291906133c0565b60405160208183030381529060405280519060200120905060005b8281101561158b5760006114d1611464846120cc565b87878581811061147757611476612bdb565b5b9050602002810190611489919061342c565b8080601f016020809104026020016040519081016040528093929190818152602001838380828437600081840152601f19601f82011690508083019250505050505050612102565b9050600482815481106114e7576114e6612bdb565b5b9060005260206000200160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff161461157f576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611576906134db565b60405180910390fd5b8160010191505061144e565b5060016003600089896040516020016115a59291906132d2565b60405160208183030381529060405280519060200120815260200190815260200160002060006101000a81548160ff02191690831515021790555060006127106006548b6115f39190612df1565b6115fd9190612e62565b905080600860008873ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600082825461164e9190612e93565b9250508190555061168b89828c6116659190612c39565b8873ffffffffffffffffffffffffffffffffffffffff166119829092919063ffffffff16565b8573ffffffffffffffffffffffffffffffffffffffff168973ffffffffffffffffffffffffffffffffffffffff167fe442438f977cf13ed122d2e3462b1afe5a74fc3ad80af33b4962d673a5bbd3718a8a8e6040516116ec93929190612f14565b60405180910390a350505050505050505050565b611708611904565b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1603611777576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161176e9061356d565b60405180910390fd5b61178081610d76565b156117c0576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016117b7906135d9565b60405180910390fd5b6004819080600181540180825580915050600190039060005260206000200160009091909190916101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508073ffffffffffffffffffffffffffffffffffffffff167f47d1c22a25bb3a5d4e481b9b1e6944c2eade3181a0a20b495ed61d35b5323f2460405160405180910390a250565b611871611904565b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16036118e0576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016118d79061366b565b60405180910390fd5b6118e981612129565b50565b60086020528060005260406000206000915090505481565b61190c6121ac565b73ffffffffffffffffffffffffffffffffffffffff1661192a610fa4565b73ffffffffffffffffffffffffffffffffffffffff1614611980576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611977906136d7565b60405180910390fd5b565b611a038363a9059cbb60e01b84846040516024016119a19291906136f7565b604051602081830303815290604052907bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19166020820180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff83818316178352505050506121b4565b505050565b611a106109e6565b15611a50576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611a479061376c565b60405180910390fd5b565b60008083838080601f016020809104026020016040519081016040528093929190818152602001838380828437600081840152601f19601f8201169050808301925050505050505090506000815190506027811080611ab15750604081115b15611ac157600092505050611eb4565b7f410000000000000000000000000000000000000000000000000000000000000082600081518110611af657611af5612bdb565b5b602001015160f81c60f81b7effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916141580611bfc57507f550000000000000000000000000000000000000000000000000000000000000082600181518110611b6057611b5f612bdb565b5b602001015160f81c60f81b7effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614158015611bfb57507f530000000000000000000000000000000000000000000000000000000000000082600181518110611bcb57611bca612bdb565b5b602001015160f81c60f81b7effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614155b5b15611c0c57600092505050611eb4565b6000600290505b81811015611eac576000838281518110611c3057611c2f612bdb565b5b602001015160f81c60f81b90506000603160f81b827effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff191610158015611c9b5750603960f81b827effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff191611155b80611cfe5750604160f81b827effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff191610158015611cfd5750604860f81b827effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff191611155b5b80611d615750604a60f81b827effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff191610158015611d605750604e60f81b827effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff191611155b5b80611dc45750605060f81b827effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff191610158015611dc35750605a60f81b827effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff191611155b5b80611e275750606160f81b827effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff191610158015611e265750606b60f81b827effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff191611155b5b80611e8a5750606d60f81b827effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff191610158015611e895750607a60f81b827effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff191611155b5b905080611e9f57600095505050505050611eb4565b8260010192505050611c13565b506001925050505b92915050565b611f3d846323b872dd60e01b858585604051602401611edb9392919061378c565b604051602081830303815290604052907bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19166020820180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff83818316178352505050506121b4565b50505050565b611f4b61227c565b60008060146101000a81548160ff0219169083151502179055507f5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa611f8e6121ac565b604051611f9b919061290b565b60405180910390a1565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050816000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b612071611a08565b6001600060146101000a81548160ff0219169083151502179055507f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a2586120b56121ac565b6040516120c2919061290b565b60405180910390a1565b60007f19457468657265756d205369676e6564204d6573736167653a0a33320000000060005281601c52603c6000209050919050565b600080600061211185856122c5565b9150915061211e81612316565b819250505092915050565b612131611904565b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16036121a0576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016121979061366b565b60405180910390fd5b6121a981611fa5565b50565b600033905090565b6000612216826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c65648152508573ffffffffffffffffffffffffffffffffffffffff1661247c9092919063ffffffff16565b905060008151148061223857508080602001905181019061223791906137ef565b5b612277576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161226e9061388e565b60405180910390fd5b505050565b6122846109e6565b6122c3576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016122ba906138fa565b60405180910390fd5b565b60008060418351036123065760008060006020860151925060408601519150606086015160001a90506122fa87828585612494565b9450945050505061230f565b60006002915091505b9250929050565b6000600481111561232a5761232961391a565b5b81600481111561233d5761233c61391a565b5b031561247957600160048111156123575761235661391a565b5b81600481111561236a5761236961391a565b5b036123aa576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016123a190613995565b60405180910390fd5b600260048111156123be576123bd61391a565b5b8160048111156123d1576123d061391a565b5b03612411576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161240890613a01565b60405180910390fd5b600360048111156124255761242461391a565b5b8160048111156124385761243761391a565b5b03612478576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161246f90613a93565b60405180910390fd5b5b50565b606061248b8484600085612576565b90509392505050565b6000807f7fffffffffffffffffffffffffffffff5d576e7357a4501ddfe92f46681b20a08360001c11156124cf57600060039150915061256d565b6000600187878787604051600081526020016040526040516124f49493929190613ade565b6020604051602081039080840390855afa158015612516573d6000803e3d6000fd5b505050602060405103519050600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16036125645760006001925092505061256d565b80600092509250505b94509492505050565b6060824710156125bb576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016125b290613b95565b60405180910390fd5b6000808673ffffffffffffffffffffffffffffffffffffffff1685876040516125e49190613c26565b60006040518083038185875af1925050503d8060008114612621576040519150601f19603f3d011682016040523d82523d6000602084013e612626565b606091505b509150915061263787838387612643565b92505050949350505050565b606083156126a557600083510361269d5761265d856126b8565b61269c576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161269390613c89565b60405180910390fd5b5b8290506126b0565b6126af83836126db565b5b949350505050565b6000808273ffffffffffffffffffffffffffffffffffffffff163b119050919050565b6000825111156126ee5781518083602001fd5b806040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016127229190613ced565b60405180910390fd5b600080fd5b600080fd5b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b600061276082612735565b9050919050565b61277081612755565b811461277b57600080fd5b50565b60008135905061278d81612767565b92915050565b6000602082840312156127a9576127a861272b565b5b60006127b78482850161277e565b91505092915050565b6000819050919050565b6127d3816127c0565b81146127de57600080fd5b50565b6000813590506127f0816127ca565b92915050565b600080fd5b600080fd5b600080fd5b60008083601f84011261281b5761281a6127f6565b5b8235905067ffffffffffffffff811115612838576128376127fb565b5b60208301915083600182028301111561285457612853612800565b5b9250929050565b600080600080606085870312156128755761287461272b565b5b6000612883878288016127e1565b945050602085013567ffffffffffffffff8111156128a4576128a3612730565b5b6128b087828801612805565b935093505060406128c38782880161277e565b91505092959194509250565b6000602082840312156128e5576128e461272b565b5b60006128f3848285016127e1565b91505092915050565b61290581612755565b82525050565b600060208201905061292060008301846128fc565b92915050565b61292f816127c0565b82525050565b600060208201905061294a6000830184612926565b92915050565b60008115159050919050565b61296581612950565b82525050565b6000602082019050612980600083018461295c565b92915050565b6000819050919050565b61299981612986565b81146129a457600080fd5b50565b6000813590506129b681612990565b92915050565b6000602082840312156129d2576129d161272b565b5b60006129e0848285016129a7565b91505092915050565b600081519050919050565b600082825260208201905092915050565b6000819050602082019050919050565b612a1e81612755565b82525050565b6000612a308383612a15565b60208301905092915050565b6000602082019050919050565b6000612a54826129e9565b612a5e81856129f4565b9350612a6983612a05565b8060005b83811015612a9a578151612a818882612a24565b9750612a8c83612a3c565b925050600181019050612a6d565b5085935050505092915050565b60006020820190508181036000830152612ac18184612a49565b905092915050565b60008083601f840112612adf57612ade6127f6565b5b8235905067ffffffffffffffff811115612afc57612afb6127fb565b5b602083019150836020820283011115612b1857612b17612800565b5b9250929050565b600080600080600080600060a0888a031215612b3e57612b3d61272b565b5b6000612b4c8a828b016127e1565b9750506020612b5d8a828b0161277e565b965050604088013567ffffffffffffffff811115612b7e57612b7d612730565b5b612b8a8a828b01612805565b95509550506060612b9d8a828b0161277e565b935050608088013567ffffffffffffffff811115612bbe57612bbd612730565b5b612bca8a828b01612ac9565b925092505092959891949750929550565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b6000612c44826127c0565b9150612c4f836127c0565b9250828203905081811115612c6757612c66612c0a565b5b92915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603160045260246000fd5b600082825260208201905092915050565b7f4e6f206665657320746f20776974686472617700000000000000000000000000600082015250565b6000612ce3601383612c9c565b9150612cee82612cad565b602082019050919050565b60006020820190508181036000830152612d1281612cd6565b9050919050565b7f546f6b656e206e6f7420737570706f7274656400000000000000000000000000600082015250565b6000612d4f601383612c9c565b9150612d5a82612d19565b602082019050919050565b60006020820190508181036000830152612d7e81612d42565b9050919050565b7f496e76616c6964204d6173736120616464726573730000000000000000000000600082015250565b6000612dbb601583612c9c565b9150612dc682612d85565b602082019050919050565b60006020820190508181036000830152612dea81612dae565b9050919050565b6000612dfc826127c0565b9150612e07836127c0565b9250828202612e15816127c0565b91508282048414831517612e2c57612e2b612c0a565b5b5092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b6000612e6d826127c0565b9150612e78836127c0565b925082612e8857612e87612e33565b5b828204905092915050565b6000612e9e826127c0565b9150612ea9836127c0565b9250828201905080821115612ec157612ec0612c0a565b5b92915050565b82818337600083830152505050565b6000601f19601f8301169050919050565b6000612ef38385612c9c565b9350612f00838584612ec7565b612f0983612ed6565b840190509392505050565b60006040820190508181036000830152612f2f818587612ee7565b9050612f3e6020830184612926565b949350505050565b7f4665652063616e6e6f742062652067726561746572207468616e203130302500600082015250565b6000612f7c601f83612c9c565b9150612f8782612f46565b602082019050919050565b60006020820190508181036000830152612fab81612f6f565b9050919050565b7f72656465656d0000000000000000000000000000000000000000000000000000600082015250565b6000612fe8600683612c9c565b9150612ff382612fb2565b602082019050919050565b60006040820190506130136000830184612926565b818103602083015261302481612fdb565b905092915050565b7f546f6b656e206973206e6f7420737570706f7274656400000000000000000000600082015250565b6000613062601683612c9c565b915061306d8261302c565b602082019050919050565b6000602082019050818103600083015261309181613055565b9050919050565b7f4f6e6c79206d756c746973696741646d696e206f72206f776e65722063616e2060008201527f7061757365000000000000000000000000000000000000000000000000000000602082015250565b60006130f4602583612c9c565b91506130ff82613098565b604082019050919050565b60006020820190508181036000830152613123816130e7565b9050919050565b7f6c6f636b00000000000000000000000000000000000000000000000000000000600082015250565b6000613160600483612c9c565b915061316b8261312a565b602082019050919050565b600060408201905061318b6000830184612926565b818103602083015261319c81613153565b905092915050565b7f546f6b656e20697320616c726561647920737570706f72746564000000000000600082015250565b60006131da601a83612c9c565b91506131e5826131a4565b602082019050919050565b60006020820190508181036000830152613209816131cd565b9050919050565b7f416d6f756e74206f66207369676e61747572657320646f6573206e6f74206d6160008201527f74636820616d6f756e74206f66207369676e6572730000000000000000000000602082015250565b600061326c603583612c9c565b915061327782613210565b604082019050919050565b6000602082019050818103600083015261329b8161325f565b9050919050565b600081905092915050565b60006132b983856132a2565b93506132c6838584612ec7565b82840190509392505050565b60006132df8284866132ad565b91508190509392505050565b7f4f7065726174696f6e20616c7265616479206578656375746564000000000000600082015250565b6000613321601a83612c9c565b915061332c826132eb565b602082019050919050565b6000602082019050818103600083015261335081613314565b9050919050565b6000819050919050565b61337261336d826127c0565b613357565b82525050565b60008160601b9050919050565b600061339082613378565b9050919050565b60006133a282613385565b9050919050565b6133ba6133b582612755565b613397565b82525050565b60006133cc8289613361565b6020820191506133dc82886133a9565b6014820191506133ed8286886132ad565b91506133f982856133a9565b6014820191506134098284613361565b602082019150819050979650505050505050565b600080fd5b600080fd5b600080fd5b600080833560016020038436030381126134495761344861341d565b5b80840192508235915067ffffffffffffffff82111561346b5761346a613422565b5b60208301925060018202360383131561348757613486613427565b5b509250929050565b7f496e76616c6964207369676e6174757265000000000000000000000000000000600082015250565b60006134c5601183612c9c565b91506134d08261348f565b602082019050919050565b600060208201905081810360008301526134f4816134b8565b9050919050565b7f5369676e65722063616e6e6f7420626520746865207a65726f2061646472657360008201527f7300000000000000000000000000000000000000000000000000000000000000602082015250565b6000613557602183612c9c565b9150613562826134fb565b604082019050919050565b600060208201905081810360008301526135868161354a565b9050919050565b7f5369676e657220697320616c7265616479206164646564000000000000000000600082015250565b60006135c3601783612c9c565b91506135ce8261358d565b602082019050919050565b600060208201905081810360008301526135f2816135b6565b9050919050565b7f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160008201527f6464726573730000000000000000000000000000000000000000000000000000602082015250565b6000613655602683612c9c565b9150613660826135f9565b604082019050919050565b6000602082019050818103600083015261368481613648565b9050919050565b7f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572600082015250565b60006136c1602083612c9c565b91506136cc8261368b565b602082019050919050565b600060208201905081810360008301526136f0816136b4565b9050919050565b600060408201905061370c60008301856128fc565b6137196020830184612926565b9392505050565b7f5061757361626c653a2070617573656400000000000000000000000000000000600082015250565b6000613756601083612c9c565b915061376182613720565b602082019050919050565b6000602082019050818103600083015261378581613749565b9050919050565b60006060820190506137a160008301866128fc565b6137ae60208301856128fc565b6137bb6040830184612926565b949350505050565b6137cc81612950565b81146137d757600080fd5b50565b6000815190506137e9816137c3565b92915050565b6000602082840312156138055761380461272b565b5b6000613813848285016137da565b91505092915050565b7f5361666545524332303a204552433230206f7065726174696f6e20646964206e60008201527f6f74207375636365656400000000000000000000000000000000000000000000602082015250565b6000613878602a83612c9c565b91506138838261381c565b604082019050919050565b600060208201905081810360008301526138a78161386b565b9050919050565b7f5061757361626c653a206e6f7420706175736564000000000000000000000000600082015250565b60006138e4601483612c9c565b91506138ef826138ae565b602082019050919050565b60006020820190508181036000830152613913816138d7565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602160045260246000fd5b7f45434453413a20696e76616c6964207369676e61747572650000000000000000600082015250565b600061397f601883612c9c565b915061398a82613949565b602082019050919050565b600060208201905081810360008301526139ae81613972565b9050919050565b7f45434453413a20696e76616c6964207369676e6174757265206c656e67746800600082015250565b60006139eb601f83612c9c565b91506139f6826139b5565b602082019050919050565b60006020820190508181036000830152613a1a816139de565b9050919050565b7f45434453413a20696e76616c6964207369676e6174757265202773272076616c60008201527f7565000000000000000000000000000000000000000000000000000000000000602082015250565b6000613a7d602283612c9c565b9150613a8882613a21565b604082019050919050565b60006020820190508181036000830152613aac81613a70565b9050919050565b613abc81612986565b82525050565b600060ff82169050919050565b613ad881613ac2565b82525050565b6000608082019050613af36000830187613ab3565b613b006020830186613acf565b613b0d6040830185613ab3565b613b1a6060830184613ab3565b95945050505050565b7f416464726573733a20696e73756666696369656e742062616c616e636520666f60008201527f722063616c6c0000000000000000000000000000000000000000000000000000602082015250565b6000613b7f602683612c9c565b9150613b8a82613b23565b604082019050919050565b60006020820190508181036000830152613bae81613b72565b9050919050565b600081519050919050565b600081905092915050565b60005b83811015613be9578082015181840152602081019050613bce565b60008484015250505050565b6000613c0082613bb5565b613c0a8185613bc0565b9350613c1a818560208601613bcb565b80840191505092915050565b6000613c328284613bf5565b915081905092915050565b7f416464726573733a2063616c6c20746f206e6f6e2d636f6e7472616374000000600082015250565b6000613c73601d83612c9c565b9150613c7e82613c3d565b602082019050919050565b60006020820190508181036000830152613ca281613c66565b9050919050565b600081519050919050565b6000613cbf82613ca9565b613cc98185612c9c565b9350613cd9818560208601613bcb565b613ce281612ed6565b840191505092915050565b60006020820190508181036000830152613d078184613cb4565b90509291505056fea264697066735822122055f2f1e86fff90fd979622ac29b27c3aef7b4d046aa0be29bcd7384b1cd9693b64736f6c634300081200330000000000000000000000000000000000000000000000000000000000000040000000000000000000000000b744a01980b2f1ee61ed742df42b21b3aafe1a310000000000000000000000000000000000000000000000000000000000000003000000000000000000000000fb7a9a73f53fbba7ddcf838ed357dd36e323330d0000000000000000000000000e7e92e2ae0e28f04b1288c2b70a52262e9b9eaf000000000000000000000000c70f85ad44c092a8e300a9e4ae34628e96d5149a

Deployed Bytecode

0x608060405234801561001057600080fd5b50600436106101735760003560e01c80637e40525a116100de5780639f7260bd11610097578063e3edb89011610071578063e3edb890146103ec578063eb12d61e14610408578063f2fde38b14610424578063faaebd211461044057610173565b80639f7260bd14610396578063baab6e9a146103b2578063d48bfca7146103d057610173565b80637e40525a146102e45780638121ff90146103145780638456cb59146103325780638da5cb5b1461033c57806394cf795e1461035a578063965fa21e1461037857610173565b80635c975abb116101305780635c975abb146102245780635d841af5146102425780635fa7b5841461025e57806368c4ac261461027a578063715018a6146102aa5780637df73e27146102b457610173565b80630e316ab714610178578063164e68de146101945780631ebac5c6146101b05780632079fb9a146101cc5780633f4ba83a146101fc57806356a0623514610206575b600080fd5b610192600480360381019061018d9190612793565b610470565b005b6101ae60048036038101906101a99190612793565b610644565b005b6101ca60048036038101906101c5919061285b565b610795565b005b6101e660048036038101906101e191906128cf565b61098f565b6040516101f3919061290b565b60405180910390f35b6102046109ce565b005b61020e6109e0565b60405161021b9190612935565b60405180910390f35b61022c6109e6565b604051610239919061296b565b60405180910390f35b61025c600480360381019061025791906128cf565b6109fc565b005b61027860048036038101906102739190612793565b610a8a565b005b610294600480360381019061028f9190612793565b610d42565b6040516102a1919061296b565b60405180910390f35b6102b2610d62565b005b6102ce60048036038101906102c99190612793565b610d76565b6040516102db919061296b565b60405180910390f35b6102fe60048036038101906102f991906129bc565b610e1f565b60405161030b919061296b565b60405180910390f35b61031c610e3f565b6040516103299190612aa7565b60405180910390f35b61033a610ecd565b005b610344610fa4565b604051610351919061290b565b60405180910390f35b610362610fcd565b60405161036f9190612aa7565b60405180910390f35b61038061105b565b60405161038d9190612935565b60405180910390f35b6103b060048036038101906103ab91906128cf565b611061565b005b6103ba6110ef565b6040516103c7919061290b565b60405180910390f35b6103ea60048036038101906103e59190612793565b611115565b005b61040660048036038101906104019190612b1f565b6112aa565b005b610422600480360381019061041d9190612793565b611700565b005b61043e60048036038101906104399190612793565b611869565b005b61045a60048036038101906104559190612793565b6118ec565b6040516104679190612935565b60405180910390f35b610478611904565b6000600480549050905060005b8181101561063f578273ffffffffffffffffffffffffffffffffffffffff16600482815481106104b8576104b7612bdb565b5b9060005260206000200160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff160361063457600460018361050d9190612c39565b8154811061051e5761051d612bdb565b5b9060005260206000200160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff166004828154811061055d5761055c612bdb565b5b9060005260206000200160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555060048054806105b7576105b6612c6d565b5b6001900381819060005260206000200160006101000a81549073ffffffffffffffffffffffffffffffffffffffff021916905590558273ffffffffffffffffffffffffffffffffffffffff167f3525e22824a8a7df2c9a6029941c824cf95b6447f1e13d5128fd3826d35afe8b60405160405180910390a261063f565b806001019050610485565b505050565b61064c611904565b6000600860008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020549050600081116106d3576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016106ca90612cf9565b60405180910390fd5b6000600860008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000208190555061074333828473ffffffffffffffffffffffffffffffffffffffff166119829092919063ffffffff16565b8173ffffffffffffffffffffffffffffffffffffffff167f9826687c41651ba69cea32ce3452ab6943e1e3df42b47269d3a4b7bb5ddf8807826040516107899190612935565b60405180910390a25050565b61079d611a08565b600160008273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16610829576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161082090612d65565b60405180910390fd5b6108338383611a52565b610872576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161086990612dd1565b60405180910390fd5b6000612710600554866108859190612df1565b61088f9190612e62565b905080600860008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008282546108e09190612e93565b925050819055506109143330878573ffffffffffffffffffffffffffffffffffffffff16611eba909392919063ffffffff16565b8173ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff167f286ac76bf1c6f9ec5b0f021c8b3281f35fbf1188e1db51b154acef28248ffeb98686858a6109719190612c39565b60405161098093929190612f14565b60405180910390a35050505050565b6004818154811061099f57600080fd5b906000526020600020016000915054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b6109d6611904565b6109de611f43565b565b60055481565b60008060149054906101000a900460ff16905090565b610a04611904565b612710811115610a49576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610a4090612f92565b60405180910390fd5b806006819055507ff1c9188ac961e8bd19c50ac88f72f585b190a9af6d3796d2c5cfba24e9ec7a4281604051610a7f9190612ffe565b60405180910390a150565b610a92611904565b600160008273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16610b1e576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610b1590613078565b60405180910390fd5b6000600160008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055506000600280549050905060005b81811015610cfa578273ffffffffffffffffffffffffffffffffffffffff1660028281548110610bb657610bb5612bdb565b5b9060005260206000200160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1603610cef576002600183610c0b9190612c39565b81548110610c1c57610c1b612bdb565b5b9060005260206000200160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1660028281548110610c5b57610c5a612bdb565b5b9060005260206000200160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055506002805480610cb557610cb4612c6d565b5b6001900381819060005260206000200160006101000a81549073ffffffffffffffffffffffffffffffffffffffff02191690559055610cfa565b806001019050610b83565b508173ffffffffffffffffffffffffffffffffffffffff167f4c910b69fe65a61f7531b9c5042b2329ca7179c77290aa7e2eb3afa3c8511fd360405160405180910390a25050565b60016020528060005260406000206000915054906101000a900460ff1681565b610d6a611904565b610d746000611fa5565b565b600080600480549050905060005b81811015610e13578373ffffffffffffffffffffffffffffffffffffffff1660048281548110610db757610db6612bdb565b5b9060005260206000200160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1603610e0857600192505050610e1a565b806001019050610d84565b5060009150505b919050565b60036020528060005260406000206000915054906101000a900460ff1681565b60606002805480602002602001604051908101604052809291908181526020018280548015610ec357602002820191906000526020600020905b8160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019060010190808311610e79575b5050505050905090565b600760009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff161480610f5b5750610f2c610fa4565b73ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16145b610f9a576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610f919061310a565b60405180910390fd5b610fa2612069565b565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b6060600480548060200260200160405190810160405280929190818152602001828054801561105157602002820191906000526020600020905b8160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019060010190808311611007575b5050505050905090565b60065481565b611069611904565b6127108111156110ae576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016110a590612f92565b60405180910390fd5b806005819055507ff1c9188ac961e8bd19c50ac88f72f585b190a9af6d3796d2c5cfba24e9ec7a42816040516110e49190613176565b60405180910390a150565b600760009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b61111d611904565b600160008273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16156111aa576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016111a1906131f0565b60405180910390fd5b60018060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055506002819080600181540180825580915050600190039060005260206000200160009091909190916101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508073ffffffffffffffffffffffffffffffffffffffff167f784c8f4dbf0ffedd6e72c76501c545a70f8b203b30a26ce542bf92ba87c248a460405160405180910390a250565b6112b2611a08565b60006004805490509050600160008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16611348576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161133f90612d65565b60405180910390fd5b80838390501461138d576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161138490613282565b60405180910390fd5b6003600087876040516020016113a49291906132d2565b60405160208183030381529060405280519060200120815260200190815260200160002060009054906101000a900460ff1615611416576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161140d90613337565b60405180910390fd5b6000888888888846604051602001611433969594939291906133c0565b60405160208183030381529060405280519060200120905060005b8281101561158b5760006114d1611464846120cc565b87878581811061147757611476612bdb565b5b9050602002810190611489919061342c565b8080601f016020809104026020016040519081016040528093929190818152602001838380828437600081840152601f19601f82011690508083019250505050505050612102565b9050600482815481106114e7576114e6612bdb565b5b9060005260206000200160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff161461157f576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611576906134db565b60405180910390fd5b8160010191505061144e565b5060016003600089896040516020016115a59291906132d2565b60405160208183030381529060405280519060200120815260200190815260200160002060006101000a81548160ff02191690831515021790555060006127106006548b6115f39190612df1565b6115fd9190612e62565b905080600860008873ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600082825461164e9190612e93565b9250508190555061168b89828c6116659190612c39565b8873ffffffffffffffffffffffffffffffffffffffff166119829092919063ffffffff16565b8573ffffffffffffffffffffffffffffffffffffffff168973ffffffffffffffffffffffffffffffffffffffff167fe442438f977cf13ed122d2e3462b1afe5a74fc3ad80af33b4962d673a5bbd3718a8a8e6040516116ec93929190612f14565b60405180910390a350505050505050505050565b611708611904565b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1603611777576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161176e9061356d565b60405180910390fd5b61178081610d76565b156117c0576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016117b7906135d9565b60405180910390fd5b6004819080600181540180825580915050600190039060005260206000200160009091909190916101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508073ffffffffffffffffffffffffffffffffffffffff167f47d1c22a25bb3a5d4e481b9b1e6944c2eade3181a0a20b495ed61d35b5323f2460405160405180910390a250565b611871611904565b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16036118e0576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016118d79061366b565b60405180910390fd5b6118e981612129565b50565b60086020528060005260406000206000915090505481565b61190c6121ac565b73ffffffffffffffffffffffffffffffffffffffff1661192a610fa4565b73ffffffffffffffffffffffffffffffffffffffff1614611980576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611977906136d7565b60405180910390fd5b565b611a038363a9059cbb60e01b84846040516024016119a19291906136f7565b604051602081830303815290604052907bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19166020820180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff83818316178352505050506121b4565b505050565b611a106109e6565b15611a50576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611a479061376c565b60405180910390fd5b565b60008083838080601f016020809104026020016040519081016040528093929190818152602001838380828437600081840152601f19601f8201169050808301925050505050505090506000815190506027811080611ab15750604081115b15611ac157600092505050611eb4565b7f410000000000000000000000000000000000000000000000000000000000000082600081518110611af657611af5612bdb565b5b602001015160f81c60f81b7effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916141580611bfc57507f550000000000000000000000000000000000000000000000000000000000000082600181518110611b6057611b5f612bdb565b5b602001015160f81c60f81b7effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614158015611bfb57507f530000000000000000000000000000000000000000000000000000000000000082600181518110611bcb57611bca612bdb565b5b602001015160f81c60f81b7effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614155b5b15611c0c57600092505050611eb4565b6000600290505b81811015611eac576000838281518110611c3057611c2f612bdb565b5b602001015160f81c60f81b90506000603160f81b827effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff191610158015611c9b5750603960f81b827effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff191611155b80611cfe5750604160f81b827effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff191610158015611cfd5750604860f81b827effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff191611155b5b80611d615750604a60f81b827effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff191610158015611d605750604e60f81b827effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff191611155b5b80611dc45750605060f81b827effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff191610158015611dc35750605a60f81b827effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff191611155b5b80611e275750606160f81b827effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff191610158015611e265750606b60f81b827effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff191611155b5b80611e8a5750606d60f81b827effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff191610158015611e895750607a60f81b827effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff191611155b5b905080611e9f57600095505050505050611eb4565b8260010192505050611c13565b506001925050505b92915050565b611f3d846323b872dd60e01b858585604051602401611edb9392919061378c565b604051602081830303815290604052907bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19166020820180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff83818316178352505050506121b4565b50505050565b611f4b61227c565b60008060146101000a81548160ff0219169083151502179055507f5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa611f8e6121ac565b604051611f9b919061290b565b60405180910390a1565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050816000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b612071611a08565b6001600060146101000a81548160ff0219169083151502179055507f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a2586120b56121ac565b6040516120c2919061290b565b60405180910390a1565b60007f19457468657265756d205369676e6564204d6573736167653a0a33320000000060005281601c52603c6000209050919050565b600080600061211185856122c5565b9150915061211e81612316565b819250505092915050565b612131611904565b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16036121a0576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016121979061366b565b60405180910390fd5b6121a981611fa5565b50565b600033905090565b6000612216826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c65648152508573ffffffffffffffffffffffffffffffffffffffff1661247c9092919063ffffffff16565b905060008151148061223857508080602001905181019061223791906137ef565b5b612277576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161226e9061388e565b60405180910390fd5b505050565b6122846109e6565b6122c3576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016122ba906138fa565b60405180910390fd5b565b60008060418351036123065760008060006020860151925060408601519150606086015160001a90506122fa87828585612494565b9450945050505061230f565b60006002915091505b9250929050565b6000600481111561232a5761232961391a565b5b81600481111561233d5761233c61391a565b5b031561247957600160048111156123575761235661391a565b5b81600481111561236a5761236961391a565b5b036123aa576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016123a190613995565b60405180910390fd5b600260048111156123be576123bd61391a565b5b8160048111156123d1576123d061391a565b5b03612411576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161240890613a01565b60405180910390fd5b600360048111156124255761242461391a565b5b8160048111156124385761243761391a565b5b03612478576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161246f90613a93565b60405180910390fd5b5b50565b606061248b8484600085612576565b90509392505050565b6000807f7fffffffffffffffffffffffffffffff5d576e7357a4501ddfe92f46681b20a08360001c11156124cf57600060039150915061256d565b6000600187878787604051600081526020016040526040516124f49493929190613ade565b6020604051602081039080840390855afa158015612516573d6000803e3d6000fd5b505050602060405103519050600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16036125645760006001925092505061256d565b80600092509250505b94509492505050565b6060824710156125bb576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016125b290613b95565b60405180910390fd5b6000808673ffffffffffffffffffffffffffffffffffffffff1685876040516125e49190613c26565b60006040518083038185875af1925050503d8060008114612621576040519150601f19603f3d011682016040523d82523d6000602084013e612626565b606091505b509150915061263787838387612643565b92505050949350505050565b606083156126a557600083510361269d5761265d856126b8565b61269c576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161269390613c89565b60405180910390fd5b5b8290506126b0565b6126af83836126db565b5b949350505050565b6000808273ffffffffffffffffffffffffffffffffffffffff163b119050919050565b6000825111156126ee5781518083602001fd5b806040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016127229190613ced565b60405180910390fd5b600080fd5b600080fd5b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b600061276082612735565b9050919050565b61277081612755565b811461277b57600080fd5b50565b60008135905061278d81612767565b92915050565b6000602082840312156127a9576127a861272b565b5b60006127b78482850161277e565b91505092915050565b6000819050919050565b6127d3816127c0565b81146127de57600080fd5b50565b6000813590506127f0816127ca565b92915050565b600080fd5b600080fd5b600080fd5b60008083601f84011261281b5761281a6127f6565b5b8235905067ffffffffffffffff811115612838576128376127fb565b5b60208301915083600182028301111561285457612853612800565b5b9250929050565b600080600080606085870312156128755761287461272b565b5b6000612883878288016127e1565b945050602085013567ffffffffffffffff8111156128a4576128a3612730565b5b6128b087828801612805565b935093505060406128c38782880161277e565b91505092959194509250565b6000602082840312156128e5576128e461272b565b5b60006128f3848285016127e1565b91505092915050565b61290581612755565b82525050565b600060208201905061292060008301846128fc565b92915050565b61292f816127c0565b82525050565b600060208201905061294a6000830184612926565b92915050565b60008115159050919050565b61296581612950565b82525050565b6000602082019050612980600083018461295c565b92915050565b6000819050919050565b61299981612986565b81146129a457600080fd5b50565b6000813590506129b681612990565b92915050565b6000602082840312156129d2576129d161272b565b5b60006129e0848285016129a7565b91505092915050565b600081519050919050565b600082825260208201905092915050565b6000819050602082019050919050565b612a1e81612755565b82525050565b6000612a308383612a15565b60208301905092915050565b6000602082019050919050565b6000612a54826129e9565b612a5e81856129f4565b9350612a6983612a05565b8060005b83811015612a9a578151612a818882612a24565b9750612a8c83612a3c565b925050600181019050612a6d565b5085935050505092915050565b60006020820190508181036000830152612ac18184612a49565b905092915050565b60008083601f840112612adf57612ade6127f6565b5b8235905067ffffffffffffffff811115612afc57612afb6127fb565b5b602083019150836020820283011115612b1857612b17612800565b5b9250929050565b600080600080600080600060a0888a031215612b3e57612b3d61272b565b5b6000612b4c8a828b016127e1565b9750506020612b5d8a828b0161277e565b965050604088013567ffffffffffffffff811115612b7e57612b7d612730565b5b612b8a8a828b01612805565b95509550506060612b9d8a828b0161277e565b935050608088013567ffffffffffffffff811115612bbe57612bbd612730565b5b612bca8a828b01612ac9565b925092505092959891949750929550565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b6000612c44826127c0565b9150612c4f836127c0565b9250828203905081811115612c6757612c66612c0a565b5b92915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603160045260246000fd5b600082825260208201905092915050565b7f4e6f206665657320746f20776974686472617700000000000000000000000000600082015250565b6000612ce3601383612c9c565b9150612cee82612cad565b602082019050919050565b60006020820190508181036000830152612d1281612cd6565b9050919050565b7f546f6b656e206e6f7420737570706f7274656400000000000000000000000000600082015250565b6000612d4f601383612c9c565b9150612d5a82612d19565b602082019050919050565b60006020820190508181036000830152612d7e81612d42565b9050919050565b7f496e76616c6964204d6173736120616464726573730000000000000000000000600082015250565b6000612dbb601583612c9c565b9150612dc682612d85565b602082019050919050565b60006020820190508181036000830152612dea81612dae565b9050919050565b6000612dfc826127c0565b9150612e07836127c0565b9250828202612e15816127c0565b91508282048414831517612e2c57612e2b612c0a565b5b5092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b6000612e6d826127c0565b9150612e78836127c0565b925082612e8857612e87612e33565b5b828204905092915050565b6000612e9e826127c0565b9150612ea9836127c0565b9250828201905080821115612ec157612ec0612c0a565b5b92915050565b82818337600083830152505050565b6000601f19601f8301169050919050565b6000612ef38385612c9c565b9350612f00838584612ec7565b612f0983612ed6565b840190509392505050565b60006040820190508181036000830152612f2f818587612ee7565b9050612f3e6020830184612926565b949350505050565b7f4665652063616e6e6f742062652067726561746572207468616e203130302500600082015250565b6000612f7c601f83612c9c565b9150612f8782612f46565b602082019050919050565b60006020820190508181036000830152612fab81612f6f565b9050919050565b7f72656465656d0000000000000000000000000000000000000000000000000000600082015250565b6000612fe8600683612c9c565b9150612ff382612fb2565b602082019050919050565b60006040820190506130136000830184612926565b818103602083015261302481612fdb565b905092915050565b7f546f6b656e206973206e6f7420737570706f7274656400000000000000000000600082015250565b6000613062601683612c9c565b915061306d8261302c565b602082019050919050565b6000602082019050818103600083015261309181613055565b9050919050565b7f4f6e6c79206d756c746973696741646d696e206f72206f776e65722063616e2060008201527f7061757365000000000000000000000000000000000000000000000000000000602082015250565b60006130f4602583612c9c565b91506130ff82613098565b604082019050919050565b60006020820190508181036000830152613123816130e7565b9050919050565b7f6c6f636b00000000000000000000000000000000000000000000000000000000600082015250565b6000613160600483612c9c565b915061316b8261312a565b602082019050919050565b600060408201905061318b6000830184612926565b818103602083015261319c81613153565b905092915050565b7f546f6b656e20697320616c726561647920737570706f72746564000000000000600082015250565b60006131da601a83612c9c565b91506131e5826131a4565b602082019050919050565b60006020820190508181036000830152613209816131cd565b9050919050565b7f416d6f756e74206f66207369676e61747572657320646f6573206e6f74206d6160008201527f74636820616d6f756e74206f66207369676e6572730000000000000000000000602082015250565b600061326c603583612c9c565b915061327782613210565b604082019050919050565b6000602082019050818103600083015261329b8161325f565b9050919050565b600081905092915050565b60006132b983856132a2565b93506132c6838584612ec7565b82840190509392505050565b60006132df8284866132ad565b91508190509392505050565b7f4f7065726174696f6e20616c7265616479206578656375746564000000000000600082015250565b6000613321601a83612c9c565b915061332c826132eb565b602082019050919050565b6000602082019050818103600083015261335081613314565b9050919050565b6000819050919050565b61337261336d826127c0565b613357565b82525050565b60008160601b9050919050565b600061339082613378565b9050919050565b60006133a282613385565b9050919050565b6133ba6133b582612755565b613397565b82525050565b60006133cc8289613361565b6020820191506133dc82886133a9565b6014820191506133ed8286886132ad565b91506133f982856133a9565b6014820191506134098284613361565b602082019150819050979650505050505050565b600080fd5b600080fd5b600080fd5b600080833560016020038436030381126134495761344861341d565b5b80840192508235915067ffffffffffffffff82111561346b5761346a613422565b5b60208301925060018202360383131561348757613486613427565b5b509250929050565b7f496e76616c6964207369676e6174757265000000000000000000000000000000600082015250565b60006134c5601183612c9c565b91506134d08261348f565b602082019050919050565b600060208201905081810360008301526134f4816134b8565b9050919050565b7f5369676e65722063616e6e6f7420626520746865207a65726f2061646472657360008201527f7300000000000000000000000000000000000000000000000000000000000000602082015250565b6000613557602183612c9c565b9150613562826134fb565b604082019050919050565b600060208201905081810360008301526135868161354a565b9050919050565b7f5369676e657220697320616c7265616479206164646564000000000000000000600082015250565b60006135c3601783612c9c565b91506135ce8261358d565b602082019050919050565b600060208201905081810360008301526135f2816135b6565b9050919050565b7f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160008201527f6464726573730000000000000000000000000000000000000000000000000000602082015250565b6000613655602683612c9c565b9150613660826135f9565b604082019050919050565b6000602082019050818103600083015261368481613648565b9050919050565b7f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572600082015250565b60006136c1602083612c9c565b91506136cc8261368b565b602082019050919050565b600060208201905081810360008301526136f0816136b4565b9050919050565b600060408201905061370c60008301856128fc565b6137196020830184612926565b9392505050565b7f5061757361626c653a2070617573656400000000000000000000000000000000600082015250565b6000613756601083612c9c565b915061376182613720565b602082019050919050565b6000602082019050818103600083015261378581613749565b9050919050565b60006060820190506137a160008301866128fc565b6137ae60208301856128fc565b6137bb6040830184612926565b949350505050565b6137cc81612950565b81146137d757600080fd5b50565b6000815190506137e9816137c3565b92915050565b6000602082840312156138055761380461272b565b5b6000613813848285016137da565b91505092915050565b7f5361666545524332303a204552433230206f7065726174696f6e20646964206e60008201527f6f74207375636365656400000000000000000000000000000000000000000000602082015250565b6000613878602a83612c9c565b91506138838261381c565b604082019050919050565b600060208201905081810360008301526138a78161386b565b9050919050565b7f5061757361626c653a206e6f7420706175736564000000000000000000000000600082015250565b60006138e4601483612c9c565b91506138ef826138ae565b602082019050919050565b60006020820190508181036000830152613913816138d7565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602160045260246000fd5b7f45434453413a20696e76616c6964207369676e61747572650000000000000000600082015250565b600061397f601883612c9c565b915061398a82613949565b602082019050919050565b600060208201905081810360008301526139ae81613972565b9050919050565b7f45434453413a20696e76616c6964207369676e6174757265206c656e67746800600082015250565b60006139eb601f83612c9c565b91506139f6826139b5565b602082019050919050565b60006020820190508181036000830152613a1a816139de565b9050919050565b7f45434453413a20696e76616c6964207369676e6174757265202773272076616c60008201527f7565000000000000000000000000000000000000000000000000000000000000602082015250565b6000613a7d602283612c9c565b9150613a8882613a21565b604082019050919050565b60006020820190508181036000830152613aac81613a70565b9050919050565b613abc81612986565b82525050565b600060ff82169050919050565b613ad881613ac2565b82525050565b6000608082019050613af36000830187613ab3565b613b006020830186613acf565b613b0d6040830185613ab3565b613b1a6060830184613ab3565b95945050505050565b7f416464726573733a20696e73756666696369656e742062616c616e636520666f60008201527f722063616c6c0000000000000000000000000000000000000000000000000000602082015250565b6000613b7f602683612c9c565b9150613b8a82613b23565b604082019050919050565b60006020820190508181036000830152613bae81613b72565b9050919050565b600081519050919050565b600081905092915050565b60005b83811015613be9578082015181840152602081019050613bce565b60008484015250505050565b6000613c0082613bb5565b613c0a8185613bc0565b9350613c1a818560208601613bcb565b80840191505092915050565b6000613c328284613bf5565b915081905092915050565b7f416464726573733a2063616c6c20746f206e6f6e2d636f6e7472616374000000600082015250565b6000613c73601d83612c9c565b9150613c7e82613c3d565b602082019050919050565b60006020820190508181036000830152613ca281613c66565b9050919050565b600081519050919050565b6000613cbf82613ca9565b613cc98185612c9c565b9350613cd9818560208601613bcb565b613ce281612ed6565b840191505092915050565b60006020820190508181036000830152613d078184613cb4565b90509291505056fea264697066735822122055f2f1e86fff90fd979622ac29b27c3aef7b4d046aa0be29bcd7384b1cd9693b64736f6c63430008120033

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

0000000000000000000000000000000000000000000000000000000000000040000000000000000000000000b744a01980b2f1ee61ed742df42b21b3aafe1a310000000000000000000000000000000000000000000000000000000000000003000000000000000000000000fb7a9a73f53fbba7ddcf838ed357dd36e323330d0000000000000000000000000e7e92e2ae0e28f04b1288c2b70a52262e9b9eaf000000000000000000000000c70f85ad44c092a8e300a9e4ae34628e96d5149a

-----Decoded View---------------
Arg [0] : initialSigners (address[]): 0xFb7A9a73f53FBbA7DDCF838ED357dD36e323330D,0x0E7E92e2aE0E28F04B1288c2B70A52262E9B9EAF,0xC70F85Ad44C092A8e300A9E4Ae34628E96D5149a
Arg [1] : _multisigAdmin (address): 0xB744a01980b2f1ee61ED742df42B21b3AAfE1A31

-----Encoded View---------------
6 Constructor Arguments found :
Arg [0] : 0000000000000000000000000000000000000000000000000000000000000040
Arg [1] : 000000000000000000000000b744a01980b2f1ee61ed742df42b21b3aafe1a31
Arg [2] : 0000000000000000000000000000000000000000000000000000000000000003
Arg [3] : 000000000000000000000000fb7a9a73f53fbba7ddcf838ed357dd36e323330d
Arg [4] : 0000000000000000000000000e7e92e2ae0e28f04b1288c2b70a52262e9b9eaf
Arg [5] : 000000000000000000000000c70f85ad44c092a8e300a9e4ae34628e96d5149a


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

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