From 63ca5b8859b63023659b40d3e86ba60a18bc863a Mon Sep 17 00:00:00 2001 From: Mikhail Melnik Date: Mon, 9 Oct 2023 21:44:13 +0300 Subject: [PATCH] emit in event how much is left after the fill --- contracts/OrderMixin.sol | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/contracts/OrderMixin.sol b/contracts/OrderMixin.sol index 4b2c61ab..9e41882a 100644 --- a/contracts/OrderMixin.sol +++ b/contracts/OrderMixin.sol @@ -453,7 +453,7 @@ abstract contract OrderMixin is IOrderMixin, EIP712, OnlyWethReceiver, Predicate ); } - emit OrderFilled(orderHash, remainingMakingAmount); + emit OrderFilled(orderHash, remainingMakingAmount - makingAmount); } /**