FTM Price: $0.585043 (+2.30%)
Gas: 3 GWei
 

Overview

FTM Balance

Fantom LogoFantom LogoFantom Logo0 FTM

FTM Value

$0.00

Sponsored

Transaction Hash
Method
Block
From
To
Value
0x60806040805441492024-05-07 0:53:1847 days ago1715043198IN
 Create: CreatorTrade
0 FTM0.0302540310.64704068

Latest 25 internal transactions (View All)

Parent Transaction Hash Block From To Value
834781302024-06-22 14:35:4616 hrs ago1719066946
0x736239bD...7AAb4C0Bd
0.05 FTM
834781302024-06-22 14:35:4616 hrs ago1719066946
0x736239bD...7AAb4C0Bd
0.05 FTM
834722372024-06-22 12:41:0518 hrs ago1719060065
0x736239bD...7AAb4C0Bd
0.05 FTM
834722372024-06-22 12:41:0518 hrs ago1719060065
0x736239bD...7AAb4C0Bd
0.05 FTM
834722372024-06-22 12:41:0518 hrs ago1719060065
0x736239bD...7AAb4C0Bd
0.9 FTM
834189132024-06-21 18:10:3237 hrs ago1718993432
0x736239bD...7AAb4C0Bd
0.05 FTM
834189132024-06-21 18:10:3237 hrs ago1718993432
0x736239bD...7AAb4C0Bd
0.05 FTM
834188882024-06-21 18:09:5537 hrs ago1718993395
0x736239bD...7AAb4C0Bd
0.0125 FTM
834188882024-06-21 18:09:5537 hrs ago1718993395
0x736239bD...7AAb4C0Bd
0.0125 FTM
834137452024-06-21 16:19:0739 hrs ago1718986747
0x736239bD...7AAb4C0Bd
0.05 FTM
834137452024-06-21 16:19:0739 hrs ago1718986747
0x736239bD...7AAb4C0Bd
0.05 FTM
834019262024-06-21 12:39:3642 hrs ago1718973576
0x736239bD...7AAb4C0Bd
0.0125 FTM
834019262024-06-21 12:39:3642 hrs ago1718973576
0x736239bD...7AAb4C0Bd
0.0125 FTM
833691522024-06-21 3:05:162 days ago1718939116
0x736239bD...7AAb4C0Bd
0.0125 FTM
833691522024-06-21 3:05:162 days ago1718939116
0x736239bD...7AAb4C0Bd
0.0125 FTM
833378142024-06-20 19:40:142 days ago1718912414
0x736239bD...7AAb4C0Bd
9.125 FTM
833378142024-06-20 19:40:142 days ago1718912414
0x736239bD...7AAb4C0Bd
9.125 FTM
833378142024-06-20 19:40:142 days ago1718912414
0x736239bD...7AAb4C0Bd
164.25 FTM
833376972024-06-20 19:38:372 days ago1718912317
0x736239bD...7AAb4C0Bd
2.2625 FTM
833376972024-06-20 19:38:372 days ago1718912317
0x736239bD...7AAb4C0Bd
2.2625 FTM
833376972024-06-20 19:38:372 days ago1718912317
0x736239bD...7AAb4C0Bd
40.725 FTM
833376162024-06-20 19:37:292 days ago1718912249
0x736239bD...7AAb4C0Bd
2.1125 FTM
833376162024-06-20 19:37:292 days ago1718912249
0x736239bD...7AAb4C0Bd
2.1125 FTM
833376162024-06-20 19:37:292 days ago1718912249
0x736239bD...7AAb4C0Bd
38.025 FTM
832418372024-06-19 21:07:443 days ago1718831264
0x736239bD...7AAb4C0Bd
64.825 FTM
View All Internal Transactions
Loading...
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
CreatorTrade

Compiler Version
v0.8.24+commit.e11b9ed9

Optimization Enabled:
No with 200 runs

Other Settings:
default evmVersion
File 1 of 11 : CreatorTrade.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.24;

import "./BaseTrade.sol";
import "@openzeppelin/contracts-upgradeable/proxy/utils/Initializable.sol";

contract CreatorTrade is BaseTrade {
    using AddressUpgradeable for address payable;

    uint256 public creatorFeePercent;
    mapping(address => mapping(address => uint256)) public balance;
    mapping(address => uint256) public supply;

    event SetCreatorFeePercent(uint256 percent);
    event Trade(
        address indexed trader,
        address indexed creator,
        bool indexed isBuy,
        uint256 amount,
        uint256 price,
        uint256 protocolFee,
        uint256 creatorFee,
        uint256 additionalFee,
        uint256 supply
    );

    function initialize(
        uint256 _baseDivider,
        address payable _protocolFeeDestination,
        uint256 _protocolFeePercent,
        uint256 _creatorFeePercent
    ) public initializer {
        __Ownable_init();
        __ReentrancyGuard_init();

        baseDivider = _baseDivider;
        protocolFeeDestination = _protocolFeeDestination;
        protocolFeePercent = _protocolFeePercent;
        creatorFeePercent = _creatorFeePercent;

        emit SetProtocolFeeDestination(_protocolFeeDestination);
        emit SetProtocolFeePercent(_protocolFeePercent);
        emit SetCreatorFeePercent(_creatorFeePercent);
    }

    function setCreatorFeePercent(uint256 _feePercent) public onlyOwner {
        creatorFeePercent = _feePercent;
        emit SetCreatorFeePercent(_feePercent);
    }

    function getPrice(uint256 _supply, uint256 amount) public view returns (uint256) {
        uint256 sum1 = ((_supply * (_supply + 1)) * (2 * _supply + 1)) / 6;
        uint256 sum2 = (((_supply + amount) * (_supply + 1 + amount)) * (2 * (_supply + amount) + 1)) / 6;
        uint256 summation = sum2 - sum1;
        return (summation * 1 ether) / baseDivider;
    }

    function getBuyPrice(address creator, uint256 amount) public view returns (uint256) {
        return getPrice(supply[creator], amount);
    }

    function getSellPrice(address creator, uint256 amount) public view returns (uint256) {
        return getPrice(supply[creator] - amount, amount);
    }

    function getBuyPriceAfterFee(address creator, uint256 amount) public view returns (uint256) {
        uint256 price = getBuyPrice(creator, amount);
        uint256 protocolFee = (price * protocolFeePercent) / 1 ether;
        uint256 creatorFee = (price * creatorFeePercent) / 1 ether;
        return price + protocolFee + creatorFee;
    }

    function getSellPriceAfterFee(address creator, uint256 amount) public view returns (uint256) {
        uint256 price = getSellPrice(creator, amount);
        uint256 protocolFee = (price * protocolFeePercent) / 1 ether;
        uint256 creatortFee = (price * creatorFeePercent) / 1 ether;
        return price - protocolFee - creatortFee;
    }

    function executeTrade(
        address creator,
        uint256 amount,
        uint256 price,
        bool isBuy,
        bytes memory oracleSignature
    ) private nonReentrant {
        uint256 additionalFee = calculateAdditionalTokenOwnerFee(price, oracleSignature);
        uint256 protocolFee = (price * protocolFeePercent) / 1 ether - additionalFee;
        uint256 creatorFee = (price * creatorFeePercent) / 1 ether + additionalFee;

        uint256 _supply = supply[creator];

        if (isBuy) {
            require(msg.value >= price + protocolFee + creatorFee, "Insufficient payment");
            balance[creator][msg.sender] += amount;
            _supply += amount;
            supply[creator] = _supply;
            protocolFeeDestination.sendValue(protocolFee);
            payable(creator).sendValue(creatorFee);
            if (msg.value > price + protocolFee + creatorFee) {
                uint256 refund = msg.value - price - protocolFee - creatorFee;
                payable(msg.sender).sendValue(refund);
            }
        } else {
            require(balance[creator][msg.sender] >= amount, "Insufficient balance");
            balance[creator][msg.sender] -= amount;
            _supply -= amount;
            supply[creator] = _supply;
            uint256 netAmount = price - protocolFee - creatorFee;
            payable(msg.sender).sendValue(netAmount);
            protocolFeeDestination.sendValue(protocolFee);
            payable(creator).sendValue(creatorFee);
        }

        emit Trade(msg.sender, creator, isBuy, amount, price, protocolFee, creatorFee, additionalFee, _supply);
    }

    function buy(address creator, uint256 amount, bytes memory oracleSignature) public payable {
        uint256 price = getBuyPrice(creator, amount);
        executeTrade(creator, amount, price, true, oracleSignature);
    }

    function sell(address creator, uint256 amount, bytes memory oracleSignature) public {
        uint256 price = getSellPrice(creator, amount);
        executeTrade(creator, amount, price, false, oracleSignature);
    }

    bool public migratedFromV1;

    event MigrateHolder(address indexed creator, address indexed holder, uint256 indexed amount);
    event EndMigration();

    receive() external payable {}

    function migrateFromV1(address creator, address[] memory holders, uint256[] memory amounts) external onlyOwner {
        require(!migratedFromV1, "Already migrated");
        require(holders.length == amounts.length, "Invalid input");

        uint256 totalAmount;
        for (uint256 i = 0; i < holders.length; i++) {
            balance[creator][holders[i]] += amounts[i];
            totalAmount += amounts[i];
            emit MigrateHolder(creator, holders[i], amounts[i]);
        }

        supply[creator] += totalAmount;
    }

    function endMigration() public onlyOwner {
        require(!migratedFromV1, "Migration already ended");
        migratedFromV1 = true;
        emit EndMigration();
    }
}

File 2 of 11 : OwnableUpgradeable.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.9.0) (access/Ownable.sol)

pragma solidity ^0.8.0;

import "../utils/ContextUpgradeable.sol";
import {Initializable} from "../proxy/utils/Initializable.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 OwnableUpgradeable is Initializable, ContextUpgradeable {
    address private _owner;

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

    /**
     * @dev Initializes the contract setting the deployer as the initial owner.
     */
    function __Ownable_init() internal onlyInitializing {
        __Ownable_init_unchained();
    }

    function __Ownable_init_unchained() internal onlyInitializing {
        _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);
    }

    /**
     * @dev This empty reserved space is put in place to allow future versions to add new
     * variables without shifting down storage in the inheritance chain.
     * See https://docs.openzeppelin.com/contracts/4.x/upgradeable#storage_gaps
     */
    uint256[49] private __gap;
}

File 3 of 11 : Initializable.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.9.0) (proxy/utils/Initializable.sol)

pragma solidity ^0.8.2;

import "../../utils/AddressUpgradeable.sol";

/**
 * @dev This is a base contract to aid in writing upgradeable contracts, or any kind of contract that will be deployed
 * behind a proxy. Since proxied contracts do not make use of a constructor, it's common to move constructor logic to an
 * external initializer function, usually called `initialize`. It then becomes necessary to protect this initializer
 * function so it can only be called once. The {initializer} modifier provided by this contract will have this effect.
 *
 * The initialization functions use a version number. Once a version number is used, it is consumed and cannot be
 * reused. This mechanism prevents re-execution of each "step" but allows the creation of new initialization steps in
 * case an upgrade adds a module that needs to be initialized.
 *
 * For example:
 *
 * [.hljs-theme-light.nopadding]
 * ```solidity
 * contract MyToken is ERC20Upgradeable {
 *     function initialize() initializer public {
 *         __ERC20_init("MyToken", "MTK");
 *     }
 * }
 *
 * contract MyTokenV2 is MyToken, ERC20PermitUpgradeable {
 *     function initializeV2() reinitializer(2) public {
 *         __ERC20Permit_init("MyToken");
 *     }
 * }
 * ```
 *
 * TIP: To avoid leaving the proxy in an uninitialized state, the initializer function should be called as early as
 * possible by providing the encoded function call as the `_data` argument to {ERC1967Proxy-constructor}.
 *
 * CAUTION: When used with inheritance, manual care must be taken to not invoke a parent initializer twice, or to ensure
 * that all initializers are idempotent. This is not verified automatically as constructors are by Solidity.
 *
 * [CAUTION]
 * ====
 * Avoid leaving a contract uninitialized.
 *
 * An uninitialized contract can be taken over by an attacker. This applies to both a proxy and its implementation
 * contract, which may impact the proxy. To prevent the implementation contract from being used, you should invoke
 * the {_disableInitializers} function in the constructor to automatically lock it when it is deployed:
 *
 * [.hljs-theme-light.nopadding]
 * ```
 * /// @custom:oz-upgrades-unsafe-allow constructor
 * constructor() {
 *     _disableInitializers();
 * }
 * ```
 * ====
 */
abstract contract Initializable {
    /**
     * @dev Indicates that the contract has been initialized.
     * @custom:oz-retyped-from bool
     */
    uint8 private _initialized;

    /**
     * @dev Indicates that the contract is in the process of being initialized.
     */
    bool private _initializing;

    /**
     * @dev Triggered when the contract has been initialized or reinitialized.
     */
    event Initialized(uint8 version);

    /**
     * @dev A modifier that defines a protected initializer function that can be invoked at most once. In its scope,
     * `onlyInitializing` functions can be used to initialize parent contracts.
     *
     * Similar to `reinitializer(1)`, except that functions marked with `initializer` can be nested in the context of a
     * constructor.
     *
     * Emits an {Initialized} event.
     */
    modifier initializer() {
        bool isTopLevelCall = !_initializing;
        require(
            (isTopLevelCall && _initialized < 1) || (!AddressUpgradeable.isContract(address(this)) && _initialized == 1),
            "Initializable: contract is already initialized"
        );
        _initialized = 1;
        if (isTopLevelCall) {
            _initializing = true;
        }
        _;
        if (isTopLevelCall) {
            _initializing = false;
            emit Initialized(1);
        }
    }

    /**
     * @dev A modifier that defines a protected reinitializer function that can be invoked at most once, and only if the
     * contract hasn't been initialized to a greater version before. In its scope, `onlyInitializing` functions can be
     * used to initialize parent contracts.
     *
     * A reinitializer may be used after the original initialization step. This is essential to configure modules that
     * are added through upgrades and that require initialization.
     *
     * When `version` is 1, this modifier is similar to `initializer`, except that functions marked with `reinitializer`
     * cannot be nested. If one is invoked in the context of another, execution will revert.
     *
     * Note that versions can jump in increments greater than 1; this implies that if multiple reinitializers coexist in
     * a contract, executing them in the right order is up to the developer or operator.
     *
     * WARNING: setting the version to 255 will prevent any future reinitialization.
     *
     * Emits an {Initialized} event.
     */
    modifier reinitializer(uint8 version) {
        require(!_initializing && _initialized < version, "Initializable: contract is already initialized");
        _initialized = version;
        _initializing = true;
        _;
        _initializing = false;
        emit Initialized(version);
    }

    /**
     * @dev Modifier to protect an initialization function so that it can only be invoked by functions with the
     * {initializer} and {reinitializer} modifiers, directly or indirectly.
     */
    modifier onlyInitializing() {
        require(_initializing, "Initializable: contract is not initializing");
        _;
    }

    /**
     * @dev Locks the contract, preventing any future reinitialization. This cannot be part of an initializer call.
     * Calling this in the constructor of a contract will prevent that contract from being initialized or reinitialized
     * to any version. It is recommended to use this to lock implementation contracts that are designed to be called
     * through proxies.
     *
     * Emits an {Initialized} event the first time it is successfully executed.
     */
    function _disableInitializers() internal virtual {
        require(!_initializing, "Initializable: contract is initializing");
        if (_initialized != type(uint8).max) {
            _initialized = type(uint8).max;
            emit Initialized(type(uint8).max);
        }
    }

    /**
     * @dev Returns the highest version that has been initialized. See {reinitializer}.
     */
    function _getInitializedVersion() internal view returns (uint8) {
        return _initialized;
    }

    /**
     * @dev Returns `true` if the contract is currently initializing. See {onlyInitializing}.
     */
    function _isInitializing() internal view returns (bool) {
        return _initializing;
    }
}

File 4 of 11 : ReentrancyGuardUpgradeable.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.9.0) (security/ReentrancyGuard.sol)

pragma solidity ^0.8.0;
import {Initializable} from "../proxy/utils/Initializable.sol";

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

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

    uint256 private _status;

    function __ReentrancyGuard_init() internal onlyInitializing {
        __ReentrancyGuard_init_unchained();
    }

    function __ReentrancyGuard_init_unchained() internal onlyInitializing {
        _status = _NOT_ENTERED;
    }

    /**
     * @dev Prevents a contract from calling itself, directly or indirectly.
     * Calling a `nonReentrant` function from another `nonReentrant`
     * function is not supported. It is possible to prevent this from happening
     * by making the `nonReentrant` function external, and making it call a
     * `private` function that does the actual work.
     */
    modifier nonReentrant() {
        _nonReentrantBefore();
        _;
        _nonReentrantAfter();
    }

    function _nonReentrantBefore() private {
        // On the first call to nonReentrant, _status will be _NOT_ENTERED
        require(_status != _ENTERED, "ReentrancyGuard: reentrant call");

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

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

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

    /**
     * @dev This empty reserved space is put in place to allow future versions to add new
     * variables without shifting down storage in the inheritance chain.
     * See https://docs.openzeppelin.com/contracts/4.x/upgradeable#storage_gaps
     */
    uint256[49] private __gap;
}

File 5 of 11 : AddressUpgradeable.sol
// 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 AddressUpgradeable {
    /**
     * @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);
        }
    }
}

File 6 of 11 : ContextUpgradeable.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.9.4) (utils/Context.sol)

pragma solidity ^0.8.0;
import {Initializable} from "../proxy/utils/Initializable.sol";

/**
 * @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 ContextUpgradeable is Initializable {
    function __Context_init() internal onlyInitializing {
    }

    function __Context_init_unchained() internal onlyInitializing {
    }
    function _msgSender() internal view virtual returns (address) {
        return msg.sender;
    }

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

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

    /**
     * @dev This empty reserved space is put in place to allow future versions to add new
     * variables without shifting down storage in the inheritance chain.
     * See https://docs.openzeppelin.com/contracts/4.x/upgradeable#storage_gaps
     */
    uint256[50] private __gap;
}

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

pragma solidity ^0.8.0;

import "../StringsUpgradeable.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 ECDSAUpgradeable {
    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", StringsUpgradeable.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));
    }
}

File 8 of 11 : MathUpgradeable.sol
// 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 MathUpgradeable {
    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);
        }
    }
}

File 9 of 11 : SignedMathUpgradeable.sol
// 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 SignedMathUpgradeable {
    /**
     * @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);
        }
    }
}

File 10 of 11 : StringsUpgradeable.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.9.0) (utils/Strings.sol)

pragma solidity ^0.8.0;

import "./math/MathUpgradeable.sol";
import "./math/SignedMathUpgradeable.sol";

/**
 * @dev String operations.
 */
library StringsUpgradeable {
    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 = MathUpgradeable.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(SignedMathUpgradeable.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, MathUpgradeable.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));
    }
}

File 11 of 11 : BaseTrade.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.24;

import "@openzeppelin/contracts-upgradeable/access/OwnableUpgradeable.sol";
import "@openzeppelin/contracts-upgradeable/security/ReentrancyGuardUpgradeable.sol";
import "@openzeppelin/contracts-upgradeable/utils/cryptography/ECDSAUpgradeable.sol";

abstract contract BaseTrade is OwnableUpgradeable, ReentrancyGuardUpgradeable {
    using ECDSAUpgradeable for bytes32;

    uint256 internal baseDivider;

    address payable public protocolFeeDestination;
    uint256 public protocolFeePercent;
    address public oracleAddress;

    event SetProtocolFeeDestination(address indexed destination);
    event SetProtocolFeePercent(uint256 percent);
    event SetOracleAddress(address indexed oracle);

    function setProtocolFeeDestination(address payable _feeDestination) public onlyOwner {
        protocolFeeDestination = _feeDestination;
        emit SetProtocolFeeDestination(_feeDestination);
    }

    function setProtocolFeePercent(uint256 _feePercent) public onlyOwner {
        protocolFeePercent = _feePercent;
        emit SetProtocolFeePercent(_feePercent);
    }

    function setOracleAddress(address _oracle) public onlyOwner {
        oracleAddress = _oracle;
        emit SetOracleAddress(_oracle);
    }

    function splitSignatureData(bytes memory signature) internal pure returns (uint256 feeRatio, bytes32 originalHash) {
        require(signature.length == 96, "Pal: Invalid signature length");

        // Split the signature into two parts: the feeRatio and the original signed hash
        bytes32 feeRatioBytes;
        assembly {
            feeRatioBytes := mload(add(signature, 32))
            originalHash := mload(add(signature, 64))
        }

        feeRatio = uint256(feeRatioBytes);
        require(feeRatio <= 1 ether, "Pal: Fee ratio out of bounds");
        return (feeRatio, originalHash);
    }

    function calculateAdditionalTokenOwnerFee(
        uint256 price,
        bytes memory oracleSignature
    ) public view returns (uint256) {
        if (oracleSignature.length == 0) return 0;

        // Extract the fee ratio from the oracle's signed message
        (uint256 feeRatio, bytes32 originalHash) = splitSignatureData(oracleSignature);
        bytes32 hash = keccak256(abi.encodePacked(price, feeRatio)).toEthSignedMessageHash();

        require(originalHash == hash, "Pal: Invalid data provided");
        address signer = hash.recover(oracleSignature);
        require(signer == oracleAddress, "Pal: Invalid oracle signature");

        return (price * feeRatio) / 1 ether;
    }
}

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

Contract Security Audit

Contract ABI

[{"anonymous":false,"inputs":[],"name":"EndMigration","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint8","name":"version","type":"uint8"}],"name":"Initialized","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"creator","type":"address"},{"indexed":true,"internalType":"address","name":"holder","type":"address"},{"indexed":true,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"MigrateHolder","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":"uint256","name":"percent","type":"uint256"}],"name":"SetCreatorFeePercent","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"oracle","type":"address"}],"name":"SetOracleAddress","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"destination","type":"address"}],"name":"SetProtocolFeeDestination","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"percent","type":"uint256"}],"name":"SetProtocolFeePercent","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"trader","type":"address"},{"indexed":true,"internalType":"address","name":"creator","type":"address"},{"indexed":true,"internalType":"bool","name":"isBuy","type":"bool"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"price","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"protocolFee","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"creatorFee","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"additionalFee","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"supply","type":"uint256"}],"name":"Trade","type":"event"},{"inputs":[{"internalType":"address","name":"","type":"address"},{"internalType":"address","name":"","type":"address"}],"name":"balance","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"creator","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"},{"internalType":"bytes","name":"oracleSignature","type":"bytes"}],"name":"buy","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"uint256","name":"price","type":"uint256"},{"internalType":"bytes","name":"oracleSignature","type":"bytes"}],"name":"calculateAdditionalTokenOwnerFee","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"creatorFeePercent","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"endMigration","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"creator","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"getBuyPrice","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"creator","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"getBuyPriceAfterFee","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_supply","type":"uint256"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"getPrice","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"creator","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"getSellPrice","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"creator","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"getSellPriceAfterFee","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_baseDivider","type":"uint256"},{"internalType":"address payable","name":"_protocolFeeDestination","type":"address"},{"internalType":"uint256","name":"_protocolFeePercent","type":"uint256"},{"internalType":"uint256","name":"_creatorFeePercent","type":"uint256"}],"name":"initialize","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"creator","type":"address"},{"internalType":"address[]","name":"holders","type":"address[]"},{"internalType":"uint256[]","name":"amounts","type":"uint256[]"}],"name":"migrateFromV1","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"migratedFromV1","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"oracleAddress","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":"protocolFeeDestination","outputs":[{"internalType":"address payable","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"protocolFeePercent","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"creator","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"},{"internalType":"bytes","name":"oracleSignature","type":"bytes"}],"name":"sell","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_feePercent","type":"uint256"}],"name":"setCreatorFeePercent","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_oracle","type":"address"}],"name":"setOracleAddress","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address payable","name":"_feeDestination","type":"address"}],"name":"setProtocolFeeDestination","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_feePercent","type":"uint256"}],"name":"setProtocolFeePercent","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"supply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"stateMutability":"payable","type":"receive"}]

60806040523461002057610011610025565b61327262000031823961327290f35b61002b565b60405190565b600080fdfe60806040526004361015610015575b36610e1f57005b6100206000356101af565b80630f026f6d146101aa57806319ae58f0146101a557806319f4d6b7146101a05780632267a89c1461019b57806340bace48146101965780634635256e146101915780634c69c00f1461018c5780634ce7957c1461018757806353613dd3146101825780635cf4ee911461017d5780636c525d04146101785780636ff6c4b814610173578063715018a61461016e5780638da5cb5b1461016957806391ee3e08146101645780639ae717811461015f578063a10786b01461015a578063a498342114610155578063a89ae4ba14610150578063ae4a45251461014b578063b1a491e014610146578063b203bb9914610141578063d6e6eb9f1461013c578063f2fde38b146101375763f496a6100361000e57610df5565b610dc2565b610d8d565b610d47565b610ca9565b610c2c565b610bb0565b610b3c565b610b09565b610a90565b610a5c565b61088a565b610834565b610801565b6107af565b610779565b610716565b6106d1565b61062e565b6105f8565b6105c3565b610519565b6104e5565b610368565b61027d565b60e01c90565b60405190565b600080fd5b600080fd5b600080fd5b60018060a01b031690565b6101de906101ca565b90565b6101ea816101d5565b036101f157565b600080fd5b90503590610203826101e1565b565b90565b61021181610205565b0361021857565b600080fd5b9050359061022a82610208565b565b9190604083820312610255578061024961025292600086016101f6565b9360200161021d565b90565b6101c0565b61026390610205565b9052565b919061027b9060006020850194019061025a565b565b346102ae576102aa61029961029336600461022c565b90610f17565b6102a16101b5565b91829182610267565b0390f35b6101bb565b906020828203126102cd576102ca916000016101f6565b90565b6101c0565b90565b6102e96102e46102ee926101ca565b6102d2565b6101ca565b90565b6102fa906102d5565b90565b610306906102f1565b90565b90610313906102fd565b600052602052604060002090565b1c90565b90565b61033890600861033d9302610321565b610325565b90565b9061034b9154610328565b90565b61036590610360609d91600092610309565b610340565b90565b346103985761039461038361037e3660046102b3565b61034e565b61038b6101b5565b91829182610267565b0390f35b6101bb565b600080fd5b600080fd5b601f801991011690565b634e487b7160e01b600052604160045260246000fd5b906103d1906103a7565b810190811067ffffffffffffffff8211176103eb57604052565b6103b1565b906104036103fc6101b5565b92836103c7565b565b67ffffffffffffffff81116104235761041f6020916103a7565b0190565b6103b1565b90826000939282370152565b9092919261044961044482610405565b6103f0565b938185526020850190828401116104655761046392610428565b565b6103a2565b9080601f830112156104885781602061048593359101610434565b90565b61039d565b916060838303126104da576104a582600085016101f6565b926104b3836020830161021d565b92604082013567ffffffffffffffff81116104d5576104d2920161046a565b90565b6101c5565b6101c0565b60000190565b34610514576104fe6104f836600461048d565b91610f9a565b6105066101b5565b80610510816104df565b0390f35b6101bb565b3461054a5761054661053561052f36600461022c565b90610fdc565b61053d6101b5565b91829182610267565b0390f35b6101bb565b600091031261055a57565b6101c0565b60ff1690565b61057590600861057a9302610321565b61055f565b90565b906105889154610565565b90565b610598609e60009061057d565b90565b151590565b6105a99061059b565b9052565b91906105c1906000602085019401906105a0565b565b346105f3576105d336600461054f565b6105ef6105de61058b565b6105e66101b5565b918291826105ad565b0390f35b6101bb565b346106295761062561061461060e36600461022c565b9061105f565b61061c6101b5565b91829182610267565b0390f35b6101bb565b3461065c576106466106413660046102b3565b61112b565b61064e6101b5565b80610658816104df565b0390f35b6101bb565b60018060a01b031690565b61067c9060086106819302610321565b610661565b90565b9061068f915461066c565b90565b61069f6098600090610684565b90565b6106ab906101ca565b90565b6106b7906106a2565b9052565b91906106cf906000602085019401906106ae565b565b34610701576106e136600461054f565b6106fd6106ec610692565b6106f46101b5565b918291826106bb565b0390f35b6101bb565b610713609b600090610340565b90565b346107465761072636600461054f565b610742610731610706565b6107396101b5565b91829182610267565b0390f35b6101bb565b91906040838203126107745780610768610771926000860161021d565b9360200161021d565b90565b6101c0565b346107aa576107a661079561078f36600461074b565b90611193565b61079d6101b5565b91829182610267565b0390f35b6101bb565b346107dd576107bf36600461054f565b6107c761141a565b6107cf6101b5565b806107d9816104df565b0390f35b6101bb565b906020828203126107fc576107f99160000161021d565b90565b6101c0565b3461082f576108196108143660046107e2565b6114d3565b6108216101b5565b8061082b816104df565b0390f35b6101bb565b346108625761084436600461054f565b61084c61152f565b6108546101b5565b8061085e816104df565b0390f35b6101bb565b610870906101d5565b9052565b919061088890600060208501940190610867565b565b346108ba5761089a36600461054f565b6108b66108a561155f565b6108ad6101b5565b91829182610874565b0390f35b6101bb565b67ffffffffffffffff81116108d75760208091020190565b6103b1565b600080fd5b909291926108f66108f1826108bf565b6103f0565b938185526020808601920283019281841161093357915b83831061091a5750505050565b6020809161092884866101f6565b81520192019161090d565b6108dc565b9080601f8301121561095657816020610953933591016108e1565b90565b61039d565b67ffffffffffffffff81116109735760208091020190565b6103b1565b9092919261098d6109888261095b565b6103f0565b93818552602080860192028301928184116109ca57915b8383106109b15750505050565b602080916109bf848661021d565b8152019201916109a4565b6108dc565b9080601f830112156109ed578160206109ea93359101610978565b90565b61039d565b91606083830312610a5757610a0a82600085016101f6565b92602081013567ffffffffffffffff8111610a525783610a2b918301610938565b92604082013567ffffffffffffffff8111610a4d57610a4a92016109cf565b90565b6101c5565b6101c5565b6101c0565b34610a8b57610a75610a6f3660046109f2565b916118df565b610a7d6101b5565b80610a87816104df565b0390f35b6101bb565b34610ac157610abd610aac610aa636600461022c565b906118ec565b610ab46101b5565b91829182610267565b0390f35b6101bb565b610acf816106a2565b03610ad657565b600080fd5b90503590610ae882610ac6565b565b90602082820312610b0457610b0191600001610adb565b90565b6101c0565b34610b3757610b21610b1c366004610aea565b6119c5565b610b296101b5565b80610b33816104df565b0390f35b6101bb565b34610b6a57610b54610b4f3660046107e2565b611a29565b610b5c6101b5565b80610b66816104df565b0390f35b6101bb565b60018060a01b031690565b610b8a906008610b8f9302610321565b610b6f565b90565b90610b9d9154610b7a565b90565b610bad609a600090610b92565b90565b34610be057610bc036600461054f565b610bdc610bcb610ba0565b610bd36101b5565b91829182610874565b0390f35b6101bb565b608081830312610c2757610bfc826000830161021d565b92610c24610c0d8460208501610adb565b93610c1b816040860161021d565b9360600161021d565b90565b6101c0565b34610c5e57610c48610c3f366004610be5565b92919091611e10565b610c506101b5565b80610c5a816104df565b0390f35b6101bb565b919091604081840312610ca457610c7d836000830161021d565b92602082013567ffffffffffffffff8111610c9f57610c9c920161046a565b90565b6101c5565b6101c0565b34610cda57610cd6610cc5610cbf366004610c63565b90611f69565b610ccd6101b5565b91829182610267565b0390f35b6101bb565b9190604083820312610d085780610cfc610d0592600086016101f6565b936020016101f6565b90565b6101c0565b90610d17906102fd565b600052602052604060002090565b610d3f610d4492610d3a609c93600094610d0d565b610309565b610340565b90565b34610d7857610d74610d63610d5d366004610cdf565b90610d25565b610d6b6101b5565b91829182610267565b0390f35b6101bb565b610d8a6099600090610340565b90565b34610dbd57610d9d36600461054f565b610db9610da8610d7d565b610db06101b5565b91829182610267565b0390f35b6101bb565b34610df057610dda610dd53660046102b3565b612152565b610de26101b5565b80610dec816104df565b0390f35b6101bb565b610e09610e0336600461048d565b9161215d565b610e116101b5565b80610e1b816104df565b0390f35b600080fd5b600090565b60001c90565b610e3b610e4091610e29565b610325565b90565b610e4d9054610e2f565b90565b634e487b7160e01b600052601160045260246000fd5b610e75610e7b91939293610205565b92610205565b91610e87838202610205565b928184041490151715610e9657565b610e50565b90565b610eb2610ead610eb792610e9b565b6102d2565b610205565b90565b634e487b7160e01b600052601260045260246000fd5b610edc610ee291610205565b91610205565b908115610eed570490565b610eba565b610f01610f0791939293610205565b92610205565b8201809211610f1257565b610e50565b610f9791610f2d91610f27610e24565b5061105f565b610f92610f5e610f4783610f416099610e43565b90610e66565b610f58670de0b6b3a7640000610e9e565b90610ed0565b610f8c610f7584610f6f609b610e43565b90610e66565b610f86670de0b6b3a7640000610e9e565b90610ed0565b92610ef2565b610ef2565b90565b91610fb592610faa8184906118ec565b909260009293612612565b565b610fc6610fcc91939293610205565b92610205565b8203918211610fd757565b610e50565b61105c91610ff291610fec610e24565b506118ec565b61105761102361100c836110066099610e43565b90610e66565b61101d670de0b6b3a7640000610e9e565b90610ed0565b61105161103a84611034609b610e43565b90610e66565b61104b670de0b6b3a7640000610e9e565b90610ed0565b92610fb7565b610fb7565b90565b9061107f61107a61108493611072610e24565b50609d610309565b610e43565b611193565b90565b611098906110936126a4565b6110de565b565b60001b90565b906110b160018060a01b039161109a565b9181191691161790565b90565b906110d36110ce6110da926102fd565b6110bb565b82546110a0565b9055565b6110e981609a6110be565b6111137f0adef86c673dfdb102affe9a454acea4a42a305e1feb982b4b2c97da980454a9916102fd565b9061111c6101b5565b80611126816104df565b0390a2565b61113490611087565b565b90565b61114d61114861115292611136565b6102d2565b610205565b90565b90565b61116c61116761117192611155565b6102d2565b610205565b90565b90565b61118b61118661119092611174565b6102d2565b610205565b90565b61128c6112a3916112876112776112b3956111ac610e24565b506112716112616112146112046111d7886111d18a6111cb6001611139565b90610ef2565b90610e66565b6111fe6111ee60026111e98c91611158565b610e66565b6111f86001611139565b90610ef2565b90610e66565b61120e6006611177565b90610ed0565b9561125c61125661124d611229848890610ef2565b6112476112408661123a6001611139565b90610ef2565b8990610ef2565b90610e66565b95600293610ef2565b91611158565b610e66565b61126b6001611139565b90610ef2565b90610e66565b6112816006611177565b90610ed0565b610fb7565b61129d670de0b6b3a7640000610e9e565b90610e66565b6112ad6097610e43565b90610ed0565b90565b6112be6126a4565b6112c66113bb565b565b6112d46112d991610e29565b61055f565b90565b6112e690546112c8565b90565b60209181520190565b60007f4d6967726174696f6e20616c726561647920656e646564000000000000000000910152565b61132760176020926112e9565b611330816112f2565b0190565b61134a906020810190600081830391015261131a565b90565b1561135457565b61135c6101b5565b62461bcd60e51b81528061137260048201611334565b0390fd5b9061138260ff9161109a565b9181191691161790565b6113959061059b565b90565b90565b906113b06113ab6113b79261138c565b611398565b8254611376565b9055565b6113d66113d16113cb609e6112dc565b1561059b565b61134d565b6113e26001609e61139b565b7f16cace72ad40bd23c9e04c798148013b99adcc741ff2f667c2bedbc81141458b61140b6101b5565b80611415816104df565b0390a1565b6114226112b6565b565b611435906114306126a4565b61148d565b565b906114446000199161109a565b9181191691161790565b61146261145d61146792610205565b6102d2565b610205565b90565b90565b9061148261147d6114899261144e565b61146a565b8254611437565b9055565b61149881609b61146d565b6114ce7fcac5fb194ae0d660ab1b68f6561a22ab792ca0bbe87b5392c3ec528fc25a0c0f916114c56101b5565b91829182610267565b0390a1565b6114dc90611424565b565b6114e66126a4565b6114ee61151b565b565b90565b61150761150261150c926114f0565b6102d2565b6101ca565b90565b611518906114f3565b90565b61152d611528600061150f565b6126d0565b565b6115376114de565b565b600090565b61154a61154f91610e29565b610b6f565b90565b61155c905461153e565b90565b611567611539565b506115726033611552565b90565b9061158892916115836126a4565b611735565b565b60007f416c7265616479206d6967726174656400000000000000000000000000000000910152565b6115bf60106020926112e9565b6115c88161158a565b0190565b6115e290602081019060008183039101526115b2565b90565b156115ec57565b6115f46101b5565b62461bcd60e51b81528061160a600482016115cc565b0390fd5b5190565b5190565b60007f496e76616c696420696e70757400000000000000000000000000000000000000910152565b61164b600d6020926112e9565b61165481611616565b0190565b61166e906020810190600081830391015261163e565b90565b1561167857565b6116806101b5565b62461bcd60e51b81528061169660048201611658565b0390fd5b6116ae6116a96116b3926114f0565b6102d2565b610205565b90565b60016116c29101610205565b90565b634e487b7160e01b600052603260045260246000fd5b906116e582611612565b8110156116f6576020809102010190565b6116c5565b6117059051610205565b90565b906117128261160e565b811015611723576020809102010190565b6116c5565b61173290516101d5565b90565b929161175261174d611747609e6112dc565b1561059b565b6115e5565b61177e61175e8361160e565b61177861177261176d85611612565b610205565b91610205565b14611671565b611786610e24565b611790600061169a565b905b816117ad6117a76117a28761160e565b610205565b91610205565b10156118af576118296118a9916118106117d06117cb8787906116db565b6116fb565b61180a6117fb6117e2609c8d90610d0d565b6117f56117f08c8b90611708565b611728565b90610309565b9161180583610e43565b610ef2565b9061146d565b61182361181e8686906116db565b6116fb565b90610ef2565b918661183e611839878490611708565b611728565b61185161184c8785906116db565b6116fb565b9061188e6118886118827fe53177345d8dc98ab1205ebcd15944417ef4baa3f9f25486d6858e886eced5ce956102fd565b926102fd565b9261144e565b926118976101b5565b806118a1816104df565b0390a46116b6565b90611792565b6118dd949593506118d792506118c8915092609d610309565b916118d283610e43565b610ef2565b9061146d565b565b906118ea9291611575565b565b9061191661190f61190a61191b94611902610e24565b50609d610309565b610e43565b8290610fb7565b611193565b90565b61192f9061192a6126a4565b611978565b565b61193a906102d5565b90565b61194690611931565b90565b90565b9061196161195c6119689261193d565b611949565b82546110a0565b9055565b611975906102f1565b90565b61198381609861194c565b6119ad7f72fe3f5fb15c2671900303001fbe3a8adf9df5c76bfd269a9508c8753b9c35c99161196c565b906119b66101b5565b806119c0816104df565b0390a2565b6119ce9061191e565b565b6119e1906119dc6126a4565b6119e3565b565b6119ee81609961146d565b611a247f98d1698e9a7ee55a2ded97de72077c93add26ce8534679021d0e7c44edcb325b91611a1b6101b5565b91829182610267565b0390a1565b611a32906119d0565b565b60081c90565b611a46611a4b91611a34565b61055f565b90565b611a589054611a3a565b90565b60ff1690565b611a6d611a7291610e29565b611a5b565b90565b611a7f9054611a61565b90565b60ff1690565b611a9c611a97611aa192611136565b6102d2565b611a82565b90565b611aad906102f1565b90565b60207f647920696e697469616c697a6564000000000000000000000000000000000000917f496e697469616c697a61626c653a20636f6e747261637420697320616c72656160008201520152565b611b0b602e6040926112e9565b611b1481611ab0565b0190565b611b2e9060208101906000818303910152611afe565b90565b15611b3857565b611b406101b5565b62461bcd60e51b815280611b5660048201611b18565b0390fd5b611b6e611b69611b7392611a82565b6102d2565b611a82565b90565b90565b90611b8e611b89611b9592611b5a565b611b76565b8254611376565b9055565b60081b90565b90611bac61ff0091611b99565b9181191691161790565b90611bcb611bc6611bd29261138c565b611398565b8254611b9f565b9055565b611bdf90611a88565b9052565b9190611bf790600060208501940190611bd6565b565b929091611c4a92611c13611c0d6000611a4e565b1561059b565b948580611cfc575b8015611cad575b611c2b90611b31565b611c3f611c386001611a88565b6000611b79565b85611c9c575b611d20565b611c51575b565b611c5c600080611bb6565b6001611c947f7f26b83ff96e1f2b6a682f133852f6798a09c465da95921460cefb384740249891611c8b6101b5565b91829182611be3565b0390a1611c4f565b611ca860016000611bb6565b611c45565b50611cc8611cc2611cbd30611aa4565b612736565b1561059b565b80611cd3575b611c22565b50611c2b611ce16000611a75565b611cf4611cee6001611a88565b91611a82565b149050611cce565b50611d076000611a75565b611d1a611d146001611a88565b91611a82565b10611c1b565b611d3b90611d2c612827565b611d34612857565b609761146d565b611d4681609861194c565b611d5182609961146d565b611d5c83609b61146d565b611d867f72fe3f5fb15c2671900303001fbe3a8adf9df5c76bfd269a9508c8753b9c35c99161196c565b90611d8f6101b5565b80611d99816104df565b0390a2611dd27f98d1698e9a7ee55a2ded97de72077c93add26ce8534679021d0e7c44edcb325b91611dc96101b5565b91829182610267565b0390a1611e0b7fcac5fb194ae0d660ab1b68f6561a22ab792ca0bbe87b5392c3ec528fc25a0c0f91611e026101b5565b91829182610267565b0390a1565b90611e1c939291611bf9565b565b5190565b90565b611e31611e3691610205565b611e22565b9052565b602081611e4c611e5493839695611e25565b018092611e25565b0190565b60200190565b90565b60007f50616c3a20496e76616c696420646174612070726f7669646564000000000000910152565b611e96601a6020926112e9565b611e9f81611e61565b0190565b611eb99060208101906000818303910152611e89565b90565b15611ec357565b611ecb6101b5565b62461bcd60e51b815280611ee160048201611ea3565b0390fd5b60007f50616c3a20496e76616c6964206f7261636c65207369676e6174757265000000910152565b611f1a601d6020926112e9565b611f2381611ee5565b0190565b611f3d9060208101906000818303910152611f0d565b90565b15611f4757565b611f4f6101b5565b62461bcd60e51b815280611f6560048201611f27565b0390fd5b611f71610e24565b50611f7b82611e1e565b611f8e611f88600061169a565b91610205565b14612055578161203b91612036612015611faa612052966129a1565b949094612010611ff786611fdf8991611fd0611fc46101b5565b93849260208401611e3a565b602082018103825203826103c7565b611ff1611feb82611e1e565b91611e58565b20612a1e565b9161200a61200484611e5e565b91611e5e565b14611ebc565b612a56565b61203061202a612025609a611552565b6101d5565b916101d5565b14611f40565b610e66565b61204c670de0b6b3a7640000610e9e565b90610ed0565b90565b5050612061600061169a565b90565b612075906120706126a4565b612121565b565b60207f6464726573730000000000000000000000000000000000000000000000000000917f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160008201520152565b6120d260266040926112e9565b6120db81612077565b0190565b6120f590602081019060008183039101526120c5565b90565b156120ff57565b6121076101b5565b62461bcd60e51b81528061211d600482016120df565b0390fd5b6121509061214b8161214461213e612139600061150f565b6101d5565b916101d5565b14156120f8565b6126d0565b565b61215b90612064565b565b916121789261216d81849061105f565b909260019293612612565b565b9061218f9493929161218a612b08565b61232a565b612197612b56565b565b60007f496e73756666696369656e742062616c616e6365000000000000000000000000910152565b6121ce60146020926112e9565b6121d781612199565b0190565b6121f190602081019060008183039101526121c1565b90565b156121fb57565b6122036101b5565b62461bcd60e51b815280612219600482016121db565b0390fd5b61222690611931565b90565b61223561223a91610e29565b610661565b90565b6122479054612229565b90565b60007f496e73756666696369656e74207061796d656e74000000000000000000000000910152565b61227f60146020926112e9565b6122888161224a565b0190565b6122a29060208101906000818303910152612272565b90565b156122ac57565b6122b46101b5565b62461bcd60e51b8152806122ca6004820161228c565b0390fd5b91946123176123219298979561230d60a0966123036123289a6122f960c08a019e60008b019061025a565b602089019061025a565b604087019061025a565b606085019061025a565b608083019061025a565b019061025a565b565b909291936123389085611f69565b9361237161236a6123538361234d6099610e43565b90610e66565b612364670de0b6b3a7640000610e9e565b90610ed0565b8690610fb7565b906124fa6123ad6123a661238f84612389609b610e43565b90610e66565b6123a0670de0b6b3a7640000610e9e565b90610ed0565b8890610ef2565b966123c26123bd609d8790610309565b610e43565b8660001461253457612438906123ff8a6123f86123f26123ed34936123e88b8d90610ef2565b610ef2565b610205565b91610205565b10156122a5565b6124318961242b61241c612415609c8c90610d0d565b3390610309565b9161242683610e43565b610ef2565b9061146d565b8890610ef2565b61244d81612448609d8990610309565b61146d565b61246161245a609861223d565b8690612d0c565b61247461246d8761221d565b8a90612d0c565b3461249b612495612490612489888a90610ef2565b8d90610ef2565b610205565b91610205565b116124ff575b5b339596979394989190916124e86124e26124dc7f952ff8d90add9fdeaeb478102d54441cf0cc0cbe53b1d99e51f747cdc8379e54996102fd565b996102fd565b9961138c565b996124f16101b5565b968796876122ce565b0390a4565b61252f61252161251a612513348890610fb7565b8890610fb7565b8b90610fb7565b61252a3361221d565b612d0c565b6124a1565b6125ab9061257261255961255461254d609c8b90610d0d565b3390610309565b610e43565b61256b6125658c610205565b91610205565b10156121f4565b6125a48961259e61258f612588609c8c90610d0d565b3390610309565b9161259983610e43565b610fb7565b9061146d565b8890610fb7565b6125c0816125bb609d8990610309565b61146d565b6125e66125d86125d1868890610fb7565b8b90610fb7565b6125e13361221d565b612d0c565b6125fa6125f3609861223d565b8690612d0c565b61260d6126068761221d565b8a90612d0c565b6124a2565b9061261f9493929161217a565b565b60007f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572910152565b612655602080926112e9565b61265e81612621565b0190565b6126789060208101906000818303910152612649565b90565b1561268257565b61268a6101b5565b62461bcd60e51b8152806126a060048201612662565b0390fd5b6126ce6126af61155f565b6126c86126c26126bd612d6a565b6101d5565b916101d5565b1461267b565b565b6126da6033611552565b6126e58260336110be565b906127196127137f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0936102fd565b916102fd565b916127226101b5565b8061272c816104df565b0390a3565b600090565b61273e612731565b503b61275361274d600061169a565b91610205565b1190565b60207f6e697469616c697a696e67000000000000000000000000000000000000000000917f496e697469616c697a61626c653a20636f6e7472616374206973206e6f74206960008201520152565b6127b2602b6040926112e9565b6127bb81612757565b0190565b6127d590602081019060008183039101526127a5565b90565b156127df57565b6127e76101b5565b62461bcd60e51b8152806127fd600482016127bf565b0390fd5b61281361280e6000611a4e565b6127d8565b61281b61281d565b565b612825612da5565b565b61282f612801565b565b61284361283e6000611a4e565b6127d8565b61284b61284d565b565b612855612ddf565b565b61285f612831565b565b600090565b90565b61287d61287861288292612866565b6102d2565b610205565b90565b60007f50616c3a20496e76616c6964207369676e6174757265206c656e677468000000910152565b6128ba601d6020926112e9565b6128c381612885565b0190565b6128dd90602081019060008183039101526128ad565b90565b156128e757565b6128ef6101b5565b62461bcd60e51b815280612905600482016128c7565b0390fd5b61291561291a91610e29565b61144e565b90565b60007f50616c3a2046656520726174696f206f7574206f6620626f756e647300000000910152565b612952601c6020926112e9565b61295b8161291d565b0190565b6129759060208101906000818303910152612945565b90565b1561297f57565b6129876101b5565b62461bcd60e51b81528061299d6004820161295f565b0390fd5b906129aa610e24565b506129b3612861565b506129d96129c083611e1e565b6129d36129cd6060612869565b91610205565b146128e0565b6129e1612861565b506129f56040602084015193015192612909565b612a1a81612a13612a0d670de0b6b3a7640000610e9e565b91610205565b1115612978565b9190565b612a26612861565b507f19457468657265756d205369676e6564204d6573736167653a0a333200000000600052601c52603c60002090565b612a7491612a6c91612a66611539565b50612e12565b919091613001565b90565b612a816002611158565b90565b60007f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00910152565b612ab9601f6020926112e9565b612ac281612a84565b0190565b612adc9060208101906000818303910152612aac565b90565b15612ae657565b612aee6101b5565b62461bcd60e51b815280612b0460048201612ac6565b0390fd5b612b35612b156065610e43565b612b2e612b28612b23612a77565b610205565b91610205565b1415612adf565b612b47612b40612a77565b606561146d565b565b612b536001611139565b90565b612b68612b61612b49565b606561146d565b565b612b73906102f1565b90565b60007f416464726573733a20696e73756666696369656e742062616c616e6365000000910152565b612bab601d6020926112e9565b612bb481612b76565b0190565b612bce9060208101906000818303910152612b9e565b90565b15612bd857565b612be06101b5565b62461bcd60e51b815280612bf660048201612bb8565b0390fd5b905090565b612c0b60008092612bfa565b0190565b612c1890612bff565b90565b90612c2d612c2883610405565b6103f0565b918252565b606090565b3d600014612c5457612c483d612c1b565b903d6000602084013e5b565b612c5c612c32565b90612c52565b60207f6563697069656e74206d61792068617665207265766572746564000000000000917f416464726573733a20756e61626c6520746f2073656e642076616c75652c207260008201520152565b612cbd603a6040926112e9565b612cc681612c62565b0190565b612ce09060208101906000818303910152612cb0565b90565b15612cea57565b612cf26101b5565b62461bcd60e51b815280612d0860048201612cca565b0390fd5b6000612d6892612d428293612d3d612d2330612b6a565b31612d36612d3086610205565b91610205565b1015612bd1565b61196c565b90612d4b6101b5565b9081612d5681612c0f565b03925af1612d62612c37565b50612ce3565b565b612d72611539565b503390565b612d89612d846000611a4e565b6127d8565b612d91612d93565b565b612da3612d9e612d6a565b6126d0565b565b612dad612d77565b565b612dc1612dbc6000611a4e565b6127d8565b612dc9612dcb565b565b612ddd612dd6612b49565b606561146d565b565b612de7612daf565b565b600090565b90565b612e05612e00612e0a92612dee565b6102d2565b610205565b90565b600090565b612e1a611539565b50612e23612de9565b50612e2d82611e1e565b612e40612e3a6041612df1565b91610205565b14600014612e8757612e8191612e54612861565b50612e5d612861565b50612e66612e0d565b5060208101516060604083015192015160001a909192613161565b91909190565b5050612e93600061150f565b90600290565b634e487b7160e01b600052602160045260246000fd5b60051115612eb957565b612e99565b90612ec882612eaf565b565b60207f7565000000000000000000000000000000000000000000000000000000000000917f45434453413a20696e76616c6964207369676e6174757265202773272076616c60008201520152565b612f2560226040926112e9565b612f2e81612eca565b0190565b612f489060208101906000818303910152612f18565b90565b60007f45434453413a20696e76616c6964207369676e6174757265206c656e67746800910152565b612f80601f6020926112e9565b612f8981612f4b565b0190565b612fa39060208101906000818303910152612f73565b90565b60007f45434453413a20696e76616c6964207369676e61747572650000000000000000910152565b612fdb60186020926112e9565b612fe481612fa6565b0190565b612ffe9060208101906000818303910152612fce565b90565b8061301561300f6000612ebe565b91612ebe565b146000146130205750565b8061303461302e6001612ebe565b91612ebe565b1460001461305e576130446101b5565b62461bcd60e51b81528061305a60048201612fe8565b0390fd5b8061307261306c6002612ebe565b91612ebe565b1460001461309c576130826101b5565b62461bcd60e51b81528061309860048201612f8d565b0390fd5b6130af6130a96003612ebe565b91612ebe565b146130b657565b6130be6101b5565b62461bcd60e51b8152806130d460048201612f32565b0390fd5b90565b6130ef6130ea6130f4926130d8565b6102d2565b610205565b90565b61310090611e5e565b9052565b61310d90611a82565b9052565b61314761314e9461313d606094989795613133608086019a60008701906130f7565b6020850190613104565b60408301906130f7565b01906130f7565b565b6131586101b5565b3d6000823e3d90fd5b92919061316c611539565b50613175612de9565b5061317f83612909565b6131b16131ab7f7fffffffffffffffffffffffffffffff5d576e7357a4501ddfe92f46681b20a06130db565b91610205565b11613228576131d260009360209592936131c96101b5565b94859485613111565b838052039060015afa15613223576131eb60005161109a565b806132076132016131fc600061150f565b6101d5565b916101d5565b146132125790600090565b5061321d600061150f565b90600190565b613150565b50505050613236600061150f565b9060039056fea2646970667358221220b854682df465d9f88b226bb189759797b5d7781fb324961e453a06b0d49c263864736f6c63430008180033

Deployed Bytecode

0x60806040526004361015610015575b36610e1f57005b6100206000356101af565b80630f026f6d146101aa57806319ae58f0146101a557806319f4d6b7146101a05780632267a89c1461019b57806340bace48146101965780634635256e146101915780634c69c00f1461018c5780634ce7957c1461018757806353613dd3146101825780635cf4ee911461017d5780636c525d04146101785780636ff6c4b814610173578063715018a61461016e5780638da5cb5b1461016957806391ee3e08146101645780639ae717811461015f578063a10786b01461015a578063a498342114610155578063a89ae4ba14610150578063ae4a45251461014b578063b1a491e014610146578063b203bb9914610141578063d6e6eb9f1461013c578063f2fde38b146101375763f496a6100361000e57610df5565b610dc2565b610d8d565b610d47565b610ca9565b610c2c565b610bb0565b610b3c565b610b09565b610a90565b610a5c565b61088a565b610834565b610801565b6107af565b610779565b610716565b6106d1565b61062e565b6105f8565b6105c3565b610519565b6104e5565b610368565b61027d565b60e01c90565b60405190565b600080fd5b600080fd5b600080fd5b60018060a01b031690565b6101de906101ca565b90565b6101ea816101d5565b036101f157565b600080fd5b90503590610203826101e1565b565b90565b61021181610205565b0361021857565b600080fd5b9050359061022a82610208565b565b9190604083820312610255578061024961025292600086016101f6565b9360200161021d565b90565b6101c0565b61026390610205565b9052565b919061027b9060006020850194019061025a565b565b346102ae576102aa61029961029336600461022c565b90610f17565b6102a16101b5565b91829182610267565b0390f35b6101bb565b906020828203126102cd576102ca916000016101f6565b90565b6101c0565b90565b6102e96102e46102ee926101ca565b6102d2565b6101ca565b90565b6102fa906102d5565b90565b610306906102f1565b90565b90610313906102fd565b600052602052604060002090565b1c90565b90565b61033890600861033d9302610321565b610325565b90565b9061034b9154610328565b90565b61036590610360609d91600092610309565b610340565b90565b346103985761039461038361037e3660046102b3565b61034e565b61038b6101b5565b91829182610267565b0390f35b6101bb565b600080fd5b600080fd5b601f801991011690565b634e487b7160e01b600052604160045260246000fd5b906103d1906103a7565b810190811067ffffffffffffffff8211176103eb57604052565b6103b1565b906104036103fc6101b5565b92836103c7565b565b67ffffffffffffffff81116104235761041f6020916103a7565b0190565b6103b1565b90826000939282370152565b9092919261044961044482610405565b6103f0565b938185526020850190828401116104655761046392610428565b565b6103a2565b9080601f830112156104885781602061048593359101610434565b90565b61039d565b916060838303126104da576104a582600085016101f6565b926104b3836020830161021d565b92604082013567ffffffffffffffff81116104d5576104d2920161046a565b90565b6101c5565b6101c0565b60000190565b34610514576104fe6104f836600461048d565b91610f9a565b6105066101b5565b80610510816104df565b0390f35b6101bb565b3461054a5761054661053561052f36600461022c565b90610fdc565b61053d6101b5565b91829182610267565b0390f35b6101bb565b600091031261055a57565b6101c0565b60ff1690565b61057590600861057a9302610321565b61055f565b90565b906105889154610565565b90565b610598609e60009061057d565b90565b151590565b6105a99061059b565b9052565b91906105c1906000602085019401906105a0565b565b346105f3576105d336600461054f565b6105ef6105de61058b565b6105e66101b5565b918291826105ad565b0390f35b6101bb565b346106295761062561061461060e36600461022c565b9061105f565b61061c6101b5565b91829182610267565b0390f35b6101bb565b3461065c576106466106413660046102b3565b61112b565b61064e6101b5565b80610658816104df565b0390f35b6101bb565b60018060a01b031690565b61067c9060086106819302610321565b610661565b90565b9061068f915461066c565b90565b61069f6098600090610684565b90565b6106ab906101ca565b90565b6106b7906106a2565b9052565b91906106cf906000602085019401906106ae565b565b34610701576106e136600461054f565b6106fd6106ec610692565b6106f46101b5565b918291826106bb565b0390f35b6101bb565b610713609b600090610340565b90565b346107465761072636600461054f565b610742610731610706565b6107396101b5565b91829182610267565b0390f35b6101bb565b91906040838203126107745780610768610771926000860161021d565b9360200161021d565b90565b6101c0565b346107aa576107a661079561078f36600461074b565b90611193565b61079d6101b5565b91829182610267565b0390f35b6101bb565b346107dd576107bf36600461054f565b6107c761141a565b6107cf6101b5565b806107d9816104df565b0390f35b6101bb565b906020828203126107fc576107f99160000161021d565b90565b6101c0565b3461082f576108196108143660046107e2565b6114d3565b6108216101b5565b8061082b816104df565b0390f35b6101bb565b346108625761084436600461054f565b61084c61152f565b6108546101b5565b8061085e816104df565b0390f35b6101bb565b610870906101d5565b9052565b919061088890600060208501940190610867565b565b346108ba5761089a36600461054f565b6108b66108a561155f565b6108ad6101b5565b91829182610874565b0390f35b6101bb565b67ffffffffffffffff81116108d75760208091020190565b6103b1565b600080fd5b909291926108f66108f1826108bf565b6103f0565b938185526020808601920283019281841161093357915b83831061091a5750505050565b6020809161092884866101f6565b81520192019161090d565b6108dc565b9080601f8301121561095657816020610953933591016108e1565b90565b61039d565b67ffffffffffffffff81116109735760208091020190565b6103b1565b9092919261098d6109888261095b565b6103f0565b93818552602080860192028301928184116109ca57915b8383106109b15750505050565b602080916109bf848661021d565b8152019201916109a4565b6108dc565b9080601f830112156109ed578160206109ea93359101610978565b90565b61039d565b91606083830312610a5757610a0a82600085016101f6565b92602081013567ffffffffffffffff8111610a525783610a2b918301610938565b92604082013567ffffffffffffffff8111610a4d57610a4a92016109cf565b90565b6101c5565b6101c5565b6101c0565b34610a8b57610a75610a6f3660046109f2565b916118df565b610a7d6101b5565b80610a87816104df565b0390f35b6101bb565b34610ac157610abd610aac610aa636600461022c565b906118ec565b610ab46101b5565b91829182610267565b0390f35b6101bb565b610acf816106a2565b03610ad657565b600080fd5b90503590610ae882610ac6565b565b90602082820312610b0457610b0191600001610adb565b90565b6101c0565b34610b3757610b21610b1c366004610aea565b6119c5565b610b296101b5565b80610b33816104df565b0390f35b6101bb565b34610b6a57610b54610b4f3660046107e2565b611a29565b610b5c6101b5565b80610b66816104df565b0390f35b6101bb565b60018060a01b031690565b610b8a906008610b8f9302610321565b610b6f565b90565b90610b9d9154610b7a565b90565b610bad609a600090610b92565b90565b34610be057610bc036600461054f565b610bdc610bcb610ba0565b610bd36101b5565b91829182610874565b0390f35b6101bb565b608081830312610c2757610bfc826000830161021d565b92610c24610c0d8460208501610adb565b93610c1b816040860161021d565b9360600161021d565b90565b6101c0565b34610c5e57610c48610c3f366004610be5565b92919091611e10565b610c506101b5565b80610c5a816104df565b0390f35b6101bb565b919091604081840312610ca457610c7d836000830161021d565b92602082013567ffffffffffffffff8111610c9f57610c9c920161046a565b90565b6101c5565b6101c0565b34610cda57610cd6610cc5610cbf366004610c63565b90611f69565b610ccd6101b5565b91829182610267565b0390f35b6101bb565b9190604083820312610d085780610cfc610d0592600086016101f6565b936020016101f6565b90565b6101c0565b90610d17906102fd565b600052602052604060002090565b610d3f610d4492610d3a609c93600094610d0d565b610309565b610340565b90565b34610d7857610d74610d63610d5d366004610cdf565b90610d25565b610d6b6101b5565b91829182610267565b0390f35b6101bb565b610d8a6099600090610340565b90565b34610dbd57610d9d36600461054f565b610db9610da8610d7d565b610db06101b5565b91829182610267565b0390f35b6101bb565b34610df057610dda610dd53660046102b3565b612152565b610de26101b5565b80610dec816104df565b0390f35b6101bb565b610e09610e0336600461048d565b9161215d565b610e116101b5565b80610e1b816104df565b0390f35b600080fd5b600090565b60001c90565b610e3b610e4091610e29565b610325565b90565b610e4d9054610e2f565b90565b634e487b7160e01b600052601160045260246000fd5b610e75610e7b91939293610205565b92610205565b91610e87838202610205565b928184041490151715610e9657565b610e50565b90565b610eb2610ead610eb792610e9b565b6102d2565b610205565b90565b634e487b7160e01b600052601260045260246000fd5b610edc610ee291610205565b91610205565b908115610eed570490565b610eba565b610f01610f0791939293610205565b92610205565b8201809211610f1257565b610e50565b610f9791610f2d91610f27610e24565b5061105f565b610f92610f5e610f4783610f416099610e43565b90610e66565b610f58670de0b6b3a7640000610e9e565b90610ed0565b610f8c610f7584610f6f609b610e43565b90610e66565b610f86670de0b6b3a7640000610e9e565b90610ed0565b92610ef2565b610ef2565b90565b91610fb592610faa8184906118ec565b909260009293612612565b565b610fc6610fcc91939293610205565b92610205565b8203918211610fd757565b610e50565b61105c91610ff291610fec610e24565b506118ec565b61105761102361100c836110066099610e43565b90610e66565b61101d670de0b6b3a7640000610e9e565b90610ed0565b61105161103a84611034609b610e43565b90610e66565b61104b670de0b6b3a7640000610e9e565b90610ed0565b92610fb7565b610fb7565b90565b9061107f61107a61108493611072610e24565b50609d610309565b610e43565b611193565b90565b611098906110936126a4565b6110de565b565b60001b90565b906110b160018060a01b039161109a565b9181191691161790565b90565b906110d36110ce6110da926102fd565b6110bb565b82546110a0565b9055565b6110e981609a6110be565b6111137f0adef86c673dfdb102affe9a454acea4a42a305e1feb982b4b2c97da980454a9916102fd565b9061111c6101b5565b80611126816104df565b0390a2565b61113490611087565b565b90565b61114d61114861115292611136565b6102d2565b610205565b90565b90565b61116c61116761117192611155565b6102d2565b610205565b90565b90565b61118b61118661119092611174565b6102d2565b610205565b90565b61128c6112a3916112876112776112b3956111ac610e24565b506112716112616112146112046111d7886111d18a6111cb6001611139565b90610ef2565b90610e66565b6111fe6111ee60026111e98c91611158565b610e66565b6111f86001611139565b90610ef2565b90610e66565b61120e6006611177565b90610ed0565b9561125c61125661124d611229848890610ef2565b6112476112408661123a6001611139565b90610ef2565b8990610ef2565b90610e66565b95600293610ef2565b91611158565b610e66565b61126b6001611139565b90610ef2565b90610e66565b6112816006611177565b90610ed0565b610fb7565b61129d670de0b6b3a7640000610e9e565b90610e66565b6112ad6097610e43565b90610ed0565b90565b6112be6126a4565b6112c66113bb565b565b6112d46112d991610e29565b61055f565b90565b6112e690546112c8565b90565b60209181520190565b60007f4d6967726174696f6e20616c726561647920656e646564000000000000000000910152565b61132760176020926112e9565b611330816112f2565b0190565b61134a906020810190600081830391015261131a565b90565b1561135457565b61135c6101b5565b62461bcd60e51b81528061137260048201611334565b0390fd5b9061138260ff9161109a565b9181191691161790565b6113959061059b565b90565b90565b906113b06113ab6113b79261138c565b611398565b8254611376565b9055565b6113d66113d16113cb609e6112dc565b1561059b565b61134d565b6113e26001609e61139b565b7f16cace72ad40bd23c9e04c798148013b99adcc741ff2f667c2bedbc81141458b61140b6101b5565b80611415816104df565b0390a1565b6114226112b6565b565b611435906114306126a4565b61148d565b565b906114446000199161109a565b9181191691161790565b61146261145d61146792610205565b6102d2565b610205565b90565b90565b9061148261147d6114899261144e565b61146a565b8254611437565b9055565b61149881609b61146d565b6114ce7fcac5fb194ae0d660ab1b68f6561a22ab792ca0bbe87b5392c3ec528fc25a0c0f916114c56101b5565b91829182610267565b0390a1565b6114dc90611424565b565b6114e66126a4565b6114ee61151b565b565b90565b61150761150261150c926114f0565b6102d2565b6101ca565b90565b611518906114f3565b90565b61152d611528600061150f565b6126d0565b565b6115376114de565b565b600090565b61154a61154f91610e29565b610b6f565b90565b61155c905461153e565b90565b611567611539565b506115726033611552565b90565b9061158892916115836126a4565b611735565b565b60007f416c7265616479206d6967726174656400000000000000000000000000000000910152565b6115bf60106020926112e9565b6115c88161158a565b0190565b6115e290602081019060008183039101526115b2565b90565b156115ec57565b6115f46101b5565b62461bcd60e51b81528061160a600482016115cc565b0390fd5b5190565b5190565b60007f496e76616c696420696e70757400000000000000000000000000000000000000910152565b61164b600d6020926112e9565b61165481611616565b0190565b61166e906020810190600081830391015261163e565b90565b1561167857565b6116806101b5565b62461bcd60e51b81528061169660048201611658565b0390fd5b6116ae6116a96116b3926114f0565b6102d2565b610205565b90565b60016116c29101610205565b90565b634e487b7160e01b600052603260045260246000fd5b906116e582611612565b8110156116f6576020809102010190565b6116c5565b6117059051610205565b90565b906117128261160e565b811015611723576020809102010190565b6116c5565b61173290516101d5565b90565b929161175261174d611747609e6112dc565b1561059b565b6115e5565b61177e61175e8361160e565b61177861177261176d85611612565b610205565b91610205565b14611671565b611786610e24565b611790600061169a565b905b816117ad6117a76117a28761160e565b610205565b91610205565b10156118af576118296118a9916118106117d06117cb8787906116db565b6116fb565b61180a6117fb6117e2609c8d90610d0d565b6117f56117f08c8b90611708565b611728565b90610309565b9161180583610e43565b610ef2565b9061146d565b61182361181e8686906116db565b6116fb565b90610ef2565b918661183e611839878490611708565b611728565b61185161184c8785906116db565b6116fb565b9061188e6118886118827fe53177345d8dc98ab1205ebcd15944417ef4baa3f9f25486d6858e886eced5ce956102fd565b926102fd565b9261144e565b926118976101b5565b806118a1816104df565b0390a46116b6565b90611792565b6118dd949593506118d792506118c8915092609d610309565b916118d283610e43565b610ef2565b9061146d565b565b906118ea9291611575565b565b9061191661190f61190a61191b94611902610e24565b50609d610309565b610e43565b8290610fb7565b611193565b90565b61192f9061192a6126a4565b611978565b565b61193a906102d5565b90565b61194690611931565b90565b90565b9061196161195c6119689261193d565b611949565b82546110a0565b9055565b611975906102f1565b90565b61198381609861194c565b6119ad7f72fe3f5fb15c2671900303001fbe3a8adf9df5c76bfd269a9508c8753b9c35c99161196c565b906119b66101b5565b806119c0816104df565b0390a2565b6119ce9061191e565b565b6119e1906119dc6126a4565b6119e3565b565b6119ee81609961146d565b611a247f98d1698e9a7ee55a2ded97de72077c93add26ce8534679021d0e7c44edcb325b91611a1b6101b5565b91829182610267565b0390a1565b611a32906119d0565b565b60081c90565b611a46611a4b91611a34565b61055f565b90565b611a589054611a3a565b90565b60ff1690565b611a6d611a7291610e29565b611a5b565b90565b611a7f9054611a61565b90565b60ff1690565b611a9c611a97611aa192611136565b6102d2565b611a82565b90565b611aad906102f1565b90565b60207f647920696e697469616c697a6564000000000000000000000000000000000000917f496e697469616c697a61626c653a20636f6e747261637420697320616c72656160008201520152565b611b0b602e6040926112e9565b611b1481611ab0565b0190565b611b2e9060208101906000818303910152611afe565b90565b15611b3857565b611b406101b5565b62461bcd60e51b815280611b5660048201611b18565b0390fd5b611b6e611b69611b7392611a82565b6102d2565b611a82565b90565b90565b90611b8e611b89611b9592611b5a565b611b76565b8254611376565b9055565b60081b90565b90611bac61ff0091611b99565b9181191691161790565b90611bcb611bc6611bd29261138c565b611398565b8254611b9f565b9055565b611bdf90611a88565b9052565b9190611bf790600060208501940190611bd6565b565b929091611c4a92611c13611c0d6000611a4e565b1561059b565b948580611cfc575b8015611cad575b611c2b90611b31565b611c3f611c386001611a88565b6000611b79565b85611c9c575b611d20565b611c51575b565b611c5c600080611bb6565b6001611c947f7f26b83ff96e1f2b6a682f133852f6798a09c465da95921460cefb384740249891611c8b6101b5565b91829182611be3565b0390a1611c4f565b611ca860016000611bb6565b611c45565b50611cc8611cc2611cbd30611aa4565b612736565b1561059b565b80611cd3575b611c22565b50611c2b611ce16000611a75565b611cf4611cee6001611a88565b91611a82565b149050611cce565b50611d076000611a75565b611d1a611d146001611a88565b91611a82565b10611c1b565b611d3b90611d2c612827565b611d34612857565b609761146d565b611d4681609861194c565b611d5182609961146d565b611d5c83609b61146d565b611d867f72fe3f5fb15c2671900303001fbe3a8adf9df5c76bfd269a9508c8753b9c35c99161196c565b90611d8f6101b5565b80611d99816104df565b0390a2611dd27f98d1698e9a7ee55a2ded97de72077c93add26ce8534679021d0e7c44edcb325b91611dc96101b5565b91829182610267565b0390a1611e0b7fcac5fb194ae0d660ab1b68f6561a22ab792ca0bbe87b5392c3ec528fc25a0c0f91611e026101b5565b91829182610267565b0390a1565b90611e1c939291611bf9565b565b5190565b90565b611e31611e3691610205565b611e22565b9052565b602081611e4c611e5493839695611e25565b018092611e25565b0190565b60200190565b90565b60007f50616c3a20496e76616c696420646174612070726f7669646564000000000000910152565b611e96601a6020926112e9565b611e9f81611e61565b0190565b611eb99060208101906000818303910152611e89565b90565b15611ec357565b611ecb6101b5565b62461bcd60e51b815280611ee160048201611ea3565b0390fd5b60007f50616c3a20496e76616c6964206f7261636c65207369676e6174757265000000910152565b611f1a601d6020926112e9565b611f2381611ee5565b0190565b611f3d9060208101906000818303910152611f0d565b90565b15611f4757565b611f4f6101b5565b62461bcd60e51b815280611f6560048201611f27565b0390fd5b611f71610e24565b50611f7b82611e1e565b611f8e611f88600061169a565b91610205565b14612055578161203b91612036612015611faa612052966129a1565b949094612010611ff786611fdf8991611fd0611fc46101b5565b93849260208401611e3a565b602082018103825203826103c7565b611ff1611feb82611e1e565b91611e58565b20612a1e565b9161200a61200484611e5e565b91611e5e565b14611ebc565b612a56565b61203061202a612025609a611552565b6101d5565b916101d5565b14611f40565b610e66565b61204c670de0b6b3a7640000610e9e565b90610ed0565b90565b5050612061600061169a565b90565b612075906120706126a4565b612121565b565b60207f6464726573730000000000000000000000000000000000000000000000000000917f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160008201520152565b6120d260266040926112e9565b6120db81612077565b0190565b6120f590602081019060008183039101526120c5565b90565b156120ff57565b6121076101b5565b62461bcd60e51b81528061211d600482016120df565b0390fd5b6121509061214b8161214461213e612139600061150f565b6101d5565b916101d5565b14156120f8565b6126d0565b565b61215b90612064565b565b916121789261216d81849061105f565b909260019293612612565b565b9061218f9493929161218a612b08565b61232a565b612197612b56565b565b60007f496e73756666696369656e742062616c616e6365000000000000000000000000910152565b6121ce60146020926112e9565b6121d781612199565b0190565b6121f190602081019060008183039101526121c1565b90565b156121fb57565b6122036101b5565b62461bcd60e51b815280612219600482016121db565b0390fd5b61222690611931565b90565b61223561223a91610e29565b610661565b90565b6122479054612229565b90565b60007f496e73756666696369656e74207061796d656e74000000000000000000000000910152565b61227f60146020926112e9565b6122888161224a565b0190565b6122a29060208101906000818303910152612272565b90565b156122ac57565b6122b46101b5565b62461bcd60e51b8152806122ca6004820161228c565b0390fd5b91946123176123219298979561230d60a0966123036123289a6122f960c08a019e60008b019061025a565b602089019061025a565b604087019061025a565b606085019061025a565b608083019061025a565b019061025a565b565b909291936123389085611f69565b9361237161236a6123538361234d6099610e43565b90610e66565b612364670de0b6b3a7640000610e9e565b90610ed0565b8690610fb7565b906124fa6123ad6123a661238f84612389609b610e43565b90610e66565b6123a0670de0b6b3a7640000610e9e565b90610ed0565b8890610ef2565b966123c26123bd609d8790610309565b610e43565b8660001461253457612438906123ff8a6123f86123f26123ed34936123e88b8d90610ef2565b610ef2565b610205565b91610205565b10156122a5565b6124318961242b61241c612415609c8c90610d0d565b3390610309565b9161242683610e43565b610ef2565b9061146d565b8890610ef2565b61244d81612448609d8990610309565b61146d565b61246161245a609861223d565b8690612d0c565b61247461246d8761221d565b8a90612d0c565b3461249b612495612490612489888a90610ef2565b8d90610ef2565b610205565b91610205565b116124ff575b5b339596979394989190916124e86124e26124dc7f952ff8d90add9fdeaeb478102d54441cf0cc0cbe53b1d99e51f747cdc8379e54996102fd565b996102fd565b9961138c565b996124f16101b5565b968796876122ce565b0390a4565b61252f61252161251a612513348890610fb7565b8890610fb7565b8b90610fb7565b61252a3361221d565b612d0c565b6124a1565b6125ab9061257261255961255461254d609c8b90610d0d565b3390610309565b610e43565b61256b6125658c610205565b91610205565b10156121f4565b6125a48961259e61258f612588609c8c90610d0d565b3390610309565b9161259983610e43565b610fb7565b9061146d565b8890610fb7565b6125c0816125bb609d8990610309565b61146d565b6125e66125d86125d1868890610fb7565b8b90610fb7565b6125e13361221d565b612d0c565b6125fa6125f3609861223d565b8690612d0c565b61260d6126068761221d565b8a90612d0c565b6124a2565b9061261f9493929161217a565b565b60007f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572910152565b612655602080926112e9565b61265e81612621565b0190565b6126789060208101906000818303910152612649565b90565b1561268257565b61268a6101b5565b62461bcd60e51b8152806126a060048201612662565b0390fd5b6126ce6126af61155f565b6126c86126c26126bd612d6a565b6101d5565b916101d5565b1461267b565b565b6126da6033611552565b6126e58260336110be565b906127196127137f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0936102fd565b916102fd565b916127226101b5565b8061272c816104df565b0390a3565b600090565b61273e612731565b503b61275361274d600061169a565b91610205565b1190565b60207f6e697469616c697a696e67000000000000000000000000000000000000000000917f496e697469616c697a61626c653a20636f6e7472616374206973206e6f74206960008201520152565b6127b2602b6040926112e9565b6127bb81612757565b0190565b6127d590602081019060008183039101526127a5565b90565b156127df57565b6127e76101b5565b62461bcd60e51b8152806127fd600482016127bf565b0390fd5b61281361280e6000611a4e565b6127d8565b61281b61281d565b565b612825612da5565b565b61282f612801565b565b61284361283e6000611a4e565b6127d8565b61284b61284d565b565b612855612ddf565b565b61285f612831565b565b600090565b90565b61287d61287861288292612866565b6102d2565b610205565b90565b60007f50616c3a20496e76616c6964207369676e6174757265206c656e677468000000910152565b6128ba601d6020926112e9565b6128c381612885565b0190565b6128dd90602081019060008183039101526128ad565b90565b156128e757565b6128ef6101b5565b62461bcd60e51b815280612905600482016128c7565b0390fd5b61291561291a91610e29565b61144e565b90565b60007f50616c3a2046656520726174696f206f7574206f6620626f756e647300000000910152565b612952601c6020926112e9565b61295b8161291d565b0190565b6129759060208101906000818303910152612945565b90565b1561297f57565b6129876101b5565b62461bcd60e51b81528061299d6004820161295f565b0390fd5b906129aa610e24565b506129b3612861565b506129d96129c083611e1e565b6129d36129cd6060612869565b91610205565b146128e0565b6129e1612861565b506129f56040602084015193015192612909565b612a1a81612a13612a0d670de0b6b3a7640000610e9e565b91610205565b1115612978565b9190565b612a26612861565b507f19457468657265756d205369676e6564204d6573736167653a0a333200000000600052601c52603c60002090565b612a7491612a6c91612a66611539565b50612e12565b919091613001565b90565b612a816002611158565b90565b60007f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00910152565b612ab9601f6020926112e9565b612ac281612a84565b0190565b612adc9060208101906000818303910152612aac565b90565b15612ae657565b612aee6101b5565b62461bcd60e51b815280612b0460048201612ac6565b0390fd5b612b35612b156065610e43565b612b2e612b28612b23612a77565b610205565b91610205565b1415612adf565b612b47612b40612a77565b606561146d565b565b612b536001611139565b90565b612b68612b61612b49565b606561146d565b565b612b73906102f1565b90565b60007f416464726573733a20696e73756666696369656e742062616c616e6365000000910152565b612bab601d6020926112e9565b612bb481612b76565b0190565b612bce9060208101906000818303910152612b9e565b90565b15612bd857565b612be06101b5565b62461bcd60e51b815280612bf660048201612bb8565b0390fd5b905090565b612c0b60008092612bfa565b0190565b612c1890612bff565b90565b90612c2d612c2883610405565b6103f0565b918252565b606090565b3d600014612c5457612c483d612c1b565b903d6000602084013e5b565b612c5c612c32565b90612c52565b60207f6563697069656e74206d61792068617665207265766572746564000000000000917f416464726573733a20756e61626c6520746f2073656e642076616c75652c207260008201520152565b612cbd603a6040926112e9565b612cc681612c62565b0190565b612ce09060208101906000818303910152612cb0565b90565b15612cea57565b612cf26101b5565b62461bcd60e51b815280612d0860048201612cca565b0390fd5b6000612d6892612d428293612d3d612d2330612b6a565b31612d36612d3086610205565b91610205565b1015612bd1565b61196c565b90612d4b6101b5565b9081612d5681612c0f565b03925af1612d62612c37565b50612ce3565b565b612d72611539565b503390565b612d89612d846000611a4e565b6127d8565b612d91612d93565b565b612da3612d9e612d6a565b6126d0565b565b612dad612d77565b565b612dc1612dbc6000611a4e565b6127d8565b612dc9612dcb565b565b612ddd612dd6612b49565b606561146d565b565b612de7612daf565b565b600090565b90565b612e05612e00612e0a92612dee565b6102d2565b610205565b90565b600090565b612e1a611539565b50612e23612de9565b50612e2d82611e1e565b612e40612e3a6041612df1565b91610205565b14600014612e8757612e8191612e54612861565b50612e5d612861565b50612e66612e0d565b5060208101516060604083015192015160001a909192613161565b91909190565b5050612e93600061150f565b90600290565b634e487b7160e01b600052602160045260246000fd5b60051115612eb957565b612e99565b90612ec882612eaf565b565b60207f7565000000000000000000000000000000000000000000000000000000000000917f45434453413a20696e76616c6964207369676e6174757265202773272076616c60008201520152565b612f2560226040926112e9565b612f2e81612eca565b0190565b612f489060208101906000818303910152612f18565b90565b60007f45434453413a20696e76616c6964207369676e6174757265206c656e67746800910152565b612f80601f6020926112e9565b612f8981612f4b565b0190565b612fa39060208101906000818303910152612f73565b90565b60007f45434453413a20696e76616c6964207369676e61747572650000000000000000910152565b612fdb60186020926112e9565b612fe481612fa6565b0190565b612ffe9060208101906000818303910152612fce565b90565b8061301561300f6000612ebe565b91612ebe565b146000146130205750565b8061303461302e6001612ebe565b91612ebe565b1460001461305e576130446101b5565b62461bcd60e51b81528061305a60048201612fe8565b0390fd5b8061307261306c6002612ebe565b91612ebe565b1460001461309c576130826101b5565b62461bcd60e51b81528061309860048201612f8d565b0390fd5b6130af6130a96003612ebe565b91612ebe565b146130b657565b6130be6101b5565b62461bcd60e51b8152806130d460048201612f32565b0390fd5b90565b6130ef6130ea6130f4926130d8565b6102d2565b610205565b90565b61310090611e5e565b9052565b61310d90611a82565b9052565b61314761314e9461313d606094989795613133608086019a60008701906130f7565b6020850190613104565b60408301906130f7565b01906130f7565b565b6131586101b5565b3d6000823e3d90fd5b92919061316c611539565b50613175612de9565b5061317f83612909565b6131b16131ab7f7fffffffffffffffffffffffffffffff5d576e7357a4501ddfe92f46681b20a06130db565b91610205565b11613228576131d260009360209592936131c96101b5565b94859485613111565b838052039060015afa15613223576131eb60005161109a565b806132076132016131fc600061150f565b6101d5565b916101d5565b146132125790600090565b5061321d600061150f565b90600190565b613150565b50505050613236600061150f565b9060039056fea2646970667358221220b854682df465d9f88b226bb189759797b5d7781fb324961e453a06b0d49c263864736f6c63430008180033

Block Transaction Gas Used Reward
view all blocks produced

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

Validator Index Block Amount
View All Withdrawals

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

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