// SPDX-License-Identifier: Apache-2.0 pragma solidity 0.8.28; /// @notice Minimal interface of a Uniswap-v2-compatible pair. /// @dev Declared here, not imported from contracts/pools: importing that GPL-3.0 tree would /// relicense this artifact. An interface declaration is not a derivative work. /// The same interface serves our own pools and external ones — the router cannot tell /// them apart, which is the point. interface IUniswapV2Pair { function getReserves() external view returns (uint112 reserve0, uint112 reserve1, uint32 blockTimestampLast); function token0() external view returns (address); function token1() external view returns (address); function swap(uint256 amount0Out, uint256 amount1Out, address to, bytes calldata data) external; }