A Typical Trade in Vessel

Let’s start with: How is an order executed in Vessel’s VAELOB? Alice places a limit order to buy 1 ETH at a price of $3810. Vessel fulfills this order using 0.7 ETH at $3800 and 0.3 ETH at $3801. While this appears similar to traditional order matching, distinguishing between user-originated orders and AMM pool orders reveals Vessel’s unique execution method. First, Alice’s order is matched with sell orders at $3800, consisting of 0.4 ETH from the AMM and 0.3 ETH from other users. Once the 0.4 ETH from the AMM order is fulfilled, the AMM automatically places a new buy order of the same size at $3799. In contrast, the 0.3 ETH from user orders is removed from the order book upon fulfillment. Next, Alice’s order is matched with sell orders at $3801. The AMM contributes 0.5 ETH at this price, but Alice’s order only consumes 0.3 ETH of it. Afterward, the AMM places a buy order of 0.3 ETH at $3800 once its sell order is fulfilled. In summary, Alice’s order is filled by a combination of orders from other users and the AMM pool. When an AMM order is fulfilled, it automatically places another order of the same size in the opposite direction. Although not detailed in the above flow, it is important to note that the trading fees from AMM-generated orders are collected into the AMM pool and shared proportionally among the LPs.

Last updated