// SPDX-License-Identifier: ZORA-DELAYED-OSL-v1 // This software is licensed under the Zora Delayed Open Source License. // Under this license, you may use, copy, modify, and distribute this software for // non-commercial purposes only. Commercial use and competitive products are prohibited // until the "Open Date" (3 years from first public distribution or earlier at Zora's discretion), // at which point this software automatically becomes available under the MIT License. // Full license terms available at: https://docs.zora.co/coins/license pragma solidity ^0.8.23; import {PoolKey} from "@uniswap/v4-core/src/types/PoolKey.sol"; library CoinCommon { // Helper function to sort tokens and determine if coin is token0 function sortTokens(address coin, address currency) internal pure returns (bool isCoinToken0) { return coin < currency; } function hashPoolKey(PoolKey memory key) internal pure returns (bytes32) { return keccak256(abi.encode(key)); } }