Contract 0x0757bc621a32b1134ecf2843955b0bbc8ca13ba1

 

Contract Overview

Balance:
0 MATIC

MATIC Value:
$0.00

Token:
Txn Hash Method
Block
From
To
Value [Txn Fee]
0x9ae5d2b00832830f332d089496052911c92c30a2d26531d531c8684c87f16109Set Pool162478492021-06-28 12:14:35153 days 17 hrs ago0x80b4d014aa41eff99083336bbeae378617cff076 IN  0x0757bc621a32b1134ecf2843955b0bbc8ca13ba10 MATIC0.000044125
0x89974f6dfbb81d4490bbe688e244ead96b29753fee4450ce9b64b3bcf2624d4a0x60806040162475892021-06-28 12:05:39153 days 18 hrs ago0x80b4d014aa41eff99083336bbeae378617cff076 IN  Contract Creation0 MATIC0.001810858
[ Download CSV Export 
Parent Txn Hash Block From To Value
Loading

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

Contract Name:
PToken

Compiler Version
v0.8.4+commit.c7e474f2

Optimization Enabled:
Yes with 200 runs

Other Settings:
default evmVersion, MIT license

Contract Source Code (Solidity Multiple files format)

File 1 of 8: PToken.sol
// SPDX-License-Identifier: MIT

pragma solidity >=0.8.0 <0.9.0;

import './IPToken.sol';
import './ERC721.sol';

contract PToken is IPToken, ERC721 {

    // PToken name
    string _name;
    // PToken symbol
    string _symbol;
    // associative pool address
    address _pool;
    // total number of PToken ever minted, this number will never decease
    uint256 _totalMinted;
    // total PTokens hold by all traders
    uint256 _totalSupply;
    // number of symbols
    uint256 _numSymbols;
    // number of bTokens
    uint256 _numBTokens;

    // tokenId => (bTokenId => Margin)
    mapping (uint256 => mapping (uint256 => int256)) _tokenIdMargins;
    // tokenId => (symbolId => Position)
    mapping (uint256 => mapping (uint256 => Position)) _tokenIdPositions;

    modifier _pool_() {
        require(msg.sender == _pool, 'PToken: only pool');
        _;
    }

    constructor (string memory name_, string memory symbol_, uint256 numSymbols_, uint256 numBTokens_) {
        _name = name_;
        _symbol = symbol_;
        _numSymbols = numSymbols_;
        _numBTokens = numBTokens_;
    }

    function name() public override view returns (string memory) {
        return _name;
    }

    function symbol() public override view returns (string memory) {
        return _symbol;
    }

    function pool() public override view returns (address) {
        return _pool;
    }

    function totalMinted() public override view returns (uint256) {
        return _totalMinted;
    }

    function totalSupply() public override view returns (uint256) {
        return _totalSupply;
    }

    function numBTokens() public override view returns (uint256) {
        return _numBTokens;
    }

    function numSymbols() public override view returns (uint256) {
        return _numSymbols;
    }

    function setPool(address newPool) public override {
        require(_pool == address(0) || _pool == msg.sender, 'PToken.setPool: not allowed');
        _pool = newPool;
    }

    function setNumBTokens(uint256 num) public override _pool_ {
        require(num > _numBTokens, 'PToken.setNumBTokens: can only increase');
        _numBTokens = num;
    }

    function setNumSymbols(uint256 num) public override _pool_ {
        require(num > _numSymbols, 'PToken.setNumSymbols: can only increase');
        _numSymbols = num;
    }

    function exists(address owner) public override view returns (bool) {
        return _exists(owner);
    }

    function getMargin(address owner, uint256 bTokenId) public override view returns (int256) {
        return _tokenIdMargins[_ownerTokenId[owner]][bTokenId];
    }

    function getMargins(address owner) public override view returns (int256[] memory) {
        uint256 tokenId = _ownerTokenId[owner];
        uint256 length = _numBTokens;
        int256[] memory margins = new int256[](length);
        for (uint256 i = 0; i < length; i++) {
            margins[i] = _tokenIdMargins[tokenId][i];
        }
        return margins;
    }

    function getPosition(address owner, uint256 symbolId) public override view returns (Position memory) {
        return _tokenIdPositions[_ownerTokenId[owner]][symbolId];
    }

    function getPositions(address owner) public override view returns (Position[] memory) {
        uint256 tokenId = _ownerTokenId[owner];
        uint256 length = _numSymbols;
        Position[] memory positions = new Position[](length);
        for (uint256 i = 0; i < length; i++) {
            positions[i] = _tokenIdPositions[tokenId][i];
        }
        return positions;
    }

    function updateMargin(address owner, uint256 bTokenId, int256 amount) public override _pool_ {
        _tokenIdMargins[_ownerTokenId[owner]][bTokenId] = amount;
        emit UpdateMargin(owner, bTokenId, amount);
    }

    function updateMargins(address owner, int256[] memory margins) public override _pool_ {
        uint256 tokenId = _ownerTokenId[owner];
        uint256 length = _numBTokens;
        for (uint256 i = 0; i < length; i++) {
            _tokenIdMargins[tokenId][i] = margins[i];
            emit UpdateMargin(owner, i, margins[i]);
        }
    }

    function updatePosition(address owner, uint256 symbolId, Position memory position) public override _pool_ {
        _tokenIdPositions[_ownerTokenId[owner]][symbolId] = position;
        emit UpdatePosition(owner, symbolId, position.volume, position.cost, position.lastCumulativeFundingRate);
    }

    function mint(address owner) public override _pool_ {
        _totalSupply++;
        uint256 tokenId = ++_totalMinted;
        require(!_exists(tokenId), 'PToken.mint: existent tokenId');

        _ownerTokenId[owner] = tokenId;
        _tokenIdOwner[tokenId] = owner;

        emit Transfer(address(0), owner, tokenId);
    }

    function burn(address owner) public override _pool_ {
        uint256 tokenId = _ownerTokenId[owner];

        _totalSupply--;
        delete _ownerTokenId[owner];
        delete _tokenIdOwner[tokenId];
        delete _tokenIdOperator[tokenId];

        uint256 length = _numBTokens;
        for (uint256 i = 0; i < length; i++) {
            delete _tokenIdMargins[tokenId][i];
        }

        length = _numSymbols;
        for (uint256 i = 0; i < length; i++) {
            delete _tokenIdPositions[tokenId][i];
        }

        emit Transfer(owner, address(0), tokenId);
    }

}

File 2 of 8: Address.sol
// SPDX-License-Identifier: MIT

pragma solidity >=0.8.0 <0.9.0;

/**
 * @dev Collection of functions related to the address type
 */
library Address {
    /**
     * @dev Returns true if `account` is a contract.
     *
     * [IMPORTANT]
     * ====
     * It is unsafe to assume that an address for which this function returns
     * false is an externally-owned account (EOA) and not a contract.
     *
     * Among others, `isContract` will return false for the following
     * types of addresses:
     *
     *  - an externally-owned account
     *  - a contract in construction
     *  - an address where a contract will be created
     *  - an address where a contract lived, but was destroyed
     * ====
     */
    function isContract(address account) internal view returns (bool) {
        // This method relies on extcodesize, which returns 0 for contracts in
        // construction, since the code is only stored at the end of the
        // constructor execution.

        uint256 size;
        // solhint-disable-next-line no-inline-assembly
        assembly { size := extcodesize(account) }
        return size > 0;
    }

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

        // solhint-disable-next-line avoid-low-level-calls, avoid-call-value
        (bool success, ) = recipient.call{ value: amount }("");
        require(success, "Address: unable to send value, recipient may have reverted");
    }

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

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

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

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

        // solhint-disable-next-line avoid-low-level-calls
        (bool success, bytes memory returndata) = target.call{ value: value }(data);
        return _verifyCallResult(success, returndata, errorMessage);
    }

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

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

        // solhint-disable-next-line avoid-low-level-calls
        (bool success, bytes memory returndata) = target.staticcall(data);
        return _verifyCallResult(success, returndata, errorMessage);
    }

    function _verifyCallResult(bool success, bytes memory returndata, string memory errorMessage) private pure returns(bytes memory) {
        if (success) {
            return returndata;
        } else {
            // Look for revert reason and bubble it up if present
            if (returndata.length > 0) {
                // The easiest way to bubble the revert reason is using memory via assembly

                // solhint-disable-next-line no-inline-assembly
                assembly {
                    let returndata_size := mload(returndata)
                    revert(add(32, returndata), returndata_size)
                }
            } else {
                revert(errorMessage);
            }
        }
    }
}

File 3 of 8: ERC165.sol
// SPDX-License-Identifier: MIT

pragma solidity >=0.8.0 <0.9.0;

import './IERC165.sol';

/**
 * @dev Implementation of the {IERC165} interface.
 *
 * Contracts may inherit from this and call {_registerInterface} to declare
 * their support of an interface.
 */
abstract contract ERC165 is IERC165 {
    /*
     * bytes4(keccak256('supportsInterface(bytes4)')) == 0x01ffc9a7
     */
    bytes4 private constant _INTERFACE_ID_ERC165 = 0x01ffc9a7;

    /**
     * @dev Mapping of interface ids to whether or not it's supported.
     */
    mapping(bytes4 => bool) private _supportedInterfaces;

    constructor () {
        // Derived contracts need only register support for their own interfaces,
        // we register support for ERC165 itself here
        _registerInterface(_INTERFACE_ID_ERC165);
    }

    /**
     * @dev See {IERC165-supportsInterface}.
     *
     * Time complexity O(1), guaranteed to always use less than 30 000 gas.
     */
    function supportsInterface(bytes4 interfaceId) public override view returns (bool) {
        return _supportedInterfaces[interfaceId];
    }

    /**
     * @dev Registers the contract as an implementer of the interface defined by
     * `interfaceId`. Support of the actual ERC165 interface is automatic and
     * registering its interface id is not required.
     *
     * See {IERC165-supportsInterface}.
     *
     * Requirements:
     *
     * - `interfaceId` cannot be the ERC165 invalid interface (`0xffffffff`).
     */
    function _registerInterface(bytes4 interfaceId) internal virtual {
        require(interfaceId != 0xffffffff, "ERC165: invalid interface id");
        _supportedInterfaces[interfaceId] = true;
    }
}

File 4 of 8: ERC721.sol
// SPDX-License-Identifier: MIT

pragma solidity >=0.8.0 <0.9.0;

import './IERC721Receiver.sol';
import './IERC721.sol';
import './Address.sol';
import './ERC165.sol';

/**
 * @dev ERC721 Non-Fungible Token Implementation
 *
 * Exert uniqueness of owner: one owner can only have one token
 */
contract ERC721 is IERC721, ERC165 {

    using Address for address;

    /*
     * Equals to `bytes4(keccak256('onERC721Received(address,address,uint256,bytes)'))`
     * which can be also obtained as `IERC721Receiver(0).onERC721Received.selector`
     */
    bytes4 private constant _ERC721_RECEIVED = 0x150b7a02;

    /*
     *     bytes4(keccak256('balanceOf(address)')) == 0x70a08231
     *     bytes4(keccak256('ownerOf(uint256)')) == 0x6352211e
     *     bytes4(keccak256('getApproved(uint256)')) == 0x081812fc
     *     bytes4(keccak256('isApprovedForAll(address,address)')) == 0xe985e9c5
     *     bytes4(keccak256('approve(address,uint256)')) == 0x095ea7b3
     *     bytes4(keccak256('setApprovalForAll(address,bool)')) == 0xa22cb465
     *     bytes4(keccak256('transferFrom(address,address,uint256)')) == 0x23b872dd
     *     bytes4(keccak256('safeTransferFrom(address,address,uint256)')) == 0x42842e0e
     *     bytes4(keccak256('safeTransferFrom(address,address,uint256,bytes)')) == 0xb88d4fde
     *
     *     => 0x70a08231 ^ 0x6352211e ^ 0x081812fc ^ 0xe985e9c5 ^
     *        0x095ea7b3 ^ 0xa22cb465 ^ 0x23b872dd ^ 0x42842e0e ^ 0xb88d4fde == 0x80ac58cd
     */
    bytes4 private constant _INTERFACE_ID_ERC721 = 0x80ac58cd;

    // Mapping from owner address to tokenId
    // tokenId starts from 1, 0 is reserved for nonexistent token
    // One owner can only own one token in this contract
    mapping (address => uint256) _ownerTokenId;

    // Mapping from tokenId to owner
    mapping (uint256 => address) _tokenIdOwner;

    // Mapping from tokenId to approved operator
    mapping (uint256 => address) _tokenIdOperator;

    // Mapping from owner to operator for all approval
    mapping (address => mapping (address => bool)) _ownerOperator;

    modifier _existsTokenId_(uint256 tokenId) {
        require(_exists(tokenId), 'ERC721: nonexistent tokenId');
        _;
    }

    modifier _existsOwner_(address owner) {
        require(_exists(owner), 'ERC721: nonexistent owner');
        _;
    }

    constructor () {
        // register the supported interfaces to conform to ERC721 via ERC165
        _registerInterface(_INTERFACE_ID_ERC721);
    }

    function balanceOf(address owner) public override view returns (uint256) {
        return _exists(owner) ? 1 : 0;
    }

    function ownerOf(uint256 tokenId) public override view _existsTokenId_(tokenId) returns (address) {
        return _tokenIdOwner[tokenId];
    }

    function getApproved(uint256 tokenId) public override view _existsTokenId_(tokenId) returns (address) {
        return _tokenIdOperator[tokenId];
    }

    function isApprovedForAll(address owner, address operator) public override view _existsOwner_(owner) returns (bool) {
        return _ownerOperator[owner][operator];
    }

    function approve(address operator, uint256 tokenId) public override {
        require(msg.sender == ownerOf(tokenId), 'ERC721.approve: caller not owner');
        _tokenIdOperator[tokenId] = operator;
        emit Approval(msg.sender, operator, tokenId);
    }

    function setApprovalForAll(address operator, bool approved) public override {
        require(_exists(msg.sender), 'ERC721.setApprovalForAll: nonexistent owner');
        _ownerOperator[msg.sender][operator] = approved;
        emit ApprovalForAll(msg.sender, operator, approved);
    }

    function transferFrom(address from, address to, uint256 tokenId) public override {
        _validateTransfer(msg.sender, from, to, tokenId);
        _transfer(from, to, tokenId);
    }

    function safeTransferFrom(address from, address to, uint256 tokenId) public override {
        safeTransferFrom(from, to, tokenId, '');
    }

    function safeTransferFrom(address from, address to, uint256 tokenId, bytes memory data) public override {
        _validateTransfer(msg.sender, from, to, tokenId);
        _safeTransfer(from, to, tokenId, data);
    }

    //================================================================================

    function _exists(address owner) internal view returns (bool) {
        return _ownerTokenId[owner] != 0;
    }

    function _exists(uint256 tokenId) internal view returns (bool) {
        return _tokenIdOwner[tokenId] != address(0);
    }

    function _validateTransfer(address operator, address from, address to, uint256 tokenId) internal view {
        require(from == ownerOf(tokenId), 'ERC721._validateTransfer: not owned token');
        require(to != address(0) && !_exists(to), 'ERC721._validateTransfer: to address exists or 0');
        require(
            operator == from || _tokenIdOperator[tokenId] == operator || _ownerOperator[from][operator],
            'ERC721._validateTransfer: not owner nor approved'
        );
    }

    function _transfer(address from, address to, uint256 tokenId) internal {
        // clear previous ownership and approvals
        delete _ownerTokenId[from];
        delete _tokenIdOperator[tokenId];

        // set up new owner
        _ownerTokenId[to] = tokenId;
        _tokenIdOwner[tokenId] = to;

        emit Transfer(from, to, tokenId);
    }

    /**
     * @dev Safely transfers `tokenId` token from `from` to `to`, checking first that contract
     * recipients are aware of the ERC721 protocol to prevent tokens from being forever locked.
     *
     * Validation check on parameters should be carried out before calling this function.
     *
     * `data` is additional data, it has no specified format and it is sent in call to `to`.
     *
     * This internal function is equivalent to {safeTransferFrom}, and can be used to e.g.
     * implement alternative mechanisms to perform token transfer, such as signature-based.
     *
     * Emits a {Transfer} event.
     */
    function _safeTransfer(address from, address to, uint256 tokenId, bytes memory data) internal {
        _transfer(from, to, tokenId);
        require(
            _checkOnERC721Received(from, to, tokenId, data),
            'ERC721: transfer to non ERC721Receiver implementer'
        );
    }

    /**
     * @dev Internal function to invoke {IERC721Receiver-onERC721Received} on a target address.
     *      The call is not executed if the target address is not a contract.
     *
     * @param from address representing the previous owner of the given token ID.
     * @param to target address that will receive the tokens.
     * @param tokenId uint256 ID of the token to be transferred.
     * @param data bytes optional data to send along with the call.
     * @return bool whether the call correctly returned the expected magic value.
     */
    function _checkOnERC721Received(address from, address to, uint256 tokenId, bytes memory data)
        internal returns (bool)
    {
        if (!to.isContract()) {
            return true;
        }
        bytes memory returndata = to.functionCall(abi.encodeWithSelector(
            IERC721Receiver(to).onERC721Received.selector,
            msg.sender,
            from,
            tokenId,
            data
        ), 'ERC721: transfer to non ERC721Receiver implementer');
        bytes4 retval = abi.decode(returndata, (bytes4));
        return (retval == _ERC721_RECEIVED);
    }

}

File 5 of 8: IERC165.sol
// SPDX-License-Identifier: MIT

pragma solidity >=0.8.0 <0.9.0;

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

File 6 of 8: IERC721.sol
// SPDX-License-Identifier: MIT

pragma solidity >=0.8.0 <0.9.0;

import "./IERC165.sol";

/**
 * @dev Required interface of an ERC721 compliant contract.
 */
interface IERC721 is IERC165 {
    /**
     * @dev Emitted when `tokenId` token is transferred from `from` to `to`.
     */
    event Transfer(address indexed from, address indexed to, uint256 indexed tokenId);

    /**
     * @dev Emitted when `owner` enables `operator` to manage the `tokenId` token.
     */
    event Approval(address indexed owner, address indexed operator, uint256 indexed tokenId);

    /**
     * @dev Emitted when `owner` enables or disables `operator` to manage all of its assets.
     */
    event ApprovalForAll(address indexed owner, address indexed operator, bool approved);

    /**
     * @dev Returns the number of tokens in `owner`'s account.
     */
    function balanceOf(address owner) external view returns (uint256);

    /**
     * @dev Returns the owner of the `tokenId` token.
     *
     * Requirements:
     *
     * - `tokenId` must exist.
     */
    function ownerOf(uint256 tokenId) external view returns (address);

    /**
     * @dev Returns the account approved for `tokenId` token.
     *
     * Requirements:
     *
     * - `tokenId` must exist.
     */
    function getApproved(uint256 tokenId) external view returns (address);

    /**
     * @dev Returns if the `operator` is allowed to manage all of the assets of `owner`.
     *
     * See {setApprovalForAll}
     */
    function isApprovedForAll(address owner, address operator) external view returns (bool);

    /**
     * @dev Gives permission to `operator` to transfer `tokenId` token to another account.
     * The approval is cleared when the token is transferred.
     *
     * Only a single account can be approved at a time, so approving the zero address
     * clears previous approvals.
     *
     * Requirements:
     *
     * - The caller must own the token or be an approved operator.
     * - `tokenId` must exist.
     *
     * Emits an {Approval} event.
     */
    function approve(address operator, uint256 tokenId) external;

    /**
     * @dev Approve or remove `operator` as an operator for the caller.
     * Operators can call {transferFrom} or {safeTransferFrom} for any token owned by the caller.
     *
     * Requirements:
     *
     * - The `operator` cannot be the caller.
     *
     * Emits an {ApprovalForAll} event.
     */
    function setApprovalForAll(address operator, bool approved) external;

    /**
     * @dev Transfers `tokenId` token from `from` to `to`.
     *
     * WARNING: Usage of this method is discouraged, use {safeTransferFrom} whenever possible.
     *
     * Requirements:
     *
     * - `from` cannot be the zero address.
     * - `to` cannot be the zero address.
     * - `tokenId` token must be owned by `from`.
     * - If the caller is not `from`, it must be approved to move this token
     *   by either {approve} or {setApprovalForAll}.
     *
     * Emits a {Transfer} event.
     */
    function transferFrom(address from, address to, uint256 tokenId) external;

    /**
     * @dev Safely transfers `tokenId` token from `from` to `to`, checking first
     * that contract recipients are aware of the ERC721 protocol to prevent
     * tokens from being forever locked.
     *
     * Requirements:
     *
     * - `from` cannot be the zero address.
     * - `to` cannot be the zero address.
     * - `tokenId` token must exist and be owned by `from`.
     * - If the caller is not `from`, it must be have been allowed to move this token
     *   by either {approve} or {setApprovalForAll}.
     * - If `to` refers to a smart contract, it must implement
     *   {IERC721Receiver-onERC721Received}, which is called upon a safe transfer.
     *
     * Emits a {Transfer} event.
     */
    function safeTransferFrom(address from, address to, uint256 tokenId) external;

    /**
     * @dev Safely transfers `tokenId` token from `from` to `to`.
     *
     * Requirements:
     *
     * - `from` cannot be the zero address.
     * - `to` cannot be the zero address.
     * - `tokenId` token must exist and be owned by `from`.
     * - If the caller is not `from`, it must be approved to move this token
     *   by either {approve} or {setApprovalForAll}.
     * - If `to` refers to a smart contract, it must implement
     *   {IERC721Receiver-onERC721Received}, which is called upon a safe transfer.
     *
     * Emits a {Transfer} event.
     */
    function safeTransferFrom(address from, address to, uint256 tokenId, bytes calldata data) external;
}

File 7 of 8: IERC721Receiver.sol
// SPDX-License-Identifier: MIT

pragma solidity >=0.8.0 <0.9.0;

/**
 * @title ERC721 token receiver interface
 * @dev Interface for any contract that wants to support safeTransfers
 * from ERC721 asset contracts.
 */
interface IERC721Receiver {
    /**
     * @dev Whenever an {IERC721} `tokenId` token is transferred to this contract via
     * {IERC721-safeTransferFrom} by `operator` from `from`, this function is called.
     *
     * It must return its Solidity selector to confirm the token transfer.
     * If any other value is returned or the interface is not implemented by the recipient,
     * the transfer will be reverted.
     *
     * The selector can be obtained in Solidity with `IERC721.onERC721Received.selector`.
     */
    function onERC721Received(address operator, address from, uint256 tokenId, bytes calldata data)
        external returns (bytes4);
}

File 8 of 8: IPToken.sol
// SPDX-License-Identifier: MIT

pragma solidity >=0.8.0 <0.9.0;

import './IERC721.sol';

interface IPToken is IERC721 {

    struct Position {
        // position volume, long is positive and short is negative
        int256 volume;
        // the cost the establish this position
        int256 cost;
        // the last cumulativeFundingRate since last funding settlement for this position
        // the overflow for this value in intended
        int256 lastCumulativeFundingRate;
    }

    event UpdateMargin(address indexed owner, uint256 indexed bTokenId, int256 amount);

    event UpdatePosition(address indexed owner, uint256 indexed symbolId, int256 volume, int256 cost, int256 lastCumulativeFundingRate);

    function name() external view returns (string memory);

    function symbol() external view returns (string memory);

    function pool() external view returns (address);

    function totalMinted() external view returns (uint256);

    function totalSupply() external view returns (uint256);

    function numBTokens() external view returns (uint256);

    function numSymbols() external view returns (uint256);

    function setPool(address newPool) external;

    function setNumBTokens(uint256 num) external;

    function setNumSymbols(uint256 num) external;

    function exists(address owner) external view returns (bool);

    function getMargin(address owner, uint256 bTokenId) external view returns (int256);

    function getMargins(address owner) external view returns (int256[] memory);

    function getPosition(address owner, uint256 symbolId) external view returns (Position memory);

    function getPositions(address owner) external view returns (Position[] memory);

    function updateMargin(address owner, uint256 bTokenId, int256 amount) external;

    function updateMargins(address owner, int256[] memory margins) external;

    function updatePosition(address owner, uint256 symbolId, Position memory position) external;

    function mint(address owner) external;

    function burn(address owner) external;

}

Contract Security Audit

Contract ABI

[{"inputs":[{"internalType":"string","name":"name_","type":"string"},{"internalType":"string","name":"symbol_","type":"string"},{"internalType":"uint256","name":"numSymbols_","type":"uint256"},{"internalType":"uint256","name":"numBTokens_","type":"uint256"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":false,"internalType":"bool","name":"approved","type":"bool"}],"name":"ApprovalForAll","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Transfer","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"uint256","name":"bTokenId","type":"uint256"},{"indexed":false,"internalType":"int256","name":"amount","type":"int256"}],"name":"UpdateMargin","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"uint256","name":"symbolId","type":"uint256"},{"indexed":false,"internalType":"int256","name":"volume","type":"int256"},{"indexed":false,"internalType":"int256","name":"cost","type":"int256"},{"indexed":false,"internalType":"int256","name":"lastCumulativeFundingRate","type":"int256"}],"name":"UpdatePosition","type":"event"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"approve","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"burn","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"exists","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getApproved","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"uint256","name":"bTokenId","type":"uint256"}],"name":"getMargin","outputs":[{"internalType":"int256","name":"","type":"int256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"getMargins","outputs":[{"internalType":"int256[]","name":"","type":"int256[]"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"uint256","name":"symbolId","type":"uint256"}],"name":"getPosition","outputs":[{"components":[{"internalType":"int256","name":"volume","type":"int256"},{"internalType":"int256","name":"cost","type":"int256"},{"internalType":"int256","name":"lastCumulativeFundingRate","type":"int256"}],"internalType":"struct IPToken.Position","name":"","type":"tuple"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"getPositions","outputs":[{"components":[{"internalType":"int256","name":"volume","type":"int256"},{"internalType":"int256","name":"cost","type":"int256"},{"internalType":"int256","name":"lastCumulativeFundingRate","type":"int256"}],"internalType":"struct IPToken.Position[]","name":"","type":"tuple[]"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"operator","type":"address"}],"name":"isApprovedForAll","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"mint","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"numBTokens","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"numSymbols","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"ownerOf","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"pool","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"bytes","name":"data","type":"bytes"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"bool","name":"approved","type":"bool"}],"name":"setApprovalForAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"num","type":"uint256"}],"name":"setNumBTokens","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"num","type":"uint256"}],"name":"setNumSymbols","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newPool","type":"address"}],"name":"setPool","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalMinted","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"transferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"uint256","name":"bTokenId","type":"uint256"},{"internalType":"int256","name":"amount","type":"int256"}],"name":"updateMargin","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"int256[]","name":"margins","type":"int256[]"}],"name":"updateMargins","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"uint256","name":"symbolId","type":"uint256"},{"components":[{"internalType":"int256","name":"volume","type":"int256"},{"internalType":"int256","name":"cost","type":"int256"},{"internalType":"int256","name":"lastCumulativeFundingRate","type":"int256"}],"internalType":"struct IPToken.Position","name":"position","type":"tuple"}],"name":"updatePosition","outputs":[],"stateMutability":"nonpayable","type":"function"}]

60806040523480156200001157600080fd5b506040516200211f3803806200211f833981016040819052620000349162000273565b620000466301ffc9a760e01b62000096565b620000586380ac58cd60e01b62000096565b83516200006d9060059060208701906200011a565b508251620000839060069060208601906200011a565b50600a91909155600b55506200033d9050565b6001600160e01b03198082161415620000f55760405162461bcd60e51b815260206004820152601c60248201527f4552433136353a20696e76616c696420696e7465726661636520696400000000604482015260640160405180910390fd5b6001600160e01b0319166000908152602081905260409020805460ff19166001179055565b8280546200012890620002ea565b90600052602060002090601f0160209004810192826200014c576000855562000197565b82601f106200016757805160ff191683800117855562000197565b8280016001018555821562000197579182015b82811115620001975782518255916020019190600101906200017a565b50620001a5929150620001a9565b5090565b5b80821115620001a55760008155600101620001aa565b600082601f830112620001d1578081fd5b81516001600160401b0380821115620001ee57620001ee62000327565b604051601f8301601f19908116603f0116810190828211818310171562000219576200021962000327565b8160405283815260209250868385880101111562000235578485fd5b8491505b8382101562000258578582018301518183018401529082019062000239565b838211156200026957848385830101525b9695505050505050565b6000806000806080858703121562000289578384fd5b84516001600160401b0380821115620002a0578586fd5b620002ae88838901620001c0565b95506020870151915080821115620002c4578485fd5b50620002d387828801620001c0565b604087015160609097015195989097509350505050565b600181811c90821680620002ff57607f821691505b602082108114156200032157634e487b7160e01b600052602260045260246000fd5b50919050565b634e487b7160e01b600052604160045260246000fd5b611dd2806200034d6000396000f3fe608060405234801561001057600080fd5b50600436106101da5760003560e01c80636352211e11610104578063a2309ff8116100a2578063e65953e711610071578063e65953e71461043d578063e985e9c514610450578063f6a3d24e14610463578063f733fed71461047657600080fd5b8063a2309ff8146103cf578063a3a09039146103d7578063b798de47146103ea578063b88d4fde1461042a57600080fd5b806386911235116100de578063869112351461038157806389afcb44146103a157806395d89b41146103b4578063a22cb465146103bc57600080fd5b80636352211e146103485780636a6278421461035b57806370a082311461036e57600080fd5b806318160ddd1161017c57806342842e0e1161014b57806342842e0e146102fc5780634437152a1461030f57806352c13d17146103225780635e7d66d71461033557600080fd5b806318160ddd146102a157806323b872dd146102a95780633adbb5af146102bc5780633eeb530e146102dc57600080fd5b8063081812fc116101b8578063081812fc14610248578063095ea7b31461027357806312ec522b1461028857806316f0115b1461029057600080fd5b806301ffc9a7146101df578063065a672d1461022157806306fdde0314610233575b600080fd5b61020c6101ed366004611a93565b6001600160e01b03191660009081526020819052604090205460ff1690565b60405190151581526020015b60405180910390f35b600a545b604051908152602001610218565b61023b610489565b6040516102189190611c02565b61025b610256366004611acb565b61051b565b6040516001600160a01b039091168152602001610218565b6102866102813660046119b1565b6105a7565b005b600b54610225565b6007546001600160a01b031661025b565b600954610225565b6102866102b73660046117c9565b610669565b6102cf6102ca3660046119b1565b610685565b6040516102189190611c40565b6102ef6102ea36600461177d565b610701565b6040516102189190611bac565b61028661030a3660046117c9565b610830565b61028661031d36600461177d565b61084b565b610286610330366004611acb565b6108db565b6102866103433660046118bc565b61096b565b61025b610356366004611acb565b610a90565b61028661036936600461177d565b610b13565b61022561037c36600461177d565b610c37565b61039461038f36600461177d565b610c67565b6040516102189190611b68565b6102866103af36600461177d565b610d3d565b61023b610e9b565b6102866103ca366004611977565b610eaa565b600854610225565b6102866103e5366004611acb565b610f86565b6102256103f83660046119b1565b6001600160a01b03919091166000908152600160209081526040808320548352600c8252808320938352929052205490565b610286610438366004611804565b611016565b61028661044b3660046119da565b611034565b61020c61045e366004611797565b6110c8565b61020c61047136600461177d565b61115f565b610286610484366004611a0c565b61117f565b60606005805461049890611cd5565b80601f01602080910402602001604051908101604052809291908181526020018280546104c490611cd5565b80156105115780601f106104e657610100808354040283529160200191610511565b820191906000526020600020905b8154815290600101906020018083116104f457829003601f168201915b5050505050905090565b60008181526002602052604081205482906001600160a01b03166105865760405162461bcd60e51b815260206004820152601b60248201527f4552433732313a206e6f6e6578697374656e7420746f6b656e4964000000000060448201526064015b60405180910390fd5b6000838152600360205260409020546001600160a01b031691505b50919050565b6105b081610a90565b6001600160a01b0316336001600160a01b0316146106105760405162461bcd60e51b815260206004820181905260248201527f4552433732312e617070726f76653a2063616c6c6572206e6f74206f776e6572604482015260640161057d565b60008181526003602052604080822080546001600160a01b0319166001600160a01b0386169081179091559051839233917f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b9259190a45050565b6106753384848461122f565b61068083838361140b565b505050565b6106a960405180606001604052806000815260200160008152602001600081525090565b506001600160a01b0382166000908152600160208181526040808420548452600d8252808420858552825292839020835160608101855281548152928101549183019190915260020154918101919091525b92915050565b6001600160a01b038116600090815260016020526040812054600a546060928167ffffffffffffffff81111561074757634e487b7160e01b600052604160045260246000fd5b60405190808252806020026020018201604052801561079c57816020015b61078960405180606001604052806000815260200160008152602001600081525090565b8152602001906001900390816107655790505b50905060005b82811015610827576000848152600d602090815260408083208484528252918290208251606081018452815481526001820154928101929092526002015491810191909152825183908390811061080957634e487b7160e01b600052603260045260246000fd5b6020026020010181905250808061081f90611d0a565b9150506107a2565b50949350505050565b61068083838360405180602001604052806000815250611016565b6007546001600160a01b0316158061086d57506007546001600160a01b031633145b6108b95760405162461bcd60e51b815260206004820152601b60248201527f50546f6b656e2e736574506f6f6c3a206e6f7420616c6c6f7765640000000000604482015260640161057d565b600780546001600160a01b0319166001600160a01b0392909216919091179055565b6007546001600160a01b031633146109055760405162461bcd60e51b815260040161057d90611c15565b600b5481116109665760405162461bcd60e51b815260206004820152602760248201527f50546f6b656e2e7365744e756d42546f6b656e733a2063616e206f6e6c7920696044820152666e63726561736560c81b606482015260840161057d565b600b55565b6007546001600160a01b031633146109955760405162461bcd60e51b815260040161057d90611c15565b6001600160a01b038216600090815260016020526040812054600b5490915b81811015610a89578381815181106109dc57634e487b7160e01b600052603260045260246000fd5b6020026020010151600c600085815260200190815260200160002060008381526020019081526020016000208190555080856001600160a01b03167fb6558720a7b3533dac43cb4ed84ac252603fb4749047dc9052a4574e1f37e399868481518110610a5857634e487b7160e01b600052603260045260246000fd5b6020026020010151604051610a6f91815260200190565b60405180910390a380610a8181611d0a565b9150506109b4565b5050505050565b60008181526002602052604081205482906001600160a01b0316610af65760405162461bcd60e51b815260206004820152601b60248201527f4552433732313a206e6f6e6578697374656e7420746f6b656e49640000000000604482015260640161057d565b50506000908152600260205260409020546001600160a01b031690565b6007546001600160a01b03163314610b3d5760405162461bcd60e51b815260040161057d90611c15565b60098054906000610b4d83611d0a565b91905055506000600860008154610b6390611d0a565b91829055506000818152600260205260409020549091506001600160a01b031615610bd05760405162461bcd60e51b815260206004820152601d60248201527f50546f6b656e2e6d696e743a206578697374656e7420746f6b656e4964000000604482015260640161057d565b6001600160a01b0382166000818152600160209081526040808320859055848352600290915280822080546001600160a01b0319168417905551839291907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b6001600160a01b038116600090815260016020526040812054610c5b576000610c5e565b60015b60ff1692915050565b6001600160a01b038116600090815260016020526040812054600b546060928167ffffffffffffffff811115610cad57634e487b7160e01b600052604160045260246000fd5b604051908082528060200260200182016040528015610cd6578160200160208202803683370190505b50905060005b82811015610827576000848152600c602090815260408083208484529091529020548251839083908110610d2057634e487b7160e01b600052603260045260246000fd5b602090810291909101015280610d3581611d0a565b915050610cdc565b6007546001600160a01b03163314610d675760405162461bcd60e51b815260040161057d90611c15565b6001600160a01b038116600090815260016020526040812054600980549192610d8f83611cbe565b90915550506001600160a01b03821660009081526001602090815260408083208390558383526002825280832080546001600160a01b03199081169091556003909252822080549091169055600b54905b81811015610e14576000838152600c6020908152604080832084845290915281205580610e0c81611d0a565b915050610de0565b5050600a5460005b81811015610e5d576000838152600d602090815260408083208484529091528120818155600181018290556002015580610e5581611d0a565b915050610e1c565b5060405182906000906001600160a01b038616907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908390a4505050565b60606006805461049890611cd5565b33600090815260016020526040902054610f1a5760405162461bcd60e51b815260206004820152602b60248201527f4552433732312e736574417070726f76616c466f72416c6c3a206e6f6e65786960448201526a39ba32b73a1037bbb732b960a91b606482015260840161057d565b3360008181526004602090815260408083206001600160a01b03871680855290835292819020805460ff191686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b6007546001600160a01b03163314610fb05760405162461bcd60e51b815260040161057d90611c15565b600a5481116110115760405162461bcd60e51b815260206004820152602760248201527f50546f6b656e2e7365744e756d53796d626f6c733a2063616e206f6e6c7920696044820152666e63726561736560c81b606482015260840161057d565b600a55565b6110223385858561122f565b61102e84848484611497565b50505050565b6007546001600160a01b0316331461105e5760405162461bcd60e51b815260040161057d90611c15565b6001600160a01b0383166000818152600160209081526040808320548352600c825280832086845282529182902084905590518381528492917fb6558720a7b3533dac43cb4ed84ac252603fb4749047dc9052a4574e1f37e39991015b60405180910390a3505050565b6001600160a01b038216600090815260016020526040812054839061112f5760405162461bcd60e51b815260206004820152601960248201527f4552433732313a206e6f6e6578697374656e74206f776e657200000000000000604482015260640161057d565b50506001600160a01b03918216600090815260046020908152604080832093909416825291909152205460ff1690565b6001600160a01b03811660009081526001602052604081205415156106fb565b6007546001600160a01b031633146111a95760405162461bcd60e51b815260040161057d90611c15565b6001600160a01b0383166000818152600160208181526040808420548452600d8252808420878552825292839020855180825586830151938201849055868501516002909201829055845190815291820192909252918201528391907f112f77bb8bb48f280bc40d9de9dcd474b0442619aba210116ce5e69db08238c5906060016110bb565b61123881610a90565b6001600160a01b0316836001600160a01b0316146112aa5760405162461bcd60e51b815260206004820152602960248201527f4552433732312e5f76616c69646174655472616e736665723a206e6f74206f776044820152683732b2103a37b5b2b760b91b606482015260840161057d565b6001600160a01b038216158015906112d857506001600160a01b038216600090815260016020526040902054155b61133d5760405162461bcd60e51b815260206004820152603060248201527f4552433732312e5f76616c69646174655472616e736665723a20746f2061646460448201526f07265737320657869737473206f7220360841b606482015260840161057d565b826001600160a01b0316846001600160a01b0316148061137657506000818152600360205260409020546001600160a01b038581169116145b806113a657506001600160a01b0380841660009081526004602090815260408083209388168352929052205460ff165b61102e5760405162461bcd60e51b815260206004820152603060248201527f4552433732312e5f76616c69646174655472616e736665723a206e6f74206f7760448201526f1b995c881b9bdc88185c1c1c9bdd995960821b606482015260840161057d565b6001600160a01b0380841660008181526001602081815260408084208490558684526003825280842080546001600160a01b03199081169091559588168085529282528084208790558684526002909152808320805490951682179094559251849392917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4505050565b6114a284848461140b565b6114ae84848484611515565b61102e5760405162461bcd60e51b815260206004820152603260248201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560448201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b606482015260840161057d565b60006001600160a01b0384163b61152e575060016115df565b60006115af63150b7a0260e01b338887876040516024016115529493929190611b2b565b604051602081830303815290604052906001600160e01b0319166020820180516001600160e01b038381831617835250505050604051806060016040528060328152602001611d6b603291396001600160a01b03881691906115e7565b90506000818060200190518101906115c79190611aaf565b6001600160e01b031916630a85bd0160e11b14925050505b949350505050565b60606115f68484600085611600565b90505b9392505050565b6060824710156116615760405162461bcd60e51b815260206004820152602660248201527f416464726573733a20696e73756666696369656e742062616c616e636520666f6044820152651c8818d85b1b60d21b606482015260840161057d565b843b6116af5760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e7472616374000000604482015260640161057d565b600080866001600160a01b031685876040516116cb9190611b0f565b60006040518083038185875af1925050503d8060008114611708576040519150601f19603f3d011682016040523d82523d6000602084013e61170d565b606091505b509150915061171d828286611728565b979650505050505050565b606083156117375750816115f9565b8251156117475782518084602001fd5b8160405162461bcd60e51b815260040161057d9190611c02565b80356001600160a01b038116811461177857600080fd5b919050565b60006020828403121561178e578081fd5b6115f982611761565b600080604083850312156117a9578081fd5b6117b283611761565b91506117c060208401611761565b90509250929050565b6000806000606084860312156117dd578081fd5b6117e684611761565b92506117f460208501611761565b9150604084013590509250925092565b60008060008060808587031215611819578081fd5b61182285611761565b93506020611831818701611761565b935060408601359250606086013567ffffffffffffffff80821115611854578384fd5b818801915088601f830112611867578384fd5b81358181111561187957611879611d3b565b61188b601f8201601f19168501611c61565b915080825289848285010111156118a0578485fd5b8084840185840137810190920192909252939692955090935050565b600080604083850312156118ce578182fd5b6118d783611761565b915060208084013567ffffffffffffffff808211156118f4578384fd5b818601915086601f830112611907578384fd5b81358181111561191957611919611d3b565b8060051b915061192a848301611c61565b8181528481019084860184860187018b1015611944578788fd5b8795505b83861015611966578035835260019590950194918601918601611948565b508096505050505050509250929050565b60008060408385031215611989578182fd5b61199283611761565b9150602083013580151581146119a6578182fd5b809150509250929050565b600080604083850312156119c3578182fd5b6119cc83611761565b946020939093013593505050565b6000806000606084860312156119ee578283fd5b6119f784611761565b95602085013595506040909401359392505050565b600080600083850360a0811215611a21578384fd5b611a2a85611761565b9350602085013592506060603f1982011215611a44578182fd5b506040516060810181811067ffffffffffffffff82111715611a6857611a68611d3b565b8060405250604085013581526060850135602082015260808501356040820152809150509250925092565b600060208284031215611aa4578081fd5b81356115f981611d51565b600060208284031215611ac0578081fd5b81516115f981611d51565b600060208284031215611adc578081fd5b5035919050565b60008151808452611afb816020860160208601611c92565b601f01601f19169290920160200192915050565b60008251611b21818460208701611c92565b9190910192915050565b6001600160a01b0385811682528416602082015260408101839052608060608201819052600090611b5e90830184611ae3565b9695505050505050565b6020808252825182820181905260009190848201906040850190845b81811015611ba057835183529284019291840191600101611b84565b50909695505050505050565b6020808252825182820181905260009190848201906040850190845b81811015611ba057611bef8385518051825260208082015190830152604090810151910152565b9284019260609290920191600101611bc8565b6020815260006115f96020830184611ae3565b60208082526011908201527014151bdad95b8e881bdb9b1e481c1bdbdb607a1b604082015260600190565b815181526020808301519082015260408083015190820152606081016106fb565b604051601f8201601f1916810167ffffffffffffffff81118282101715611c8a57611c8a611d3b565b604052919050565b60005b83811015611cad578181015183820152602001611c95565b8381111561102e5750506000910152565b600081611ccd57611ccd611d25565b506000190190565b600181811c90821680611ce957607f821691505b602082108114156105a157634e487b7160e01b600052602260045260246000fd5b6000600019821415611d1e57611d1e611d25565b5060010190565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052604160045260246000fd5b6001600160e01b031981168114611d6757600080fd5b5056fe4552433732313a207472616e7366657220746f206e6f6e20455243373231526563656976657220696d706c656d656e746572a2646970667358221220fed57c79e1e137170a5d63db98557c80c617a0f27579831751bcf36527ce040164736f6c63430008040033000000000000000000000000000000000000000000000000000000000000008000000000000000000000000000000000000000000000000000000000000000c000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001544657269563220506f736974696f6e20546f6b656e000000000000000000000000000000000000000000000000000000000000000000000000000000000000034450540000000000000000000000000000000000000000000000000000000000

Deployed ByteCode Sourcemap

121:5405:7:-:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;990:142:1;;;;;;:::i;:::-;-1:-1:-1;;;;;;1091:33:1;1067:4;1091:33;;;;;;;;;;;;;;990:142;;;;8604:14:8;;8597:22;8579:41;;8567:2;8552:18;990:142:1;;;;;;;;1772:98:7;1851:11;;1772:98;;;8775:25:8;;;8763:2;8748:18;1772:98:7;8730:76:8;1152:92:7;;;:::i;:::-;;;;;;;:::i;2838:153:2:-;;;;;;:::i;:::-;;:::i;:::-;;;-1:-1:-1;;;;;6552:32:8;;;6534:51;;6522:2;6507:18;2838:153:2;6489:102:8;3180:264:2;;;;;;:::i;:::-;;:::i;:::-;;1666:98:7;1745:11;;1666:98;;1356:86;1429:5;;-1:-1:-1;;;;;1429:5:7;1356:86;;1558:100;1638:12;;1558:100;;3750:187:2;;;;;;:::i;:::-;;:::i;3097:176:7:-;;;;;;:::i;:::-;;:::i;:::-;;;;;;;:::i;3281:390::-;;;;;;:::i;:::-;;:::i;:::-;;;;;;;:::i;3945:143:2:-;;;;;;:::i;:::-;;:::i;1878:177:7:-;;;;;;:::i;:::-;;:::i;2063:175::-;;;;;;:::i;:::-;;:::i;3908:350::-;;;;;;:::i;:::-;;:::i;2684:146:2:-;;;;;;:::i;:::-;;:::i;4574:336:7:-;;;;;;:::i;:::-;;:::i;2555:121:2:-;;;;;;:::i;:::-;;:::i;2715:374:7:-;;;;;;:::i;:::-;;:::i;:::-;;;;;;;:::i;4918:603::-;;;;;;:::i;:::-;;:::i;1252:96::-;;;:::i;3452:290:2:-;;;;;;:::i;:::-;;:::i;1450:100:7:-;1530:12;;1450:100;;2246:175;;;;;;:::i;:::-;;:::i;2544:163::-;;;;;;:::i;:::-;-1:-1:-1;;;;;2668:20:7;;;;2626:6;2668:20;;;:13;:20;;;;;;;;;2652:37;;:15;:37;;;;;:47;;;;;;;;;2544:163;4096:220:2;;;;;;:::i;:::-;;:::i;3679:221:7:-;;;;;;:::i;:::-;;:::i;2999:173:2:-;;;;;;:::i;:::-;;:::i;2429:107:7:-;;;;;;:::i;:::-;;:::i;4266:300::-;;;;;;:::i;:::-;;:::i;1152:92::-;1198:13;1231:5;1224:12;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;1152:92;:::o;2838:153:2:-;2931:7;4615:22;;;:13;:22;;;;;;2913:7;;-1:-1:-1;;;;;4615:22:2;2182:56;;;;-1:-1:-1;;;2182:56:2;;13492:2:8;2182:56:2;;;13474:21:8;13531:2;13511:18;;;13504:30;13570:29;13550:18;;;13543:57;13617:18;;2182:56:2;;;;;;;;;2958:25:::1;::::0;;;:16:::1;:25;::::0;;;;;-1:-1:-1;;;;;2958:25:2::1;::::0;-1:-1:-1;2249:1:2::1;2838:153:::0;;;;:::o;3180:264::-;3281:16;3289:7;3281;:16::i;:::-;-1:-1:-1;;;;;3267:30:2;:10;-1:-1:-1;;;;;3267:30:2;;3259:75;;;;-1:-1:-1;;;3259:75:2;;14623:2:8;3259:75:2;;;14605:21:8;;;14642:18;;;14635:30;14701:34;14681:18;;;14674:62;14753:18;;3259:75:2;14595:182:8;3259:75:2;3345:25;;;;:16;:25;;;;;;:36;;-1:-1:-1;;;;;;3345:36:2;-1:-1:-1;;;;;3345:36:2;;;;;;;;3397:39;;3345:25;;3406:10;;3397:39;;3345:25;3397:39;3180:264;;:::o;3750:187::-;3842:48;3860:10;3872:4;3878:2;3882:7;3842:17;:48::i;:::-;3901:28;3911:4;3917:2;3921:7;3901:9;:28::i;:::-;3750:187;;;:::o;3097:176:7:-;3181:15;-1:-1:-1;;;;;;;;;;;;;;;;;;;;;;;;3181:15:7;-1:-1:-1;;;;;;3234:20:7;;3216:39;3234:20;;;:13;:20;;;;;;;;;3216:39;;:17;:39;;;;;:49;;;;;;;;;3209:56;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;3097:176;;;;;:::o;3281:390::-;-1:-1:-1;;;;;3396:20:7;;3378:15;3396:20;;;:13;:20;;;;;;3444:11;;3348:17;;3444:11;3496:22;;;;;;-1:-1:-1;;;3496:22:7;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;;;;;;;;;;;;;;;;;;;;3496:22:7;;;;;;;;;;;;;;;;;3466:52;;3534:9;3529:108;3553:6;3549:1;:10;3529:108;;;3596:26;;;;:17;:26;;;;;;;;:29;;;;;;;;;3581:44;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:12;;:9;;3623:1;;3581:12;;;;-1:-1:-1;;;3581:12:7;;;;;;;;;;;;;;:44;;;;3561:3;;;;;:::i;:::-;;;;3529:108;;;-1:-1:-1;3654:9:7;3281:390;-1:-1:-1;;;;3281:390:7:o;3945:143:2:-;4041:39;4058:4;4064:2;4068:7;4041:39;;;;;;;;;;;;:16;:39::i;1878:177:7:-;1947:5;;-1:-1:-1;;;;;1947:5:7;:19;;:42;;-1:-1:-1;1970:5:7;;-1:-1:-1;;;;;1970:5:7;1979:10;1970:19;1947:42;1939:82;;;;-1:-1:-1;;;1939:82:7;;13136:2:8;1939:82:7;;;13118:21:8;13175:2;13155:18;;;13148:30;13214:29;13194:18;;;13187:57;13261:18;;1939:82:7;13108:177:8;1939:82:7;2032:5;:15;;-1:-1:-1;;;;;;2032:15:7;-1:-1:-1;;;;;2032:15:7;;;;;;;;;;1878:177::o;2063:175::-;858:5;;-1:-1:-1;;;;;858:5:7;844:10;:19;836:49;;;;-1:-1:-1;;;836:49:7;;;;;;;:::i;:::-;2147:11:::1;;2141:3;:17;2133:69;;;::::0;-1:-1:-1;;;2133:69:7;;10803:2:8;2133:69:7::1;::::0;::::1;10785:21:8::0;10842:2;10822:18;;;10815:30;10881:34;10861:18;;;10854:62;-1:-1:-1;;;10932:18:8;;;10925:37;10979:19;;2133:69:7::1;10775:229:8::0;2133:69:7::1;2213:11;:17:::0;2063:175::o;3908:350::-;858:5;;-1:-1:-1;;;;;858:5:7;844:10;:19;836:49;;;;-1:-1:-1;;;836:49:7;;;;;;;:::i;:::-;-1:-1:-1;;;;;4023:20:7;::::1;4005:15;4023:20:::0;;;:13:::1;:20;::::0;;;;;4071:11:::1;::::0;4023:20;;4093:158:::1;4117:6;4113:1;:10;4093:158;;;4175:7;4183:1;4175:10;;;;;;-1:-1:-1::0;;;4175:10:7::1;;;;;;;;;;;;;;;4145:15;:24;4161:7;4145:24;;;;;;;;;;;:27;4170:1;4145:27;;;;;;;;;;;:40;;;;4225:1;4218:5;-1:-1:-1::0;;;;;4205:34:7::1;;4228:7;4236:1;4228:10;;;;;;-1:-1:-1::0;;;4228:10:7::1;;;;;;;;;;;;;;;4205:34;;;;8775:25:8::0;;8763:2;8748:18;;8730:76;4205:34:7::1;;;;;;;;4125:3:::0;::::1;::::0;::::1;:::i;:::-;;;;4093:158;;;;896:1;;3908:350:::0;;:::o;2684:146:2:-;2773:7;4615:22;;;:13;:22;;;;;;2755:7;;-1:-1:-1;;;;;4615:22:2;2182:56;;;;-1:-1:-1;;;2182:56:2;;13492:2:8;2182:56:2;;;13474:21:8;13531:2;13511:18;;;13504:30;13570:29;13550:18;;;13543:57;13617:18;;2182:56:2;13464:177:8;2182:56:2;-1:-1:-1;;2800:22:2::1;::::0;;;:13:::1;:22;::::0;;;;;-1:-1:-1;;;;;2800:22:2::1;::::0;2684:146::o;4574:336:7:-;858:5;;-1:-1:-1;;;;;858:5:7;844:10;:19;836:49;;;;-1:-1:-1;;;836:49:7;;;;;;;:::i;:::-;4637:12:::1;:14:::0;;;:12:::1;:14;::::0;::::1;:::i;:::-;;;;;;4662:15;4682:12;;4680:14;;;;;:::i;:::-;::::0;;;;-1:-1:-1;4591:4:2;4615:22;;;:13;:22;;;;;;4680:14:7;;-1:-1:-1;;;;;;4615:22:2;:36;4705:59:7::1;;;::::0;-1:-1:-1;;;4705:59:7;;14984:2:8;4705:59:7::1;::::0;::::1;14966:21:8::0;15023:2;15003:18;;;14996:30;15062:31;15042:18;;;15035:59;15111:18;;4705:59:7::1;14956:179:8::0;4705:59:7::1;-1:-1:-1::0;;;;;4777:20:7;::::1;;::::0;;;:13:::1;:20;::::0;;;;;;;:30;;;4818:22;;;:13:::1;:22:::0;;;;;;:30;;-1:-1:-1;;;;;;4818:30:7::1;::::0;::::1;::::0;;4866:36;4800:7;;4777:20;;4866:36:::1;::::0;4777:20;;4866:36:::1;896:1;4574:336:::0;:::o;2555:121:2:-;-1:-1:-1;;;;;4493:20:2;;2619:7;4493:20;;;:13;:20;;;;;;2646:22;;2667:1;2646:22;;;2663:1;2646:22;2639:29;;;2555:121;-1:-1:-1;;2555:121:2:o;2715:374:7:-;-1:-1:-1;;;;;2826:20:7;;2808:15;2826:20;;;:13;:20;;;;;;2874:11;;2780:15;;2874:11;2922:20;;;;;;-1:-1:-1;;;2922:20:7;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;2922:20:7;;2896:46;;2958:9;2953:104;2977:6;2973:1;:10;2953:104;;;3018:24;;;;:15;:24;;;;;;;;:27;;;;;;;;;3005:10;;:7;;3043:1;;3005:10;;;;-1:-1:-1;;;3005:10:7;;;;;;;;;;;;;;;;;;:40;2985:3;;;;:::i;:::-;;;;2953:104;;4918:603;858:5;;-1:-1:-1;;;;;858:5:7;844:10;:19;836:49;;;;-1:-1:-1;;;836:49:7;;;;;;;:::i;:::-;-1:-1:-1;;;;;4999:20:7;::::1;4981:15;4999:20:::0;;;:13:::1;:20;::::0;;;;;5032:12:::1;:14:::0;;4999:20;;5032:14:::1;::::0;::::1;:::i;:::-;::::0;;;-1:-1:-1;;;;;;;5064:20:7;::::1;;::::0;;;:13:::1;:20;::::0;;;;;;;5057:27;;;5102:22;;;:13:::1;:22:::0;;;;;5095:29;;-1:-1:-1;;;;;;5095:29:7;;::::1;::::0;;;5142:16:::1;:25:::0;;;;;5135:32;;;;::::1;::::0;;5197:11:::1;::::0;;5219:98:::1;5243:6;5239:1;:10;5219:98;;;5278:24;::::0;;;:15:::1;:24;::::0;;;;;;;:27;;;;;;;;5271:34;5303:1;5251:3:::1;5303:1:::0;5251:3:::1;:::i;:::-;;;;5219:98;;;-1:-1:-1::0;;5338:11:7::1;::::0;5365:9:::1;5360:100;5384:6;5380:1;:10;5360:100;;;5419:26;::::0;;;:17:::1;:26;::::0;;;;;;;:29;;;;;;;;5412:36;;;::::1;::::0;::::1;::::0;;;::::1;;::::0;5446:1;5392:3:::1;5446:1:::0;5392:3:::1;:::i;:::-;;;;5360:100;;;-1:-1:-1::0;5477:36:7::1;::::0;5505:7;;5501:1:::1;::::0;-1:-1:-1;;;;;5477:36:7;::::1;::::0;::::1;::::0;5501:1;;5477:36:::1;896:1;;4918:603:::0;:::o;1252:96::-;1300:13;1333:7;1326:14;;;;;:::i;3452:290:2:-;3555:10;4469:4;4493:20;;;:13;:20;;;;;;3539:75;;;;-1:-1:-1;;;3539:75:2;;9974:2:8;3539:75:2;;;9956:21:8;10013:2;9993:18;;;9986:30;10052:34;10032:18;;;10025:62;-1:-1:-1;;;10103:18:8;;;10096:41;10154:19;;3539:75:2;9946:233:8;3539:75:2;3640:10;3625:26;;;;:14;:26;;;;;;;;-1:-1:-1;;;;;3625:36:2;;;;;;;;;;;;:47;;-1:-1:-1;;3625:47:2;;;;;;;;;;3688:46;;8579:41:8;;;3625:36:2;;3640:10;3688:46;;8552:18:8;3688:46:2;;;;;;;3452:290;;:::o;2246:175:7:-;858:5;;-1:-1:-1;;;;;858:5:7;844:10;:19;836:49;;;;-1:-1:-1;;;836:49:7;;;;;;;:::i;:::-;2330:11:::1;;2324:3;:17;2316:69;;;::::0;-1:-1:-1;;;2316:69:7;;11972:2:8;2316:69:7::1;::::0;::::1;11954:21:8::0;12011:2;11991:18;;;11984:30;12050:34;12030:18;;;12023:62;-1:-1:-1;;;12101:18:8;;;12094:37;12148:19;;2316:69:7::1;11944:229:8::0;2316:69:7::1;2396:11;:17:::0;2246:175::o;4096:220:2:-;4211:48;4229:10;4241:4;4247:2;4251:7;4211:17;:48::i;:::-;4270:38;4284:4;4290:2;4294:7;4303:4;4270:13;:38::i;:::-;4096:220;;;;:::o;3679:221:7:-;858:5;;-1:-1:-1;;;;;858:5:7;844:10;:19;836:49;;;;-1:-1:-1;;;836:49:7;;;;;;;:::i;:::-;-1:-1:-1;;;;;3799:20:7;::::1;3783:37;3799:20:::0;;;:13:::1;:20;::::0;;;;;;;;3783:37;;:15:::1;:37:::0;;;;;:47;;;;;;;;;:56;;;3855:37;;8775:25:8;;;3783:47:7;;3799:20;3855:37:::1;::::0;8748:18:8;3855:37:7::1;;;;;;;;3679:221:::0;;;:::o;2999:173:2:-;-1:-1:-1;;;;;4493:20:2;;3109:4;4493:20;;;:13;:20;;;;;;3093:5;;2315:52;;;;-1:-1:-1;;;2315:52:2;;11211:2:8;2315:52:2;;;11193:21:8;11250:2;11230:18;;;11223:30;11289:27;11269:18;;;11262:55;11334:18;;2315:52:2;11183:175:8;2315:52:2;-1:-1:-1;;;;;;;3133:21:2;;::::1;;::::0;;;:14:::1;:21;::::0;;;;;;;:31;;;::::1;::::0;;;;;;;;::::1;;::::0;2999:173::o;2429:107:7:-;-1:-1:-1;;;;;4493:20:2;;2490:4:7;4493:20:2;;;:13;:20;;;;;;:25;;2514:14:7;4414:112:2;4266:300:7;858:5;;-1:-1:-1;;;;;858:5:7;844:10;:19;836:49;;;;-1:-1:-1;;;836:49:7;;;;;;;:::i;:::-;-1:-1:-1;;;;;4401:20:7;::::1;4383:39;4401:20:::0;;;:13:::1;:20;::::0;;;;;;;;4383:39;;:17:::1;:39:::0;;;;;:49;;;;;;;;;:60;;;;;;;::::1;::::0;;;::::1;::::0;;;;;::::1;::::0;::::1;::::0;;::::1;::::0;;;4459:99;;9007:25:8;;;9048:18;;;9041:34;;;;9091:18;;;9084:34;4383:49:7;;4401:20;4459:99:::1;::::0;8995:2:8;8980:18;4459:99:7::1;8962:162:8::0;4667:503:2;4796:16;4804:7;4796;:16::i;:::-;-1:-1:-1;;;;;4788:24:2;:4;-1:-1:-1;;;;;4788:24:2;;4780:78;;;;-1:-1:-1;;;4780:78:2;;12380:2:8;4780:78:2;;;12362:21:8;12419:2;12399:18;;;12392:30;12458:34;12438:18;;;12431:62;-1:-1:-1;;;12509:18:8;;;12502:39;12558:19;;4780:78:2;12352:231:8;4780:78:2;-1:-1:-1;;;;;4877:16:2;;;;;;:32;;-1:-1:-1;;;;;;4493:20:2;;4469:4;4493:20;;;:13;:20;;;;;;:25;4877:32;4869:93;;;;-1:-1:-1;;;4869:93:2;;13848:2:8;4869:93:2;;;13830:21:8;13887:2;13867:18;;;13860:30;13926:34;13906:18;;;13899:62;-1:-1:-1;;;13977:18:8;;;13970:46;14033:19;;4869:93:2;13820:238:8;4869:93:2;5007:4;-1:-1:-1;;;;;4995:16:2;:8;-1:-1:-1;;;;;4995:16:2;;:57;;;-1:-1:-1;5015:25:2;;;;:16;:25;;;;;;-1:-1:-1;;;;;5015:37:2;;;:25;;:37;4995:57;:91;;;-1:-1:-1;;;;;;5056:20:2;;;;;;;:14;:20;;;;;;;;:30;;;;;;;;;;;;4995:91;4973:189;;;;-1:-1:-1;;;4973:189:2;;10386:2:8;4973:189:2;;;10368:21:8;10425:2;10405:18;;;10398:30;10464:34;10444:18;;;10437:62;-1:-1:-1;;;10515:18:8;;;10508:46;10571:19;;4973:189:2;10358:238:8;5178:362:2;-1:-1:-1;;;;;5318:19:2;;;;;;;:13;:19;;;;;;;;5311:26;;;5355:25;;;:16;:25;;;;;5348:32;;-1:-1:-1;;;;;;5348:32:2;;;;;;5422:17;;;;;;;;;;;;:27;;;5460:22;;;:13;:22;;;;;;:27;;;;;;;;;;5505;;5372:7;;5422:17;5318:19;5505:27;;;5178:362;;;:::o;6195:299::-;6300:28;6310:4;6316:2;6320:7;6300:9;:28::i;:::-;6361:47;6384:4;6390:2;6394:7;6403:4;6361:22;:47::i;:::-;6339:147;;;;-1:-1:-1;;;6339:147:2;;9555:2:8;6339:147:2;;;9537:21:8;9594:2;9574:18;;;9567:30;9633:34;9613:18;;;9606:62;-1:-1:-1;;;9684:18:8;;;9677:48;9742:19;;6339:147:2;9527:240:8;7068:601:2;7189:4;-1:-1:-1;;;;;7216:13:2;;1118:20:0;7211:60:2;;-1:-1:-1;7255:4:2;7248:11;;7211:60;7281:23;7307:249;7360:45;;;7420:10;7445:4;7464:7;7486:4;7323:178;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;-1:-1:-1;;;;;7323:178:2;;;;;;;-1:-1:-1;;;;;7323:178:2;;;;;;;;;;;7307:249;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;7307:15:2;;;:249;:15;:249::i;:::-;7281:275;;7567:13;7594:10;7583:32;;;;;;;;;;;;:::i;:::-;-1:-1:-1;;;;;;7634:26:2;-1:-1:-1;;;7634:26:2;;-1:-1:-1;;;7068:601:2;;;;;;;:::o;3669:195:0:-;3772:12;3804:52;3826:6;3834:4;3840:1;3843:12;3804:21;:52::i;:::-;3797:59;;3669:195;;;;;;:::o;4721:530::-;4848:12;4906:5;4881:21;:30;;4873:81;;;;-1:-1:-1;;;4873:81:0;;11565:2:8;4873:81:0;;;11547:21:8;11604:2;11584:18;;;11577:30;11643:34;11623:18;;;11616:62;-1:-1:-1;;;11694:18:8;;;11687:36;11740:19;;4873:81:0;11537:228:8;4873:81:0;1118:20;;4965:60;;;;-1:-1:-1;;;4965:60:0;;14265:2:8;4965:60:0;;;14247:21:8;14304:2;14284:18;;;14277:30;14343:31;14323:18;;;14316:59;14392:18;;4965:60:0;14237:179:8;4965:60:0;5099:12;5113:23;5140:6;-1:-1:-1;;;;;5140:11:0;5160:5;5168:4;5140:33;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;5098:75;;;;5191:52;5209:7;5218:10;5230:12;5191:17;:52::i;:::-;5184:59;4721:530;-1:-1:-1;;;;;;;4721:530:0:o;6257:742::-;6372:12;6401:7;6397:595;;;-1:-1:-1;6432:10:0;6425:17;;6397:595;6546:17;;:21;6542:439;;6809:10;6803:17;6870:15;6857:10;6853:2;6849:19;6842:44;6757:148;6952:12;6945:20;;-1:-1:-1;;;6945:20:0;;;;;;;;:::i;14:173:8:-;82:20;;-1:-1:-1;;;;;131:31:8;;121:42;;111:2;;177:1;174;167:12;111:2;63:124;;;:::o;192:196::-;251:6;304:2;292:9;283:7;279:23;275:32;272:2;;;325:6;317;310:22;272:2;353:29;372:9;353:29;:::i;393:270::-;461:6;469;522:2;510:9;501:7;497:23;493:32;490:2;;;543:6;535;528:22;490:2;571:29;590:9;571:29;:::i;:::-;561:39;;619:38;653:2;642:9;638:18;619:38;:::i;:::-;609:48;;480:183;;;;;:::o;668:338::-;745:6;753;761;814:2;802:9;793:7;789:23;785:32;782:2;;;835:6;827;820:22;782:2;863:29;882:9;863:29;:::i;:::-;853:39;;911:38;945:2;934:9;930:18;911:38;:::i;:::-;901:48;;996:2;985:9;981:18;968:32;958:42;;772:234;;;;;:::o;1011:1025::-;1106:6;1114;1122;1130;1183:3;1171:9;1162:7;1158:23;1154:33;1151:2;;;1205:6;1197;1190:22;1151:2;1233:29;1252:9;1233:29;:::i;:::-;1223:39;;1281:2;1302:38;1336:2;1325:9;1321:18;1302:38;:::i;:::-;1292:48;;1387:2;1376:9;1372:18;1359:32;1349:42;;1442:2;1431:9;1427:18;1414:32;1465:18;1506:2;1498:6;1495:14;1492:2;;;1527:6;1519;1512:22;1492:2;1570:6;1559:9;1555:22;1545:32;;1615:7;1608:4;1604:2;1600:13;1596:27;1586:2;;1642:6;1634;1627:22;1586:2;1683;1670:16;1705:2;1701;1698:10;1695:2;;;1711:18;;:::i;:::-;1753:53;1796:2;1777:13;;-1:-1:-1;;1773:27:8;1769:36;;1753:53;:::i;:::-;1740:66;;1829:2;1822:5;1815:17;1869:7;1864:2;1859;1855;1851:11;1847:20;1844:33;1841:2;;;1895:6;1887;1880:22;1841:2;1955;1950;1946;1942:11;1937:2;1930:5;1926:14;1913:45;1978:14;;1974:23;;;1967:39;;;;1141:895;;;;-1:-1:-1;1141:895:8;;-1:-1:-1;;1141:895:8:o;2041:1075::-;2133:6;2141;2194:2;2182:9;2173:7;2169:23;2165:32;2162:2;;;2215:6;2207;2200:22;2162:2;2243:29;2262:9;2243:29;:::i;:::-;2233:39;;2291:2;2344;2333:9;2329:18;2316:32;2367:18;2408:2;2400:6;2397:14;2394:2;;;2429:6;2421;2414:22;2394:2;2472:6;2461:9;2457:22;2447:32;;2517:7;2510:4;2506:2;2502:13;2498:27;2488:2;;2544:6;2536;2529:22;2488:2;2585;2572:16;2607:2;2603;2600:10;2597:2;;;2613:18;;:::i;:::-;2659:2;2656:1;2652:10;2642:20;;2682:28;2706:2;2702;2698:11;2682:28;:::i;:::-;2744:15;;;2775:12;;;;2807:11;;;2837;;;2833:20;;2830:33;-1:-1:-1;2827:2:8;;;2881:6;2873;2866:22;2827:2;2908:6;2899:15;;2923:163;2937:2;2934:1;2931:9;2923:163;;;2994:17;;2982:30;;2955:1;2948:9;;;;;3032:12;;;;3064;;2923:163;;;2927:3;3105:5;3095:15;;;;;;;;2152:964;;;;;:::o;3121:367::-;3186:6;3194;3247:2;3235:9;3226:7;3222:23;3218:32;3215:2;;;3268:6;3260;3253:22;3215:2;3296:29;3315:9;3296:29;:::i;:::-;3286:39;;3375:2;3364:9;3360:18;3347:32;3422:5;3415:13;3408:21;3401:5;3398:32;3388:2;;3449:6;3441;3434:22;3388:2;3477:5;3467:15;;;3205:283;;;;;:::o;3493:264::-;3561:6;3569;3622:2;3610:9;3601:7;3597:23;3593:32;3590:2;;;3643:6;3635;3628:22;3590:2;3671:29;3690:9;3671:29;:::i;:::-;3661:39;3747:2;3732:18;;;;3719:32;;-1:-1:-1;;;3580:177:8:o;3762:331::-;3838:6;3846;3854;3907:2;3895:9;3886:7;3882:23;3878:32;3875:2;;;3928:6;3920;3913:22;3875:2;3956:29;3975:9;3956:29;:::i;:::-;3946:39;4032:2;4017:18;;4004:32;;-1:-1:-1;4083:2:8;4068:18;;;4055:32;;3865:228;-1:-1:-1;;;3865:228:8:o;4098:815::-;4200:6;4208;4216;4260:9;4251:7;4247:23;4290:3;4286:2;4282:12;4279:2;;;4312:6;4304;4297:22;4279:2;4340:29;4359:9;4340:29;:::i;:::-;4330:39;-1:-1:-1;4416:2:8;4401:18;;4388:32;;-1:-1:-1;4454:4:8;-1:-1:-1;;4436:16:8;;4432:27;4429:2;;;4477:6;4469;4462:22;4429:2;;4515;4509:9;4557:4;4549:6;4545:17;4628:6;4616:10;4613:22;4592:18;4580:10;4577:34;4574:62;4571:2;;;4639:18;;:::i;:::-;4679:10;4675:2;4668:22;;4742:2;4731:9;4727:18;4714:32;4706:6;4699:48;4808:4;4797:9;4793:20;4780:34;4775:2;4767:6;4763:15;4756:59;4876:3;4865:9;4861:19;4848:33;4843:2;4835:6;4831:15;4824:58;4901:6;4891:16;;;4227:686;;;;;:::o;4918:255::-;4976:6;5029:2;5017:9;5008:7;5004:23;5000:32;4997:2;;;5050:6;5042;5035:22;4997:2;5094:9;5081:23;5113:30;5137:5;5113:30;:::i;5178:259::-;5247:6;5300:2;5288:9;5279:7;5275:23;5271:32;5268:2;;;5321:6;5313;5306:22;5268:2;5358:9;5352:16;5377:30;5401:5;5377:30;:::i;5442:190::-;5501:6;5554:2;5542:9;5533:7;5529:23;5525:32;5522:2;;;5575:6;5567;5560:22;5522:2;-1:-1:-1;5603:23:8;;5512:120;-1:-1:-1;5512:120:8:o;5637:257::-;5678:3;5716:5;5710:12;5743:6;5738:3;5731:19;5759:63;5815:6;5808:4;5803:3;5799:14;5792:4;5785:5;5781:16;5759:63;:::i;:::-;5876:2;5855:15;-1:-1:-1;;5851:29:8;5842:39;;;;5883:4;5838:50;;5686:208;-1:-1:-1;;5686:208:8:o;6109:274::-;6238:3;6276:6;6270:13;6292:53;6338:6;6333:3;6326:4;6318:6;6314:17;6292:53;:::i;:::-;6361:16;;;;;6246:137;-1:-1:-1;;6246:137:8:o;6596:488::-;-1:-1:-1;;;;;6865:15:8;;;6847:34;;6917:15;;6912:2;6897:18;;6890:43;6964:2;6949:18;;6942:34;;;7012:3;7007:2;6992:18;;6985:31;;;6790:4;;7033:45;;7058:19;;7050:6;7033:45;:::i;:::-;7025:53;6799:285;-1:-1:-1;;;;;;6799:285:8:o;7089:633::-;7258:2;7310:21;;;7380:13;;7283:18;;;7402:22;;;7229:4;;7258:2;7481:15;;;;7455:2;7440:18;;;7229:4;7527:169;7541:6;7538:1;7535:13;7527:169;;;7602:13;;7590:26;;7671:15;;;;7636:12;;;;7563:1;7556:9;7527:169;;;-1:-1:-1;7713:3:8;;7238:484;-1:-1:-1;;;;;;7238:484:8:o;7727:707::-;7948:2;8000:21;;;8070:13;;7973:18;;;8092:22;;;7919:4;;7948:2;8171:15;;;;8145:2;8130:18;;;7919:4;8217:191;8231:6;8228:1;8225:13;8217:191;;;8280:46;8322:3;8313:6;8307:13;5973:12;;5961:25;;6035:4;6024:16;;;6018:23;6002:14;;;5995:47;6091:4;6080:16;;;6074:23;6058:14;;6051:47;5951:153;8280:46;8383:15;;;;8355:4;8346:14;;;;;8253:1;8246:9;8217:191;;9129:219;9278:2;9267:9;9260:21;9241:4;9298:44;9338:2;9327:9;9323:18;9315:6;9298:44;:::i;12588:341::-;12790:2;12772:21;;;12829:2;12809:18;;;12802:30;-1:-1:-1;;;12863:2:8;12848:18;;12841:47;12920:2;12905:18;;12762:167::o;15140:247::-;5973:12;;5961:25;;6035:4;6024:16;;;6018:23;6002:14;;;5995:47;6091:4;6080:16;;;6074:23;6058:14;;;6051:47;15324:2;15309:18;;15336:45;5951:153;15574:275;15645:2;15639:9;15710:2;15691:13;;-1:-1:-1;;15687:27:8;15675:40;;15745:18;15730:34;;15766:22;;;15727:62;15724:2;;;15792:18;;:::i;:::-;15828:2;15821:22;15619:230;;-1:-1:-1;15619:230:8:o;15854:258::-;15926:1;15936:113;15950:6;15947:1;15944:13;15936:113;;;16026:11;;;16020:18;16007:11;;;16000:39;15972:2;15965:10;15936:113;;;16067:6;16064:1;16061:13;16058:2;;;-1:-1:-1;;16102:1:8;16084:16;;16077:27;15907:205::o;16117:136::-;16156:3;16184:5;16174:2;;16193:18;;:::i;:::-;-1:-1:-1;;;16229:18:8;;16164:89::o;16258:380::-;16337:1;16333:12;;;;16380;;;16401:2;;16455:4;16447:6;16443:17;16433:27;;16401:2;16508;16500:6;16497:14;16477:18;16474:38;16471:2;;;16554:10;16549:3;16545:20;16542:1;16535:31;16589:4;16586:1;16579:15;16617:4;16614:1;16607:15;16643:135;16682:3;-1:-1:-1;;16703:17:8;;16700:2;;;16723:18;;:::i;:::-;-1:-1:-1;16770:1:8;16759:13;;16690:88::o;16783:127::-;16844:10;16839:3;16835:20;16832:1;16825:31;16875:4;16872:1;16865:15;16899:4;16896:1;16889:15;16915:127;16976:10;16971:3;16967:20;16964:1;16957:31;17007:4;17004:1;16997:15;17031:4;17028:1;17021:15;17047:131;-1:-1:-1;;;;;;17121:32:8;;17111:43;;17101:2;;17168:1;17165;17158:12;17101:2;17091:87;:::o

Swarm Source

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