From c8f65a1bf9c664b21ee21b08a3a91881d7f3dce1 Mon Sep 17 00:00:00 2001 From: Greg Hysen Date: Wed, 16 May 2018 16:19:28 -0700 Subject: Updated order of settleMatchedOrders to align with settleOrder --- .../src/contracts/current/protocol/Exchange/MixinMatchOrders.sol | 4 ++-- .../src/contracts/current/protocol/Exchange/MixinSettlement.sol | 6 +++--- .../src/contracts/current/protocol/Exchange/mixins/MSettlement.sol | 6 +++--- 3 files changed, 8 insertions(+), 8 deletions(-) (limited to 'packages/contracts') diff --git a/packages/contracts/src/contracts/current/protocol/Exchange/MixinMatchOrders.sol b/packages/contracts/src/contracts/current/protocol/Exchange/MixinMatchOrders.sol index 35d65c213..70b6b8ff8 100644 --- a/packages/contracts/src/contracts/current/protocol/Exchange/MixinMatchOrders.sol +++ b/packages/contracts/src/contracts/current/protocol/Exchange/MixinMatchOrders.sol @@ -112,8 +112,8 @@ contract MixinMatchOrders is settleMatchedOrders( leftOrder, rightOrder, - matchedFillResults, - takerAddress + takerAddress, + matchedFillResults ); // Update exchange state diff --git a/packages/contracts/src/contracts/current/protocol/Exchange/MixinSettlement.sol b/packages/contracts/src/contracts/current/protocol/Exchange/MixinSettlement.sol index 7e324a5d2..6bd9edae5 100644 --- a/packages/contracts/src/contracts/current/protocol/Exchange/MixinSettlement.sol +++ b/packages/contracts/src/contracts/current/protocol/Exchange/MixinSettlement.sol @@ -97,13 +97,13 @@ contract MixinSettlement is /// @dev Settles matched order by transferring appropriate funds between order makers, taker, and fee recipient. /// @param leftOrder First matched order. /// @param rightOrder Second matched order. - /// @param matchedFillResults Struct holding amounts to transfer between makers, taker, and fee recipients. /// @param takerAddress Address that matched the orders. The taker receives the spread between orders as profit. + /// @param matchedFillResults Struct holding amounts to transfer between makers, taker, and fee recipients. function settleMatchedOrders( LibOrder.Order memory leftOrder, LibOrder.Order memory rightOrder, - MatchedFillResults memory matchedFillResults, - address takerAddress + address takerAddress, + MatchedFillResults memory matchedFillResults ) internal { diff --git a/packages/contracts/src/contracts/current/protocol/Exchange/mixins/MSettlement.sol b/packages/contracts/src/contracts/current/protocol/Exchange/mixins/MSettlement.sol index d0de385db..b78718c0c 100644 --- a/packages/contracts/src/contracts/current/protocol/Exchange/mixins/MSettlement.sol +++ b/packages/contracts/src/contracts/current/protocol/Exchange/mixins/MSettlement.sol @@ -38,13 +38,13 @@ contract MSettlement { /// @dev Settles matched order by transferring appropriate funds between order makers, taker, and fee recipient. /// @param leftOrder First matched order. /// @param rightOrder Second matched order. - /// @param matchedFillResults Struct holding amounts to transfer between makers, taker, and fee recipients. /// @param takerAddress Address that matched the orders. The taker receives the spread between orders as profit. + /// @param matchedFillResults Struct holding amounts to transfer between makers, taker, and fee recipients. function settleMatchedOrders( LibOrder.Order memory leftOrder, LibOrder.Order memory rightOrder, - LibFillResults.MatchedFillResults memory matchedFillResults, - address takerAddress + address takerAddress, + LibFillResults.MatchedFillResults memory matchedFillResults ) internal; } -- cgit