We define the transaction completed by calling the Uniswap V2 Swap interface as Swap
The following takes TEST/USDC as an example to illustrate the Swap process (the situation that the LP price does not exceed the order price after the Swap is consistent with the behavior of Uniswap V2 exchange, and will not be discussed here)