ETH Price: $2,626.52 (-2.03%)

Token

Hibiscus Designer Split Research Contract V0 (FWBS5)
 

Overview

Max Total Supply

10 FWBS5

Holders

4

Market

Volume (24H)

N/A

Min Price (24H)

N/A

Max Price (24H)

N/A
Filtered by Token Holder
eugeneangelo.eth
Balance
6 FWBS5
0xaccaad08fbf99487b487c73fc8f67d1d8a6ab412
Loading...
Loading
Loading...
Loading
Loading...
Loading

OVERVIEW

ERC-721 contract with NFT supply mapped to participants in a project. Used to represent participation in a garment collection and allows each holder to claim a % of the project profits. When $ is routed through the contract, the split is updated based on wallets holding the relevant NFTs.

# Exchange Pair Price  24H Volume % Volume

Contract Source Code Verified (Exact Match)

Contract Name:
HibiscusDesignerSplitResearchContractV0

Compiler Version
v0.8.17+commit.8df45f5f

Optimization Enabled:
Yes with 200 runs

Other Settings:
default evmVersion
File 1 of 13 : HibiscusDesignerSplitResearchContractV0.sol
/** 
        *              *              *                                              
      &&&&&          &&&&&          &&&&&       
     &&&&&&&        &&&&&&&        &&&&&&&      
     &&&&&&&        &&&&&&&        &&&&&&&      
      &&&&&          &&&&&          &&&&&       
                                                  
        &              &              &                                              
     &&&&&&&        &&&&&&&        &&&&&&&     
   (&&&&&&&&&)    (&&&&&&&&&)    (&&&&&&&&&)     
  (&&&&&&&&&&&)  (&&&&&&&&&&&)  (&&&&&&&&&&&)    
   (&&&&&&&&&)    (&&&&&&&&&)    (&&&&&&&&&)     
     &&&&&&&        &&&&&&&        &&&&&&&     
        &              &              &                                                                                
                                                  
      &&&&&          &&&&&          &&&&&       
     &&&&&&&        &&&&&&&        &&&&&&&      
     &&&&&&&        &&&&&&&        &&&&&&&      
      &&&&&          &&&&&          &&&&&       
        *              *              *  
  HIBISCUS Technologies;
  
  SPDX-License-Identifier: MIT  
  Copyright (c) 2022 Hibiscus Technologies
  https://hibiscus.tech/
  @hibiscusdao
 **/

pragma solidity ^0.8.17;

import {ERC721} from "solmate/tokens/ERC721.sol";
import {Owned} from "solmate/auth/Owned.sol";
import {LibString} from "solmate/utils/LibString.sol";
import {LiquidSplit} from "./LiquidSplit.sol";
import {IERC2981Royalties} from "./interfaces/IERC2981Royalties.sol";
import {DefaultOperatorFilterer} from "operator-filter-registry/DefaultOperatorFilterer.sol";

/// @title HibiscusDesignerSplitResearchContractV0
/// @author HibiscusDAO forked & modified implementation of 0xSplits splits-liquid-template
/// @dev This contract uses token = address(0) to refer to ETH.
contract HibiscusDesignerSplitResearchContractV0 is Owned, LiquidSplit, ERC721, DefaultOperatorFilterer, IERC2981Royalties {
    using LibString for uint256;

    error TokenDoesNotExist(uint256 tokenId);

    /// @notice Royalty percentage / 10000
    uint256 public royaltyPoints;

    /// @notice Total number of tokens minted on contract deployment
    uint256 public totalSupply = 10;

    /// @notice Base URI for minted tokens
    string public baseURI;

    /// @notice An array representation of the split allocation for each token. 
    /// @dev sum(splitByTokenId) = 1e6 === LiquidSplit PERCENTAGE_SCALE
    uint32[] public splitByTokenId = [
        333333, // token 0 - distribution token 1
        333333, // token 1 - distribution token 2
        7936,   // token 2 - bff t-shirt
        70902,  // token 3 - together hooded sweatshirt
        49736,  // token 4 - together long sleeve shirt
        47102,  // token 5 - basics t-shirt
        73350,  // token 6 - basics hooded sweatshirt
        36676,  // token 7 - basics flannel hat
        31754,  // token 8 - embroidery token 1
        15878   // token 9 - embroidery token 2
    ];

    /// @notice Sets URI and mints tokens to initial holders
    /// @param accounts Array of initial holder addresses
    /// @param _splitMain Address of the 
    /// @param _owner Address of the contract owner
    /// @param _baseURI Base URI for tokenURI
    /// @param _royaltyPoints Basis points of royalties paid to the split contract
    constructor(
        address[] memory accounts,
        address _splitMain,
        address _owner,
        string memory _baseURI,
        uint256 _royaltyPoints
    ) 
        ERC721("Hibiscus Designer Split Research Contract V0", "FWBS5") 
        Owned(_owner) 
        LiquidSplit(_splitMain, 0) 
    {
        /// set baseURI for contract
        baseURI = _baseURI;

        // set royalty points
        royaltyPoints = _royaltyPoints;

        /// mint NFTs to initial holders
        unchecked {
            for (uint256 i; i < totalSupply; ++i) {
                _safeMint(accounts[i], i);
            }
        }
    }

    /// @notice Returns a user's percentage split allocation where LiquidSplit PERCENTAGE_SCALE = 1e6
    /// @param account address to return allocation for
    /// @return percentBalance The allocation for this address
    function scaledPercentBalanceOf(address account) public view override returns (uint32 percentBalance) {
        for (uint256 i; i < totalSupply;) {
            if (ownerOf(i) == account) {
                percentBalance += splitByTokenId[i];
            }
            unchecked {
                /// overflow should be impossible in for-loop index
                ++i;
            }
        }
    }

    /// @notice Returns a token's URI if it has been minted
    /// @param tokenId The id of the token to get the URI for
    function tokenURI(uint256 tokenId) public view override returns (string memory) {
        if (ownerOf(tokenId) == address(0)) {
            revert TokenDoesNotExist(tokenId);
        }
        return bytes(baseURI).length > 0 ? string(abi.encodePacked(baseURI,"token_",tokenId.toString(), ".json")) : "";
    }

    /// @notice Set royalty points
    /// @param _royaltyPoints Royalty percentage / 10000
    function setRoyaltyPoints(uint256 _royaltyPoints) external onlyOwner {
        royaltyPoints = _royaltyPoints;
    }

    /// @notice Called with the sale price to determine how much royalty
    //          is owed and to whom.
    /// @param _tokenId - the NFT asset queried for royalty information
    /// @param _value - the sale price of the NFT asset specified by _tokenId
    /// @return _receiver - address of who should be sent the royalty payment
    /// @return _royaltyAmount - the royalty payment amount for value sale price
    function royaltyInfo(uint256 _tokenId, uint256 _value)
        external
        view
        override(IERC2981Royalties)
        returns (address _receiver, uint256 _royaltyAmount)
    {
        return (address(this), (_value * royaltyPoints) / 10000);
    }


    /** 
        OpenSea Royalty Enforcement function overrides
    **/
    function setApprovalForAll(address operator, bool approved) public override onlyAllowedOperatorApproval(operator) {
        super.setApprovalForAll(operator, approved);
    }

    function approve(address operator, uint256 tokenId) public override onlyAllowedOperatorApproval(operator) {
        super.approve(operator, tokenId);
    }

    function transferFrom(address from, address to, uint256 tokenId) public override onlyAllowedOperator(from) {
        super.transferFrom(from, to, tokenId);
    }

    function safeTransferFrom(address from, address to, uint256 tokenId) public override onlyAllowedOperator(from) {
        super.safeTransferFrom(from, to, tokenId);
    }

    function safeTransferFrom(address from, address to, uint256 tokenId, bytes calldata data)
        public
        override
        onlyAllowedOperator(from)
    {
        super.safeTransferFrom(from, to, tokenId, data);
    }
}

File 2 of 13 : DefaultOperatorFilterer.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.13;

import {OperatorFilterer} from "./OperatorFilterer.sol";
import {CANONICAL_CORI_SUBSCRIPTION} from "./lib/Constants.sol";
/**
 * @title  DefaultOperatorFilterer
 * @notice Inherits from OperatorFilterer and automatically subscribes to the default OpenSea subscription.
 * @dev    Please note that if your token contract does not provide an owner with EIP-173, it must provide
 *         administration methods on the contract itself to interact with the registry otherwise the subscription
 *         will be locked to the options set during construction.
 */

abstract contract DefaultOperatorFilterer is OperatorFilterer {
    /// @dev The constructor that is called when the contract is being deployed.
    constructor() OperatorFilterer(CANONICAL_CORI_SUBSCRIPTION, true) {}
}

File 3 of 13 : IOperatorFilterRegistry.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.13;

interface IOperatorFilterRegistry {
    /**
     * @notice Returns true if operator is not filtered for a given token, either by address or codeHash. Also returns
     *         true if supplied registrant address is not registered.
     */
    function isOperatorAllowed(address registrant, address operator) external view returns (bool);

    /**
     * @notice Registers an address with the registry. May be called by address itself or by EIP-173 owner.
     */
    function register(address registrant) external;

    /**
     * @notice Registers an address with the registry and "subscribes" to another address's filtered operators and codeHashes.
     */
    function registerAndSubscribe(address registrant, address subscription) external;

    /**
     * @notice Registers an address with the registry and copies the filtered operators and codeHashes from another
     *         address without subscribing.
     */
    function registerAndCopyEntries(address registrant, address registrantToCopy) external;

    /**
     * @notice Unregisters an address with the registry and removes its subscription. May be called by address itself or by EIP-173 owner.
     *         Note that this does not remove any filtered addresses or codeHashes.
     *         Also note that any subscriptions to this registrant will still be active and follow the existing filtered addresses and codehashes.
     */
    function unregister(address addr) external;

    /**
     * @notice Update an operator address for a registered address - when filtered is true, the operator is filtered.
     */
    function updateOperator(address registrant, address operator, bool filtered) external;

    /**
     * @notice Update multiple operators for a registered address - when filtered is true, the operators will be filtered. Reverts on duplicates.
     */
    function updateOperators(address registrant, address[] calldata operators, bool filtered) external;

    /**
     * @notice Update a codeHash for a registered address - when filtered is true, the codeHash is filtered.
     */
    function updateCodeHash(address registrant, bytes32 codehash, bool filtered) external;

    /**
     * @notice Update multiple codeHashes for a registered address - when filtered is true, the codeHashes will be filtered. Reverts on duplicates.
     */
    function updateCodeHashes(address registrant, bytes32[] calldata codeHashes, bool filtered) external;

    /**
     * @notice Subscribe an address to another registrant's filtered operators and codeHashes. Will remove previous
     *         subscription if present.
     *         Note that accounts with subscriptions may go on to subscribe to other accounts - in this case,
     *         subscriptions will not be forwarded. Instead the former subscription's existing entries will still be
     *         used.
     */
    function subscribe(address registrant, address registrantToSubscribe) external;

    /**
     * @notice Unsubscribe an address from its current subscribed registrant, and optionally copy its filtered operators and codeHashes.
     */
    function unsubscribe(address registrant, bool copyExistingEntries) external;

    /**
     * @notice Get the subscription address of a given registrant, if any.
     */
    function subscriptionOf(address addr) external returns (address registrant);

    /**
     * @notice Get the set of addresses subscribed to a given registrant.
     *         Note that order is not guaranteed as updates are made.
     */
    function subscribers(address registrant) external returns (address[] memory);

    /**
     * @notice Get the subscriber at a given index in the set of addresses subscribed to a given registrant.
     *         Note that order is not guaranteed as updates are made.
     */
    function subscriberAt(address registrant, uint256 index) external returns (address);

    /**
     * @notice Copy filtered operators and codeHashes from a different registrantToCopy to addr.
     */
    function copyEntriesOf(address registrant, address registrantToCopy) external;

    /**
     * @notice Returns true if operator is filtered by a given address or its subscription.
     */
    function isOperatorFiltered(address registrant, address operator) external returns (bool);

    /**
     * @notice Returns true if the hash of an address's code is filtered by a given address or its subscription.
     */
    function isCodeHashOfFiltered(address registrant, address operatorWithCode) external returns (bool);

    /**
     * @notice Returns true if a codeHash is filtered by a given address or its subscription.
     */
    function isCodeHashFiltered(address registrant, bytes32 codeHash) external returns (bool);

    /**
     * @notice Returns a list of filtered operators for a given address or its subscription.
     */
    function filteredOperators(address addr) external returns (address[] memory);

    /**
     * @notice Returns the set of filtered codeHashes for a given address or its subscription.
     *         Note that order is not guaranteed as updates are made.
     */
    function filteredCodeHashes(address addr) external returns (bytes32[] memory);

    /**
     * @notice Returns the filtered operator at the given index of the set of filtered operators for a given address or
     *         its subscription.
     *         Note that order is not guaranteed as updates are made.
     */
    function filteredOperatorAt(address registrant, uint256 index) external returns (address);

    /**
     * @notice Returns the filtered codeHash at the given index of the list of filtered codeHashes for a given address or
     *         its subscription.
     *         Note that order is not guaranteed as updates are made.
     */
    function filteredCodeHashAt(address registrant, uint256 index) external returns (bytes32);

    /**
     * @notice Returns true if an address has registered
     */
    function isRegistered(address addr) external returns (bool);

    /**
     * @dev Convenience method to compute the code hash of an arbitrary contract
     */
    function codeHashOf(address addr) external returns (bytes32);
}

File 4 of 13 : OperatorFilterer.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.13;

import {IOperatorFilterRegistry} from "./IOperatorFilterRegistry.sol";
import {CANONICAL_OPERATOR_FILTER_REGISTRY_ADDRESS} from "./lib/Constants.sol";
/**
 * @title  OperatorFilterer
 * @notice Abstract contract whose constructor automatically registers and optionally subscribes to or copies another
 *         registrant's entries in the OperatorFilterRegistry.
 * @dev    This smart contract is meant to be inherited by token contracts so they can use the following:
 *         - `onlyAllowedOperator` modifier for `transferFrom` and `safeTransferFrom` methods.
 *         - `onlyAllowedOperatorApproval` modifier for `approve` and `setApprovalForAll` methods.
 *         Please note that if your token contract does not provide an owner with EIP-173, it must provide
 *         administration methods on the contract itself to interact with the registry otherwise the subscription
 *         will be locked to the options set during construction.
 */

abstract contract OperatorFilterer {
    /// @dev Emitted when an operator is not allowed.
    error OperatorNotAllowed(address operator);

    IOperatorFilterRegistry public constant OPERATOR_FILTER_REGISTRY =
        IOperatorFilterRegistry(CANONICAL_OPERATOR_FILTER_REGISTRY_ADDRESS);

    /// @dev The constructor that is called when the contract is being deployed.
    constructor(address subscriptionOrRegistrantToCopy, bool subscribe) {
        // If an inheriting token contract is deployed to a network without the registry deployed, the modifier
        // will not revert, but the contract will need to be registered with the registry once it is deployed in
        // order for the modifier to filter addresses.
        if (address(OPERATOR_FILTER_REGISTRY).code.length > 0) {
            if (subscribe) {
                OPERATOR_FILTER_REGISTRY.registerAndSubscribe(address(this), subscriptionOrRegistrantToCopy);
            } else {
                if (subscriptionOrRegistrantToCopy != address(0)) {
                    OPERATOR_FILTER_REGISTRY.registerAndCopyEntries(address(this), subscriptionOrRegistrantToCopy);
                } else {
                    OPERATOR_FILTER_REGISTRY.register(address(this));
                }
            }
        }
    }

    /**
     * @dev A helper function to check if an operator is allowed.
     */
    modifier onlyAllowedOperator(address from) virtual {
        // Allow spending tokens from addresses with balance
        // Note that this still allows listings and marketplaces with escrow to transfer tokens if transferred
        // from an EOA.
        if (from != msg.sender) {
            _checkFilterOperator(msg.sender);
        }
        _;
    }

    /**
     * @dev A helper function to check if an operator approval is allowed.
     */
    modifier onlyAllowedOperatorApproval(address operator) virtual {
        _checkFilterOperator(operator);
        _;
    }

    /**
     * @dev A helper function to check if an operator is allowed.
     */
    function _checkFilterOperator(address operator) internal view virtual {
        // Check registry code length to facilitate testing in environments without a deployed registry.
        if (address(OPERATOR_FILTER_REGISTRY).code.length > 0) {
            // under normal circumstances, this function will revert rather than return false, but inheriting contracts
            // may specify their own OperatorFilterRegistry implementations, which may behave differently
            if (!OPERATOR_FILTER_REGISTRY.isOperatorAllowed(address(this), operator)) {
                revert OperatorNotAllowed(operator);
            }
        }
    }
}

File 5 of 13 : Constants.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.17;

address constant CANONICAL_OPERATOR_FILTER_REGISTRY_ADDRESS = 0x000000000000AAeB6D7670E522A718067333cd4E;
address constant CANONICAL_CORI_SUBSCRIPTION = 0x3cc6CddA760b79bAfa08dF41ECFA224f810dCeB6;

File 6 of 13 : SafeTransferLib.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.4;

/// @notice Safe ETH and ERC20 transfer library that gracefully handles missing return values.
/// @author Solady (https://github.com/vectorized/solady/blob/main/src/utils/SafeTransferLib.sol)
/// @author Modified from Solmate (https://github.com/transmissions11/solmate/blob/main/src/utils/SafeTransferLib.sol)
/// @dev Caution! This library won't check that a token has code, responsibility is delegated to the caller.
library SafeTransferLib {
    /*´:°•.°+.*•´.*:˚.°*.˚•´.°:°•.°•.*•´.*:˚.°*.˚•´.°:°•.°+.*•´.*:*/
    /*                       CUSTOM ERRORS                        */
    /*.•°:°.´+˚.*°.˚:*.´•*.+°.•°:´*.´•*.•°.•°:°.´:•˚°.*°.˚:*.´+°.•*/

    /// @dev The ETH transfer has failed.
    error ETHTransferFailed();

    /// @dev The ERC20 `transferFrom` has failed.
    error TransferFromFailed();

    /// @dev The ERC20 `transfer` has failed.
    error TransferFailed();

    /// @dev The ERC20 `approve` has failed.
    error ApproveFailed();

    /*´:°•.°+.*•´.*:˚.°*.˚•´.°:°•.°•.*•´.*:˚.°*.˚•´.°:°•.°+.*•´.*:*/
    /*                         CONSTANTS                          */
    /*.•°:°.´+˚.*°.˚:*.´•*.+°.•°:´*.´•*.•°.•°:°.´:•˚°.*°.˚:*.´+°.•*/

    /// @dev Suggested gas stipend for contract receiving ETH
    /// that disallows any storage writes.
    uint256 internal constant _GAS_STIPEND_NO_STORAGE_WRITES = 2300;

    /// @dev Suggested gas stipend for contract receiving ETH to perform a few
    /// storage reads and writes, but low enough to prevent griefing.
    /// Multiply by a small constant (e.g. 2), if needed.
    uint256 internal constant _GAS_STIPEND_NO_GRIEF = 100000;

    /*´:°•.°+.*•´.*:˚.°*.˚•´.°:°•.°•.*•´.*:˚.°*.˚•´.°:°•.°+.*•´.*:*/
    /*                       ETH OPERATIONS                       */
    /*.•°:°.´+˚.*°.˚:*.´•*.+°.•°:´*.´•*.•°.•°:°.´:•˚°.*°.˚:*.´+°.•*/

    /// @dev Sends `amount` (in wei) ETH to `to`.
    /// Reverts upon failure.
    function safeTransferETH(address to, uint256 amount) internal {
        /// @solidity memory-safe-assembly
        assembly {
            // Transfer the ETH and check if it succeeded or not.
            if iszero(call(gas(), to, amount, 0, 0, 0, 0)) {
                // Store the function selector of `ETHTransferFailed()`.
                mstore(0x00, 0xb12d13eb)
                // Revert with (offset, size).
                revert(0x1c, 0x04)
            }
        }
    }

    /// @dev Force sends `amount` (in wei) ETH to `to`, with a `gasStipend`.
    /// The `gasStipend` can be set to a low enough value to prevent
    /// storage writes or gas griefing.
    ///
    /// If sending via the normal procedure fails, force sends the ETH by
    /// creating a temporary contract which uses `SELFDESTRUCT` to force send the ETH.
    ///
    /// Reverts if the current contract has insufficient balance.
    function forceSafeTransferETH(address to, uint256 amount, uint256 gasStipend) internal {
        /// @solidity memory-safe-assembly
        assembly {
            // If insufficient balance, revert.
            if lt(selfbalance(), amount) {
                // Store the function selector of `ETHTransferFailed()`.
                mstore(0x00, 0xb12d13eb)
                // Revert with (offset, size).
                revert(0x1c, 0x04)
            }
            // Transfer the ETH and check if it succeeded or not.
            if iszero(call(gasStipend, to, amount, 0, 0, 0, 0)) {
                mstore(0x00, to) // Store the address in scratch space.
                mstore8(0x0b, 0x73) // Opcode `PUSH20`.
                mstore8(0x20, 0xff) // Opcode `SELFDESTRUCT`.
                // We can directly use `SELFDESTRUCT` in the contract creation.
                // Compatible with `SENDALL`: https://eips.ethereum.org/EIPS/eip-4758
                pop(create(amount, 0x0b, 0x16))
            }
        }
    }

    /// @dev Force sends `amount` (in wei) ETH to `to`, with a gas stipend
    /// equal to `_GAS_STIPEND_NO_GRIEF`. This gas stipend is a reasonable default
    /// for 99% of cases and can be overriden with the three-argument version of this
    /// function if necessary.
    ///
    /// If sending via the normal procedure fails, force sends the ETH by
    /// creating a temporary contract which uses `SELFDESTRUCT` to force send the ETH.
    ///
    /// Reverts if the current contract has insufficient balance.
    function forceSafeTransferETH(address to, uint256 amount) internal {
        // Manually inlined because the compiler doesn't inline functions with branches.
        /// @solidity memory-safe-assembly
        assembly {
            // If insufficient balance, revert.
            if lt(selfbalance(), amount) {
                // Store the function selector of `ETHTransferFailed()`.
                mstore(0x00, 0xb12d13eb)
                // Revert with (offset, size).
                revert(0x1c, 0x04)
            }
            // Transfer the ETH and check if it succeeded or not.
            if iszero(call(_GAS_STIPEND_NO_GRIEF, to, amount, 0, 0, 0, 0)) {
                mstore(0x00, to) // Store the address in scratch space.
                mstore8(0x0b, 0x73) // Opcode `PUSH20`.
                mstore8(0x20, 0xff) // Opcode `SELFDESTRUCT`.
                // We can directly use `SELFDESTRUCT` in the contract creation.
                // Compatible with `SENDALL`: https://eips.ethereum.org/EIPS/eip-4758
                pop(create(amount, 0x0b, 0x16))
            }
        }
    }

    /// @dev Sends `amount` (in wei) ETH to `to`, with a `gasStipend`.
    /// The `gasStipend` can be set to a low enough value to prevent
    /// storage writes or gas griefing.
    ///
    /// Simply use `gasleft()` for `gasStipend` if you don't need a gas stipend.
    ///
    /// Note: Does NOT revert upon failure.
    /// Returns whether the transfer of ETH is successful instead.
    function trySafeTransferETH(address to, uint256 amount, uint256 gasStipend)
        internal
        returns (bool success)
    {
        /// @solidity memory-safe-assembly
        assembly {
            // Transfer the ETH and check if it succeeded or not.
            success := call(gasStipend, to, amount, 0, 0, 0, 0)
        }
    }

    /*´:°•.°+.*•´.*:˚.°*.˚•´.°:°•.°•.*•´.*:˚.°*.˚•´.°:°•.°+.*•´.*:*/
    /*                      ERC20 OPERATIONS                      */
    /*.•°:°.´+˚.*°.˚:*.´•*.+°.•°:´*.´•*.•°.•°:°.´:•˚°.*°.˚:*.´+°.•*/

    /// @dev Sends `amount` of ERC20 `token` from `from` to `to`.
    /// Reverts upon failure.
    ///
    /// The `from` account must have at least `amount` approved for
    /// the current contract to manage.
    function safeTransferFrom(address token, address from, address to, uint256 amount) internal {
        /// @solidity memory-safe-assembly
        assembly {
            let m := mload(0x40) // Cache the free memory pointer.

            // Store the function selector of `transferFrom(address,address,uint256)`.
            mstore(0x00, 0x23b872dd)
            mstore(0x20, from) // Store the `from` argument.
            mstore(0x40, to) // Store the `to` argument.
            mstore(0x60, amount) // Store the `amount` argument.

            if iszero(
                and( // The arguments of `and` are evaluated from right to left.
                    // Set success to whether the call reverted, if not we check it either
                    // returned exactly 1 (can't just be non-zero data), or had no return data.
                    or(eq(mload(0x00), 1), iszero(returndatasize())),
                    call(gas(), token, 0, 0x1c, 0x64, 0x00, 0x20)
                )
            ) {
                // Store the function selector of `TransferFromFailed()`.
                mstore(0x00, 0x7939f424)
                // Revert with (offset, size).
                revert(0x1c, 0x04)
            }

            mstore(0x60, 0) // Restore the zero slot to zero.
            mstore(0x40, m) // Restore the free memory pointer.
        }
    }

    /// @dev Sends all of ERC20 `token` from `from` to `to`.
    /// Reverts upon failure.
    ///
    /// The `from` account must have at least `amount` approved for
    /// the current contract to manage.
    function safeTransferAllFrom(address token, address from, address to)
        internal
        returns (uint256 amount)
    {
        /// @solidity memory-safe-assembly
        assembly {
            let m := mload(0x40) // Cache the free memory pointer.

            mstore(0x00, 0x70a08231) // Store the function selector of `balanceOf(address)`.
            mstore(0x20, from) // Store the `from` argument.
            if iszero(
                and( // The arguments of `and` are evaluated from right to left.
                    gt(returndatasize(), 0x1f), // At least 32 bytes returned.
                    staticcall(gas(), token, 0x1c, 0x24, 0x60, 0x20)
                )
            ) {
                // Store the function selector of `TransferFromFailed()`.
                mstore(0x00, 0x7939f424)
                // Revert with (offset, size).
                revert(0x1c, 0x04)
            }

            // Store the function selector of `transferFrom(address,address,uint256)`.
            mstore(0x00, 0x23b872dd)
            mstore(0x40, to) // Store the `to` argument.
            // The `amount` argument is already written to the memory word at 0x6a.
            amount := mload(0x60)

            if iszero(
                and( // The arguments of `and` are evaluated from right to left.
                    // Set success to whether the call reverted, if not we check it either
                    // returned exactly 1 (can't just be non-zero data), or had no return data.
                    or(eq(mload(0x00), 1), iszero(returndatasize())),
                    call(gas(), token, 0, 0x1c, 0x64, 0x00, 0x20)
                )
            ) {
                // Store the function selector of `TransferFromFailed()`.
                mstore(0x00, 0x7939f424)
                // Revert with (offset, size).
                revert(0x1c, 0x04)
            }

            mstore(0x60, 0) // Restore the zero slot to zero.
            mstore(0x40, m) // Restore the free memory pointer.
        }
    }

    /// @dev Sends `amount` of ERC20 `token` from the current contract to `to`.
    /// Reverts upon failure.
    function safeTransfer(address token, address to, uint256 amount) internal {
        /// @solidity memory-safe-assembly
        assembly {
            mstore(0x1a, to) // Store the `to` argument.
            mstore(0x3a, amount) // Store the `amount` argument.
            // Store the function selector of `transfer(address,uint256)`,
            // left by 6 bytes (enough for 8tb of memory represented by the free memory pointer).
            // We waste 6-3 = 3 bytes to save on 6 runtime gas (PUSH1 0x224 SHL).
            mstore(0x00, 0xa9059cbb000000000000)

            if iszero(
                and( // The arguments of `and` are evaluated from right to left.
                    // Set success to whether the call reverted, if not we check it either
                    // returned exactly 1 (can't just be non-zero data), or had no return data.
                    or(eq(mload(0x00), 1), iszero(returndatasize())),
                    call(gas(), token, 0, 0x16, 0x44, 0x00, 0x20)
                )
            ) {
                // Store the function selector of `TransferFailed()`.
                mstore(0x00, 0x90b8ec18)
                // Revert with (offset, size).
                revert(0x1c, 0x04)
            }
            // Restore the part of the free memory pointer that was overwritten,
            // which is guaranteed to be zero, if less than 8tb of memory is used.
            mstore(0x3a, 0)
        }
    }

    /// @dev Sends all of ERC20 `token` from the current contract to `to`.
    /// Reverts upon failure.
    function safeTransferAll(address token, address to) internal returns (uint256 amount) {
        /// @solidity memory-safe-assembly
        assembly {
            mstore(0x00, 0x70a08231) // Store the function selector of `balanceOf(address)`.
            mstore(0x20, address()) // Store the address of the current contract.
            if iszero(
                and( // The arguments of `and` are evaluated from right to left.
                    gt(returndatasize(), 0x1f), // At least 32 bytes returned.
                    staticcall(gas(), token, 0x1c, 0x24, 0x3a, 0x20)
                )
            ) {
                // Store the function selector of `TransferFailed()`.
                mstore(0x00, 0x90b8ec18)
                // Revert with (offset, size).
                revert(0x1c, 0x04)
            }

            mstore(0x1a, to) // Store the `to` argument.
            // The `amount` argument is already written to the memory word at 0x3a.
            amount := mload(0x3a)
            // Store the function selector of `transfer(address,uint256)`,
            // left by 6 bytes (enough for 8tb of memory represented by the free memory pointer).
            // We waste 6-3 = 3 bytes to save on 6 runtime gas (PUSH1 0x224 SHL).
            mstore(0x00, 0xa9059cbb000000000000)

            if iszero(
                and( // The arguments of `and` are evaluated from right to left.
                    // Set success to whether the call reverted, if not we check it either
                    // returned exactly 1 (can't just be non-zero data), or had no return data.
                    or(eq(mload(0x00), 1), iszero(returndatasize())),
                    call(gas(), token, 0, 0x16, 0x44, 0x00, 0x20)
                )
            ) {
                // Store the function selector of `TransferFailed()`.
                mstore(0x00, 0x90b8ec18)
                // Revert with (offset, size).
                revert(0x1c, 0x04)
            }
            // Restore the part of the free memory pointer that was overwritten,
            // which is guaranteed to be zero, if less than 8tb of memory is used.
            mstore(0x3a, 0)
        }
    }

    /// @dev Sets `amount` of ERC20 `token` for `to` to manage on behalf of the current contract.
    /// Reverts upon failure.
    function safeApprove(address token, address to, uint256 amount) internal {
        /// @solidity memory-safe-assembly
        assembly {
            mstore(0x1a, to) // Store the `to` argument.
            mstore(0x3a, amount) // Store the `amount` argument.
            // Store the function selector of `approve(address,uint256)`,
            // left by 6 bytes (enough for 8tb of memory represented by the free memory pointer).
            // We waste 6-3 = 3 bytes to save on 6 runtime gas (PUSH1 0x224 SHL).
            mstore(0x00, 0x095ea7b3000000000000)

            if iszero(
                and( // The arguments of `and` are evaluated from right to left.
                    // Set success to whether the call reverted, if not we check it either
                    // returned exactly 1 (can't just be non-zero data), or had no return data.
                    or(eq(mload(0x00), 1), iszero(returndatasize())),
                    call(gas(), token, 0, 0x16, 0x44, 0x00, 0x20)
                )
            ) {
                // Store the function selector of `ApproveFailed()`.
                mstore(0x00, 0x3e3f8f73)
                // Revert with (offset, size).
                revert(0x1c, 0x04)
            }
            // Restore the part of the free memory pointer that was overwritten,
            // which is guaranteed to be zero, if less than 8tb of memory is used.
            mstore(0x3a, 0)
        }
    }

    /// @dev Returns the amount of ERC20 `token` owned by `account`.
    /// Returns zero if the `token` does not exist.
    function balanceOf(address token, address account) internal view returns (uint256 amount) {
        /// @solidity memory-safe-assembly
        assembly {
            mstore(0x00, 0x70a08231) // Store the function selector of `balanceOf(address)`.
            mstore(0x20, account) // Store the `account` argument.
            amount :=
                mul(
                    mload(0x20),
                    and( // The arguments of `and` are evaluated from right to left.
                        gt(returndatasize(), 0x1f), // At least 32 bytes returned.
                        staticcall(gas(), token, 0x1c, 0x24, 0x20, 0x20)
                    )
                )
        }
    }
}

File 7 of 13 : Owned.sol
// SPDX-License-Identifier: AGPL-3.0-only
pragma solidity >=0.8.0;

/// @notice Simple single owner authorization mixin.
/// @author Solmate (https://github.com/transmissions11/solmate/blob/main/src/auth/Owned.sol)
abstract contract Owned {
    /*//////////////////////////////////////////////////////////////
                                 EVENTS
    //////////////////////////////////////////////////////////////*/

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

    /*//////////////////////////////////////////////////////////////
                            OWNERSHIP STORAGE
    //////////////////////////////////////////////////////////////*/

    address public owner;

    modifier onlyOwner() virtual {
        require(msg.sender == owner, "UNAUTHORIZED");

        _;
    }

    /*//////////////////////////////////////////////////////////////
                               CONSTRUCTOR
    //////////////////////////////////////////////////////////////*/

    constructor(address _owner) {
        owner = _owner;

        emit OwnershipTransferred(address(0), _owner);
    }

    /*//////////////////////////////////////////////////////////////
                             OWNERSHIP LOGIC
    //////////////////////////////////////////////////////////////*/

    function transferOwnership(address newOwner) public virtual onlyOwner {
        owner = newOwner;

        emit OwnershipTransferred(msg.sender, newOwner);
    }
}

File 8 of 13 : ERC20.sol
// SPDX-License-Identifier: AGPL-3.0-only
pragma solidity >=0.8.0;

/// @notice Modern and gas efficient ERC20 + EIP-2612 implementation.
/// @author Solmate (https://github.com/transmissions11/solmate/blob/main/src/tokens/ERC20.sol)
/// @author Modified from Uniswap (https://github.com/Uniswap/uniswap-v2-core/blob/master/contracts/UniswapV2ERC20.sol)
/// @dev Do not manually set balances without updating totalSupply, as the sum of all user balances must not exceed it.
abstract contract ERC20 {
    /*//////////////////////////////////////////////////////////////
                                 EVENTS
    //////////////////////////////////////////////////////////////*/

    event Transfer(address indexed from, address indexed to, uint256 amount);

    event Approval(address indexed owner, address indexed spender, uint256 amount);

    /*//////////////////////////////////////////////////////////////
                            METADATA STORAGE
    //////////////////////////////////////////////////////////////*/

    string public name;

    string public symbol;

    uint8 public immutable decimals;

    /*//////////////////////////////////////////////////////////////
                              ERC20 STORAGE
    //////////////////////////////////////////////////////////////*/

    uint256 public totalSupply;

    mapping(address => uint256) public balanceOf;

    mapping(address => mapping(address => uint256)) public allowance;

    /*//////////////////////////////////////////////////////////////
                            EIP-2612 STORAGE
    //////////////////////////////////////////////////////////////*/

    uint256 internal immutable INITIAL_CHAIN_ID;

    bytes32 internal immutable INITIAL_DOMAIN_SEPARATOR;

    mapping(address => uint256) public nonces;

    /*//////////////////////////////////////////////////////////////
                               CONSTRUCTOR
    //////////////////////////////////////////////////////////////*/

    constructor(
        string memory _name,
        string memory _symbol,
        uint8 _decimals
    ) {
        name = _name;
        symbol = _symbol;
        decimals = _decimals;

        INITIAL_CHAIN_ID = block.chainid;
        INITIAL_DOMAIN_SEPARATOR = computeDomainSeparator();
    }

    /*//////////////////////////////////////////////////////////////
                               ERC20 LOGIC
    //////////////////////////////////////////////////////////////*/

    function approve(address spender, uint256 amount) public virtual returns (bool) {
        allowance[msg.sender][spender] = amount;

        emit Approval(msg.sender, spender, amount);

        return true;
    }

    function transfer(address to, uint256 amount) public virtual returns (bool) {
        balanceOf[msg.sender] -= amount;

        // Cannot overflow because the sum of all user
        // balances can't exceed the max uint256 value.
        unchecked {
            balanceOf[to] += amount;
        }

        emit Transfer(msg.sender, to, amount);

        return true;
    }

    function transferFrom(
        address from,
        address to,
        uint256 amount
    ) public virtual returns (bool) {
        uint256 allowed = allowance[from][msg.sender]; // Saves gas for limited approvals.

        if (allowed != type(uint256).max) allowance[from][msg.sender] = allowed - amount;

        balanceOf[from] -= amount;

        // Cannot overflow because the sum of all user
        // balances can't exceed the max uint256 value.
        unchecked {
            balanceOf[to] += amount;
        }

        emit Transfer(from, to, amount);

        return true;
    }

    /*//////////////////////////////////////////////////////////////
                             EIP-2612 LOGIC
    //////////////////////////////////////////////////////////////*/

    function permit(
        address owner,
        address spender,
        uint256 value,
        uint256 deadline,
        uint8 v,
        bytes32 r,
        bytes32 s
    ) public virtual {
        require(deadline >= block.timestamp, "PERMIT_DEADLINE_EXPIRED");

        // Unchecked because the only math done is incrementing
        // the owner's nonce which cannot realistically overflow.
        unchecked {
            address recoveredAddress = ecrecover(
                keccak256(
                    abi.encodePacked(
                        "\x19\x01",
                        DOMAIN_SEPARATOR(),
                        keccak256(
                            abi.encode(
                                keccak256(
                                    "Permit(address owner,address spender,uint256 value,uint256 nonce,uint256 deadline)"
                                ),
                                owner,
                                spender,
                                value,
                                nonces[owner]++,
                                deadline
                            )
                        )
                    )
                ),
                v,
                r,
                s
            );

            require(recoveredAddress != address(0) && recoveredAddress == owner, "INVALID_SIGNER");

            allowance[recoveredAddress][spender] = value;
        }

        emit Approval(owner, spender, value);
    }

    function DOMAIN_SEPARATOR() public view virtual returns (bytes32) {
        return block.chainid == INITIAL_CHAIN_ID ? INITIAL_DOMAIN_SEPARATOR : computeDomainSeparator();
    }

    function computeDomainSeparator() internal view virtual returns (bytes32) {
        return
            keccak256(
                abi.encode(
                    keccak256("EIP712Domain(string name,string version,uint256 chainId,address verifyingContract)"),
                    keccak256(bytes(name)),
                    keccak256("1"),
                    block.chainid,
                    address(this)
                )
            );
    }

    /*//////////////////////////////////////////////////////////////
                        INTERNAL MINT/BURN LOGIC
    //////////////////////////////////////////////////////////////*/

    function _mint(address to, uint256 amount) internal virtual {
        totalSupply += amount;

        // Cannot overflow because the sum of all user
        // balances can't exceed the max uint256 value.
        unchecked {
            balanceOf[to] += amount;
        }

        emit Transfer(address(0), to, amount);
    }

    function _burn(address from, uint256 amount) internal virtual {
        balanceOf[from] -= amount;

        // Cannot underflow because a user's balance
        // will never be larger than the total supply.
        unchecked {
            totalSupply -= amount;
        }

        emit Transfer(from, address(0), amount);
    }
}

File 9 of 13 : ERC721.sol
// SPDX-License-Identifier: AGPL-3.0-only
pragma solidity >=0.8.0;

/// @notice Modern, minimalist, and gas efficient ERC-721 implementation.
/// @author Solmate (https://github.com/transmissions11/solmate/blob/main/src/tokens/ERC721.sol)
abstract contract ERC721 {
    /*//////////////////////////////////////////////////////////////
                                 EVENTS
    //////////////////////////////////////////////////////////////*/

    event Transfer(address indexed from, address indexed to, uint256 indexed id);

    event Approval(address indexed owner, address indexed spender, uint256 indexed id);

    event ApprovalForAll(address indexed owner, address indexed operator, bool approved);

    /*//////////////////////////////////////////////////////////////
                         METADATA STORAGE/LOGIC
    //////////////////////////////////////////////////////////////*/

    string public name;

    string public symbol;

    function tokenURI(uint256 id) public view virtual returns (string memory);

    /*//////////////////////////////////////////////////////////////
                      ERC721 BALANCE/OWNER STORAGE
    //////////////////////////////////////////////////////////////*/

    mapping(uint256 => address) internal _ownerOf;

    mapping(address => uint256) internal _balanceOf;

    function ownerOf(uint256 id) public view virtual returns (address owner) {
        require((owner = _ownerOf[id]) != address(0), "NOT_MINTED");
    }

    function balanceOf(address owner) public view virtual returns (uint256) {
        require(owner != address(0), "ZERO_ADDRESS");

        return _balanceOf[owner];
    }

    /*//////////////////////////////////////////////////////////////
                         ERC721 APPROVAL STORAGE
    //////////////////////////////////////////////////////////////*/

    mapping(uint256 => address) public getApproved;

    mapping(address => mapping(address => bool)) public isApprovedForAll;

    /*//////////////////////////////////////////////////////////////
                               CONSTRUCTOR
    //////////////////////////////////////////////////////////////*/

    constructor(string memory _name, string memory _symbol) {
        name = _name;
        symbol = _symbol;
    }

    /*//////////////////////////////////////////////////////////////
                              ERC721 LOGIC
    //////////////////////////////////////////////////////////////*/

    function approve(address spender, uint256 id) public virtual {
        address owner = _ownerOf[id];

        require(msg.sender == owner || isApprovedForAll[owner][msg.sender], "NOT_AUTHORIZED");

        getApproved[id] = spender;

        emit Approval(owner, spender, id);
    }

    function setApprovalForAll(address operator, bool approved) public virtual {
        isApprovedForAll[msg.sender][operator] = approved;

        emit ApprovalForAll(msg.sender, operator, approved);
    }

    function transferFrom(
        address from,
        address to,
        uint256 id
    ) public virtual {
        require(from == _ownerOf[id], "WRONG_FROM");

        require(to != address(0), "INVALID_RECIPIENT");

        require(
            msg.sender == from || isApprovedForAll[from][msg.sender] || msg.sender == getApproved[id],
            "NOT_AUTHORIZED"
        );

        // Underflow of the sender's balance is impossible because we check for
        // ownership above and the recipient's balance can't realistically overflow.
        unchecked {
            _balanceOf[from]--;

            _balanceOf[to]++;
        }

        _ownerOf[id] = to;

        delete getApproved[id];

        emit Transfer(from, to, id);
    }

    function safeTransferFrom(
        address from,
        address to,
        uint256 id
    ) public virtual {
        transferFrom(from, to, id);

        require(
            to.code.length == 0 ||
                ERC721TokenReceiver(to).onERC721Received(msg.sender, from, id, "") ==
                ERC721TokenReceiver.onERC721Received.selector,
            "UNSAFE_RECIPIENT"
        );
    }

    function safeTransferFrom(
        address from,
        address to,
        uint256 id,
        bytes calldata data
    ) public virtual {
        transferFrom(from, to, id);

        require(
            to.code.length == 0 ||
                ERC721TokenReceiver(to).onERC721Received(msg.sender, from, id, data) ==
                ERC721TokenReceiver.onERC721Received.selector,
            "UNSAFE_RECIPIENT"
        );
    }

    /*//////////////////////////////////////////////////////////////
                              ERC165 LOGIC
    //////////////////////////////////////////////////////////////*/

    function supportsInterface(bytes4 interfaceId) public view virtual returns (bool) {
        return
            interfaceId == 0x01ffc9a7 || // ERC165 Interface ID for ERC165
            interfaceId == 0x80ac58cd || // ERC165 Interface ID for ERC721
            interfaceId == 0x5b5e139f; // ERC165 Interface ID for ERC721Metadata
    }

    /*//////////////////////////////////////////////////////////////
                        INTERNAL MINT/BURN LOGIC
    //////////////////////////////////////////////////////////////*/

    function _mint(address to, uint256 id) internal virtual {
        require(to != address(0), "INVALID_RECIPIENT");

        require(_ownerOf[id] == address(0), "ALREADY_MINTED");

        // Counter overflow is incredibly unrealistic.
        unchecked {
            _balanceOf[to]++;
        }

        _ownerOf[id] = to;

        emit Transfer(address(0), to, id);
    }

    function _burn(uint256 id) internal virtual {
        address owner = _ownerOf[id];

        require(owner != address(0), "NOT_MINTED");

        // Ownership check above ensures no underflow.
        unchecked {
            _balanceOf[owner]--;
        }

        delete _ownerOf[id];

        delete getApproved[id];

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

    /*//////////////////////////////////////////////////////////////
                        INTERNAL SAFE MINT LOGIC
    //////////////////////////////////////////////////////////////*/

    function _safeMint(address to, uint256 id) internal virtual {
        _mint(to, id);

        require(
            to.code.length == 0 ||
                ERC721TokenReceiver(to).onERC721Received(msg.sender, address(0), id, "") ==
                ERC721TokenReceiver.onERC721Received.selector,
            "UNSAFE_RECIPIENT"
        );
    }

    function _safeMint(
        address to,
        uint256 id,
        bytes memory data
    ) internal virtual {
        _mint(to, id);

        require(
            to.code.length == 0 ||
                ERC721TokenReceiver(to).onERC721Received(msg.sender, address(0), id, data) ==
                ERC721TokenReceiver.onERC721Received.selector,
            "UNSAFE_RECIPIENT"
        );
    }
}

/// @notice A generic interface for a contract which properly accepts ERC721 tokens.
/// @author Solmate (https://github.com/transmissions11/solmate/blob/main/src/tokens/ERC721.sol)
abstract contract ERC721TokenReceiver {
    function onERC721Received(
        address,
        address,
        uint256,
        bytes calldata
    ) external virtual returns (bytes4) {
        return ERC721TokenReceiver.onERC721Received.selector;
    }
}

File 10 of 13 : LibString.sol
// SPDX-License-Identifier: MIT
pragma solidity >=0.8.0;

/// @notice Efficient library for creating string representations of integers.
/// @author Solmate (https://github.com/transmissions11/solmate/blob/main/src/utils/LibString.sol)
/// @author Modified from Solady (https://github.com/Vectorized/solady/blob/main/src/utils/LibString.sol)
library LibString {
    function toString(int256 value) internal pure returns (string memory str) {
        if (value >= 0) return toString(uint256(value));

        unchecked {
            str = toString(uint256(-value));

            /// @solidity memory-safe-assembly
            assembly {
                // Note: This is only safe because we over-allocate memory
                // and write the string from right to left in toString(uint256),
                // and thus can be sure that sub(str, 1) is an unused memory location.

                let length := mload(str) // Load the string length.
                // Put the - character at the start of the string contents.
                mstore(str, 45) // 45 is the ASCII code for the - character.
                str := sub(str, 1) // Move back the string pointer by a byte.
                mstore(str, add(length, 1)) // Update the string length.
            }
        }
    }

    function toString(uint256 value) internal pure returns (string memory str) {
        /// @solidity memory-safe-assembly
        assembly {
            // The maximum value of a uint256 contains 78 digits (1 byte per digit), but we allocate 160 bytes
            // to keep the free memory pointer word aligned. We'll need 1 word for the length, 1 word for the
            // trailing zeros padding, and 3 other words for a max of 78 digits. In total: 5 * 32 = 160 bytes.
            let newFreeMemoryPointer := add(mload(0x40), 160)

            // Update the free memory pointer to avoid overriding our string.
            mstore(0x40, newFreeMemoryPointer)

            // Assign str to the end of the zone of newly allocated memory.
            str := sub(newFreeMemoryPointer, 32)

            // Clean the last word of memory it may not be overwritten.
            mstore(str, 0)

            // Cache the end of the memory to calculate the length later.
            let end := str

            // We write the string from rightmost digit to leftmost digit.
            // The following is essentially a do-while loop that also handles the zero case.
            // prettier-ignore
            for { let temp := value } 1 {} {
                // Move the pointer 1 byte to the left.
                str := sub(str, 1)

                // Write the character to the pointer.
                // The ASCII index of the '0' character is 48.
                mstore8(str, add(48, mod(temp, 10)))

                // Keep dividing temp until zero.
                temp := div(temp, 10)

                 // prettier-ignore
                if iszero(temp) { break }
            }

            // Compute and cache the final total length of the string.
            let length := sub(end, str)

            // Move the pointer 32 bytes leftwards to make room for the length.
            str := sub(str, 32)

            // Store the string's length at the start of memory allocated for our string.
            mstore(str, length)
        }
    }
}

File 11 of 13 : LiquidSplit.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.17;

import {ERC20} from "solmate/tokens/ERC20.sol";
import {SafeTransferLib} from "solady/utils/SafeTransferLib.sol";
import {ISplitMain} from "src/interfaces/ISplitMain.sol";

/// @title LiquidSplit
/// @author 0xSplits
/// @notice An abstract liquid split base contract. Can be inherited into a 721
/// or 1155 contract.
/// @dev This contract uses token = address(0) to refer to ETH.
abstract contract LiquidSplit {
    /// -----------------------------------------------------------------------
    /// libraries
    /// -----------------------------------------------------------------------

    using SafeTransferLib for address;

    /// -----------------------------------------------------------------------
    /// events
    /// -----------------------------------------------------------------------

    /// Emitted after each liquid split creation for indexing purposes
    event CreateLiquidSplit(address indexed payoutSplit);

    /// Emitted after each successful ETH transfer to proxy
    /// @param amount Amount of ETH received
    /// @dev embedded in & emitted from clone bytecode
    event ReceiveETH(uint256 amount);

    /// -----------------------------------------------------------------------
    /// storage
    /// -----------------------------------------------------------------------

    address internal constant ETH_ADDRESS = address(0);
    uint256 public constant PERCENTAGE_SCALE = 1e6;

    ISplitMain public immutable splitMain;
    uint32 public immutable _distributorFee;
    address public immutable payoutSplit;

    /// -----------------------------------------------------------------------
    /// constructor
    /// -----------------------------------------------------------------------

    constructor(address _splitMain, uint32 __distributorFee) {
        /// checks

        // __distributorFee is checked inside `splitMain.createSplit`

        /// effects

        splitMain = ISplitMain(_splitMain); /*Establish interface to splits contract*/
        _distributorFee = __distributorFee;

        /// interactions

        // create dummy mutable split with this contract as controller;
        // recipients & distributorFee will be updated on first payout
        address[] memory recipients = new address[](2);
        recipients[0] = address(0);
        recipients[1] = address(1);
        uint32[] memory initPercentAllocations = new uint32[](2);
        initPercentAllocations[0] = uint32(500000);
        initPercentAllocations[1] = uint32(500000);
        payoutSplit = payable(
            splitMain.createSplit({
                accounts: recipients,
                percentAllocations: initPercentAllocations,
                distributorFee: __distributorFee,
                controller: address(this)
            })
        );

        emit CreateLiquidSplit(payoutSplit);
    }

    /// -----------------------------------------------------------------------
    /// functions
    /// -----------------------------------------------------------------------

    /// -----------------------------------------------------------------------
    /// functions - public & external
    /// -----------------------------------------------------------------------

    /// emit event when receiving ETH
    receive() external payable virtual {
        emit ReceiveETH(msg.value);
    }

    // NOTE: if `sum(percentAllocations) != 1e6`, the split will fail to update and funds will be stuck!
    // be _very_ careful with edge cases in managing supply (including burns, rounding on odd numbers, etc)

    /// distributes ETH & ERC20s to NFT holders
    /// @param token ETH (0x0) or ERC20 token to distribute
    /// @param accounts Ordered, unique list of NFT holders
    /// @param distributorAddress Address to receive distributorFee
    function distributeFunds(address token, address[] calldata accounts, address distributorAddress) external virtual {
        uint256 numRecipients = accounts.length;
        uint32[] memory percentAllocations = new uint32[](numRecipients);
        for (uint256 i; i < numRecipients;) {
            percentAllocations[i] = scaledPercentBalanceOf(accounts[i]);
            unchecked {
                ++i;
            }
        }

        // atomically deposit funds, update recipients to reflect current NFT holders, and distribute
        if (token == ETH_ADDRESS) {
            payoutSplit.safeTransferETH(address(this).balance);
            splitMain.updateAndDistributeETH({
                split: payoutSplit,
                accounts: accounts,
                percentAllocations: percentAllocations,
                distributorFee: distributorFee(),
                distributorAddress: distributorAddress
            });
        } else {
            token.safeTransfer(payoutSplit, ERC20(token).balanceOf(address(this)));
            splitMain.updateAndDistributeERC20({
                split: payoutSplit,
                token: ERC20(token),
                accounts: accounts,
                percentAllocations: percentAllocations,
                distributorFee: distributorFee(),
                distributorAddress: distributorAddress
            });
        }
    }

    /// -----------------------------------------------------------------------
    /// functions - public & external - view & pure
    /// -----------------------------------------------------------------------

    function scaledPercentBalanceOf(address account) public view virtual returns (uint32) {}

    /// @dev can be overridden if inheriting contract wants to grant the ability for an owner to update
    function distributorFee() public view virtual returns (uint32) {
        return _distributorFee;
    }
}

File 12 of 13 : IERC2981Royalties.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.17;

/// @title IERC2981Royalties
/// @dev Interface for the ERC2981 - Token Royalty standard
interface IERC2981Royalties {
    /// @notice Called with the sale price to determine how much royalty
    //          is owed and to whom.
    /// @param _tokenId - the NFT asset queried for royalty information
    /// @param _value - the sale price of the NFT asset specified by _tokenId
    /// @return _receiver - address of who should be sent the royalty payment
    /// @return _royaltyAmount - the royalty payment amount for value sale price
    function royaltyInfo(uint256 _tokenId, uint256 _value)
        external
        view
        returns (address _receiver, uint256 _royaltyAmount);
}

File 13 of 13 : ISplitMain.sol
// SPDX-License-Identifier: GPL-3.0-or-later
pragma solidity ^0.8.17;

import {ERC20} from "solmate/tokens/ERC20.sol";

interface ISplitMain {
    error InvalidSplit__TooFewAccounts(uint256 accountsLength);

    function createSplit(
        address[] calldata accounts,
        uint32[] calldata percentAllocations,
        uint32 distributorFee,
        address controller
    ) external returns (address);

    function updateAndDistributeETH(
        address split,
        address[] calldata accounts,
        uint32[] calldata percentAllocations,
        uint32 distributorFee,
        address distributorAddress
    ) external;

    function updateAndDistributeERC20(
        address split,
        ERC20 token,
        address[] calldata accounts,
        uint32[] calldata percentAllocations,
        uint32 distributorFee,
        address distributorAddress
    ) external;

    function getETHBalance(address account) external view returns (uint256);

    function getERC20Balance(address account, ERC20 token) external view returns (uint256);

    function withdraw(address account, uint256 withdrawETH, ERC20[] calldata tokens) external;
}

Settings
{
  "remappings": [
    "ds-test/=lib/forge-std/lib/ds-test/src/",
    "erc4626-tests/=lib/operator-filter-registry/lib/openzeppelin-contracts/lib/erc4626-tests/",
    "forge-std/=lib/forge-std/src/",
    "openzeppelin-contracts-upgradeable/=lib/operator-filter-registry/lib/openzeppelin-contracts-upgradeable/contracts/",
    "openzeppelin-contracts/=lib/operator-filter-registry/lib/openzeppelin-contracts/contracts/",
    "operator-filter-registry/=lib/operator-filter-registry/src/",
    "solady/=lib/solady/src/",
    "solmate/=lib/solmate/src/"
  ],
  "optimizer": {
    "enabled": true,
    "runs": 200
  },
  "metadata": {
    "bytecodeHash": "ipfs"
  },
  "outputSelection": {
    "*": {
      "*": [
        "evm.bytecode",
        "evm.deployedBytecode",
        "devdoc",
        "userdoc",
        "metadata",
        "abi"
      ]
    }
  },
  "evmVersion": "london",
  "libraries": {}
}

Contract Security Audit

Contract ABI

[{"inputs":[{"internalType":"address[]","name":"accounts","type":"address[]"},{"internalType":"address","name":"_splitMain","type":"address"},{"internalType":"address","name":"_owner","type":"address"},{"internalType":"string","name":"_baseURI","type":"string"},{"internalType":"uint256","name":"_royaltyPoints","type":"uint256"}],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[{"internalType":"address","name":"operator","type":"address"}],"name":"OperatorNotAllowed","type":"error"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"TokenDoesNotExist","type":"error"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"spender","type":"address"},{"indexed":true,"internalType":"uint256","name":"id","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":"payoutSplit","type":"address"}],"name":"CreateLiquidSplit","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"user","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"ReceiveETH","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":"id","type":"uint256"}],"name":"Transfer","type":"event"},{"inputs":[],"name":"OPERATOR_FILTER_REGISTRY","outputs":[{"internalType":"contract IOperatorFilterRegistry","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"PERCENTAGE_SCALE","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"_distributorFee","outputs":[{"internalType":"uint32","name":"","type":"uint32"}],"stateMutability":"view","type":"function"},{"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":[],"name":"baseURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"token","type":"address"},{"internalType":"address[]","name":"accounts","type":"address[]"},{"internalType":"address","name":"distributorAddress","type":"address"}],"name":"distributeFunds","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"distributorFee","outputs":[{"internalType":"uint32","name":"","type":"uint32"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"getApproved","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"},{"internalType":"address","name":"","type":"address"}],"name":"isApprovedForAll","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"id","type":"uint256"}],"name":"ownerOf","outputs":[{"internalType":"address","name":"owner","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"payoutSplit","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_tokenId","type":"uint256"},{"internalType":"uint256","name":"_value","type":"uint256"}],"name":"royaltyInfo","outputs":[{"internalType":"address","name":"_receiver","type":"address"},{"internalType":"uint256","name":"_royaltyAmount","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"royaltyPoints","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":"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":"account","type":"address"}],"name":"scaledPercentBalanceOf","outputs":[{"internalType":"uint32","name":"percentBalance","type":"uint32"}],"stateMutability":"view","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":"_royaltyPoints","type":"uint256"}],"name":"setRoyaltyPoints","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"splitByTokenId","outputs":[{"internalType":"uint32","name":"","type":"uint32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"splitMain","outputs":[{"internalType":"contract ISplitMain","name":"","type":"address"}],"stateMutability":"view","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":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"tokenURI","outputs":[{"internalType":"string","name":"","type":"string"}],"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":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"stateMutability":"payable","type":"receive"}]

600a60088190556102206040526205161560e081815261010091909152611f0061012052620114f66101405261c2486101605261b7fe6101805262011e866101a052618f446101c052617c0a6101e052613e066102005262000063919081620006ee565b503480156200007157600080fd5b506040516200285b3803806200285b8339810160408190526200009491620008ad565b733cc6cdda760b79bafa08df41ecfa224f810dceb660016040518060600160405280602c81526020016200282f602c91396040805180820182526005815264465742533560d81b6020820152600080546001600160a01b0319166001600160a01b038a169081178255925191928a928a919083907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908290a3506001600160a01b03821660805263ffffffff811660a0526040805160028082526060820183526000926020830190803683370190505090506000816000815181106200017e576200017e620009bd565b60200260200101906001600160a01b031690816001600160a01b031681525050600181600181518110620001b657620001b6620009bd565b6001600160a01b039290921660209283029190910182015260408051600280825260608201835260009391929091830190803683370190505090506207a120816000815181106200020b576200020b620009bd565b602002602001019063ffffffff16908163ffffffff16815250506207a120816001815181106200023f576200023f620009bd565b602002602001019063ffffffff16908163ffffffff16815250506080516001600160a01b0316637601f782838386306040518563ffffffff1660e01b81526004016200028f9493929190620009d3565b6020604051808303816000875af1158015620002af573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190620002d5919062000a85565b6001600160a01b031660c08190526040517faa24d2faad6ce4dd5f5b02fdc8ba922f12f7c30cdb67882950b22c0ef5075a8790600090a250505050816001908162000321919062000b39565b50600262000330828262000b39565b5050506daaeb6d7670e522a718067333cd4e3b1562000478578015620003c657604051633e9f1edf60e11b81523060048201526001600160a01b03831660248201526daaeb6d7670e522a718067333cd4e90637d3e3dbe906044015b600060405180830381600087803b158015620003a757600080fd5b505af1158015620003bc573d6000803e3d6000fd5b5050505062000478565b6001600160a01b03821615620004175760405163a0af290360e01b81523060048201526001600160a01b03831660248201526daaeb6d7670e522a718067333cd4e9063a0af2903906044016200038c565b604051632210724360e11b81523060048201526daaeb6d7670e522a718067333cd4e90634420e48690602401600060405180830381600087803b1580156200045e57600080fd5b505af115801562000473573d6000803e3d6000fd5b505050505b506009905062000489838262000b39565b50600781905560005b600854811015620004d457620004cb868281518110620004b657620004b6620009bd565b602002602001015182620004e060201b60201c565b60010162000492565b50505050505062000c31565b620004ec8282620005df565b6001600160a01b0382163b1580620005965750604051630a85bd0160e11b80825233600483015260006024830181905260448301849052608060648401526084830152906001600160a01b0384169063150b7a029060a4016020604051808303816000875af115801562000564573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906200058a919062000c05565b6001600160e01b031916145b620005db5760405162461bcd60e51b815260206004820152601060248201526f155394d0519157d49150d2541251539560821b60448201526064015b60405180910390fd5b5050565b6001600160a01b0382166200062b5760405162461bcd60e51b81526020600482015260116024820152701253959053125117d49150d25412515395607a1b6044820152606401620005d2565b6000818152600360205260409020546001600160a01b031615620006835760405162461bcd60e51b815260206004820152600e60248201526d1053149150511657d3525395115160921b6044820152606401620005d2565b6001600160a01b038216600081815260046020908152604080832080546001019055848352600390915280822080546001600160a01b0319168417905551839291907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b82805482825590600052602060002090600701600890048101928215620007915791602002820160005b838211156200075d57835183826101000a81548163ffffffff021916908362ffffff160217905550926020019260040160208160030104928301926001030262000718565b80156200078f5782816101000a81549063ffffffff02191690556004016020816003010492830192600103026200075d565b505b506200079f929150620007a3565b5090565b5b808211156200079f5760008155600101620007a4565b634e487b7160e01b600052604160045260246000fd5b604051601f8201601f191681016001600160401b0381118282101715620007fb57620007fb620007ba565b604052919050565b80516001600160a01b03811681146200081b57600080fd5b919050565b600082601f8301126200083257600080fd5b81516001600160401b038111156200084e576200084e620007ba565b602062000864601f8301601f19168201620007d0565b82815285828487010111156200087957600080fd5b60005b83811015620008995785810183015182820184015282016200087c565b506000928101909101919091529392505050565b600080600080600060a08688031215620008c657600080fd5b85516001600160401b0380821115620008de57600080fd5b818801915088601f830112620008f357600080fd5b81516020828211156200090a576200090a620007ba565b8160051b6200091b828201620007d0565b928352848101820192828101908d8511156200093657600080fd5b958301955b848710156200095f576200094f8762000803565b825295830195908301906200093b565b9a50620009719150508a820162000803565b97505050620009836040890162000803565b945060608801519150808211156200099a57600080fd5b50620009a98882890162000820565b925050608086015190509295509295909350565b634e487b7160e01b600052603260045260246000fd5b6080808252855190820181905260009060209060a0840190828901845b8281101562000a175781516001600160a01b031684529284019290840190600101620009f0565b5050508381038285015286518082528783019183019060005b8181101562000a5457835163ffffffff168352928401929184019160010162000a30565b505063ffffffff87166040860152925062000a6d915050565b6001600160a01b038316606083015295945050505050565b60006020828403121562000a9857600080fd5b62000aa38262000803565b9392505050565b600181811c9082168062000abf57607f821691505b60208210810362000ae057634e487b7160e01b600052602260045260246000fd5b50919050565b601f82111562000b3457600081815260208120601f850160051c8101602086101562000b0f5750805b601f850160051c820191505b8181101562000b305782815560010162000b1b565b5050505b505050565b81516001600160401b0381111562000b555762000b55620007ba565b62000b6d8162000b66845462000aaa565b8462000ae6565b602080601f83116001811462000ba5576000841562000b8c5750858301515b600019600386901b1c1916600185901b17855562000b30565b600085815260208120601f198616915b8281101562000bd65788860151825594840194600190910190840162000bb5565b508582101562000bf55787850151600019600388901b60f8161c191681555b5050505050600190811b01905550565b60006020828403121562000c1857600080fd5b81516001600160e01b03198116811462000aa357600080fd5b60805160a05160c051611b8f62000ca0600039600081816104e301528181610b5d01528181610bc701528181610c690152610d330152600081816105b7015281816105e801528181610bef0152610d5d0152600081816102de01528181610b920152610cfe0152611b8f6000f3fe6080604052600436106101c65760003560e01c80637ebb2e41116100f7578063b88d4fde11610095578063d6032f8511610064578063d6032f85146105a5578063dbf32be5146105d9578063e985e9c51461060c578063f2fde38b1461064757600080fd5b8063b88d4fde14610525578063c87b56dd14610545578063cff7cd8c14610565578063d3561ecd1461058557600080fd5b806395d89b41116100d157806395d89b411461049c57806396263513146104b1578063a12df0e7146104d1578063a22cb4651461050557600080fd5b80637ebb2e411461043157806386d90c7f146104475780638da5cb5b1461047c57600080fd5b80632a55205a1161016457806342842e0e1161013e57806342842e0e146103bc5780636352211e146103dc5780636c0360eb146103fc57806370a082311461041157600080fd5b80632a55205a146103445780633f26479e1461038357806341f434341461039a57600080fd5b8063095ea7b3116101a0578063095ea7b3146102aa5780630e769b2b146102cc57806318160ddd1461030057806323b872dd1461032457600080fd5b806301ffc9a71461020557806306fdde031461023a578063081812fc1461025c57600080fd5b36610200576040513481527f9e4ac34f21c619cefc926c8bd93b54bf5a39c7ab2127a895af1cc0691d7e3dff9060200160405180910390a1005b600080fd5b34801561021157600080fd5b506102256102203660046114c4565b610667565b60405190151581526020015b60405180910390f35b34801561024657600080fd5b5061024f6106b9565b604051610231919061150c565b34801561026857600080fd5b5061029261027736600461153f565b6005602052600090815260409020546001600160a01b031681565b6040516001600160a01b039091168152602001610231565b3480156102b657600080fd5b506102ca6102c536600461156f565b610747565b005b3480156102d857600080fd5b506102927f000000000000000000000000000000000000000000000000000000000000000081565b34801561030c57600080fd5b5061031660085481565b604051908152602001610231565b34801561033057600080fd5b506102ca61033f366004611599565b610760565b34801561035057600080fd5b5061036461035f3660046115d5565b61078b565b604080516001600160a01b039093168352602083019190915201610231565b34801561038f57600080fd5b50610316620f424081565b3480156103a657600080fd5b506102926daaeb6d7670e522a718067333cd4e81565b3480156103c857600080fd5b506102ca6103d7366004611599565b6107b5565b3480156103e857600080fd5b506102926103f736600461153f565b6107da565b34801561040857600080fd5b5061024f610836565b34801561041d57600080fd5b5061031661042c3660046115f7565b610843565b34801561043d57600080fd5b5061031660075481565b34801561045357600080fd5b506104676104623660046115f7565b6108a6565b60405163ffffffff9091168152602001610231565b34801561048857600080fd5b50600054610292906001600160a01b031681565b3480156104a857600080fd5b5061024f61092a565b3480156104bd57600080fd5b506102ca6104cc36600461153f565b610937565b3480156104dd57600080fd5b506102927f000000000000000000000000000000000000000000000000000000000000000081565b34801561051157600080fd5b506102ca610520366004611620565b610985565b34801561053157600080fd5b506102ca610540366004611657565b610999565b34801561055157600080fd5b5061024f61056036600461153f565b6109c8565b34801561057157600080fd5b5061046761058036600461153f565b610a5b565b34801561059157600080fd5b506102ca6105a03660046116f2565b610a95565b3480156105b157600080fd5b506104677f000000000000000000000000000000000000000000000000000000000000000081565b3480156105e557600080fd5b507f0000000000000000000000000000000000000000000000000000000000000000610467565b34801561061857600080fd5b50610225610627366004611789565b600660209081526000928352604080842090915290825290205460ff1681565b34801561065357600080fd5b506102ca6106623660046115f7565b610dc1565b60006301ffc9a760e01b6001600160e01b03198316148061069857506380ac58cd60e01b6001600160e01b03198316145b806106b35750635b5e139f60e01b6001600160e01b03198316145b92915050565b600180546106c6906117bc565b80601f01602080910402602001604051908101604052809291908181526020018280546106f2906117bc565b801561073f5780601f106107145761010080835404028352916020019161073f565b820191906000526020600020905b81548152906001019060200180831161072257829003601f168201915b505050505081565b8161075181610e55565b61075b8383610f11565b505050565b826001600160a01b038116331461077a5761077a33610e55565b610785848484610ff3565b50505050565b60008030612710600754856107a09190611806565b6107aa919061181d565b915091509250929050565b826001600160a01b03811633146107cf576107cf33610e55565b6107858484846111ba565b6000818152600360205260409020546001600160a01b0316806108315760405162461bcd60e51b815260206004820152600a6024820152691393d517d3525395115160b21b60448201526064015b60405180910390fd5b919050565b600980546106c6906117bc565b60006001600160a01b03821661088a5760405162461bcd60e51b815260206004820152600c60248201526b5a45524f5f4144445245535360a01b6044820152606401610828565b506001600160a01b031660009081526004602052604090205490565b6000805b60085481101561092457826001600160a01b03166108c7826107da565b6001600160a01b03160361091c57600a81815481106108e8576108e861183f565b90600052602060002090600891828204019190066004029054906101000a900463ffffffff16826109199190611855565b91505b6001016108aa565b50919050565b600280546106c6906117bc565b6000546001600160a01b031633146109805760405162461bcd60e51b815260206004820152600c60248201526b15539055551213d49256915160a21b6044820152606401610828565b600755565b8161098f81610e55565b61075b83836112ad565b846001600160a01b03811633146109b3576109b333610e55565b6109c08686868686611319565b505050505050565b606060006109d5836107da565b6001600160a01b0316036109ff5760405163c927e5bf60e01b815260048101839052602401610828565b600060098054610a0e906117bc565b905011610a2a57604051806020016040528060008152506106b3565b6009610a3583611401565b604051602001610a46929190611895565b60405160208183030381529060405292915050565b600a8181548110610a6b57600080fd5b9060005260206000209060089182820401919006600402915054906101000a900463ffffffff1681565b8160008167ffffffffffffffff811115610ab157610ab1611968565b604051908082528060200260200182016040528015610ada578160200160208202803683370190505b50905060005b82811015610b4157610b12868683818110610afd57610afd61183f565b905060200201602081019061046291906115f7565b828281518110610b2457610b2461183f565b63ffffffff90921660209283029190910190910152600101610ae0565b506001600160a01b038616610c5057610b836001600160a01b037f00000000000000000000000000000000000000000000000000000000000000001647611445565b6040516352f1c84f60e11b81527f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03169063a5e3909e90610c19907f0000000000000000000000000000000000000000000000000000000000000000908990899087907f0000000000000000000000000000000000000000000000000000000000000000908b906004016119fb565b600060405180830381600087803b158015610c3357600080fd5b505af1158015610c47573d6000803e3d6000fd5b505050506109c0565b6040516370a0823160e01b8152306004820152610cef907f0000000000000000000000000000000000000000000000000000000000000000906001600160a01b038916906370a0823190602401602060405180830381865afa158015610cba573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610cde9190611a52565b6001600160a01b0389169190611465565b6040516377b1e4e960e01b81527f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316906377b1e4e990610d87907f0000000000000000000000000000000000000000000000000000000000000000908a908a908a9088907f0000000000000000000000000000000000000000000000000000000000000000908c90600401611a6b565b600060405180830381600087803b158015610da157600080fd5b505af1158015610db5573d6000803e3d6000fd5b50505050505050505050565b6000546001600160a01b03163314610e0a5760405162461bcd60e51b815260206004820152600c60248201526b15539055551213d49256915160a21b6044820152606401610828565b600080546001600160a01b0319166001600160a01b0383169081178255604051909133917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a350565b6daaeb6d7670e522a718067333cd4e3b15610f0e57604051633185c44d60e21b81523060048201526001600160a01b03821660248201526daaeb6d7670e522a718067333cd4e9063c617113490604401602060405180830381865afa158015610ec2573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610ee69190611acb565b610f0e57604051633b79c77360e21b81526001600160a01b0382166004820152602401610828565b50565b6000818152600360205260409020546001600160a01b031633811480610f5a57506001600160a01b038116600090815260066020908152604080832033845290915290205460ff165b610f975760405162461bcd60e51b815260206004820152600e60248201526d1393d517d055551213d49256915160921b6044820152606401610828565b60008281526005602052604080822080546001600160a01b0319166001600160a01b0387811691821790925591518593918516917f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92591a4505050565b6000818152600360205260409020546001600160a01b038481169116146110495760405162461bcd60e51b815260206004820152600a60248201526957524f4e475f46524f4d60b01b6044820152606401610828565b6001600160a01b0382166110935760405162461bcd60e51b81526020600482015260116024820152701253959053125117d49150d25412515395607a1b6044820152606401610828565b336001600160a01b03841614806110cd57506001600160a01b038316600090815260066020908152604080832033845290915290205460ff165b806110ee57506000818152600560205260409020546001600160a01b031633145b61112b5760405162461bcd60e51b815260206004820152600e60248201526d1393d517d055551213d49256915160921b6044820152606401610828565b6001600160a01b0380841660008181526004602090815260408083208054600019019055938616808352848320805460010190558583526003825284832080546001600160a01b03199081168317909155600590925284832080549092169091559251849392917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4505050565b6111c5838383610760565b6001600160a01b0382163b158061126e5750604051630a85bd0160e11b8082523360048301526001600160a01b03858116602484015260448301849052608060648401526000608484015290919084169063150b7a029060a4016020604051808303816000875af115801561123e573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906112629190611ae8565b6001600160e01b031916145b61075b5760405162461bcd60e51b815260206004820152601060248201526f155394d0519157d49150d2541251539560821b6044820152606401610828565b3360008181526006602090815260408083206001600160a01b03871680855290835292819020805460ff191686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b611324858585610760565b6001600160a01b0384163b15806113bb5750604051630a85bd0160e11b808252906001600160a01b0386169063150b7a029061136c9033908a90899089908990600401611b05565b6020604051808303816000875af115801561138b573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906113af9190611ae8565b6001600160e01b031916145b6113fa5760405162461bcd60e51b815260206004820152601060248201526f155394d0519157d49150d2541251539560821b6044820152606401610828565b5050505050565b606060a06040510180604052602081039150506000815280825b600183039250600a81066030018353600a90048061141b5750819003601f19909101908152919050565b60008060008084865af16114615763b12d13eb6000526004601cfd5b5050565b81601a5280603a5269a9059cbb00000000000060005260206000604460166000875af13d1560016000511417166114a4576390b8ec186000526004601cfd5b6000603a52505050565b6001600160e01b031981168114610f0e57600080fd5b6000602082840312156114d657600080fd5b81356114e1816114ae565b9392505050565b60005b838110156115035781810151838201526020016114eb565b50506000910152565b602081526000825180602084015261152b8160408501602087016114e8565b601f01601f19169190910160400192915050565b60006020828403121561155157600080fd5b5035919050565b80356001600160a01b038116811461083157600080fd5b6000806040838503121561158257600080fd5b61158b83611558565b946020939093013593505050565b6000806000606084860312156115ae57600080fd5b6115b784611558565b92506115c560208501611558565b9150604084013590509250925092565b600080604083850312156115e857600080fd5b50508035926020909101359150565b60006020828403121561160957600080fd5b6114e182611558565b8015158114610f0e57600080fd5b6000806040838503121561163357600080fd5b61163c83611558565b9150602083013561164c81611612565b809150509250929050565b60008060008060006080868803121561166f57600080fd5b61167886611558565b945061168660208701611558565b935060408601359250606086013567ffffffffffffffff808211156116aa57600080fd5b818801915088601f8301126116be57600080fd5b8135818111156116cd57600080fd5b8960208285010111156116df57600080fd5b9699959850939650602001949392505050565b6000806000806060858703121561170857600080fd5b61171185611558565b9350602085013567ffffffffffffffff8082111561172e57600080fd5b818701915087601f83011261174257600080fd5b81358181111561175157600080fd5b8860208260051b850101111561176657600080fd5b60208301955080945050505061177e60408601611558565b905092959194509250565b6000806040838503121561179c57600080fd5b6117a583611558565b91506117b360208401611558565b90509250929050565b600181811c908216806117d057607f821691505b60208210810361092457634e487b7160e01b600052602260045260246000fd5b634e487b7160e01b600052601160045260246000fd5b80820281158282048414176106b3576106b36117f0565b60008261183a57634e487b7160e01b600052601260045260246000fd5b500490565b634e487b7160e01b600052603260045260246000fd5b63ffffffff818116838216019080821115611872576118726117f0565b5092915050565b6000815161188b8185602086016114e8565b9290920192915050565b600080845481600182811c9150808316806118b157607f831692505b602080841082036118d057634e487b7160e01b86526022600452602486fd5b8180156118e457600181146118f957611926565b60ff1986168952841515850289019650611926565b60008b81526020902060005b8681101561191e5781548b820152908501908301611905565b505084890196505b50505050505061195f61194e6119488365746f6b656e5f60d01b815260060190565b86611879565b64173539b7b760d91b815260050190565b95945050505050565b634e487b7160e01b600052604160045260246000fd5b8183526000602080850194508260005b858110156119ba576001600160a01b036119a783611558565b168752958201959082019060010161198e565b509495945050505050565b600081518084526020808501945080840160005b838110156119ba57815163ffffffff16875295820195908201906001016119d9565b600060018060a01b03808916835260a06020840152611a1e60a08401888a61197e565b8381036040850152611a3081886119c5565b63ffffffff969096166060850152509290921660809091015250949350505050565b600060208284031215611a6457600080fd5b5051919050565b600060018060a01b03808a168352808916602084015260c06040840152611a9660c08401888a61197e565b8381036060850152611aa881886119c5565b63ffffffff969096166080850152509290921660a0909101525095945050505050565b600060208284031215611add57600080fd5b81516114e181611612565b600060208284031215611afa57600080fd5b81516114e1816114ae565b6001600160a01b038681168252851660208201526040810184905260806060820181905281018290526000828460a0840137600060a0848401015260a0601f19601f8501168301019050969550505050505056fea264697066735822122050d4cfb05f07c9f85216f3210f09cfcb298c9056940dd18aaa5ede7dcc44eb6c64736f6c6343000811003348696269736375732044657369676e65722053706c697420526573656172636820436f6e747261637420563000000000000000000000000000000000000000000000000000000000000000a00000000000000000000000002ed6c4b5da6378c7897ac67ba9e43102feb694ee0000000000000000000000001a6ef6cc28cf60aa0504cfb21cdffa48cfe3a8fb000000000000000000000000000000000000000000000000000000000000020000000000000000000000000000000000000000000000000000000000000001f4000000000000000000000000000000000000000000000000000000000000000a00000000000000000000000033e626727b9ecf64e09f600a1e0f5adde266a0df0000000000000000000000001a6ef6cc28cf60aa0504cfb21cdffa48cfe3a8fb000000000000000000000000accaad08fbf99487b487c73fc8f67d1d8a6ab412000000000000000000000000accaad08fbf99487b487c73fc8f67d1d8a6ab412000000000000000000000000accaad08fbf99487b487c73fc8f67d1d8a6ab412000000000000000000000000accaad08fbf99487b487c73fc8f67d1d8a6ab412000000000000000000000000accaad08fbf99487b487c73fc8f67d1d8a6ab412000000000000000000000000accaad08fbf99487b487c73fc8f67d1d8a6ab412000000000000000000000000ecac0b1eb9318bd7d9ab5788553df253992defe9000000000000000000000000ecac0b1eb9318bd7d9ab5788553df253992defe9000000000000000000000000000000000000000000000000000000000000004068747470733a2f2f617277656176652e6e65742f74473078566861625931467644516c544b6646774c7a48374266494a4334394e50546466724576305a764d2f

Deployed Bytecode

0x6080604052600436106101c65760003560e01c80637ebb2e41116100f7578063b88d4fde11610095578063d6032f8511610064578063d6032f85146105a5578063dbf32be5146105d9578063e985e9c51461060c578063f2fde38b1461064757600080fd5b8063b88d4fde14610525578063c87b56dd14610545578063cff7cd8c14610565578063d3561ecd1461058557600080fd5b806395d89b41116100d157806395d89b411461049c57806396263513146104b1578063a12df0e7146104d1578063a22cb4651461050557600080fd5b80637ebb2e411461043157806386d90c7f146104475780638da5cb5b1461047c57600080fd5b80632a55205a1161016457806342842e0e1161013e57806342842e0e146103bc5780636352211e146103dc5780636c0360eb146103fc57806370a082311461041157600080fd5b80632a55205a146103445780633f26479e1461038357806341f434341461039a57600080fd5b8063095ea7b3116101a0578063095ea7b3146102aa5780630e769b2b146102cc57806318160ddd1461030057806323b872dd1461032457600080fd5b806301ffc9a71461020557806306fdde031461023a578063081812fc1461025c57600080fd5b36610200576040513481527f9e4ac34f21c619cefc926c8bd93b54bf5a39c7ab2127a895af1cc0691d7e3dff9060200160405180910390a1005b600080fd5b34801561021157600080fd5b506102256102203660046114c4565b610667565b60405190151581526020015b60405180910390f35b34801561024657600080fd5b5061024f6106b9565b604051610231919061150c565b34801561026857600080fd5b5061029261027736600461153f565b6005602052600090815260409020546001600160a01b031681565b6040516001600160a01b039091168152602001610231565b3480156102b657600080fd5b506102ca6102c536600461156f565b610747565b005b3480156102d857600080fd5b506102927f0000000000000000000000002ed6c4b5da6378c7897ac67ba9e43102feb694ee81565b34801561030c57600080fd5b5061031660085481565b604051908152602001610231565b34801561033057600080fd5b506102ca61033f366004611599565b610760565b34801561035057600080fd5b5061036461035f3660046115d5565b61078b565b604080516001600160a01b039093168352602083019190915201610231565b34801561038f57600080fd5b50610316620f424081565b3480156103a657600080fd5b506102926daaeb6d7670e522a718067333cd4e81565b3480156103c857600080fd5b506102ca6103d7366004611599565b6107b5565b3480156103e857600080fd5b506102926103f736600461153f565b6107da565b34801561040857600080fd5b5061024f610836565b34801561041d57600080fd5b5061031661042c3660046115f7565b610843565b34801561043d57600080fd5b5061031660075481565b34801561045357600080fd5b506104676104623660046115f7565b6108a6565b60405163ffffffff9091168152602001610231565b34801561048857600080fd5b50600054610292906001600160a01b031681565b3480156104a857600080fd5b5061024f61092a565b3480156104bd57600080fd5b506102ca6104cc36600461153f565b610937565b3480156104dd57600080fd5b506102927f000000000000000000000000c0bd1c3d817115690ac5264ea530dd5f9e0de5ce81565b34801561051157600080fd5b506102ca610520366004611620565b610985565b34801561053157600080fd5b506102ca610540366004611657565b610999565b34801561055157600080fd5b5061024f61056036600461153f565b6109c8565b34801561057157600080fd5b5061046761058036600461153f565b610a5b565b34801561059157600080fd5b506102ca6105a03660046116f2565b610a95565b3480156105b157600080fd5b506104677f000000000000000000000000000000000000000000000000000000000000000081565b3480156105e557600080fd5b507f0000000000000000000000000000000000000000000000000000000000000000610467565b34801561061857600080fd5b50610225610627366004611789565b600660209081526000928352604080842090915290825290205460ff1681565b34801561065357600080fd5b506102ca6106623660046115f7565b610dc1565b60006301ffc9a760e01b6001600160e01b03198316148061069857506380ac58cd60e01b6001600160e01b03198316145b806106b35750635b5e139f60e01b6001600160e01b03198316145b92915050565b600180546106c6906117bc565b80601f01602080910402602001604051908101604052809291908181526020018280546106f2906117bc565b801561073f5780601f106107145761010080835404028352916020019161073f565b820191906000526020600020905b81548152906001019060200180831161072257829003601f168201915b505050505081565b8161075181610e55565b61075b8383610f11565b505050565b826001600160a01b038116331461077a5761077a33610e55565b610785848484610ff3565b50505050565b60008030612710600754856107a09190611806565b6107aa919061181d565b915091509250929050565b826001600160a01b03811633146107cf576107cf33610e55565b6107858484846111ba565b6000818152600360205260409020546001600160a01b0316806108315760405162461bcd60e51b815260206004820152600a6024820152691393d517d3525395115160b21b60448201526064015b60405180910390fd5b919050565b600980546106c6906117bc565b60006001600160a01b03821661088a5760405162461bcd60e51b815260206004820152600c60248201526b5a45524f5f4144445245535360a01b6044820152606401610828565b506001600160a01b031660009081526004602052604090205490565b6000805b60085481101561092457826001600160a01b03166108c7826107da565b6001600160a01b03160361091c57600a81815481106108e8576108e861183f565b90600052602060002090600891828204019190066004029054906101000a900463ffffffff16826109199190611855565b91505b6001016108aa565b50919050565b600280546106c6906117bc565b6000546001600160a01b031633146109805760405162461bcd60e51b815260206004820152600c60248201526b15539055551213d49256915160a21b6044820152606401610828565b600755565b8161098f81610e55565b61075b83836112ad565b846001600160a01b03811633146109b3576109b333610e55565b6109c08686868686611319565b505050505050565b606060006109d5836107da565b6001600160a01b0316036109ff5760405163c927e5bf60e01b815260048101839052602401610828565b600060098054610a0e906117bc565b905011610a2a57604051806020016040528060008152506106b3565b6009610a3583611401565b604051602001610a46929190611895565b60405160208183030381529060405292915050565b600a8181548110610a6b57600080fd5b9060005260206000209060089182820401919006600402915054906101000a900463ffffffff1681565b8160008167ffffffffffffffff811115610ab157610ab1611968565b604051908082528060200260200182016040528015610ada578160200160208202803683370190505b50905060005b82811015610b4157610b12868683818110610afd57610afd61183f565b905060200201602081019061046291906115f7565b828281518110610b2457610b2461183f565b63ffffffff90921660209283029190910190910152600101610ae0565b506001600160a01b038616610c5057610b836001600160a01b037f000000000000000000000000c0bd1c3d817115690ac5264ea530dd5f9e0de5ce1647611445565b6040516352f1c84f60e11b81527f0000000000000000000000002ed6c4b5da6378c7897ac67ba9e43102feb694ee6001600160a01b03169063a5e3909e90610c19907f000000000000000000000000c0bd1c3d817115690ac5264ea530dd5f9e0de5ce908990899087907f0000000000000000000000000000000000000000000000000000000000000000908b906004016119fb565b600060405180830381600087803b158015610c3357600080fd5b505af1158015610c47573d6000803e3d6000fd5b505050506109c0565b6040516370a0823160e01b8152306004820152610cef907f000000000000000000000000c0bd1c3d817115690ac5264ea530dd5f9e0de5ce906001600160a01b038916906370a0823190602401602060405180830381865afa158015610cba573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610cde9190611a52565b6001600160a01b0389169190611465565b6040516377b1e4e960e01b81527f0000000000000000000000002ed6c4b5da6378c7897ac67ba9e43102feb694ee6001600160a01b0316906377b1e4e990610d87907f000000000000000000000000c0bd1c3d817115690ac5264ea530dd5f9e0de5ce908a908a908a9088907f0000000000000000000000000000000000000000000000000000000000000000908c90600401611a6b565b600060405180830381600087803b158015610da157600080fd5b505af1158015610db5573d6000803e3d6000fd5b50505050505050505050565b6000546001600160a01b03163314610e0a5760405162461bcd60e51b815260206004820152600c60248201526b15539055551213d49256915160a21b6044820152606401610828565b600080546001600160a01b0319166001600160a01b0383169081178255604051909133917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a350565b6daaeb6d7670e522a718067333cd4e3b15610f0e57604051633185c44d60e21b81523060048201526001600160a01b03821660248201526daaeb6d7670e522a718067333cd4e9063c617113490604401602060405180830381865afa158015610ec2573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610ee69190611acb565b610f0e57604051633b79c77360e21b81526001600160a01b0382166004820152602401610828565b50565b6000818152600360205260409020546001600160a01b031633811480610f5a57506001600160a01b038116600090815260066020908152604080832033845290915290205460ff165b610f975760405162461bcd60e51b815260206004820152600e60248201526d1393d517d055551213d49256915160921b6044820152606401610828565b60008281526005602052604080822080546001600160a01b0319166001600160a01b0387811691821790925591518593918516917f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92591a4505050565b6000818152600360205260409020546001600160a01b038481169116146110495760405162461bcd60e51b815260206004820152600a60248201526957524f4e475f46524f4d60b01b6044820152606401610828565b6001600160a01b0382166110935760405162461bcd60e51b81526020600482015260116024820152701253959053125117d49150d25412515395607a1b6044820152606401610828565b336001600160a01b03841614806110cd57506001600160a01b038316600090815260066020908152604080832033845290915290205460ff165b806110ee57506000818152600560205260409020546001600160a01b031633145b61112b5760405162461bcd60e51b815260206004820152600e60248201526d1393d517d055551213d49256915160921b6044820152606401610828565b6001600160a01b0380841660008181526004602090815260408083208054600019019055938616808352848320805460010190558583526003825284832080546001600160a01b03199081168317909155600590925284832080549092169091559251849392917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4505050565b6111c5838383610760565b6001600160a01b0382163b158061126e5750604051630a85bd0160e11b8082523360048301526001600160a01b03858116602484015260448301849052608060648401526000608484015290919084169063150b7a029060a4016020604051808303816000875af115801561123e573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906112629190611ae8565b6001600160e01b031916145b61075b5760405162461bcd60e51b815260206004820152601060248201526f155394d0519157d49150d2541251539560821b6044820152606401610828565b3360008181526006602090815260408083206001600160a01b03871680855290835292819020805460ff191686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b611324858585610760565b6001600160a01b0384163b15806113bb5750604051630a85bd0160e11b808252906001600160a01b0386169063150b7a029061136c9033908a90899089908990600401611b05565b6020604051808303816000875af115801561138b573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906113af9190611ae8565b6001600160e01b031916145b6113fa5760405162461bcd60e51b815260206004820152601060248201526f155394d0519157d49150d2541251539560821b6044820152606401610828565b5050505050565b606060a06040510180604052602081039150506000815280825b600183039250600a81066030018353600a90048061141b5750819003601f19909101908152919050565b60008060008084865af16114615763b12d13eb6000526004601cfd5b5050565b81601a5280603a5269a9059cbb00000000000060005260206000604460166000875af13d1560016000511417166114a4576390b8ec186000526004601cfd5b6000603a52505050565b6001600160e01b031981168114610f0e57600080fd5b6000602082840312156114d657600080fd5b81356114e1816114ae565b9392505050565b60005b838110156115035781810151838201526020016114eb565b50506000910152565b602081526000825180602084015261152b8160408501602087016114e8565b601f01601f19169190910160400192915050565b60006020828403121561155157600080fd5b5035919050565b80356001600160a01b038116811461083157600080fd5b6000806040838503121561158257600080fd5b61158b83611558565b946020939093013593505050565b6000806000606084860312156115ae57600080fd5b6115b784611558565b92506115c560208501611558565b9150604084013590509250925092565b600080604083850312156115e857600080fd5b50508035926020909101359150565b60006020828403121561160957600080fd5b6114e182611558565b8015158114610f0e57600080fd5b6000806040838503121561163357600080fd5b61163c83611558565b9150602083013561164c81611612565b809150509250929050565b60008060008060006080868803121561166f57600080fd5b61167886611558565b945061168660208701611558565b935060408601359250606086013567ffffffffffffffff808211156116aa57600080fd5b818801915088601f8301126116be57600080fd5b8135818111156116cd57600080fd5b8960208285010111156116df57600080fd5b9699959850939650602001949392505050565b6000806000806060858703121561170857600080fd5b61171185611558565b9350602085013567ffffffffffffffff8082111561172e57600080fd5b818701915087601f83011261174257600080fd5b81358181111561175157600080fd5b8860208260051b850101111561176657600080fd5b60208301955080945050505061177e60408601611558565b905092959194509250565b6000806040838503121561179c57600080fd5b6117a583611558565b91506117b360208401611558565b90509250929050565b600181811c908216806117d057607f821691505b60208210810361092457634e487b7160e01b600052602260045260246000fd5b634e487b7160e01b600052601160045260246000fd5b80820281158282048414176106b3576106b36117f0565b60008261183a57634e487b7160e01b600052601260045260246000fd5b500490565b634e487b7160e01b600052603260045260246000fd5b63ffffffff818116838216019080821115611872576118726117f0565b5092915050565b6000815161188b8185602086016114e8565b9290920192915050565b600080845481600182811c9150808316806118b157607f831692505b602080841082036118d057634e487b7160e01b86526022600452602486fd5b8180156118e457600181146118f957611926565b60ff1986168952841515850289019650611926565b60008b81526020902060005b8681101561191e5781548b820152908501908301611905565b505084890196505b50505050505061195f61194e6119488365746f6b656e5f60d01b815260060190565b86611879565b64173539b7b760d91b815260050190565b95945050505050565b634e487b7160e01b600052604160045260246000fd5b8183526000602080850194508260005b858110156119ba576001600160a01b036119a783611558565b168752958201959082019060010161198e565b509495945050505050565b600081518084526020808501945080840160005b838110156119ba57815163ffffffff16875295820195908201906001016119d9565b600060018060a01b03808916835260a06020840152611a1e60a08401888a61197e565b8381036040850152611a3081886119c5565b63ffffffff969096166060850152509290921660809091015250949350505050565b600060208284031215611a6457600080fd5b5051919050565b600060018060a01b03808a168352808916602084015260c06040840152611a9660c08401888a61197e565b8381036060850152611aa881886119c5565b63ffffffff969096166080850152509290921660a0909101525095945050505050565b600060208284031215611add57600080fd5b81516114e181611612565b600060208284031215611afa57600080fd5b81516114e1816114ae565b6001600160a01b038681168252851660208201526040810184905260806060820181905281018290526000828460a0840137600060a0848401015260a0601f19601f8501168301019050969550505050505056fea264697066735822122050d4cfb05f07c9f85216f3210f09cfcb298c9056940dd18aaa5ede7dcc44eb6c64736f6c63430008110033

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

00000000000000000000000000000000000000000000000000000000000000a00000000000000000000000002ed6c4b5da6378c7897ac67ba9e43102feb694ee0000000000000000000000001a6ef6cc28cf60aa0504cfb21cdffa48cfe3a8fb000000000000000000000000000000000000000000000000000000000000020000000000000000000000000000000000000000000000000000000000000001f4000000000000000000000000000000000000000000000000000000000000000a00000000000000000000000033e626727b9ecf64e09f600a1e0f5adde266a0df0000000000000000000000001a6ef6cc28cf60aa0504cfb21cdffa48cfe3a8fb000000000000000000000000accaad08fbf99487b487c73fc8f67d1d8a6ab412000000000000000000000000accaad08fbf99487b487c73fc8f67d1d8a6ab412000000000000000000000000accaad08fbf99487b487c73fc8f67d1d8a6ab412000000000000000000000000accaad08fbf99487b487c73fc8f67d1d8a6ab412000000000000000000000000accaad08fbf99487b487c73fc8f67d1d8a6ab412000000000000000000000000accaad08fbf99487b487c73fc8f67d1d8a6ab412000000000000000000000000ecac0b1eb9318bd7d9ab5788553df253992defe9000000000000000000000000ecac0b1eb9318bd7d9ab5788553df253992defe9000000000000000000000000000000000000000000000000000000000000004068747470733a2f2f617277656176652e6e65742f74473078566861625931467644516c544b6646774c7a48374266494a4334394e50546466724576305a764d2f

-----Decoded View---------------
Arg [0] : accounts (address[]): 0x33e626727B9Ecf64E09f600A1E0f5adDe266a0DF,0x1a6EF6CC28cF60aa0504CfB21CdffA48Cfe3A8FB,0xAcCAAd08FBf99487B487C73fC8F67D1d8A6AB412,0xAcCAAd08FBf99487B487C73fC8F67D1d8A6AB412,0xAcCAAd08FBf99487B487C73fC8F67D1d8A6AB412,0xAcCAAd08FBf99487B487C73fC8F67D1d8A6AB412,0xAcCAAd08FBf99487B487C73fC8F67D1d8A6AB412,0xAcCAAd08FBf99487B487C73fC8F67D1d8A6AB412,0xEcac0B1eb9318BD7D9AB5788553df253992dEfE9,0xEcac0B1eb9318BD7D9AB5788553df253992dEfE9
Arg [1] : _splitMain (address): 0x2ed6c4B5dA6378c7897AC67Ba9e43102Feb694EE
Arg [2] : _owner (address): 0x1a6EF6CC28cF60aa0504CfB21CdffA48Cfe3A8FB
Arg [3] : _baseURI (string): https://arweave.net/tG0xVhabY1FvDQlTKfFwLzH7BfIJC49NPTdfrEv0ZvM/
Arg [4] : _royaltyPoints (uint256): 500

-----Encoded View---------------
19 Constructor Arguments found :
Arg [0] : 00000000000000000000000000000000000000000000000000000000000000a0
Arg [1] : 0000000000000000000000002ed6c4b5da6378c7897ac67ba9e43102feb694ee
Arg [2] : 0000000000000000000000001a6ef6cc28cf60aa0504cfb21cdffa48cfe3a8fb
Arg [3] : 0000000000000000000000000000000000000000000000000000000000000200
Arg [4] : 00000000000000000000000000000000000000000000000000000000000001f4
Arg [5] : 000000000000000000000000000000000000000000000000000000000000000a
Arg [6] : 00000000000000000000000033e626727b9ecf64e09f600a1e0f5adde266a0df
Arg [7] : 0000000000000000000000001a6ef6cc28cf60aa0504cfb21cdffa48cfe3a8fb
Arg [8] : 000000000000000000000000accaad08fbf99487b487c73fc8f67d1d8a6ab412
Arg [9] : 000000000000000000000000accaad08fbf99487b487c73fc8f67d1d8a6ab412
Arg [10] : 000000000000000000000000accaad08fbf99487b487c73fc8f67d1d8a6ab412
Arg [11] : 000000000000000000000000accaad08fbf99487b487c73fc8f67d1d8a6ab412
Arg [12] : 000000000000000000000000accaad08fbf99487b487c73fc8f67d1d8a6ab412
Arg [13] : 000000000000000000000000accaad08fbf99487b487c73fc8f67d1d8a6ab412
Arg [14] : 000000000000000000000000ecac0b1eb9318bd7d9ab5788553df253992defe9
Arg [15] : 000000000000000000000000ecac0b1eb9318bd7d9ab5788553df253992defe9
Arg [16] : 0000000000000000000000000000000000000000000000000000000000000040
Arg [17] : 68747470733a2f2f617277656176652e6e65742f744730785668616259314676
Arg [18] : 44516c544b6646774c7a48374266494a4334394e50546466724576305a764d2f


Loading...
Loading
Loading...
Loading
[ Download: CSV Export  ]
[ Download: CSV Export  ]

A token is a representation of an on-chain or off-chain asset. The token page shows information such as price, total supply, holders, transfers and social links. Learn more about this page in our Knowledge Base.