From ccf61d734f00c66c429bfd3cb338ba955b2021aa Mon Sep 17 00:00:00 2001 From: Centaur AI Date: Mon, 4 May 2026 15:27:45 +0000 Subject: [PATCH] feat(IStablecoinDEX): add OrderFlipped event per TIP-1056 TIP-1056 keeps the same orderId across flip order transitions. Adds the OrderFlipped event with the same payload shape as OrderPlaced, emitted when a fully filled flip order is rewritten to its new resting state instead of allocating a new orderId. Amp-Thread-ID: https://ampcode.com/threads/T-019df387-7b93-72d9-8a24-ac66bd58d568 --- src/interfaces/IStablecoinDEX.sol | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/src/interfaces/IStablecoinDEX.sol b/src/interfaces/IStablecoinDEX.sol index b4fdd31..344e86a 100644 --- a/src/interfaces/IStablecoinDEX.sol +++ b/src/interfaces/IStablecoinDEX.sol @@ -63,6 +63,16 @@ interface IStablecoinDEX { event OrderFilled( uint128 indexed orderId, address indexed maker, address indexed taker, uint128 amountFilled, bool partialFill ); + event OrderFlipped( + uint128 indexed orderId, + address indexed maker, + address indexed token, + uint128 amount, + bool isBid, + int16 tick, + bool isFlipOrder, + int16 flipTick + ); event OrderPlaced( uint128 indexed orderId, address indexed maker,