Contract 0x5f8e53f1306426ebd665fb800742d740e3d0acd1 2

Contract Overview

Balance:
0 ETH
Txn Hash Method
Block
From
To
Value [Txn Fee]
0xf33e129a58430cc9a508a7566aa3462fbf3529403433c040a1c778c8d27f2518Trade218833432023-05-25 8:01:374 days 3 hrs ago0x7777405db28bcac40f6fd2aabc62751384aad38c IN  0x5f8e53f1306426ebd665fb800742d740e3d0acd10 ETH0.000342171.14617
0xbb0efb8277689aad09ce7c82d956c84e44ba22fb7ae06bfccfdc56e3aeaa6c88Trade217596292023-05-24 15:51:454 days 20 hrs ago0x7777405db28bcac40f6fd2aabc62751384aad38c IN  0x5f8e53f1306426ebd665fb800742d740e3d0acd10 ETH0.000460750.98779
0xc8a743872ebc009c42b2648697bcb90255245ab6ee67a44563be5000c837b1bbTrade217595982023-05-24 15:51:304 days 20 hrs ago0x7777405db28bcac40f6fd2aabc62751384aad38c IN  0x5f8e53f1306426ebd665fb800742d740e3d0acd10 ETH0.001327741.00063
0x20cdecccb86b7440aa5804b54437f26d99c2ed211c7d3baf6c2dc8ddac5f97b5Trade217595832023-05-24 15:51:244 days 20 hrs ago0x7777405db28bcac40f6fd2aabc62751384aad38c IN  0x5f8e53f1306426ebd665fb800742d740e3d0acd10 ETH0.001526440.99997
0x7dc7badbdcfcc524dcff3d2380a050fa1edde2ba3ac8570c78058554f61dd3e6Trade198549892023-05-15 5:12:5114 days 6 hrs ago0x7777405db28bcac40f6fd2aabc62751384aad38c IN  0x5f8e53f1306426ebd665fb800742d740e3d0acd10 ETH0.00007030.1
0x15274bfe78afd1323645c4b263a5de5f530e1b8249c1ef5e8c893839fc5c9062Trade197201652023-05-14 0:55:5315 days 11 hrs ago0x7777405db28bcac40f6fd2aabc62751384aad38c IN  0x5f8e53f1306426ebd665fb800742d740e3d0acd10 ETH0.000031930.1
0xfa6f77895d8a3cfb8f1d06f15c1c7072e13856a49827a0d20232bb271872f96cTrade197201632023-05-14 0:55:5215 days 11 hrs ago0x7777405db28bcac40f6fd2aabc62751384aad38c IN  0x5f8e53f1306426ebd665fb800742d740e3d0acd10 ETH0.000231210.1
0x156dd6b671542025b59969e0b0aa979b31f4d19a7d1e605ffc375821fed56777Trade195340832023-05-12 10:13:1517 days 1 hr ago0x7777405db28bcac40f6fd2aabc62751384aad38c IN  0x5f8e53f1306426ebd665fb800742d740e3d0acd10 ETH0.074450835.59523
0xef62e5b9e1a4694d3d03e6155a80b58d4e36c4d9fd82d1afe637eeed17d888b9Trade194410652023-05-11 20:31:0817 days 15 hrs ago0x7777405db28bcac40f6fd2aabc62751384aad38c IN  0x5f8e53f1306426ebd665fb800742d740e3d0acd10 ETH0.00003390.1
0x5f8a5a2a92f9598bfb564a58cc7cd11edf4eb48914cbc00297fc18fa851053bcTrade194407212023-05-11 20:27:5217 days 15 hrs ago0x7777405db28bcac40f6fd2aabc62751384aad38c IN  0x5f8e53f1306426ebd665fb800742d740e3d0acd10 ETH0.000037820.1
0x302ad00ed1f5613a5c591aacd62602c20d08f5ecacf0c933a9c019aa2d994f18Trade193395242023-05-11 1:52:5018 days 10 hrs ago0x7777405db28bcac40f6fd2aabc62751384aad38c IN  0x5f8e53f1306426ebd665fb800742d740e3d0acd10 ETH0.000115510.1
0xed7ebb32bc65901b4939a5252470981ae0d4d2b92decce49c7562c7dbb05d514Trade193393612023-05-11 1:49:2618 days 10 hrs ago0x7777405db28bcac40f6fd2aabc62751384aad38c IN  0x5f8e53f1306426ebd665fb800742d740e3d0acd10 ETH0.000046070.1
0x23bc4ab81b6bd7b8ce93b3743e9a607490d270ed6aa0dfd5691f9164f5e1d8daTrade193393332023-05-11 1:48:4118 days 10 hrs ago0x7777405db28bcac40f6fd2aabc62751384aad38c IN  0x5f8e53f1306426ebd665fb800742d740e3d0acd10 ETH0.00019410.1
0x7d8b5abfaac46d67f645994f1445146e188670d08dc25f2e87a423a2eee8a0a8Trade193393252023-05-11 1:48:3018 days 10 hrs ago0x7777405db28bcac40f6fd2aabc62751384aad38c IN  0x5f8e53f1306426ebd665fb800742d740e3d0acd10 ETH0.000041950.1
0xc0371505a1a4ded1b7aee6e7ff8fe5ac740d4f7aeac2b448ac91956c7c5607f1Trade193393002023-05-11 1:47:5918 days 10 hrs ago0x7777405db28bcac40f6fd2aabc62751384aad38c IN  0x5f8e53f1306426ebd665fb800742d740e3d0acd10 ETH0.000153550.1
0x88f988b486987aff147492f6cda90ace2efac006eda4e01ca8c870f880caa10cTrade192748692023-05-10 6:56:5919 days 5 hrs ago0x7777405db28bcac40f6fd2aabc62751384aad38c IN  0x5f8e53f1306426ebd665fb800742d740e3d0acd10 ETH0.017266837.80554
0xe8a9905c72d690b7861353d420a92ae097b4c21dcf4a9b479f835fd4a9981eefTrade192748682023-05-10 6:56:5819 days 5 hrs ago0x7777405db28bcac40f6fd2aabc62751384aad38c IN  0x5f8e53f1306426ebd665fb800742d740e3d0acd10 ETH0.003602467.83886
0x00f30558af9e6dea707adf3c0391876b6632580f7177cc4695b8bfe1c02b5199Trade192631452023-05-10 2:51:1319 days 9 hrs ago0x7777405db28bcac40f6fd2aabc62751384aad38c IN  0x5f8e53f1306426ebd665fb800742d740e3d0acd10 ETH0.000083250.1
0xd1dec3681fb1808fddc19ac38bf55d42ecfb4f374e39dd679430237fe42311e3Trade192631352023-05-10 2:50:5719 days 9 hrs ago0x7777405db28bcac40f6fd2aabc62751384aad38c IN  0x5f8e53f1306426ebd665fb800742d740e3d0acd10 ETH0.000080830.1
0x9a51d571b39ee59447cf9ee19170d0363b261e8d424a7e61e7c2eec3cb28c47cTrade191995532023-05-09 8:30:0020 days 3 hrs ago0x7777405db28bcac40f6fd2aabc62751384aad38c IN  0x5f8e53f1306426ebd665fb800742d740e3d0acd10 ETH0.000049520.1
0x32f737abcd7dd40f15cf5db76654eba48a779787c8f6fc65ee148bbcb3cd3034Trade191995002023-05-09 8:29:0820 days 3 hrs ago0x7777405db28bcac40f6fd2aabc62751384aad38c IN  0x5f8e53f1306426ebd665fb800742d740e3d0acd10 ETH0.000225550.1
0x13878eacce11d14b653adde44d85a9a58e1d05d90a92a1598a0576ebd884b253Trade191994512023-05-09 8:28:1220 days 3 hrs ago0x7777405db28bcac40f6fd2aabc62751384aad38c IN  0x5f8e53f1306426ebd665fb800742d740e3d0acd10 ETH0.000043380.1
0xf536edb21313ea45db38188a04c59bc053972330b2257a48ec321a28978f8410Trade191994312023-05-09 8:27:4920 days 3 hrs ago0x7777405db28bcac40f6fd2aabc62751384aad38c IN  0x5f8e53f1306426ebd665fb800742d740e3d0acd10 ETH0.000063920.1
0xe0c45962e407915dc57068145419ee276a4df2398bd85560dc607ca27c3c4aceTrade191994242023-05-09 8:27:3920 days 3 hrs ago0x7777405db28bcac40f6fd2aabc62751384aad38c IN  0x5f8e53f1306426ebd665fb800742d740e3d0acd10 ETH0.000084450.1
0xe509d328f07cc6e239f70e89a53fb8021232a66167ae809de829e8dbfb85f284Trade191993952023-05-09 8:27:1220 days 3 hrs ago0x7777405db28bcac40f6fd2aabc62751384aad38c IN  0x5f8e53f1306426ebd665fb800742d740e3d0acd10 ETH0.000059810.1
[ Download CSV Export 
Latest 25 internal transaction
Parent Txn Hash Block From To Value
0x71cb12d24eae1852dfc86299078a9aaceb7e5b5c1d84c238a1f38657d8680cdd227844662023-05-29 11:57:412 mins ago 0xffd3b82971dabccb3219d16b6eb2db134bf55300 0x5f8e53f1306426ebd665fb800742d740e3d0acd10 ETH
0x1136860550d732d77dad743fe288e333d19a1b29852cad1d81715fa3f6714d29227844642023-05-29 11:57:402 mins ago 0xffd3b82971dabccb3219d16b6eb2db134bf55300 0x5f8e53f1306426ebd665fb800742d740e3d0acd10 ETH
0x445ae2c4091c2338ea2c0b51f57f52bb5399fbc14a12324b54a3bcf059806333227844542023-05-29 11:57:352 mins ago 0xffd3b82971dabccb3219d16b6eb2db134bf55300 0x5f8e53f1306426ebd665fb800742d740e3d0acd10 ETH
0x751cb57a5e04eacc66d0da4afef624d1e5758ba4c9d5aad7dac0b7006cad5c21227841652023-05-29 11:55:304 mins ago 0xffd3b82971dabccb3219d16b6eb2db134bf55300 0x5f8e53f1306426ebd665fb800742d740e3d0acd10 ETH
0x8c225f36259c194d4a23c9563e8f93a597ef8f96ab63df58b41ca9e3dfacdc8d227841632023-05-29 11:55:304 mins ago 0xffd3b82971dabccb3219d16b6eb2db134bf55300 0x5f8e53f1306426ebd665fb800742d740e3d0acd10 ETH
0x6110818c1ef1b60e1668eed2e0b1ea3d5f4bd1aff348763b66c0cf2891f06dbd227841532023-05-29 11:55:254 mins ago 0xffd3b82971dabccb3219d16b6eb2db134bf55300 0x5f8e53f1306426ebd665fb800742d740e3d0acd10 ETH
0x17cd100e42249ee8e816bbd4a4d79e67e1d216c30e264beed07929833f1c8081227838802023-05-29 11:53:206 mins ago 0xffd3b82971dabccb3219d16b6eb2db134bf55300 0x5f8e53f1306426ebd665fb800742d740e3d0acd10 ETH
0xe2288d2caa9a8d90ba2c7b0d06ced35bbfaa3afb12319d5052373879cb800a73227838792023-05-29 11:53:196 mins ago 0xffd3b82971dabccb3219d16b6eb2db134bf55300 0x5f8e53f1306426ebd665fb800742d740e3d0acd10 ETH
0x151d7510c372e50b52bd29ce2a57b18c795dfede79d45101659883a2618d3a09227838712023-05-29 11:53:156 mins ago 0xffd3b82971dabccb3219d16b6eb2db134bf55300 0x5f8e53f1306426ebd665fb800742d740e3d0acd10 ETH
0xf3979861afb0ee36a4ce4de7d370868afbe886d4f7668bb01cf5d31dbbfe00e1227838702023-05-29 11:53:146 mins ago 0xffd3b82971dabccb3219d16b6eb2db134bf55300 0x5f8e53f1306426ebd665fb800742d740e3d0acd10 ETH
0x20a985d539190be06883ef5f08c0153c28d500d50a588f6d8ee282d9fe45ddf6227835902023-05-29 11:51:098 mins ago 0xffd3b82971dabccb3219d16b6eb2db134bf55300 0x5f8e53f1306426ebd665fb800742d740e3d0acd10 ETH
0x146b58249731904e4dd25b9224369236cd82c054616f1e5d848ba003c90eba7a227835782023-05-29 11:51:048 mins ago 0xffd3b82971dabccb3219d16b6eb2db134bf55300 0x5f8e53f1306426ebd665fb800742d740e3d0acd10 ETH
0xc24ffb698190f35e60bf36e8676a016b014881f0d15c695bb395e985a26251a4227835762023-05-29 11:51:048 mins ago 0xffd3b82971dabccb3219d16b6eb2db134bf55300 0x5f8e53f1306426ebd665fb800742d740e3d0acd10 ETH
0x776e22fe4fe58bc7889f30f625ec44154cb72d7d32d13f0744dbfddc45736ac3227832892023-05-29 11:48:5910 mins ago 0xffd3b82971dabccb3219d16b6eb2db134bf55300 0x5f8e53f1306426ebd665fb800742d740e3d0acd10 ETH
0x990830ccc8d037462863e035dd397c537cca99819434cc8f45ff99942204d692227832882023-05-29 11:48:5910 mins ago 0xffd3b82971dabccb3219d16b6eb2db134bf55300 0x5f8e53f1306426ebd665fb800742d740e3d0acd10 ETH
0x03a841603e219cd87d05d7aea06845d1c8bd16a9383e3923ae5ffe795841612b227832732023-05-29 11:48:5310 mins ago 0xffd3b82971dabccb3219d16b6eb2db134bf55300 0x5f8e53f1306426ebd665fb800742d740e3d0acd10 ETH
0x4219e82a6ba688e7ce569e1c85444dfa4c48b3cf117a3735a53dbea5444d035e227829912023-05-29 11:46:4313 mins ago 0xffd3b82971dabccb3219d16b6eb2db134bf55300 0x5f8e53f1306426ebd665fb800742d740e3d0acd10 ETH
0x215e7802ea366402b89d4551446aaab03ef6c4b4d5bf52b29e982e02983199db227829882023-05-29 11:46:4313 mins ago 0xffd3b82971dabccb3219d16b6eb2db134bf55300 0x5f8e53f1306426ebd665fb800742d740e3d0acd10 ETH
0x737bd4895c3239b6886f1c5cd7ccd2819a5a84c4c3bf39cf15bc902bda9a1147227826702023-05-29 11:44:3915 mins ago 0xffd3b82971dabccb3219d16b6eb2db134bf55300 0x5f8e53f1306426ebd665fb800742d740e3d0acd10 ETH
0x91787b525c0c27a84b667919f70dafba9fa0d5b282f2162fc27790212568efc9227826552023-05-29 11:44:3215 mins ago 0xffd3b82971dabccb3219d16b6eb2db134bf55300 0x5f8e53f1306426ebd665fb800742d740e3d0acd10 ETH
0x5f22d4eca84e002e968209a1bc4305e4dfac2a4c02cda3acd92a41caabd6a29e227826532023-05-29 11:44:3215 mins ago 0xffd3b82971dabccb3219d16b6eb2db134bf55300 0x5f8e53f1306426ebd665fb800742d740e3d0acd10 ETH
0x197012d348fc1c5fa72400d7193a0b8453c5c50db781c3c456542011dc6056db227823582023-05-29 11:42:2917 mins ago 0xffd3b82971dabccb3219d16b6eb2db134bf55300 0x5f8e53f1306426ebd665fb800742d740e3d0acd10 ETH
0xf944bd83077fb0642332c6b21f3156560af07adc2bb8d03483d24eee6026ceb8227823572023-05-29 11:42:2917 mins ago 0xffd3b82971dabccb3219d16b6eb2db134bf55300 0x5f8e53f1306426ebd665fb800742d740e3d0acd10 ETH
0x6e9718c8f1d0814f9aa4ce4e45dab172999e4370aa79811891e130e442fb5f27227823442023-05-29 11:42:2217 mins ago 0xffd3b82971dabccb3219d16b6eb2db134bf55300 0x5f8e53f1306426ebd665fb800742d740e3d0acd10 ETH
0xdb782f9e3eb9c806e76d7c31207dcfe0c38b2722c4444ba5989333fd9ae7806f227823422023-05-29 11:42:2217 mins ago 0xffd3b82971dabccb3219d16b6eb2db134bf55300 0x5f8e53f1306426ebd665fb800742d740e3d0acd10 ETH
[ Download CSV Export 
Loading

Similar Match Source Code
Note: This contract matches the deployed ByteCode of the Source Code for Contract 0x6558be57DAD2C41fCad8055079A7290356eD3e37

Contract Name:
Perpetual

Compiler Version
v0.8.9+commit.e5eed63a

Optimization Enabled:
Yes with 100000 runs

Other Settings:
default evmVersion, Apache-2.0 license

Contract Source Code (Solidity)

/**
 *Submitted for verification at Arbiscan on 2023-01-16
*/

/*
    Copyright 2022 JOJO Exchange
    SPDX-License-Identifier: Apache-2.0
*/

// Sources flattened with hardhat v2.12.6 https://hardhat.org

// File @openzeppelin/contracts/utils/[email protected]


pragma solidity ^0.8.0;

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

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


// File @openzeppelin/contracts/access/[email protected]


pragma solidity ^0.8.0;

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

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

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

    /**
     * @dev 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 anymore. Can only be called by the current owner.
     *
     * NOTE: Renouncing ownership will leave the contract without an owner,
     * thereby removing any functionality that is only available to the owner.
     */
    function renounceOwnership() public virtual onlyOwner {
        _transferOwnership(address(0));
    }

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

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


// File @openzeppelin/contracts/utils/math/[email protected]

pragma solidity ^0.8.0;

/**
 * @dev Wrappers over Solidity's uintXX/intXX casting operators with added overflow
 * checks.
 *
 * Downcasting from uint256/int256 in Solidity does not revert on overflow. This can
 * easily result in undesired exploitation or bugs, since developers usually
 * assume that overflows raise errors. `SafeCast` restores this intuition by
 * reverting the transaction when such an operation overflows.
 *
 * Using this library instead of the unchecked operations eliminates an entire
 * class of bugs, so it's recommended to use it always.
 *
 * Can be combined with {SafeMath} and {SignedSafeMath} to extend it to smaller types, by performing
 * all math on `uint256` and `int256` and then downcasting.
 */
library SafeCast {
    /**
     * @dev Returns the downcasted uint248 from uint256, reverting on
     * overflow (when the input is greater than largest uint248).
     *
     * Counterpart to Solidity's `uint248` operator.
     *
     * Requirements:
     *
     * - input must fit into 248 bits
     *
     * _Available since v4.7._
     */
    function toUint248(uint256 value) internal pure returns (uint248) {
        require(value <= type(uint248).max, "SafeCast: value doesn't fit in 248 bits");
        return uint248(value);
    }

    /**
     * @dev Returns the downcasted uint240 from uint256, reverting on
     * overflow (when the input is greater than largest uint240).
     *
     * Counterpart to Solidity's `uint240` operator.
     *
     * Requirements:
     *
     * - input must fit into 240 bits
     *
     * _Available since v4.7._
     */
    function toUint240(uint256 value) internal pure returns (uint240) {
        require(value <= type(uint240).max, "SafeCast: value doesn't fit in 240 bits");
        return uint240(value);
    }

    /**
     * @dev Returns the downcasted uint232 from uint256, reverting on
     * overflow (when the input is greater than largest uint232).
     *
     * Counterpart to Solidity's `uint232` operator.
     *
     * Requirements:
     *
     * - input must fit into 232 bits
     *
     * _Available since v4.7._
     */
    function toUint232(uint256 value) internal pure returns (uint232) {
        require(value <= type(uint232).max, "SafeCast: value doesn't fit in 232 bits");
        return uint232(value);
    }

    /**
     * @dev Returns the downcasted uint224 from uint256, reverting on
     * overflow (when the input is greater than largest uint224).
     *
     * Counterpart to Solidity's `uint224` operator.
     *
     * Requirements:
     *
     * - input must fit into 224 bits
     *
     * _Available since v4.2._
     */
    function toUint224(uint256 value) internal pure returns (uint224) {
        require(value <= type(uint224).max, "SafeCast: value doesn't fit in 224 bits");
        return uint224(value);
    }

    /**
     * @dev Returns the downcasted uint216 from uint256, reverting on
     * overflow (when the input is greater than largest uint216).
     *
     * Counterpart to Solidity's `uint216` operator.
     *
     * Requirements:
     *
     * - input must fit into 216 bits
     *
     * _Available since v4.7._
     */
    function toUint216(uint256 value) internal pure returns (uint216) {
        require(value <= type(uint216).max, "SafeCast: value doesn't fit in 216 bits");
        return uint216(value);
    }

    /**
     * @dev Returns the downcasted uint208 from uint256, reverting on
     * overflow (when the input is greater than largest uint208).
     *
     * Counterpart to Solidity's `uint208` operator.
     *
     * Requirements:
     *
     * - input must fit into 208 bits
     *
     * _Available since v4.7._
     */
    function toUint208(uint256 value) internal pure returns (uint208) {
        require(value <= type(uint208).max, "SafeCast: value doesn't fit in 208 bits");
        return uint208(value);
    }

    /**
     * @dev Returns the downcasted uint200 from uint256, reverting on
     * overflow (when the input is greater than largest uint200).
     *
     * Counterpart to Solidity's `uint200` operator.
     *
     * Requirements:
     *
     * - input must fit into 200 bits
     *
     * _Available since v4.7._
     */
    function toUint200(uint256 value) internal pure returns (uint200) {
        require(value <= type(uint200).max, "SafeCast: value doesn't fit in 200 bits");
        return uint200(value);
    }

    /**
     * @dev Returns the downcasted uint192 from uint256, reverting on
     * overflow (when the input is greater than largest uint192).
     *
     * Counterpart to Solidity's `uint192` operator.
     *
     * Requirements:
     *
     * - input must fit into 192 bits
     *
     * _Available since v4.7._
     */
    function toUint192(uint256 value) internal pure returns (uint192) {
        require(value <= type(uint192).max, "SafeCast: value doesn't fit in 192 bits");
        return uint192(value);
    }

    /**
     * @dev Returns the downcasted uint184 from uint256, reverting on
     * overflow (when the input is greater than largest uint184).
     *
     * Counterpart to Solidity's `uint184` operator.
     *
     * Requirements:
     *
     * - input must fit into 184 bits
     *
     * _Available since v4.7._
     */
    function toUint184(uint256 value) internal pure returns (uint184) {
        require(value <= type(uint184).max, "SafeCast: value doesn't fit in 184 bits");
        return uint184(value);
    }

    /**
     * @dev Returns the downcasted uint176 from uint256, reverting on
     * overflow (when the input is greater than largest uint176).
     *
     * Counterpart to Solidity's `uint176` operator.
     *
     * Requirements:
     *
     * - input must fit into 176 bits
     *
     * _Available since v4.7._
     */
    function toUint176(uint256 value) internal pure returns (uint176) {
        require(value <= type(uint176).max, "SafeCast: value doesn't fit in 176 bits");
        return uint176(value);
    }

    /**
     * @dev Returns the downcasted uint168 from uint256, reverting on
     * overflow (when the input is greater than largest uint168).
     *
     * Counterpart to Solidity's `uint168` operator.
     *
     * Requirements:
     *
     * - input must fit into 168 bits
     *
     * _Available since v4.7._
     */
    function toUint168(uint256 value) internal pure returns (uint168) {
        require(value <= type(uint168).max, "SafeCast: value doesn't fit in 168 bits");
        return uint168(value);
    }

    /**
     * @dev Returns the downcasted uint160 from uint256, reverting on
     * overflow (when the input is greater than largest uint160).
     *
     * Counterpart to Solidity's `uint160` operator.
     *
     * Requirements:
     *
     * - input must fit into 160 bits
     *
     * _Available since v4.7._
     */
    function toUint160(uint256 value) internal pure returns (uint160) {
        require(value <= type(uint160).max, "SafeCast: value doesn't fit in 160 bits");
        return uint160(value);
    }

    /**
     * @dev Returns the downcasted uint152 from uint256, reverting on
     * overflow (when the input is greater than largest uint152).
     *
     * Counterpart to Solidity's `uint152` operator.
     *
     * Requirements:
     *
     * - input must fit into 152 bits
     *
     * _Available since v4.7._
     */
    function toUint152(uint256 value) internal pure returns (uint152) {
        require(value <= type(uint152).max, "SafeCast: value doesn't fit in 152 bits");
        return uint152(value);
    }

    /**
     * @dev Returns the downcasted uint144 from uint256, reverting on
     * overflow (when the input is greater than largest uint144).
     *
     * Counterpart to Solidity's `uint144` operator.
     *
     * Requirements:
     *
     * - input must fit into 144 bits
     *
     * _Available since v4.7._
     */
    function toUint144(uint256 value) internal pure returns (uint144) {
        require(value <= type(uint144).max, "SafeCast: value doesn't fit in 144 bits");
        return uint144(value);
    }

    /**
     * @dev Returns the downcasted uint136 from uint256, reverting on
     * overflow (when the input is greater than largest uint136).
     *
     * Counterpart to Solidity's `uint136` operator.
     *
     * Requirements:
     *
     * - input must fit into 136 bits
     *
     * _Available since v4.7._
     */
    function toUint136(uint256 value) internal pure returns (uint136) {
        require(value <= type(uint136).max, "SafeCast: value doesn't fit in 136 bits");
        return uint136(value);
    }

    /**
     * @dev Returns the downcasted uint128 from uint256, reverting on
     * overflow (when the input is greater than largest uint128).
     *
     * Counterpart to Solidity's `uint128` operator.
     *
     * Requirements:
     *
     * - input must fit into 128 bits
     *
     * _Available since v2.5._
     */
    function toUint128(uint256 value) internal pure returns (uint128) {
        require(value <= type(uint128).max, "SafeCast: value doesn't fit in 128 bits");
        return uint128(value);
    }

    /**
     * @dev Returns the downcasted uint120 from uint256, reverting on
     * overflow (when the input is greater than largest uint120).
     *
     * Counterpart to Solidity's `uint120` operator.
     *
     * Requirements:
     *
     * - input must fit into 120 bits
     *
     * _Available since v4.7._
     */
    function toUint120(uint256 value) internal pure returns (uint120) {
        require(value <= type(uint120).max, "SafeCast: value doesn't fit in 120 bits");
        return uint120(value);
    }

    /**
     * @dev Returns the downcasted uint112 from uint256, reverting on
     * overflow (when the input is greater than largest uint112).
     *
     * Counterpart to Solidity's `uint112` operator.
     *
     * Requirements:
     *
     * - input must fit into 112 bits
     *
     * _Available since v4.7._
     */
    function toUint112(uint256 value) internal pure returns (uint112) {
        require(value <= type(uint112).max, "SafeCast: value doesn't fit in 112 bits");
        return uint112(value);
    }

    /**
     * @dev Returns the downcasted uint104 from uint256, reverting on
     * overflow (when the input is greater than largest uint104).
     *
     * Counterpart to Solidity's `uint104` operator.
     *
     * Requirements:
     *
     * - input must fit into 104 bits
     *
     * _Available since v4.7._
     */
    function toUint104(uint256 value) internal pure returns (uint104) {
        require(value <= type(uint104).max, "SafeCast: value doesn't fit in 104 bits");
        return uint104(value);
    }

    /**
     * @dev Returns the downcasted uint96 from uint256, reverting on
     * overflow (when the input is greater than largest uint96).
     *
     * Counterpart to Solidity's `uint96` operator.
     *
     * Requirements:
     *
     * - input must fit into 96 bits
     *
     * _Available since v4.2._
     */
    function toUint96(uint256 value) internal pure returns (uint96) {
        require(value <= type(uint96).max, "SafeCast: value doesn't fit in 96 bits");
        return uint96(value);
    }

    /**
     * @dev Returns the downcasted uint88 from uint256, reverting on
     * overflow (when the input is greater than largest uint88).
     *
     * Counterpart to Solidity's `uint88` operator.
     *
     * Requirements:
     *
     * - input must fit into 88 bits
     *
     * _Available since v4.7._
     */
    function toUint88(uint256 value) internal pure returns (uint88) {
        require(value <= type(uint88).max, "SafeCast: value doesn't fit in 88 bits");
        return uint88(value);
    }

    /**
     * @dev Returns the downcasted uint80 from uint256, reverting on
     * overflow (when the input is greater than largest uint80).
     *
     * Counterpart to Solidity's `uint80` operator.
     *
     * Requirements:
     *
     * - input must fit into 80 bits
     *
     * _Available since v4.7._
     */
    function toUint80(uint256 value) internal pure returns (uint80) {
        require(value <= type(uint80).max, "SafeCast: value doesn't fit in 80 bits");
        return uint80(value);
    }

    /**
     * @dev Returns the downcasted uint72 from uint256, reverting on
     * overflow (when the input is greater than largest uint72).
     *
     * Counterpart to Solidity's `uint72` operator.
     *
     * Requirements:
     *
     * - input must fit into 72 bits
     *
     * _Available since v4.7._
     */
    function toUint72(uint256 value) internal pure returns (uint72) {
        require(value <= type(uint72).max, "SafeCast: value doesn't fit in 72 bits");
        return uint72(value);
    }

    /**
     * @dev Returns the downcasted uint64 from uint256, reverting on
     * overflow (when the input is greater than largest uint64).
     *
     * Counterpart to Solidity's `uint64` operator.
     *
     * Requirements:
     *
     * - input must fit into 64 bits
     *
     * _Available since v2.5._
     */
    function toUint64(uint256 value) internal pure returns (uint64) {
        require(value <= type(uint64).max, "SafeCast: value doesn't fit in 64 bits");
        return uint64(value);
    }

    /**
     * @dev Returns the downcasted uint56 from uint256, reverting on
     * overflow (when the input is greater than largest uint56).
     *
     * Counterpart to Solidity's `uint56` operator.
     *
     * Requirements:
     *
     * - input must fit into 56 bits
     *
     * _Available since v4.7._
     */
    function toUint56(uint256 value) internal pure returns (uint56) {
        require(value <= type(uint56).max, "SafeCast: value doesn't fit in 56 bits");
        return uint56(value);
    }

    /**
     * @dev Returns the downcasted uint48 from uint256, reverting on
     * overflow (when the input is greater than largest uint48).
     *
     * Counterpart to Solidity's `uint48` operator.
     *
     * Requirements:
     *
     * - input must fit into 48 bits
     *
     * _Available since v4.7._
     */
    function toUint48(uint256 value) internal pure returns (uint48) {
        require(value <= type(uint48).max, "SafeCast: value doesn't fit in 48 bits");
        return uint48(value);
    }

    /**
     * @dev Returns the downcasted uint40 from uint256, reverting on
     * overflow (when the input is greater than largest uint40).
     *
     * Counterpart to Solidity's `uint40` operator.
     *
     * Requirements:
     *
     * - input must fit into 40 bits
     *
     * _Available since v4.7._
     */
    function toUint40(uint256 value) internal pure returns (uint40) {
        require(value <= type(uint40).max, "SafeCast: value doesn't fit in 40 bits");
        return uint40(value);
    }

    /**
     * @dev Returns the downcasted uint32 from uint256, reverting on
     * overflow (when the input is greater than largest uint32).
     *
     * Counterpart to Solidity's `uint32` operator.
     *
     * Requirements:
     *
     * - input must fit into 32 bits
     *
     * _Available since v2.5._
     */
    function toUint32(uint256 value) internal pure returns (uint32) {
        require(value <= type(uint32).max, "SafeCast: value doesn't fit in 32 bits");
        return uint32(value);
    }

    /**
     * @dev Returns the downcasted uint24 from uint256, reverting on
     * overflow (when the input is greater than largest uint24).
     *
     * Counterpart to Solidity's `uint24` operator.
     *
     * Requirements:
     *
     * - input must fit into 24 bits
     *
     * _Available since v4.7._
     */
    function toUint24(uint256 value) internal pure returns (uint24) {
        require(value <= type(uint24).max, "SafeCast: value doesn't fit in 24 bits");
        return uint24(value);
    }

    /**
     * @dev Returns the downcasted uint16 from uint256, reverting on
     * overflow (when the input is greater than largest uint16).
     *
     * Counterpart to Solidity's `uint16` operator.
     *
     * Requirements:
     *
     * - input must fit into 16 bits
     *
     * _Available since v2.5._
     */
    function toUint16(uint256 value) internal pure returns (uint16) {
        require(value <= type(uint16).max, "SafeCast: value doesn't fit in 16 bits");
        return uint16(value);
    }

    /**
     * @dev Returns the downcasted uint8 from uint256, reverting on
     * overflow (when the input is greater than largest uint8).
     *
     * Counterpart to Solidity's `uint8` operator.
     *
     * Requirements:
     *
     * - input must fit into 8 bits
     *
     * _Available since v2.5._
     */
    function toUint8(uint256 value) internal pure returns (uint8) {
        require(value <= type(uint8).max, "SafeCast: value doesn't fit in 8 bits");
        return uint8(value);
    }

    /**
     * @dev Converts a signed int256 into an unsigned uint256.
     *
     * Requirements:
     *
     * - input must be greater than or equal to 0.
     *
     * _Available since v3.0._
     */
    function toUint256(int256 value) internal pure returns (uint256) {
        require(value >= 0, "SafeCast: value must be positive");
        return uint256(value);
    }

    /**
     * @dev Returns the downcasted int248 from int256, reverting on
     * overflow (when the input is less than smallest int248 or
     * greater than largest int248).
     *
     * Counterpart to Solidity's `int248` operator.
     *
     * Requirements:
     *
     * - input must fit into 248 bits
     *
     * _Available since v4.7._
     */
    function toInt248(int256 value) internal pure returns (int248 downcasted) {
        downcasted = int248(value);
        require(downcasted == value, "SafeCast: value doesn't fit in 248 bits");
    }

    /**
     * @dev Returns the downcasted int240 from int256, reverting on
     * overflow (when the input is less than smallest int240 or
     * greater than largest int240).
     *
     * Counterpart to Solidity's `int240` operator.
     *
     * Requirements:
     *
     * - input must fit into 240 bits
     *
     * _Available since v4.7._
     */
    function toInt240(int256 value) internal pure returns (int240 downcasted) {
        downcasted = int240(value);
        require(downcasted == value, "SafeCast: value doesn't fit in 240 bits");
    }

    /**
     * @dev Returns the downcasted int232 from int256, reverting on
     * overflow (when the input is less than smallest int232 or
     * greater than largest int232).
     *
     * Counterpart to Solidity's `int232` operator.
     *
     * Requirements:
     *
     * - input must fit into 232 bits
     *
     * _Available since v4.7._
     */
    function toInt232(int256 value) internal pure returns (int232 downcasted) {
        downcasted = int232(value);
        require(downcasted == value, "SafeCast: value doesn't fit in 232 bits");
    }

    /**
     * @dev Returns the downcasted int224 from int256, reverting on
     * overflow (when the input is less than smallest int224 or
     * greater than largest int224).
     *
     * Counterpart to Solidity's `int224` operator.
     *
     * Requirements:
     *
     * - input must fit into 224 bits
     *
     * _Available since v4.7._
     */
    function toInt224(int256 value) internal pure returns (int224 downcasted) {
        downcasted = int224(value);
        require(downcasted == value, "SafeCast: value doesn't fit in 224 bits");
    }

    /**
     * @dev Returns the downcasted int216 from int256, reverting on
     * overflow (when the input is less than smallest int216 or
     * greater than largest int216).
     *
     * Counterpart to Solidity's `int216` operator.
     *
     * Requirements:
     *
     * - input must fit into 216 bits
     *
     * _Available since v4.7._
     */
    function toInt216(int256 value) internal pure returns (int216 downcasted) {
        downcasted = int216(value);
        require(downcasted == value, "SafeCast: value doesn't fit in 216 bits");
    }

    /**
     * @dev Returns the downcasted int208 from int256, reverting on
     * overflow (when the input is less than smallest int208 or
     * greater than largest int208).
     *
     * Counterpart to Solidity's `int208` operator.
     *
     * Requirements:
     *
     * - input must fit into 208 bits
     *
     * _Available since v4.7._
     */
    function toInt208(int256 value) internal pure returns (int208 downcasted) {
        downcasted = int208(value);
        require(downcasted == value, "SafeCast: value doesn't fit in 208 bits");
    }

    /**
     * @dev Returns the downcasted int200 from int256, reverting on
     * overflow (when the input is less than smallest int200 or
     * greater than largest int200).
     *
     * Counterpart to Solidity's `int200` operator.
     *
     * Requirements:
     *
     * - input must fit into 200 bits
     *
     * _Available since v4.7._
     */
    function toInt200(int256 value) internal pure returns (int200 downcasted) {
        downcasted = int200(value);
        require(downcasted == value, "SafeCast: value doesn't fit in 200 bits");
    }

    /**
     * @dev Returns the downcasted int192 from int256, reverting on
     * overflow (when the input is less than smallest int192 or
     * greater than largest int192).
     *
     * Counterpart to Solidity's `int192` operator.
     *
     * Requirements:
     *
     * - input must fit into 192 bits
     *
     * _Available since v4.7._
     */
    function toInt192(int256 value) internal pure returns (int192 downcasted) {
        downcasted = int192(value);
        require(downcasted == value, "SafeCast: value doesn't fit in 192 bits");
    }

    /**
     * @dev Returns the downcasted int184 from int256, reverting on
     * overflow (when the input is less than smallest int184 or
     * greater than largest int184).
     *
     * Counterpart to Solidity's `int184` operator.
     *
     * Requirements:
     *
     * - input must fit into 184 bits
     *
     * _Available since v4.7._
     */
    function toInt184(int256 value) internal pure returns (int184 downcasted) {
        downcasted = int184(value);
        require(downcasted == value, "SafeCast: value doesn't fit in 184 bits");
    }

    /**
     * @dev Returns the downcasted int176 from int256, reverting on
     * overflow (when the input is less than smallest int176 or
     * greater than largest int176).
     *
     * Counterpart to Solidity's `int176` operator.
     *
     * Requirements:
     *
     * - input must fit into 176 bits
     *
     * _Available since v4.7._
     */
    function toInt176(int256 value) internal pure returns (int176 downcasted) {
        downcasted = int176(value);
        require(downcasted == value, "SafeCast: value doesn't fit in 176 bits");
    }

    /**
     * @dev Returns the downcasted int168 from int256, reverting on
     * overflow (when the input is less than smallest int168 or
     * greater than largest int168).
     *
     * Counterpart to Solidity's `int168` operator.
     *
     * Requirements:
     *
     * - input must fit into 168 bits
     *
     * _Available since v4.7._
     */
    function toInt168(int256 value) internal pure returns (int168 downcasted) {
        downcasted = int168(value);
        require(downcasted == value, "SafeCast: value doesn't fit in 168 bits");
    }

    /**
     * @dev Returns the downcasted int160 from int256, reverting on
     * overflow (when the input is less than smallest int160 or
     * greater than largest int160).
     *
     * Counterpart to Solidity's `int160` operator.
     *
     * Requirements:
     *
     * - input must fit into 160 bits
     *
     * _Available since v4.7._
     */
    function toInt160(int256 value) internal pure returns (int160 downcasted) {
        downcasted = int160(value);
        require(downcasted == value, "SafeCast: value doesn't fit in 160 bits");
    }

    /**
     * @dev Returns the downcasted int152 from int256, reverting on
     * overflow (when the input is less than smallest int152 or
     * greater than largest int152).
     *
     * Counterpart to Solidity's `int152` operator.
     *
     * Requirements:
     *
     * - input must fit into 152 bits
     *
     * _Available since v4.7._
     */
    function toInt152(int256 value) internal pure returns (int152 downcasted) {
        downcasted = int152(value);
        require(downcasted == value, "SafeCast: value doesn't fit in 152 bits");
    }

    /**
     * @dev Returns the downcasted int144 from int256, reverting on
     * overflow (when the input is less than smallest int144 or
     * greater than largest int144).
     *
     * Counterpart to Solidity's `int144` operator.
     *
     * Requirements:
     *
     * - input must fit into 144 bits
     *
     * _Available since v4.7._
     */
    function toInt144(int256 value) internal pure returns (int144 downcasted) {
        downcasted = int144(value);
        require(downcasted == value, "SafeCast: value doesn't fit in 144 bits");
    }

    /**
     * @dev Returns the downcasted int136 from int256, reverting on
     * overflow (when the input is less than smallest int136 or
     * greater than largest int136).
     *
     * Counterpart to Solidity's `int136` operator.
     *
     * Requirements:
     *
     * - input must fit into 136 bits
     *
     * _Available since v4.7._
     */
    function toInt136(int256 value) internal pure returns (int136 downcasted) {
        downcasted = int136(value);
        require(downcasted == value, "SafeCast: value doesn't fit in 136 bits");
    }

    /**
     * @dev Returns the downcasted int128 from int256, reverting on
     * overflow (when the input is less than smallest int128 or
     * greater than largest int128).
     *
     * Counterpart to Solidity's `int128` operator.
     *
     * Requirements:
     *
     * - input must fit into 128 bits
     *
     * _Available since v3.1._
     */
    function toInt128(int256 value) internal pure returns (int128 downcasted) {
        downcasted = int128(value);
        require(downcasted == value, "SafeCast: value doesn't fit in 128 bits");
    }

    /**
     * @dev Returns the downcasted int120 from int256, reverting on
     * overflow (when the input is less than smallest int120 or
     * greater than largest int120).
     *
     * Counterpart to Solidity's `int120` operator.
     *
     * Requirements:
     *
     * - input must fit into 120 bits
     *
     * _Available since v4.7._
     */
    function toInt120(int256 value) internal pure returns (int120 downcasted) {
        downcasted = int120(value);
        require(downcasted == value, "SafeCast: value doesn't fit in 120 bits");
    }

    /**
     * @dev Returns the downcasted int112 from int256, reverting on
     * overflow (when the input is less than smallest int112 or
     * greater than largest int112).
     *
     * Counterpart to Solidity's `int112` operator.
     *
     * Requirements:
     *
     * - input must fit into 112 bits
     *
     * _Available since v4.7._
     */
    function toInt112(int256 value) internal pure returns (int112 downcasted) {
        downcasted = int112(value);
        require(downcasted == value, "SafeCast: value doesn't fit in 112 bits");
    }

    /**
     * @dev Returns the downcasted int104 from int256, reverting on
     * overflow (when the input is less than smallest int104 or
     * greater than largest int104).
     *
     * Counterpart to Solidity's `int104` operator.
     *
     * Requirements:
     *
     * - input must fit into 104 bits
     *
     * _Available since v4.7._
     */
    function toInt104(int256 value) internal pure returns (int104 downcasted) {
        downcasted = int104(value);
        require(downcasted == value, "SafeCast: value doesn't fit in 104 bits");
    }

    /**
     * @dev Returns the downcasted int96 from int256, reverting on
     * overflow (when the input is less than smallest int96 or
     * greater than largest int96).
     *
     * Counterpart to Solidity's `int96` operator.
     *
     * Requirements:
     *
     * - input must fit into 96 bits
     *
     * _Available since v4.7._
     */
    function toInt96(int256 value) internal pure returns (int96 downcasted) {
        downcasted = int96(value);
        require(downcasted == value, "SafeCast: value doesn't fit in 96 bits");
    }

    /**
     * @dev Returns the downcasted int88 from int256, reverting on
     * overflow (when the input is less than smallest int88 or
     * greater than largest int88).
     *
     * Counterpart to Solidity's `int88` operator.
     *
     * Requirements:
     *
     * - input must fit into 88 bits
     *
     * _Available since v4.7._
     */
    function toInt88(int256 value) internal pure returns (int88 downcasted) {
        downcasted = int88(value);
        require(downcasted == value, "SafeCast: value doesn't fit in 88 bits");
    }

    /**
     * @dev Returns the downcasted int80 from int256, reverting on
     * overflow (when the input is less than smallest int80 or
     * greater than largest int80).
     *
     * Counterpart to Solidity's `int80` operator.
     *
     * Requirements:
     *
     * - input must fit into 80 bits
     *
     * _Available since v4.7._
     */
    function toInt80(int256 value) internal pure returns (int80 downcasted) {
        downcasted = int80(value);
        require(downcasted == value, "SafeCast: value doesn't fit in 80 bits");
    }

    /**
     * @dev Returns the downcasted int72 from int256, reverting on
     * overflow (when the input is less than smallest int72 or
     * greater than largest int72).
     *
     * Counterpart to Solidity's `int72` operator.
     *
     * Requirements:
     *
     * - input must fit into 72 bits
     *
     * _Available since v4.7._
     */
    function toInt72(int256 value) internal pure returns (int72 downcasted) {
        downcasted = int72(value);
        require(downcasted == value, "SafeCast: value doesn't fit in 72 bits");
    }

    /**
     * @dev Returns the downcasted int64 from int256, reverting on
     * overflow (when the input is less than smallest int64 or
     * greater than largest int64).
     *
     * Counterpart to Solidity's `int64` operator.
     *
     * Requirements:
     *
     * - input must fit into 64 bits
     *
     * _Available since v3.1._
     */
    function toInt64(int256 value) internal pure returns (int64 downcasted) {
        downcasted = int64(value);
        require(downcasted == value, "SafeCast: value doesn't fit in 64 bits");
    }

    /**
     * @dev Returns the downcasted int56 from int256, reverting on
     * overflow (when the input is less than smallest int56 or
     * greater than largest int56).
     *
     * Counterpart to Solidity's `int56` operator.
     *
     * Requirements:
     *
     * - input must fit into 56 bits
     *
     * _Available since v4.7._
     */
    function toInt56(int256 value) internal pure returns (int56 downcasted) {
        downcasted = int56(value);
        require(downcasted == value, "SafeCast: value doesn't fit in 56 bits");
    }

    /**
     * @dev Returns the downcasted int48 from int256, reverting on
     * overflow (when the input is less than smallest int48 or
     * greater than largest int48).
     *
     * Counterpart to Solidity's `int48` operator.
     *
     * Requirements:
     *
     * - input must fit into 48 bits
     *
     * _Available since v4.7._
     */
    function toInt48(int256 value) internal pure returns (int48 downcasted) {
        downcasted = int48(value);
        require(downcasted == value, "SafeCast: value doesn't fit in 48 bits");
    }

    /**
     * @dev Returns the downcasted int40 from int256, reverting on
     * overflow (when the input is less than smallest int40 or
     * greater than largest int40).
     *
     * Counterpart to Solidity's `int40` operator.
     *
     * Requirements:
     *
     * - input must fit into 40 bits
     *
     * _Available since v4.7._
     */
    function toInt40(int256 value) internal pure returns (int40 downcasted) {
        downcasted = int40(value);
        require(downcasted == value, "SafeCast: value doesn't fit in 40 bits");
    }

    /**
     * @dev Returns the downcasted int32 from int256, reverting on
     * overflow (when the input is less than smallest int32 or
     * greater than largest int32).
     *
     * Counterpart to Solidity's `int32` operator.
     *
     * Requirements:
     *
     * - input must fit into 32 bits
     *
     * _Available since v3.1._
     */
    function toInt32(int256 value) internal pure returns (int32 downcasted) {
        downcasted = int32(value);
        require(downcasted == value, "SafeCast: value doesn't fit in 32 bits");
    }

    /**
     * @dev Returns the downcasted int24 from int256, reverting on
     * overflow (when the input is less than smallest int24 or
     * greater than largest int24).
     *
     * Counterpart to Solidity's `int24` operator.
     *
     * Requirements:
     *
     * - input must fit into 24 bits
     *
     * _Available since v4.7._
     */
    function toInt24(int256 value) internal pure returns (int24 downcasted) {
        downcasted = int24(value);
        require(downcasted == value, "SafeCast: value doesn't fit in 24 bits");
    }

    /**
     * @dev Returns the downcasted int16 from int256, reverting on
     * overflow (when the input is less than smallest int16 or
     * greater than largest int16).
     *
     * Counterpart to Solidity's `int16` operator.
     *
     * Requirements:
     *
     * - input must fit into 16 bits
     *
     * _Available since v3.1._
     */
    function toInt16(int256 value) internal pure returns (int16 downcasted) {
        downcasted = int16(value);
        require(downcasted == value, "SafeCast: value doesn't fit in 16 bits");
    }

    /**
     * @dev Returns the downcasted int8 from int256, reverting on
     * overflow (when the input is less than smallest int8 or
     * greater than largest int8).
     *
     * Counterpart to Solidity's `int8` operator.
     *
     * Requirements:
     *
     * - input must fit into 8 bits
     *
     * _Available since v3.1._
     */
    function toInt8(int256 value) internal pure returns (int8 downcasted) {
        downcasted = int8(value);
        require(downcasted == value, "SafeCast: value doesn't fit in 8 bits");
    }

    /**
     * @dev Converts an unsigned uint256 into a signed int256.
     *
     * Requirements:
     *
     * - input must be less than or equal to maxInt256.
     *
     * _Available since v3.0._
     */
    function toInt256(uint256 value) internal pure returns (int256) {
        // Note: Unsafe cast below is okay because `type(int256).max` is guaranteed to be positive
        require(value <= uint256(type(int256).max), "SafeCast: value doesn't fit in an int256");
        return int256(value);
    }
}


// File contracts/lib/Types.sol



pragma solidity 0.8.9;

library Types {
    /// @notice data structure of dealer
    struct State {
        // primary asset, ERC20
        address primaryAsset;
        // secondary asset, ERC20
        address secondaryAsset;
        // credit, gained by deposit assets
        mapping(address => int256) primaryCredit;
        mapping(address => uint256) secondaryCredit;
        // withdrawal request time lock
        uint256 withdrawTimeLock;
        // pending primary asset withdrawal amount
        mapping(address => uint256) pendingPrimaryWithdraw;
        // pending secondary asset withdrawal amount
        mapping(address => uint256) pendingSecondaryWithdraw;
        // withdrawal request executable timestamp
        mapping(address => uint256) withdrawExecutionTimestamp;
        // perpetual contract risk parameters
        mapping(address => Types.RiskParams) perpRiskParams;
        // perpetual contract registry, for view
        address[] registeredPerp;
        // all open positions of a trader
        mapping(address => address[]) openPositions;
        // For offchain pnl calculation, serial number +1 whenever 
        // position is fully closed.
        // trader => perpetual contract address => current serial Num
        mapping(address => mapping(address => uint256)) positionSerialNum;
        // filled amount of orders
        mapping(bytes32 => uint256) orderFilledPaperAmount;
        // valid order sender registry
        mapping(address => bool) validOrderSender;
        // operator registry
        // client => operator => isValid
        mapping(address => mapping(address => bool)) operatorRegistry;
        // insurance account
        address insurance;
        // funding rate keeper, normally an EOA account
        address fundingRateKeeper;
    }

    struct Order {
        // address of perpetual market
        address perp;
        /*
            Signer is trader, the identity of trading behavior,
            whose balance will be changed.
            Normally it should be an EOA account and the 
            order is valid only if the signer signed it.
            If the signer is a contract, it must implement
            isValidPerpetualOperator(address) returns(bool).
            The order is valid only if one of the valid operators
            is an EOA account and signed the order.
        */
        address signer;
        // positive(negative) if you want to open long(short) position
        int128 paperAmount;
        // negative(positive) if you want to open long(short) position
        int128 creditAmount;
        /*
            ╔═══════════════════╤═════════╗
            ║ info component    │ type    ║
            ╟───────────────────┼─────────╢
            ║ makerFeeRate      │ int64   ║
            ║ takerFeeRate      │ int64   ║
            ║ expiration        │ uint64  ║
            ║ nonce             │ uint64  ║
            ╚═══════════════════╧═════════╝
        */
        bytes32 info;
    }

    // EIP712 component
    bytes32 public constant ORDER_TYPEHASH =
        keccak256(
            "Order(address perp,address signer,int128 paperAmount,int128 creditAmount,bytes32 info)"
        );

    /// @notice risk params of a perpetual market
    struct RiskParams {
        /*
            Liquidation will happen when
            netValue < exposure * liquidationThreshold
            The lower liquidationThreshold, the higher leverage.
            1E18 based decimal.
        */
        uint256 liquidationThreshold;
        /*
            The discount rate for the liquidation.
            markPrice * (1 - liquidationPriceOff) when liquidate long position
            markPrice * (1 + liquidationPriceOff) when liquidate short position
            1e18 based decimal.
        */
        uint256 liquidationPriceOff;
        // The insurance fee rate charged from liquidation. 
        // 1E18 based decimal.
        uint256 insuranceFeeRate;
        // price source of mark price
        address markPriceSource;
        // perpetual market name
        string name;
        // if the market is activited
        bool isRegistered;
    }

    /// @notice Match result obtained by parsing and validating tradeData.
    /// Contains arrays of balance change.
    struct MatchResult {
        address[] traderList;
        int256[] paperChangeList;
        int256[] creditChangeList;
        int256 orderSenderFee;
    }

    uint256 constant ONE = 10**18;
}


// File contracts/intf/IDealer.sol



pragma solidity 0.8.9;

interface IDealer {
    /// @notice Deposit fund to get credit for trading
    /// @param primaryAmount is the amount of primary asset you want to deposit.
    /// @param secondaryAmount is the amount of secondary asset you want to deposit.
    /// @param to is the account you want to deposit to.
    function deposit(
        uint256 primaryAmount,
        uint256 secondaryAmount,
        address to
    ) external;

    /// @notice Submit withdrawal request, which can be executed after
    /// the timelock. The main purpose of this function is to avoid the
    /// failure of counterparty caused by withdrawal.
    /// @param primaryAmount is the amount of primary asset you want to withdraw.
    /// @param secondaryAmount is the amount of secondary asset you want to withdraw.
    function requestWithdraw(uint256 primaryAmount, uint256 secondaryAmount)
        external;

    /// @notice Execute the withdrawal request.
    /// @param to is the address receiving assets.
    /// @param isInternal Only internal credit transfers will be made,
    /// and ERC20 transfers will not happen.
    function executeWithdraw(address to, bool isInternal) external;

    /// @notice Help perpetual contract parse tradeData and return
    /// the balance changes of each trader.
    /// @dev only perpetual contract can call this function
    /// @param orderSender is the one who submit tradeData.
    /// @param tradeData contains orders, signatures and match info.
    function approveTrade(address orderSender, bytes calldata tradeData)
        external
        returns (
            address[] memory traderList,
            int256[] memory paperChangeList,
            int256[] memory creditChangeList
        );

    /// @notice Check if the trader's margin is enough (>= maintenance margin).
    /// If so, the trader is "safe".
    /// The trader's positions under all markets will be liquidated if he is
    /// not safe.
    function isSafe(address trader) external view returns (bool);

    /// @notice Check if a list of traders are safe.
    /// @dev This function is more gas effective than isSafe, by caching
    /// mark prices.
    function isAllSafe(address[] calldata traderList)
        external
        view
        returns (bool);

    /// @notice Get funding rate of a perpetual market.
    /// Funding rate is a 1e18 based decimal.
    function getFundingRate(address perp) external view returns (int256);

    /// @notice Update multiple funding rate at once.
    /// Can only be called by funding rate keeper.
    function updateFundingRate(
        address[] calldata perpList,
        int256[] calldata rateList
    ) external;

    /// @notice Calculate the paper and credit change of liquidator and
    /// liquidated trader.
    /// @dev Only perpetual contract can call this function.
    /// liqtor is short for liquidator, liqed is short for liquidated trader.
    /// @param liquidator is the one who will take over positions.
    /// @param liquidatedTrader is the one who is being liquidated.
    /// @param requestPaperAmount is the size that the liquidator wants to take.
    /// Positive if the position is long, negative if the position is short.
    function requestLiquidation(
        address executor,
        address liquidator,
        address liquidatedTrader,
        int256 requestPaperAmount
    )
        external
        returns (
            int256 liqtorPaperChange,
            int256 liqtorCreditChange,
            int256 liqedPaperChange,
            int256 liqedCreditChange
        );

    /// @notice Transfer all bad debt to insurance account,
    /// including primary and secondary balances.
    function handleBadDebt(address liquidatedTrader) external;

    /// @notice Register the trader's position into dealer.
    /// @dev Only perpetual contract can call this function when
    /// someone's position is opened.
    function openPosition(address trader) external;

    /// @notice Accrual realized pnl and remove the trader's position from dealer.
    /// @dev Only perpetual contract can call this function when
    /// someone's position is closed.
    function realizePnl(address trader, int256 pnl) external;

    /// @notice Register operator.
    /// The operator can sign order on your behalf.
    function setOperator(address operator, bool isValid) external;

    /// @param perp the address of perpetual contract market
    function getRiskParams(address perp)
        external
        view
        returns (Types.RiskParams memory params);

    /// @notice Return all registered perpetual contract market.
    function getAllRegisteredPerps() external view returns (address[] memory);

    /// @notice Return mark price of a perpetual market.
    /// price is a 1e18 based decimal.
    function getMarkPrice(address perp) external view returns (uint256);

    /// @notice Get all open positions of the trader.
    function getPositions(address trader)
        external
        view
        returns (address[] memory);

    /// @notice Return the credit details of the trader.
    /// You cannot use credit as net value or net margin of a trader.
    /// The net value of positions would also be included.
    function getCreditOf(address trader)
        external
        view
        returns (
            int256 primaryCredit,
            uint256 secondaryCredit,
            uint256 pendingPrimaryWithdraw,
            uint256 pendingSecondaryWithdraw,
            uint256 executionTimestamp
        );

    /// @notice Get the risk profile data of a trader.
    /// @return netValue net value of trader including credit amount
    /// @return exposure open position value of the trader across all markets
    function getTraderRisk(address trader)
        external
        view
        returns (
            int256 netValue,
            uint256 exposure,
            uint256 maintenanceMargin
        );

    /// @notice Get liquidation price of a position
    /// @dev This function is for directional use. The margin of error is typically
    /// within 10 wei.
    /// @return liquidationPrice equals 0 if there is no liquidation price.
    function getLiquidationPrice(address trader, address perp)
        external
        view
        returns (uint256 liquidationPrice);

    /// @notice a view version of requestLiquidation, liquidators can use
    /// this function to check how much you have to pay in advance.
    function getLiquidationCost(
        address perp,
        address liquidatedTrader,
        int256 requestPaperAmount
    )
        external
        view
        returns (int256 liqtorPaperChange, int256 liqtorCreditChange);

    /// @notice Get filled paper amount of an order to avoid double matching.
    /// @return filledAmount includes paper amount
    function getOrderFilledAmount(bytes32 orderHash)
        external
        view
        returns (uint256 filledAmount);

    /// @notice check if order sender is valid
    function isOrderSenderValid(address orderSender)
        external
        view
        returns (bool);

    /// @notice check if operator is valid
    function isOperatorValid(address client, address operator)
        external
        view
        returns (bool);
}


// File contracts/intf/IPerpetual.sol



pragma solidity 0.8.9;

interface IPerpetual {
    /// @notice Return the paper amount and credit amount of a certain trader.
    /// @return paper is positive when the trader holds a long position and
    /// negative when the trader holds a short position.
    /// @return credit is not related to position direction or entry price,
    /// only used to calculate risk ratio and net value.
    function balanceOf(address trader)
        external
        view
        returns (int256 paper, int256 credit);

    /// @notice Match and settle orders.
    /// @dev tradeData will be forwarded to the Dealer contract and waiting
    /// for matching result. Then the Perpetual contract will execute the result.
    function trade(bytes calldata tradeData) external;

    /// @notice Liquidate a position with customized paper amount and price protection.
    /// @dev Because the liquidation is open to public, there is no guarantee that
    /// your request will be executed.
    /// It will not be executed or partially executed if:
    /// 1) someone else submitted a liquidation request before you, or
    /// 2) the trader deposited enough margin in time, or
    /// 3) the mark price moved beyond your price protection.
    /// Your liquidation will be limited to the position size. For example, if the
    /// position remains 10ETH and you're requesting a 15ETH liquidation. Only 10ETH
    /// will be executed. And the other 5ETH request will be cancelled.
    /// @param  liquidatedTrader is the trader you want to liquidate.
    /// @param  requestPaper is the size of position you want to take .
    /// requestPaper is positive when you want to liquidate a long position, negative when short.
    /// @param expectCredit is the amount of credit you want to pay (when liquidating a short position)
    /// or receive (when liquidating a long position)
    /// @return liqtorPaperChange is the final executed change of liquidator's paper amount
    /// @return liqtorCreditChange is the final executed change of liquidator's credit amount
    function liquidate(
        address liquidator,
        address liquidatedTrader,
        int256 requestPaper,
        int256 expectCredit
    ) external returns (int256 liqtorPaperChange, int256 liqtorCreditChange);

    /// @notice Get funding rate of this perpetual market.
    /// Funding rate is a 1e18 based decimal.
    function getFundingRate() external view returns (int256);

    /// @notice Update funding rate, owner only function.
    function updateFundingRate(int256 newFundingRate) external;
}


// File contracts/utils/SignedDecimalMath.sol



pragma solidity 0.8.9;

/// @notice Decimal math for int256. Round down.
library SignedDecimalMath {
    int256 constant SignedONE = 10**18;

    function decimalMul(int256 a, int256 b) internal pure returns (int256) {
        return (a * b) / SignedONE;
    }

    function decimalDiv(int256 a, int256 b) internal pure returns (int256) {
        return (a * SignedONE) / b;
    }

    function abs(int256 a) internal pure returns (uint256) {
        return a < 0 ? uint256(a * -1) : uint256(a);
    }
}


// File contracts/impl/Perpetual.sol


pragma solidity 0.8.9;





contract Perpetual is Ownable, IPerpetual {
    using SignedDecimalMath for int256;

    // ========== storage ==========

    /*
        We use int128 to store paper and reduced credit, 
        so that we could store balance in a single slot.
        This trick can help us saving gas.

        int128 can support size of 1.7E38, which is enough 
        for most transactions. But other than storing paper 
        and reduced credit values, we use int256 to achieve 
        higher accuracy of calculation.

        Normally, paper amount will be a 1e18 based decimal.
    */
    struct balance {
        int128 paper;
        int128 reducedCredit;
    }
    mapping(address => balance) balanceMap;
    int256 fundingRate;

    // ========== events ==========

    event BalanceChange(
        address indexed trader,
        int256 paperChange,
        int256 creditChange
    );

    event UpdateFundingRate(int256 oldFundingRate, int256 newFundingRate);

    // ========== constructor ==========

    constructor(address _owner) Ownable() {
        transferOwnership(_owner);
    }

    // ========== balance related ==========

    /*
        We store "reducedCredit" instead of credit itself.
        So that after funding rate is updated, the credit values will be
        updated without any extra storage write.
        
        credit = (paper * fundingRate) + reducedCredit

        FundingRate here is a little different from what it means at CEX.
        FundingRate is a cumulative value. Its absolute value doesn't mean 
        anything and only the changes (due to funding updates) matter.

        e.g. If the fundingRate increases by 5 at a certain update, 
        then you will receive 5 credit for every paper you long.
        And you will be charged 5 credit for every paper you short.
    */

    /// @inheritdoc IPerpetual
    function balanceOf(address trader)
        external
        view
        returns (int256 paper, int256 credit)
    {
        paper = int256(balanceMap[trader].paper);
        credit =
            paper.decimalMul(fundingRate) +
            int256(balanceMap[trader].reducedCredit);
    }

    function updateFundingRate(int256 newFundingRate) external onlyOwner {
        int256 oldFundingRate = fundingRate;
        fundingRate = newFundingRate;
        emit UpdateFundingRate(oldFundingRate, newFundingRate);
    }

    function getFundingRate() external view returns (int256) {
        return fundingRate;
    }

    // ========== trade ==========

    /// @inheritdoc IPerpetual
    function trade(bytes calldata tradeData) external {
        (
            address[] memory traderList,
            int256[] memory paperChangeList,
            int256[] memory creditChangeList
        ) = IDealer(owner()).approveTrade(msg.sender, tradeData);

        for (uint256 i = 0; i < traderList.length; ) {
            _settle(traderList[i], paperChangeList[i], creditChangeList[i]);
            unchecked {
                ++i;
            }
        }

        require(IDealer(owner()).isAllSafe(traderList), "TRADER_NOT_SAFE");
    }

    // ========== liquidation ==========

    /// @inheritdoc IPerpetual
    function liquidate(
        address liquidator,
        address liquidatedTrader,
        int256 requestPaper,
        int256 expectCredit
    ) external returns (int256 liqtorPaperChange, int256 liqtorCreditChange) {
        // liqed => liquidated trader, who faces the risk of liquidation.
        // liqtor => liquidator, who takes over the trader's position.
        int256 liqedPaperChange;
        int256 liqedCreditChange;
        (
            liqtorPaperChange,
            liqtorCreditChange,
            liqedPaperChange,
            liqedCreditChange
        ) = IDealer(owner()).requestLiquidation(
            msg.sender,
            liquidator,
            liquidatedTrader,
            requestPaper
        );

        // expected price = expectCredit/requestPaper * -1
        // execute price = liqtorCreditChange/liqtorPaperChange * -1
        if (liqtorPaperChange < 0) {
            // open short, execute price >= expected price
            // liqtorCreditChange/liqtorPaperChange * -1 >= expectCredit/requestPaper * -1
            // liqtorCreditChange/liqtorPaperChange <= expectCredit/requestPaper
            // liqtorCreditChange*requestPaper <= expectCredit*liqtorPaperChange
            require(
                liqtorCreditChange * requestPaper <=
                    expectCredit * liqtorPaperChange,
                "LIQUIDATION_PRICE_PROTECTION"
            );
        } else {
            // open long, execute price <= expected price
            // liqtorCreditChange/liqtorPaperChange * -1 <= expectCredit/requestPaper * -1
            // liqtorCreditChange/liqtorPaperChange >= expectCredit/requestPaper
            // liqtorCreditChange*requestPaper >= expectCredit*liqtorPaperChange
            require(
                liqtorCreditChange * requestPaper >=
                    expectCredit * liqtorPaperChange,
                "LIQUIDATION_PRICE_PROTECTION"
            );
        }

        _settle(liquidatedTrader, liqedPaperChange, liqedCreditChange);
        _settle(liquidator, liqtorPaperChange, liqtorCreditChange);
        require(IDealer(owner()).isSafe(liquidator), "LIQUIDATOR_NOT_SAFE");
        if (balanceMap[liquidatedTrader].paper == 0) {
            IDealer(owner()).handleBadDebt(liquidatedTrader);
        }
    }

    // ========== settlement ==========

    /*
        Remember the fomula?
        credit = (paper * fundingRate) + reducedCredit

        So we have...
        reducedCredit = credit - (paper * fundingRate)

        When you update the balance, you need to first calculate the credit, 
        and then calculate and store the reducedCredit.
    */

    function _settle(
        address trader,
        int256 paperChange,
        int256 creditChange
    ) internal {
        bool isNewPosition = balanceMap[trader].paper == 0;
        int256 rate = fundingRate; // gas saving
        int256 credit = int256(balanceMap[trader].paper).decimalMul(rate) +
            int256(balanceMap[trader].reducedCredit) +
            creditChange;
        int128 newPaper = balanceMap[trader].paper + SafeCast.toInt128(paperChange);
        int128 newReducedCredit = SafeCast.toInt128(
            credit - int256(newPaper).decimalMul(rate)
        );
        balanceMap[trader].paper = newPaper;
        balanceMap[trader].reducedCredit = newReducedCredit;
        emit BalanceChange(trader, paperChange, creditChange);
        if (isNewPosition) {
            IDealer(owner()).openPosition(trader);
        }
        if (newPaper == 0) {
            // realize PNL
            IDealer(owner()).realizePnl(
                trader,
                balanceMap[trader].reducedCredit
            );
            balanceMap[trader].reducedCredit = 0;
        }
    }
}

Contract ABI

[{"inputs":[{"internalType":"address","name":"_owner","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"trader","type":"address"},{"indexed":false,"internalType":"int256","name":"paperChange","type":"int256"},{"indexed":false,"internalType":"int256","name":"creditChange","type":"int256"}],"name":"BalanceChange","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":"int256","name":"oldFundingRate","type":"int256"},{"indexed":false,"internalType":"int256","name":"newFundingRate","type":"int256"}],"name":"UpdateFundingRate","type":"event"},{"inputs":[{"internalType":"address","name":"trader","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"int256","name":"paper","type":"int256"},{"internalType":"int256","name":"credit","type":"int256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getFundingRate","outputs":[{"internalType":"int256","name":"","type":"int256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"liquidator","type":"address"},{"internalType":"address","name":"liquidatedTrader","type":"address"},{"internalType":"int256","name":"requestPaper","type":"int256"},{"internalType":"int256","name":"expectCredit","type":"int256"}],"name":"liquidate","outputs":[{"internalType":"int256","name":"liqtorPaperChange","type":"int256"},{"internalType":"int256","name":"liqtorCreditChange","type":"int256"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes","name":"tradeData","type":"bytes"}],"name":"trade","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"int256","name":"newFundingRate","type":"int256"}],"name":"updateFundingRate","outputs":[],"stateMutability":"nonpayable","type":"function"}]

60806040523480156200001157600080fd5b506040516200171138038062001711833981016040819052620000349162000182565b6200003f3362000051565b6200004a81620000a1565b50620001b4565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b620000ab62000124565b6001600160a01b038116620001165760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b60648201526084015b60405180910390fd5b620001218162000051565b50565b6000546001600160a01b03163314620001805760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064016200010d565b565b6000602082840312156200019557600080fd5b81516001600160a01b0381168114620001ad57600080fd5b9392505050565b61154d80620001c46000396000f3fe608060405234801561001057600080fd5b50600436106100885760003560e01c806395196f7e1161005b57806395196f7e146100ff578063c179037014610110578063c2684de614610123578063f2fde38b1461013657600080fd5b80631037ea511461008d57806370a08231146100a2578063715018a6146100cf5780638da5cb5b146100d7575b600080fd5b6100a061009b366004610df4565b610149565b005b6100b56100b0366004610e88565b6103a6565b604080519283526020830191909152015b60405180910390f35b6100a0610409565b60005460405173ffffffffffffffffffffffffffffffffffffffff90911681526020016100c6565b6002546040519081526020016100c6565b6100b561011e366004610ea5565b61041d565b6100a0610131366004610eeb565b610815565b6100a0610144366004610e88565b610862565b600080600061016d60005473ffffffffffffffffffffffffffffffffffffffff1690565b73ffffffffffffffffffffffffffffffffffffffff16633cd9523d3387876040518463ffffffff1660e01b81526004016101a993929190610f04565b600060405180830381600087803b1580156101c357600080fd5b505af11580156101d7573d6000803e3d6000fd5b505050506040513d6000823e601f3d9081017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe016820160405261021d919081019061107b565b92509250925060005b835181101561028d5761028584828151811061024457610244611164565b602002602001015184838151811061025e5761025e611164565b602002602001015184848151811061027857610278611164565b6020026020010151610919565b600101610226565b506000546040517f181f492200000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff9091169063181f4922906102e4908690600401611193565b60206040518083038186803b1580156102fc57600080fd5b505afa158015610310573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061033491906111ed565b61039f576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152600f60248201527f5452414445525f4e4f545f53414645000000000000000000000000000000000060448201526064015b60405180910390fd5b5050505050565b73ffffffffffffffffffffffffffffffffffffffff8116600090815260016020526040812054600254600f82810b93927001000000000000000000000000000000009004900b906103f8908490610c3f565b610402919061123e565b9050915091565b610411610c65565b61041b6000610ce6565b565b60008060008061044260005473ffffffffffffffffffffffffffffffffffffffff1690565b6040517fbe5b037100000000000000000000000000000000000000000000000000000000815233600482015273ffffffffffffffffffffffffffffffffffffffff8a81166024830152898116604483015260648201899052919091169063be5b037190608401608060405180830381600087803b1580156104c257600080fd5b505af11580156104d6573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906104fa91906112b2565b92965090945092509050600084121561058e5761051784866112e8565b61052187856112e8565b1315610589576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601c60248201527f4c49515549444154494f4e5f50524943455f50524f54454354494f4e000000006044820152606401610396565b61060a565b61059884866112e8565b6105a287856112e8565b121561060a576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601c60248201527f4c49515549444154494f4e5f50524943455f50524f54454354494f4e000000006044820152606401610396565b610615878383610919565b610620888585610919565b60005473ffffffffffffffffffffffffffffffffffffffff166040517f769a28ac00000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff8a81166004830152919091169063769a28ac9060240160206040518083038186803b1580156106a257600080fd5b505afa1580156106b6573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906106da91906111ed565b610740576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601360248201527f4c495155494441544f525f4e4f545f53414645000000000000000000000000006044820152606401610396565b73ffffffffffffffffffffffffffffffffffffffff8716600090815260016020526040902054600f0b61080a5760005473ffffffffffffffffffffffffffffffffffffffff166040517f11fd52e100000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff898116600483015291909116906311fd52e190602401600060405180830381600087803b1580156107f157600080fd5b505af1158015610805573d6000803e3d6000fd5b505050505b505094509492505050565b61081d610c65565b600280549082905560408051828152602081018490527f41a4e7eeb93ced398be7dabdc68a1aabb9a4755a11e80587da132e9c09f6e3c5910160405180910390a15050565b61086a610c65565b73ffffffffffffffffffffffffffffffffffffffff811661090d576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201527f64647265737300000000000000000000000000000000000000000000000000006064820152608401610396565b61091681610ce6565b50565b73ffffffffffffffffffffffffffffffffffffffff8316600090815260016020526040812054600254600f82810b80159492938692700100000000000000000000000000000000909104900b906109709085610c3f565b61097a919061123e565b610984919061123e565b9050600061099186610d5b565b73ffffffffffffffffffffffffffffffffffffffff88166000908152600160205260409020546109c49190600f0b6113a4565b905060006109e86109d9600f84900b86610c3f565b6109e39085611414565b610d5b565b73ffffffffffffffffffffffffffffffffffffffff8916600081815260016020526040908190206fffffffffffffffffffffffffffffffff8085167001000000000000000000000000000000000290871617905551919250907f4671546415242c95e8c6ef84d4785a1477e86e46fab15b87e504a3da994eba7c90610a79908a908a90918252602082015260400190565b60405180910390a28415610b245760005473ffffffffffffffffffffffffffffffffffffffff166040517febbeba6e00000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff8a81166004830152919091169063ebbeba6e90602401600060405180830381600087803b158015610b0b57600080fd5b505af1158015610b1f573d6000803e3d6000fd5b505050505b81600f0b60001415610c355760005473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff898116600081815260016020526040908190205490517f15e3ecb900000000000000000000000000000000000000000000000000000000815260048101929092527001000000000000000000000000000000009004600f0b60248201529116906315e3ecb990604401600060405180830381600087803b158015610be157600080fd5b505af1158015610bf5573d6000803e3d6000fd5b50505073ffffffffffffffffffffffffffffffffffffffff8916600090815260016020526040902080546fffffffffffffffffffffffffffffffff169055505b5050505050505050565b6000670de0b6b3a7640000610c5483856112e8565b610c5e9190611488565b9392505050565b60005473ffffffffffffffffffffffffffffffffffffffff16331461041b576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610396565b6000805473ffffffffffffffffffffffffffffffffffffffff8381167fffffffffffffffffffffffff0000000000000000000000000000000000000000831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b80600f81900b8114610def576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602760248201527f53616665436173743a2076616c756520646f65736e27742066697420696e203160448201527f32382062697473000000000000000000000000000000000000000000000000006064820152608401610396565b919050565b60008060208385031215610e0757600080fd5b823567ffffffffffffffff80821115610e1f57600080fd5b818501915085601f830112610e3357600080fd5b813581811115610e4257600080fd5b866020828501011115610e5457600080fd5b60209290920196919550909350505050565b73ffffffffffffffffffffffffffffffffffffffff8116811461091657600080fd5b600060208284031215610e9a57600080fd5b8135610c5e81610e66565b60008060008060808587031215610ebb57600080fd5b8435610ec681610e66565b93506020850135610ed681610e66565b93969395505050506040820135916060013590565b600060208284031215610efd57600080fd5b5035919050565b73ffffffffffffffffffffffffffffffffffffffff8416815260406020820152816040820152818360608301376000818301606090810191909152601f9092017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe016010192915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b604051601f82017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe016810167ffffffffffffffff81118282101715610fe457610fe4610f6e565b604052919050565b600067ffffffffffffffff82111561100657611006610f6e565b5060051b60200190565b600082601f83011261102157600080fd5b8151602061103661103183610fec565b610f9d565b82815260059290921b8401810191818101908684111561105557600080fd5b8286015b848110156110705780518352918301918301611059565b509695505050505050565b60008060006060848603121561109057600080fd5b835167ffffffffffffffff808211156110a857600080fd5b818601915086601f8301126110bc57600080fd5b815160206110cc61103183610fec565b82815260059290921b8401810191818101908a8411156110eb57600080fd5b948201945b8386101561111257855161110381610e66565b825294820194908201906110f0565b9189015191975090935050508082111561112b57600080fd5b61113787838801611010565b9350604086015191508082111561114d57600080fd5b5061115a86828701611010565b9150509250925092565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b6020808252825182820181905260009190848201906040850190845b818110156111e157835173ffffffffffffffffffffffffffffffffffffffff16835292840192918401916001016111af565b50909695505050505050565b6000602082840312156111ff57600080fd5b81518015158114610c5e57600080fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b6000808212827f7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff038413811516156112785761127861120f565b827f80000000000000000000000000000000000000000000000000000000000000000384128116156112ac576112ac61120f565b50500190565b600080600080608085870312156112c857600080fd5b505082516020840151604085015160609095015191969095509092509050565b60007f7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff6000841360008413858304851182821616156113295761132961120f565b7f800000000000000000000000000000000000000000000000000000000000000060008712868205881281841616156113645761136461120f565b600087129250878205871284841616156113805761138061120f565b878505871281841616156113965761139661120f565b505050929093029392505050565b600081600f0b83600f0b60008212826f7fffffffffffffffffffffffffffffff038213811516156113d7576113d761120f565b827fffffffffffffffffffffffffffffffff8000000000000000000000000000000003821281161561140b5761140b61120f565b50019392505050565b6000808312837f80000000000000000000000000000000000000000000000000000000000000000183128115161561144e5761144e61120f565b837f7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0183138116156114825761148261120f565b50500390565b6000826114be577f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff83147f8000000000000000000000000000000000000000000000000000000000000000831416156115125761151261120f565b50059056fea26469706673582212205361a3a386f95074bf71e35156fb11782e7333ef28b8c8bb752527d648a24b9664736f6c63430008090033000000000000000000000000ffd3b82971dabccb3219d16b6eb2db134bf55300

Deployed ByteCode Sourcemap

55336:7091:0:-:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;57962:558;;;;;;:::i;:::-;;:::i;:::-;;57251:296;;;;;;:::i;:::-;;:::i;:::-;;;;1191:25:1;;;1247:2;1232:18;;1225:34;;;;1164:18;57251:296:0;;;;;;;;2810:103;;;:::i;2162:87::-;2208:7;2235:6;2162:87;;2235:6;;;;1416:74:1;;1404:2;1389:18;2162:87:0;1270:226:1;57790:94:0;57865:11;;57790:94;;1645:25:1;;;1633:2;1618:18;57790:94:0;1501:175:1;58604:2324:0;;;;;;:::i;:::-;;:::i;57555:227::-;;;;;;:::i;:::-;;:::i;3068:201::-;;;;;;:::i;:::-;;:::i;57962:558::-;58038:27;58080:31;58126:32;58180:7;2208;2235:6;;;;2162:87;58180:7;58172:29;;;58202:10;58214:9;;58172:52;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;58023:201;;;;;;58242:9;58237:197;58261:10;:17;58257:1;:21;58237:197;;;58297:63;58305:10;58316:1;58305:13;;;;;;;;:::i;:::-;;;;;;;58320:15;58336:1;58320:18;;;;;;;;:::i;:::-;;;;;;;58340:16;58357:1;58340:19;;;;;;;;:::i;:::-;;;;;;;58297:7;:63::i;:::-;58404:3;;58237:197;;;-1:-1:-1;2208:7:0;2235:6;58454:38;;;;;2235:6;;;;;58454:26;;:38;;58481:10;;58454:38;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;58446:66;;;;;;;7143:2:1;58446:66:0;;;7125:21:1;7182:2;7162:18;;;7155:30;7221:17;7201:18;;;7194:45;7256:18;;58446:66:0;;;;;;;;;58012:508;;;57962:558;;:::o;57251:296::-;57396:18;;;57336:12;57396:18;;;:10;:18;;;;;:24;57471:11;;57396:24;;;;;57336:12;57506:32;;;;;;57454:29;;57396:24;;57454:16;:29::i;:::-;:85;;;;:::i;:::-;57432:107;;57251:296;;;:::o;2810:103::-;2048:13;:11;:13::i;:::-;2875:30:::1;2902:1;2875:18;:30::i;:::-;2810:103::o:0;58604:2324::-;58772:24;58798:25;58983:23;59017:24;59202:7;2208;2235:6;;;;2162:87;59202:7;59194:154;;;;;59244:10;59194:154;;;8136:34:1;59194:35:0;8206:15:1;;;8186:18;;;8179:43;8258:15;;;8238:18;;;8231:43;8290:18;;;8283:34;;;59194:35:0;;;;;;;8047:19:1;;59194:154:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;59052:296;;-1:-1:-1;59052:296:0;;-1:-1:-1;59052:296:0;-1:-1:-1;59052:296:0;-1:-1:-1;59515:1:0;59495:21;;59491:1078;;;59933:32;59948:17;59933:12;:32;:::i;:::-;59875:33;59896:12;59875:18;:33;:::i;:::-;:90;;59849:180;;;;;;;9559:2:1;59849:180:0;;;9541:21:1;9598:2;9578:18;;;9571:30;9637;9617:18;;;9610:58;9685:18;;59849:180:0;9357:352:1;59849:180:0;59491:1078;;;60461:32;60476:17;60461:12;:32;:::i;:::-;60403:33;60424:12;60403:18;:33;:::i;:::-;:90;;60377:180;;;;;;;9559:2:1;60377:180:0;;;9541:21:1;9598:2;9578:18;;;9571:30;9637;9617:18;;;9610:58;9685:18;;60377:180:0;9357:352:1;60377:180:0;60581:62;60589:16;60607;60625:17;60581:7;:62::i;:::-;60654:58;60662:10;60674:17;60693:18;60654:7;:58::i;:::-;2208:7;2235:6;;;60731:35;;;;;:23;1434:55:1;;;60731:35:0;;;1416:74:1;60731:23:0;;;;;;;1389:18:1;;60731:35:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;60723:67;;;;;;;9916:2:1;60723:67:0;;;9898:21:1;9955:2;9935:18;;;9928:30;9994:21;9974:18;;;9967:49;10033:18;;60723:67:0;9714:343:1;60723:67:0;60805:28;;;;;;;:10;:28;;;;;:34;;;60801:120;;2208:7;2235:6;;;60861:48;;;;;:30;1434:55:1;;;60861:48:0;;;1416:74:1;60861:30:0;;;;;;;1389:18:1;;60861:48:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;60801:120;58825:2103;;58604:2324;;;;;;;:::o;57555:227::-;2048:13;:11;:13::i;:::-;57659:11:::1;::::0;;57681:28;;;;57725:49:::1;::::0;;1191:25:1;;;1247:2;1232:18;;1225:34;;;57725:49:0::1;::::0;1164:18:1;57725:49:0::1;;;;;;;57624:158;57555:227:::0;:::o;3068:201::-;2048:13;:11;:13::i;:::-;3157:22:::1;::::0;::::1;3149:73;;;::::0;::::1;::::0;;10264:2:1;3149:73:0::1;::::0;::::1;10246:21:1::0;10303:2;10283:18;;;10276:30;10342:34;10322:18;;;10315:62;10413:8;10393:18;;;10386:36;10439:19;;3149:73:0::1;10062:402:1::0;3149:73:0::1;3233:28;3252:8;3233:18;:28::i;:::-;3068:201:::0;:::o;61302:1122::-;61451:18;;;61430;61451;;;:10;:18;;;;;:24;61505:11;;61451:24;;;;:29;;;61505:11;;61678:12;;61629:32;;;;;;;61557:49;;61505:11;61557:43;:49::i;:::-;:105;;;;:::i;:::-;:133;;;;:::i;:::-;61541:149;;61701:15;61746:30;61764:11;61746:17;:30::i;:::-;61719:18;;;;;;;:10;:18;;;;;:24;:57;;;:24;;:57;:::i;:::-;61701:75;-1:-1:-1;61787:23:0;61813:85;61854:33;:16;;;;61882:4;61854:27;:33::i;:::-;61845:42;;:6;:42;:::i;:::-;61813:17;:85::i;:::-;61909:18;;;;;;;:10;:18;;;;;;;:35;61955:51;;;;;61909:35;;;61955:51;;;62022:48;61787:111;;-1:-1:-1;61909:18:0;62022:48;;;;62044:11;;62057:12;;1191:25:1;;;1247:2;1232:18;;1225:34;1179:2;1164:18;;1021:244;62022:48:0;;;;;;;;62085:13;62081:83;;;2208:7;2235:6;;;62115:37;;;;;:29;1434:55:1;;;62115:37:0;;;1416:74:1;62115:29:0;;;;;;;1389:18:1;;62115:37:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;62081:83;62178:8;:13;;62190:1;62178:13;62174:243;;;2208:7;2235:6;;;62236:27;62307:18;;;;;;;:10;:18;;;;;;;:32;62236:118;;;;;;;;11443:74:1;;;;62307:32:0;;;;;11533:18:1;;;11526:50;62236:27:0;;;;;11416:18:1;;62236:118:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;62369:18:0;;;62404:1;62369:18;;;:10;:18;;;;;:36;;;;;;-1:-1:-1;62174:243:0;61419:1005;;;;;61302:1122;;;:::o;54886:116::-;54949:6;54871;54976:5;54980:1;54976;:5;:::i;:::-;54975:19;;;;:::i;:::-;54968:26;54886:116;-1:-1:-1;;;54886:116:0:o;2327:132::-;2208:7;2235:6;2391:23;2235:6;859:10;2391:23;2383:68;;;;;;;12256:2:1;2383:68:0;;;12238:21:1;;;12275:18;;;12268:30;12334:34;12314:18;;;12307:62;12386:18;;2383:68:0;12054:356:1;3429:191:0;3503:16;3522:6;;;3539:17;;;;;;;;;;3572:40;;3522:6;;;;;;;3572:40;;3503:16;3572:40;3492:128;3429:191;:::o;30446:201::-;30551:5;30576:19;;;;;;30568:71;;;;;;;12617:2:1;30568:71:0;;;12599:21:1;12656:2;12636:18;;;12629:30;12695:34;12675:18;;;12668:62;12766:9;12746:18;;;12739:37;12793:19;;30568:71:0;12415:403:1;30568:71:0;30446:201;;;:::o;14:591:1:-;84:6;92;145:2;133:9;124:7;120:23;116:32;113:52;;;161:1;158;151:12;113:52;201:9;188:23;230:18;271:2;263:6;260:14;257:34;;;287:1;284;277:12;257:34;325:6;314:9;310:22;300:32;;370:7;363:4;359:2;355:13;351:27;341:55;;392:1;389;382:12;341:55;432:2;419:16;458:2;450:6;447:14;444:34;;;474:1;471;464:12;444:34;519:7;514:2;505:6;501:2;497:15;493:24;490:37;487:57;;;540:1;537;530:12;487:57;571:2;563:11;;;;;593:6;;-1:-1:-1;14:591:1;;-1:-1:-1;;;;14:591:1:o;610:154::-;696:42;689:5;685:54;678:5;675:65;665:93;;754:1;751;744:12;769:247;828:6;881:2;869:9;860:7;856:23;852:32;849:52;;;897:1;894;887:12;849:52;936:9;923:23;955:31;980:5;955:31;:::i;1681:523::-;1765:6;1773;1781;1789;1842:3;1830:9;1821:7;1817:23;1813:33;1810:53;;;1859:1;1856;1849:12;1810:53;1898:9;1885:23;1917:31;1942:5;1917:31;:::i;:::-;1967:5;-1:-1:-1;2024:2:1;2009:18;;1996:32;2037:33;1996:32;2037:33;:::i;:::-;1681:523;;2089:7;;-1:-1:-1;;;;2143:2:1;2128:18;;2115:32;;2194:2;2179:18;2166:32;;1681:523::o;2209:179::-;2267:6;2320:2;2308:9;2299:7;2295:23;2291:32;2288:52;;;2336:1;2333;2326:12;2288:52;-1:-1:-1;2359:23:1;;2209:179;-1:-1:-1;2209:179:1:o;2393:567::-;2590:42;2582:6;2578:55;2567:9;2560:74;2670:2;2665;2654:9;2650:18;2643:30;2709:6;2704:2;2693:9;2689:18;2682:34;2766:6;2758;2753:2;2742:9;2738:18;2725:48;2822:1;2793:22;;;2817:2;2789:31;;;2782:42;;;;2876:2;2864:15;;;2881:66;2860:88;2845:104;2841:113;;2393:567;-1:-1:-1;;2393:567:1:o;2965:184::-;3017:77;3014:1;3007:88;3114:4;3111:1;3104:15;3138:4;3135:1;3128:15;3154:334;3225:2;3219:9;3281:2;3271:13;;3286:66;3267:86;3255:99;;3384:18;3369:34;;3405:22;;;3366:62;3363:88;;;3431:18;;:::i;:::-;3467:2;3460:22;3154:334;;-1:-1:-1;3154:334:1:o;3493:183::-;3553:4;3586:18;3578:6;3575:30;3572:56;;;3608:18;;:::i;:::-;-1:-1:-1;3653:1:1;3649:14;3665:4;3645:25;;3493:183::o;3681:658::-;3745:5;3798:3;3791:4;3783:6;3779:17;3775:27;3765:55;;3816:1;3813;3806:12;3765:55;3845:6;3839:13;3871:4;3895:60;3911:43;3951:2;3911:43;:::i;:::-;3895:60;:::i;:::-;3989:15;;;4075:1;4071:10;;;;4059:23;;4055:32;;;4020:12;;;;4099:15;;;4096:35;;;4127:1;4124;4117:12;4096:35;4163:2;4155:6;4151:15;4175:135;4191:6;4186:3;4183:15;4175:135;;;4257:10;;4245:23;;4288:12;;;;4208;;4175:135;;;-1:-1:-1;4328:5:1;3681:658;-1:-1:-1;;;;;;3681:658:1:o;4344:1435::-;4505:6;4513;4521;4574:2;4562:9;4553:7;4549:23;4545:32;4542:52;;;4590:1;4587;4580:12;4542:52;4623:9;4617:16;4652:18;4693:2;4685:6;4682:14;4679:34;;;4709:1;4706;4699:12;4679:34;4747:6;4736:9;4732:22;4722:32;;4792:7;4785:4;4781:2;4777:13;4773:27;4763:55;;4814:1;4811;4804:12;4763:55;4843:2;4837:9;4865:4;4889:60;4905:43;4945:2;4905:43;:::i;4889:60::-;4983:15;;;5065:1;5061:10;;;;5053:19;;5049:28;;;5014:12;;;;5089:19;;;5086:39;;;5121:1;5118;5111:12;5086:39;5145:11;;;;5165:210;5181:6;5176:3;5173:15;5165:210;;;5254:3;5248:10;5271:31;5296:5;5271:31;:::i;:::-;5315:18;;5198:12;;;;5353;;;;5165:210;;;5430:18;;;5424:25;5394:5;;-1:-1:-1;5424:25:1;;-1:-1:-1;;;5461:16:1;;;5458:36;;;5490:1;5487;5480:12;5458:36;5513:73;5578:7;5567:8;5556:9;5552:24;5513:73;:::i;:::-;5503:83;;5632:2;5621:9;5617:18;5611:25;5595:41;;5661:2;5651:8;5648:16;5645:36;;;5677:1;5674;5667:12;5645:36;;5700:73;5765:7;5754:8;5743:9;5739:24;5700:73;:::i;:::-;5690:83;;;4344:1435;;;;;:::o;5784:184::-;5836:77;5833:1;5826:88;5933:4;5930:1;5923:15;5957:4;5954:1;5947:15;5973:681;6144:2;6196:21;;;6266:13;;6169:18;;;6288:22;;;6115:4;;6144:2;6367:15;;;;6341:2;6326:18;;;6115:4;6410:218;6424:6;6421:1;6418:13;6410:218;;;6489:13;;6504:42;6485:62;6473:75;;6603:15;;;;6568:12;;;;6446:1;6439:9;6410:218;;;-1:-1:-1;6645:3:1;;5973:681;-1:-1:-1;;;;;;5973:681:1:o;6659:277::-;6726:6;6779:2;6767:9;6758:7;6754:23;6750:32;6747:52;;;6795:1;6792;6785:12;6747:52;6827:9;6821:16;6880:5;6873:13;6866:21;6859:5;6856:32;6846:60;;6902:1;6899;6892:12;7285:184;7337:77;7334:1;7327:88;7434:4;7431:1;7424:15;7458:4;7455:1;7448:15;7474:367;7513:3;7548:1;7545;7541:9;7657:1;7589:66;7585:74;7582:1;7578:82;7573:2;7566:10;7562:99;7559:125;;;7664:18;;:::i;:::-;7783:1;7715:66;7711:74;7708:1;7704:82;7700:2;7696:91;7693:117;;;7790:18;;:::i;:::-;-1:-1:-1;;7826:9:1;;7474:367::o;8328:364::-;8421:6;8429;8437;8445;8498:3;8486:9;8477:7;8473:23;8469:33;8466:53;;;8515:1;8512;8505:12;8466:53;-1:-1:-1;;8538:16:1;;8594:2;8579:18;;8573:25;8638:2;8623:18;;8617:25;8682:2;8667:18;;;8661:25;8538:16;;8573:25;;-1:-1:-1;8661:25:1;;-1:-1:-1;8328:364:1;-1:-1:-1;8328:364:1:o;8697:655::-;8736:7;8768:66;8860:1;8857;8853:9;8888:1;8885;8881:9;8933:1;8929:2;8925:10;8922:1;8919:17;8914:2;8910;8906:11;8902:35;8899:61;;;8940:18;;:::i;:::-;8979:66;9071:1;9068;9064:9;9118:1;9114:2;9109:11;9106:1;9102:19;9097:2;9093;9089:11;9085:37;9082:63;;;9125:18;;:::i;:::-;9171:1;9168;9164:9;9154:19;;9218:1;9214:2;9209:11;9206:1;9202:19;9197:2;9193;9189:11;9185:37;9182:63;;;9225:18;;:::i;:::-;9290:1;9286:2;9281:11;9278:1;9274:19;9269:2;9265;9261:11;9257:37;9254:63;;;9297:18;;:::i;:::-;-1:-1:-1;;;9337:9:1;;;;;8697:655;-1:-1:-1;;;8697:655:1:o;10469:423::-;10508:3;10552:1;10548:2;10537:17;10589:1;10585:2;10574:17;10619:1;10614:3;10610:11;10698:3;10662:34;10658:44;10653:3;10649:54;10644:2;10637:10;10633:71;10630:97;;;10707:18;;:::i;:::-;10828:3;10760:66;10756:76;10751:3;10747:86;10743:2;10739:95;10736:121;;;10837:18;;:::i;:::-;-1:-1:-1;10873:13:1;;10469:423;-1:-1:-1;;;10469:423:1:o;10897:369::-;10936:4;10972:1;10969;10965:9;11081:1;11013:66;11009:74;11006:1;11002:82;10997:2;10990:10;10986:99;10983:125;;;11088:18;;:::i;:::-;11207:1;11139:66;11135:74;11132:1;11128:82;11124:2;11120:91;11117:117;;;11214:18;;:::i;:::-;-1:-1:-1;;11251:9:1;;10897:369::o;11587:462::-;11626:1;11652;11642:189;;11687:77;11684:1;11677:88;11788:4;11785:1;11778:15;11816:4;11813:1;11806:15;11642:189;11928:66;11925:1;11922:73;11853:66;11850:1;11847:73;11843:153;11840:179;;;11999:18;;:::i;:::-;-1:-1:-1;12033:10:1;;11587:462::o

Metadata Hash

5361a3a386f95074bf71e35156fb11782e7333ef28b8c8bb752527d648a24b96
Block Transaction Gas Used Reward
Age Block Fee Address BC Fee Address Voting Power Jailed Incoming
Block Uncle Number Difficulty Gas Used Reward
Loading