From 81a08a27811a3cc0509261ad9eb526f2063400c8 Mon Sep 17 00:00:00 2001 From: Derek <256792747+decofe@users.noreply.github.com> Date: Mon, 6 Jul 2026 09:14:47 +0000 Subject: [PATCH] fix stablecoin dex abi alignment --- src/interfaces/IStablecoinDEX.sol | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/interfaces/IStablecoinDEX.sol b/src/interfaces/IStablecoinDEX.sol index 44ee229..0e91e67 100644 --- a/src/interfaces/IStablecoinDEX.sol +++ b/src/interfaces/IStablecoinDEX.sol @@ -58,6 +58,7 @@ interface IStablecoinDEX { error BelowMinimumOrderSize(uint128 amount); error InvalidBaseToken(); error OrderNotStale(); + error IndexAlreadySet(); event OrderCancelled(uint128 indexed orderId); event OrderFilled( @@ -105,6 +106,10 @@ interface IStablecoinDEX { function storageCredits(address user) external view returns (uint64 credits); + function bookIndexForKey(bytes32 key) external view returns (bool isSet, uint32 index); + + function bookKeyForIndex(uint32 index) external view returns (bytes32 key); + function books(bytes32 pairKey) external view @@ -133,6 +138,8 @@ interface IStablecoinDEX { function priceToTick(uint32 price) external pure returns (int16 tick); + function setBookIndex(uint32 index) external; + function quoteSwapExactAmountIn(address tokenIn, address tokenOut, uint128 amountIn) external view