aboutsummaryrefslogtreecommitdiffstats
path: root/packages/contracts
diff options
context:
space:
mode:
authorGreg Hysen <greg.hysen@gmail.com>2018-08-24 07:16:01 +0800
committerGreg Hysen <greg.hysen@gmail.com>2018-08-25 09:20:25 +0800
commita93f95c55ea43bc89d0633190590865d9723b2f9 (patch)
treee03c09534d8b1882e94a41325a84ea6f3e8bb445 /packages/contracts
parent6833e243b7b3aa6991f286e07666c6229313a046 (diff)
downloaddexon-sol-tools-a93f95c55ea43bc89d0633190590865d9723b2f9.tar
dexon-sol-tools-a93f95c55ea43bc89d0633190590865d9723b2f9.tar.gz
dexon-sol-tools-a93f95c55ea43bc89d0633190590865d9723b2f9.tar.bz2
dexon-sol-tools-a93f95c55ea43bc89d0633190590865d9723b2f9.tar.lz
dexon-sol-tools-a93f95c55ea43bc89d0633190590865d9723b2f9.tar.xz
dexon-sol-tools-a93f95c55ea43bc89d0633190590865d9723b2f9.tar.zst
dexon-sol-tools-a93f95c55ea43bc89d0633190590865d9723b2f9.zip
Wording in MixinMatchOrders
Diffstat (limited to 'packages/contracts')
-rw-r--r--packages/contracts/src/2.0.0/protocol/Exchange/MixinMatchOrders.sol4
1 files changed, 2 insertions, 2 deletions
diff --git a/packages/contracts/src/2.0.0/protocol/Exchange/MixinMatchOrders.sol b/packages/contracts/src/2.0.0/protocol/Exchange/MixinMatchOrders.sol
index d932c743f..a0696c616 100644
--- a/packages/contracts/src/2.0.0/protocol/Exchange/MixinMatchOrders.sol
+++ b/packages/contracts/src/2.0.0/protocol/Exchange/MixinMatchOrders.sol
@@ -181,7 +181,7 @@ contract MixinMatchOrders is
// Calculate fill results for maker and taker assets
if (leftTakerAssetAmountRemaining >= rightMakerAssetAmountRemaining) {
- // Case 1: Right order is fully filled: maximally fill right
+ // Case 1: Right order is fully filled
matchedFillResults.right.makerAssetFilledAmount = rightMakerAssetAmountRemaining;
matchedFillResults.right.takerAssetFilledAmount = rightTakerAssetAmountRemaining;
matchedFillResults.left.makerAssetFilledAmount = getPartialAmountFloor(
@@ -191,7 +191,7 @@ contract MixinMatchOrders is
);
matchedFillResults.left.takerAssetFilledAmount = matchedFillResults.right.makerAssetFilledAmount;
} else {
- // Case 2: Left order is fully filled: maximall fill left
+ // Case 2: Left order is fully filled
matchedFillResults.left.makerAssetFilledAmount = leftMakerAssetAmountRemaining;
matchedFillResults.left.takerAssetFilledAmount = leftTakerAssetAmountRemaining;
matchedFillResults.right.makerAssetFilledAmount = matchedFillResults.left.takerAssetFilledAmount;