Skip to content

Commit 3d20448

Browse files
chore: interface update (#49)
Co-authored-by: zerosnacks <[email protected]>
1 parent 7323c2a commit 3d20448

File tree

2 files changed

+4
-9
lines changed

2 files changed

+4
-9
lines changed

src/interfaces/IFeeManager.sol

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,12 +6,11 @@ import {IFeeAMM} from "./IFeeAMM.sol";
66
interface IFeeManager is IFeeAMM {
77
event UserTokenSet(address indexed user, address indexed token);
88
event ValidatorTokenSet(address indexed validator, address indexed token);
9+
event FeesDistributed(address indexed validator, address indexed token, uint256 amount);
910

10-
// NOTE: collectFeePreTx and collectFeePostTx are protocol-internal functions
11-
// called directly by the execution handler, not exposed via the public interface.
12-
// TODO: Design fuzz tests for collectFeePreTx/collectFeePostTx to test against the precompile implementation.
11+
function distributeFees(address validator) external;
1312

14-
function executeBlock() external;
13+
function collectedFeesByValidator(address validator) external view returns (uint256);
1514

1615
function setUserToken(address token) external;
1716

src/interfaces/IStablecoinExchange.sol

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ interface IStablecoinExchange {
8888

8989
function PRICE_SCALE() external view returns (uint32);
9090

91-
function activeOrderId() external view returns (uint128);
91+
function nextOrderId() external view returns (uint128);
9292

9393
function balanceOf(address user, address token) external view returns (uint128);
9494

@@ -101,8 +101,6 @@ interface IStablecoinExchange {
101101

102102
function createPair(address base) external returns (bytes32 key);
103103

104-
function executeBlock() external;
105-
106104
function getTickLevel(address base, int16 tick, bool isBid)
107105
external
108106
view
@@ -112,8 +110,6 @@ interface IStablecoinExchange {
112110

113111
function pairKey(address tokenA, address tokenB) external pure returns (bytes32 key);
114112

115-
function pendingOrderId() external view returns (uint128);
116-
117113
function place(address token, uint128 amount, bool isBid, int16 tick) external returns (uint128 orderId);
118114

119115
function placeFlip(address token, uint128 amount, bool isBid, int16 tick, int16 flipTick)

0 commit comments

Comments
 (0)