Skip to content
Verified contractPartialMIT

PeddlesHandlePotFactory

Address0xeb4151af845a51a8d14917fa9dc47cad208bef8d
Balance

0 ETH

 

Transactions

1

 

Compiler

solc 0.8.26

 

Same code

Only this contract

 

Details

Compiler
solc 0.8.26+commit.8a97fa7a
Language
solidity
Optimization
Yes, 200 runs
EVM version
cancun
Via IR
yes
License
MIT
Match
Partialcreation code: yes, runtime code: yes
Verified on Sourcify
Created in block
26,374,089
Creation transaction
0x57f4c13ec6…978977f76d

src/PeddlesHandlePots.sol

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

/*

               _______  _______  ______   ______   _        _______
      (  ____ )(  ____ \(  __  \ (  __  \ ( \      (  ____ \(  ____ \
      | (    )|| (    \/| (  \  )| (  \  )| (      | (    \/| (    \/
      | (____)|| (__    | |   ) || |   ) || |      | (__    | (_____
      |  _____)|  __)   | |   | || |   | || |      |  __)   (_____  )
      | (      | (      | |   ) || |   ) || |      | (            ) |
      | )      | (____/\| (__/  )| (__/  )| (____/\| (____/\/\____) |
      |/       (_______/(______/ (______/ (_______/(_______/\_______)


      THE STOCK-PAIRED LAUNCHPAD

      Launch tokens and NFTs paired against tokenised stocks.
      100% of supply goes to liquidity, locked from block zero.
      Holders earn the stock you are paired to.

      Website     https://peddles.xyz
      X           https://x.com/PeddlesX
      Telegram    https://t.me/peddlesnews


*/

/// @title Peddles handle pots — creator fees held for an X account until its owner claims them
/// @notice A coin can be launched FOR an X account that has never touched crypto. Every creator
///         stream of that coin is paid to the account's pot: a `PeddlesHandlePot` deployed with
///         CREATE2 at an address derived from X's numeric user id (never the handle string, which
///         X reassigns). The account's owner signs in with X; the Peddles oracle attests that the
///         signed-in account is that id and names the wallet the owner chose; after a delay the
///         guardian can use to cancel a bad attestation, that wallet becomes the pot's PAYEE and
///         every balance the pot holds, now or later, can be pushed to it by anyone.
///
/// TRUST, STATED PLAINLY. The oracle key is the one trusted role. It is bounded by:
///   * payee binding - an attestation names `to`; nothing else can receive a claim;
///   * a `CLAIM_DELAY` between request and effect, cancelable by the guardian (who cannot redirect);
///   * `ORACLE_DELAY` on every oracle change, and an instant guardian revoke that voids every
///     outstanding signature by bumping `epoch`.
/// A later attestation (a new wallet, or X Money delivery) replaces the payee only after its own
/// delay, so a compromised oracle is visible for 24 hours before it can redirect anything.
///
/// NO STUCK FUNDS. A pot's balance leaves by exactly two paths: `payOut` to the payee, or, for a pot
/// that never had a payee, the abandonment sweep to the immutable `treasury` after 28 days of public
/// notice (14 days idle, then a 14-day window in which ANY balance change or claim voids it).
interface IHandleERC20 {
    function balanceOf(address account) external view returns (uint256);
    function transfer(address to, uint256 amount) external returns (bool);
}

contract PeddlesHandlePot {
    /// @notice Delay between a claim request and its payout. The guardian may cancel inside it.
    uint256 public constant CLAIM_DELAY = 24 hours;
    /// @notice Idle time before a pot may be marked abandoned, and the notice window after.
    uint256 public constant ABANDON_IDLE = 14 days;
    uint256 public constant ABANDON_NOTICE = 14 days;

    PeddlesHandlePotFactory public immutable factory;
    uint64 public immutable xUserId;

    uint256 public claimNonce;
    /// @notice The wallet the pot pays. Zero until a claim has cleared its delay.
    address public payee;
    /// @notice 0 = paid in full; 1 = X Money delivery (a fee goes to the treasury).
    uint8 public payeeMode;
    address public pendingTo;
    uint8 public pendingMode;
    uint64 public pendingReadyAt;
    uint64 public lastActivity;
    uint64 public abandonMarkedAt;
    bytes32 public abandonSnapshot;

    uint256 private _lock = 1;

    event ClaimRequested(address indexed to, uint8 mode, uint256 nonce, uint64 readyAt);
    event ClaimCanceled(address indexed to);
    event PayeeSet(address indexed payee, uint8 mode);
    event Paid(address indexed asset, address indexed to, uint256 amount, uint256 fee);
    event AbandonMarked(uint64 markedAt, bytes32 snapshot);
    event AbandonVoided();
    event AbandonSwept(address indexed treasury);

    error NotFactory();
    error Reentrant();
    error BadNonce();
    error ClaimPending();
    error NoClaim();
    error NoPayee();
    error Claimed();
    error StillActive();
    error NotMarked();
    error NoticeRunning(uint64 until);
    error TransferFailed();

    modifier onlyFactory() {
        if (msg.sender != address(factory)) revert NotFactory();
        _;
    }

    modifier nonReentrant() {
        if (_lock != 1) revert Reentrant();
        _lock = 2;
        _;
        _lock = 1;
    }

    constructor(uint64 xUserId_) {
        factory = PeddlesHandlePotFactory(msg.sender);
        xUserId = xUserId_;
        lastActivity = uint64(block.timestamp);
    }

    receive() external payable {}

    // ------------------------------------------------------------------ claims

    /// @notice Start a claim with an oracle attestation for this pot's X account. It becomes the
    ///         payee once `CLAIM_DELAY` has passed and anyone settles it (`settleClaim` / `payOut`).
    /// @param mode 0 = pay `to` in full; 1 = X Money delivery (`to` is the delivery wallet, a fee
    ///        goes to the treasury). Mode 1 needs delivery to be enabled on this chain.
    function requestClaim(address to, uint8 mode, uint256 nonce, uint256 deadline, bytes calldata sig)
        external
        nonReentrant
    {
        _settle();
        if (pendingTo != address(0)) revert ClaimPending();
        if (nonce != claimNonce) revert BadNonce();
        factory.verifyClaim(xUserId, to, mode, nonce, deadline, sig);
        unchecked {
            claimNonce = nonce + 1;
        }
        uint64 readyAt = uint64(block.timestamp + CLAIM_DELAY);
        pendingTo = to;
        pendingMode = mode;
        pendingReadyAt = readyAt;
        lastActivity = uint64(block.timestamp);
        if (abandonMarkedAt != 0) {
            abandonMarkedAt = 0;
            abandonSnapshot = bytes32(0);
            emit AbandonVoided();
        }
        emit ClaimRequested(to, mode, nonce, readyAt);
    }

    /// @notice Promote a pending claim whose delay has passed. Permissionless; a no-op otherwise.
    function settleClaim() external nonReentrant {
        _settle();
    }

    /// @notice Push every listed asset's WHOLE balance to the payee. Permissionless - the keeper
    ///         calls it so the account owner pays no gas - and repeatable: fees that arrive later
    ///         go out the same way. It can only ever pay the payee (and, in delivery mode, the fee).
    /// @param assets ERC-20 addresses; `address(0)` means native.
    function payOut(address[] calldata assets) external nonReentrant {
        _settle();
        address to = payee;
        if (to == address(0)) revert NoPayee();
        uint256 feeBps = payeeMode == 1 ? factory.deliveryFeeBps() : 0;
        address treasury = factory.treasury();
        lastActivity = uint64(block.timestamp);

        for (uint256 i; i < assets.length; ++i) {
            uint256 bal = _balance(assets[i]);
            if (bal == 0) continue;
            uint256 fee = (bal * feeBps) / 10_000;
            if (fee != 0) _pay(assets[i], treasury, fee);
            _pay(assets[i], to, bal - fee);
            emit Paid(assets[i], to, bal - fee, fee);
        }
    }

    /// @notice Guardian brake, through the factory, during the delay. Clears the pending claim;
    ///         redirects nothing and leaves an existing payee in place.
    function cancelClaim() external onlyFactory {
        address to = pendingTo;
        if (to == address(0)) revert NoClaim();
        pendingTo = address(0);
        pendingMode = 0;
        pendingReadyAt = 0;
        emit ClaimCanceled(to);
    }

    function _settle() private {
        address to = pendingTo;
        if (to == address(0) || block.timestamp < pendingReadyAt) return;
        uint8 mode = pendingMode;
        payee = to;
        payeeMode = mode;
        pendingTo = address(0);
        pendingMode = 0;
        pendingReadyAt = 0;
        lastActivity = uint64(block.timestamp);
        emit PayeeSet(to, mode);
    }

    // ------------------------------------------------------------ abandonment

    /// @notice Start the public notice for a pot nobody has claimed from in `ABANDON_IDLE`.
    function markAbandoned(address[] calldata assets) external onlyFactory {
        if (payee != address(0)) revert Claimed();
        if (pendingTo != address(0)) revert ClaimPending();
        if (block.timestamp < uint256(lastActivity) + ABANDON_IDLE) revert StillActive();
        bytes32 snap = _snapshot(assets);
        abandonMarkedAt = uint64(block.timestamp);
        abandonSnapshot = snap;
        emit AbandonMarked(uint64(block.timestamp), snap);
    }

    /// @notice After the notice window, pay the pot to the treasury — but only if NOTHING changed:
    ///         any balance movement since the mark (the coin is still earning) voids it instead.
    /// @return swept true when paid, false when the mark was voided.
    function sweepAbandoned(address[] calldata assets) external onlyFactory nonReentrant returns (bool swept) {
        uint64 markedAt = abandonMarkedAt;
        if (markedAt == 0) revert NotMarked();
        if (block.timestamp < uint256(markedAt) + ABANDON_NOTICE) {
            revert NoticeRunning(uint64(uint256(markedAt) + ABANDON_NOTICE));
        }
        if (payee != address(0)) revert Claimed();
        if (pendingTo != address(0)) revert ClaimPending();

        bytes32 marked = abandonSnapshot;
        bytes32 snap = _snapshot(assets);
        abandonMarkedAt = 0;
        abandonSnapshot = bytes32(0);
        // Same asset list, same balances as at the mark, or nothing moves.
        if (snap != marked) {
            emit AbandonVoided();
            return false;
        }
        address treasury = factory.treasury();
        lastActivity = uint64(block.timestamp);
        for (uint256 i; i < assets.length; ++i) {
            uint256 bal = _balance(assets[i]);
            if (bal == 0) continue;
            _pay(assets[i], treasury, bal);
            emit Paid(assets[i], treasury, bal, 0);
        }
        emit AbandonSwept(treasury);
        return true;
    }

    // --------------------------------------------------------------- internals

    function _snapshot(address[] calldata assets) private view returns (bytes32) {
        uint256[] memory bals = new uint256[](assets.length);
        for (uint256 i; i < assets.length; ++i) {
            bals[i] = _balance(assets[i]);
        }
        return keccak256(abi.encode(assets, bals));
    }

    function _balance(address asset) private view returns (uint256) {
        if (asset == address(0)) return address(this).balance;
        (bool ok, bytes memory ret) = asset.staticcall(abi.encodeCall(IHandleERC20.balanceOf, (address(this))));
        if (!ok || ret.length < 32) return 0;
        return abi.decode(ret, (uint256));
    }

    function _pay(address asset, address to, uint256 amount) private {
        if (asset == address(0)) {
            (bool ok,) = payable(to).call{value: amount}("");
            if (!ok) revert TransferFailed();
            return;
        }
        (bool success, bytes memory data) = asset.call(abi.encodeCall(IHandleERC20.transfer, (to, amount)));
        if (!success || (data.length != 0 && !abi.decode(data, (bool)))) revert TransferFailed();
    }
}

contract PeddlesHandlePotFactory {
    uint256 public constant ORACLE_DELAY = 7 days;
    uint16 public constant MAX_DELIVERY_FEE_BPS = 500;

    address public immutable treasury;
    address public immutable guardian;
    uint16 public immutable deliveryFeeBps;

    address public owner;
    address public pendingOwner;
    address public oracle;
    address public pendingOracle;
    uint64 public pendingOracleAt;
    uint256 public epoch;
    bool public deliveryEnabled;

    bytes32 public constant CLAIM_TYPEHASH = keccak256(
        "ClaimAttestation(uint64 xUserId,address to,uint8 mode,uint256 nonce,uint256 deadline,uint256 epoch)"
    );
    bytes32 public constant TICKET_TYPEHASH = keccak256(
        "LaunchTicket(uint64 xUserId,bytes32 handleHash,address launcher,uint256 deadline,uint256 epoch)"
    );

    event PotCreated(uint64 indexed xUserId, address indexed pot);
    event OracleProposed(address indexed oracle, uint64 effectiveAt);
    event OracleUpdated(address indexed oracle, uint256 epoch);
    event OracleRevoked(uint256 epoch);
    event DeliveryEnabledSet(bool enabled);
    event OwnershipTransferStarted(address indexed previousOwner, address indexed newOwner);
    event OwnershipTransferred(address indexed previousOwner, address indexed newOwner);

    error NotOwner();
    error NotGuardian();
    error ZeroAddress();
    error FeeTooHigh();
    error TooEarly(uint64 at);
    error NoProposal();
    error Expired();
    error BadSignature();
    error BadMode();
    error UnknownPot();
    error NothingToSweep();
    error TransferFailed();

    modifier onlyOwner() {
        if (msg.sender != owner) revert NotOwner();
        _;
    }

    constructor(
        address owner_,
        address guardian_,
        address treasury_,
        address oracle_,
        uint16 deliveryFeeBps_,
        bool deliveryEnabled_
    ) {
        // The oracle is checked too: a factory deployed without one refuses every ticket and claim
        // until `proposeOracle` + ORACLE_DELAY, so a zero here is a mis-set env, not a choice. The
        // "no oracle" state exists only as the guardian's revoke.
        if (owner_ == address(0) || guardian_ == address(0) || treasury_ == address(0) || oracle_ == address(0)) {
            revert ZeroAddress();
        }
        if (deliveryFeeBps_ > MAX_DELIVERY_FEE_BPS) revert FeeTooHigh();
        owner = owner_;
        guardian = guardian_;
        treasury = treasury_;
        oracle = oracle_;
        deliveryFeeBps = deliveryFeeBps_;
        deliveryEnabled = deliveryEnabled_;
        emit OwnershipTransferred(address(0), owner_);
        emit OracleUpdated(oracle_, 0);
        emit DeliveryEnabledSet(deliveryEnabled_);
    }

    // ------------------------------------------------------------------ pots

    function potInitCodeHash(uint64 xUserId) public pure returns (bytes32) {
        return keccak256(abi.encodePacked(type(PeddlesHandlePot).creationCode, abi.encode(xUserId)));
    }

    function predictPot(uint64 xUserId) public view returns (address) {
        return address(
            uint160(
                uint256(
                    keccak256(abi.encodePacked(bytes1(0xff), address(this), bytes32(uint256(xUserId)), potInitCodeHash(xUserId)))
                )
            )
        );
    }

    /// @notice Deploy the pot for an X account. Permissionless and idempotent.
    function createPot(uint64 xUserId) external returns (address pot) {
        pot = predictPot(xUserId);
        if (pot.code.length != 0) return pot;
        pot = address(new PeddlesHandlePot{salt: bytes32(uint256(xUserId))}(xUserId));
        emit PotCreated(xUserId, pot);
    }

    // ---------------------------------------------------------------- oracle

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

    /// @notice Revert unless the oracle signed this claim for the calling pot's own X account.
    function verifyClaim(uint64 xUserId, address to, uint8 mode, uint256 nonce, uint256 deadline, bytes calldata sig)
        external
        view
    {
        if (msg.sender != predictPot(xUserId)) revert UnknownPot();
        if (to == address(0)) revert ZeroAddress();
        if (mode > 1 || (mode == 1 && !deliveryEnabled)) revert BadMode();
        if (block.timestamp > deadline) revert Expired();
        _verify(keccak256(abi.encode(CLAIM_TYPEHASH, xUserId, to, mode, nonce, deadline, epoch)), sig);
    }

    /// @notice Revert unless the oracle signed a launch ticket binding `handleHash` to `xUserId`
    ///         for this `launcher`.
    function verifyTicket(uint64 xUserId, bytes32 handleHash, address launcher, uint256 deadline, bytes calldata sig)
        external
        view
    {
        if (block.timestamp > deadline) revert Expired();
        _verify(keccak256(abi.encode(TICKET_TYPEHASH, xUserId, handleHash, launcher, deadline, epoch)), sig);
    }

    function _verify(bytes32 structHash, bytes calldata sig) private view {
        address o = oracle;
        if (o == address(0) || sig.length != 65) revert BadSignature();
        bytes32 digest = keccak256(abi.encodePacked("\x19\x01", domainSeparator(), structHash));
        bytes32 r = bytes32(sig[0:32]);
        bytes32 s = bytes32(sig[32:64]);
        uint8 v = uint8(sig[64]);
        if (uint256(s) > 0x7FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF5D576E7357A4501DDFE92F46681B20A0) revert BadSignature();
        if (ecrecover(digest, v, r, s) != o) revert BadSignature();
    }

    /// @notice Propose a new oracle. Effective only `ORACLE_DELAY` later, via `acceptOracle`.
    function proposeOracle(address next) external onlyOwner {
        if (next == address(0)) revert ZeroAddress();
        uint64 at = uint64(block.timestamp + ORACLE_DELAY);
        pendingOracle = next;
        pendingOracleAt = at;
        emit OracleProposed(next, at);
    }

    /// @notice Anyone may activate a proposal once its delay has passed.
    function acceptOracle() external {
        address next = pendingOracle;
        if (next == address(0)) revert NoProposal();
        if (block.timestamp < pendingOracleAt) revert TooEarly(pendingOracleAt);
        oracle = next;
        pendingOracle = address(0);
        pendingOracleAt = 0;
        unchecked {
            ++epoch;
        }
        emit OracleUpdated(next, epoch);
    }

    /// @notice Guardian: void the oracle and every outstanding signature instantly.
    function revokeOracle() external {
        if (msg.sender != guardian) revert NotGuardian();
        oracle = address(0);
        pendingOracle = address(0);
        pendingOracleAt = 0;
        unchecked {
            ++epoch;
        }
        emit OracleRevoked(epoch);
    }

    /// @notice Guardian: cancel a pot's pending claim during its delay. Redirects nothing.
    function cancelClaim(uint64 xUserId) external {
        if (msg.sender != guardian) revert NotGuardian();
        PeddlesHandlePot(payable(predictPot(xUserId))).cancelClaim();
    }

    function setDeliveryEnabled(bool enabled) external onlyOwner {
        deliveryEnabled = enabled;
        emit DeliveryEnabledSet(enabled);
    }

    // ----------------------------------------------------------- abandonment

    function markAbandoned(uint64 xUserId, address[] calldata assets) external onlyOwner {
        PeddlesHandlePot(payable(predictPot(xUserId))).markAbandoned(assets);
    }

    /// @notice Permissionless: after the notice window the pot pays the treasury, or the mark voids.
    function sweepAbandoned(uint64 xUserId, address[] calldata assets) external returns (bool) {
        return PeddlesHandlePot(payable(predictPot(xUserId))).sweepAbandoned(assets);
    }

    // ------------------------------------------------------------- ownership

    function transferOwnership(address next) external onlyOwner {
        if (next == address(0)) revert ZeroAddress();
        pendingOwner = next;
        emit OwnershipTransferStarted(owner, next);
    }

    function acceptOwnership() external {
        if (msg.sender != pendingOwner) revert NotOwner();
        emit OwnershipTransferred(owner, msg.sender);
        owner = msg.sender;
        pendingOwner = address(0);
    }

    // ---------------------------------------------------------------- sweeps
    // No receive, no payable, no custody: only force-sent wei (selfdestruct, coinbase) or a pushed
    // ERC-20 can be here, and nobody has a claim on it, so the exit is permissionless and pays only
    // the immutable treasury. "Cannot hold value" is not "provably holds none" (no-stuck-funds).

    function sweepNative() external {
        uint256 amount = address(this).balance;
        if (amount == 0) revert NothingToSweep();
        (bool ok,) = payable(treasury).call{value: amount}("");
        if (!ok) revert TransferFailed();
    }

    function sweepToken(address asset) external {
        uint256 amount = IHandleERC20(asset).balanceOf(address(this));
        if (amount == 0) revert NothingToSweep();
        (bool ok, bytes memory data) = asset.call(abi.encodeCall(IHandleERC20.transfer, (treasury, amount)));
        if (!ok || (data.length != 0 && !abi.decode(data, (bool)))) revert TransferFailed();
    }
}
Compiler settingsShow
{
  "viaIR": true,
  "metadata": {
    "appendCBOR": false,
    "bytecodeHash": "none",
    "useLiteralContent": false
  },
  "libraries": {},
  "optimizer": {
    "runs": 200,
    "enabled": true
  },
  "evmVersion": "cancun",
  "remappings": [
    "forge-std/=lib/forge-std/src/",
    "@uniswap/v4-core/=lib/v4-core/",
    "@uniswap/v4-periphery/=lib/v4-periphery/",
    "solady/=lib/solady/",
    "@openzeppelin/contracts/=lib/infinity-core/lib/openzeppelin-contracts/contracts/",
    "permit2/=lib/v4-periphery/lib/permit2/",
    "infinity-core/=lib/infinity-core/",
    "lib/infinity-core/lib/pancake-create3-factory/lib/openzeppelin-contracts/lib/forge-std/:ds-test/=lib/infinity-core/lib/pancake-create3-factory/lib/openzeppelin-contracts/lib/forge-std/lib/ds-test/src/",
    "lib/infinity-core/lib/pancake-create3-factory/lib/openzeppelin-contracts/lib/forge-std/:ds-test/=lib/infinity-core/lib/pancake-create3-factory/lib/openzeppelin-contracts/lib/forge-std/lib/ds-test/src/",
    "lib/v4-periphery/lib/permit2/lib/forge-gas-snapshot/lib/forge-std/:ds-test/=lib/v4-periphery/lib/permit2/lib/forge-gas-snapshot/lib/forge-std/lib/ds-test/src/",
    "lib/v4-periphery/lib/permit2/lib/forge-gas-snapshot/lib/forge-std/:ds-test/=lib/v4-periphery/lib/permit2/lib/forge-gas-snapshot/lib/forge-std/lib/ds-test/src/",
    "lib/v4-periphery/lib/v4-core/lib/openzeppelin-contracts/lib/forge-std/:ds-test/=lib/v4-periphery/lib/v4-core/lib/openzeppelin-contracts/lib/forge-std/lib/ds-test/src/",
    "lib/v4-periphery/lib/v4-core/lib/openzeppelin-contracts/lib/forge-std/:ds-test/=lib/v4-periphery/lib/v4-core/lib/openzeppelin-contracts/lib/forge-std/lib/ds-test/src/",
    "lib/infinity-core/lib/openzeppelin-contracts/lib/forge-std/:ds-test/=lib/infinity-core/lib/openzeppelin-contracts/lib/forge-std/lib/ds-test/src/",
    "lib/infinity-core/lib/openzeppelin-contracts/lib/forge-std/:ds-test/=lib/infinity-core/lib/openzeppelin-contracts/lib/forge-std/lib/ds-test/src/",
    "lib/infinity-core/lib/pancake-create3-factory/lib/openzeppelin-contracts/:erc4626-tests/=lib/infinity-core/lib/pancake-create3-factory/lib/openzeppelin-contracts/lib/erc4626-tests/",
    "lib/infinity-core/lib/pancake-create3-factory/lib/openzeppelin-contracts/:erc4626-tests/=lib/infinity-core/lib/pancake-create3-factory/lib/openzeppelin-contracts/lib/erc4626-tests/",
    "lib/v4-core/lib/openzeppelin-contracts/lib/forge-std/:ds-test/=lib/v4-core/lib/openzeppelin-contracts/lib/forge-std/lib/ds-test/src/",
    "lib/v4-core/lib/openzeppelin-contracts/lib/forge-std/:ds-test/=lib/v4-core/lib/openzeppelin-contracts/lib/forge-std/lib/ds-test/src/",
    "lib/v4-periphery/lib/permit2/lib/forge-std/:ds-test/=lib/v4-periphery/lib/permit2/lib/forge-std/lib/ds-test/src/",
    "lib/v4-periphery/lib/permit2/lib/forge-std/:ds-test/=lib/v4-periphery/lib/permit2/lib/forge-std/lib/ds-test/src/",
    "lib/v4-periphery/lib/permit2/lib/solmate/:ds-test/=lib/v4-periphery/lib/permit2/lib/solmate/lib/ds-test/src/",
    "lib/v4-periphery/lib/permit2/lib/solmate/:ds-test/=lib/v4-periphery/lib/permit2/lib/solmate/lib/ds-test/src/",
    "lib/v4-periphery/lib/v4-core/lib/openzeppelin-contracts/:erc4626-tests/=lib/v4-periphery/lib/v4-core/lib/openzeppelin-contracts/lib/erc4626-tests/",
    "lib/v4-periphery/lib/v4-core/lib/openzeppelin-contracts/:erc4626-tests/=lib/v4-periphery/lib/v4-core/lib/openzeppelin-contracts/lib/erc4626-tests/",
    "lib/v4-periphery/lib/v4-core/lib/solmate/:ds-test/=lib/v4-periphery/lib/v4-core/lib/solmate/lib/ds-test/src/",
    "lib/v4-periphery/lib/v4-core/lib/solmate/:ds-test/=lib/v4-periphery/lib/v4-core/lib/solmate/lib/ds-test/src/",
    "lib/infinity-core/lib/openzeppelin-contracts/:erc4626-tests/=lib/infinity-core/lib/openzeppelin-contracts/lib/erc4626-tests/",
    "lib/infinity-core/lib/openzeppelin-contracts/:erc4626-tests/=lib/infinity-core/lib/openzeppelin-contracts/lib/erc4626-tests/",
    "lib/infinity-core/lib/pancake-create3-factory/:forge-gas-snapshot/=lib/infinity-core/lib/pancake-create3-factory/lib/forge-gas-snapshot/src/",
    "lib/infinity-core/lib/pancake-create3-factory/:forge-gas-snapshot/=lib/infinity-core/lib/pancake-create3-factory/lib/forge-gas-snapshot/src/",
    "lib/infinity-core/lib/pancake-create3-factory/:openzeppelin-contracts/=lib/infinity-core/lib/pancake-create3-factory/lib/openzeppelin-contracts/",
    "lib/infinity-core/lib/pancake-create3-factory/:openzeppelin-contracts/=lib/infinity-core/lib/pancake-create3-factory/lib/openzeppelin-contracts/",
    "lib/infinity-core/lib/solmate/:ds-test/=lib/infinity-core/lib/solmate/lib/ds-test/src/",
    "lib/infinity-core/lib/solmate/:ds-test/=lib/infinity-core/lib/solmate/lib/ds-test/src/",
    "lib/v4-core/lib/openzeppelin-contracts/:erc4626-tests/=lib/v4-core/lib/openzeppelin-contracts/lib/erc4626-tests/",
    "lib/v4-core/lib/openzeppelin-contracts/:erc4626-tests/=lib/v4-core/lib/openzeppelin-contracts/lib/erc4626-tests/",
    "lib/v4-core/lib/solmate/:ds-test/=lib/v4-core/lib/solmate/lib/ds-test/src/",
    "lib/v4-core/lib/solmate/:ds-test/=lib/v4-core/lib/solmate/lib/ds-test/src/",
    "lib/v4-periphery/lib/permit2/:solmate/=lib/v4-periphery/lib/permit2/lib/solmate/",
    "lib/v4-periphery/lib/permit2/:solmate/=lib/v4-periphery/lib/permit2/lib/solmate/",
    "lib/v4-periphery/lib/permit2/:forge-gas-snapshot/=lib/v4-periphery/lib/permit2/lib/forge-gas-snapshot/src/",
    "lib/v4-periphery/lib/permit2/:forge-gas-snapshot/=lib/v4-periphery/lib/permit2/lib/forge-gas-snapshot/src/",
    "lib/v4-periphery/lib/permit2/:openzeppelin-contracts/=lib/v4-periphery/lib/permit2/lib/openzeppelin-contracts/",
    "lib/v4-periphery/lib/permit2/:openzeppelin-contracts/=lib/v4-periphery/lib/permit2/lib/openzeppelin-contracts/",
    "lib/v4-periphery/lib/v4-core/:solmate/=lib/v4-periphery/lib/v4-core/lib/solmate/",
    "lib/v4-periphery/lib/v4-core/:solmate/=lib/v4-periphery/lib/v4-core/lib/solmate/",
    "lib/v4-periphery/lib/v4-core/:openzeppelin-contracts/=lib/v4-periphery/lib/v4-core/lib/openzeppelin-contracts/",
    "lib/v4-periphery/lib/v4-core/:openzeppelin-contracts/=lib/v4-periphery/lib/v4-core/lib/openzeppelin-contracts/",
    "lib/infinity-core/:solmate/=lib/infinity-core/lib/solmate/",
    "lib/infinity-core/:solmate/=lib/infinity-core/lib/solmate/",
    "lib/infinity-core/:openzeppelin-contracts/=lib/infinity-core/lib/openzeppelin-contracts/",
    "lib/infinity-core/:openzeppelin-contracts/=lib/infinity-core/lib/openzeppelin-contracts/",
    "lib/v4-core/:solmate/=lib/v4-core/lib/solmate/",
    "lib/v4-core/:solmate/=lib/v4-core/lib/solmate/",
    "lib/v4-core/:openzeppelin-contracts/=lib/v4-core/lib/openzeppelin-contracts/",
    "lib/v4-core/:openzeppelin-contracts/=lib/v4-core/lib/openzeppelin-contracts/",
    "lib/v4-periphery/:v4-core/=lib/v4-periphery/lib/v4-core/src/",
    "lib/v4-periphery/:v4-core/=lib/v4-periphery/lib/v4-core/src/",
    "@ensdomains/=lib/v4-core/node_modules/@ensdomains/",
    "@openzeppelin/=lib/infinity-core/lib/openzeppelin-contracts/",
    "ds-test/=lib/infinity-core/lib/forge-std/lib/ds-test/src/",
    "erc4626-tests/=lib/infinity-core/lib/openzeppelin-contracts/lib/erc4626-tests/",
    "forge-gas-snapshot/=lib/infinity-core/lib/forge-gas-snapshot/src/",
    "halmos-cheatcodes/=lib/infinity-core/lib/openzeppelin-contracts/lib/halmos-cheatcodes/src/",
    "hardhat/=lib/v4-core/node_modules/hardhat/",
    "openzeppelin-contracts/=lib/infinity-core/lib/openzeppelin-contracts/",
    "pancake-create3-factory/=lib/infinity-core/lib/pancake-create3-factory/",
    "solmate/=lib/infinity-core/lib/solmate/",
    "v4-core/=lib/v4-core/src/",
    "v4-periphery/=lib/v4-periphery/"
  ]
}

Source code and metadata: Sourcify.

The source code belongs to the authors of the contract.