aboutsummaryrefslogtreecommitdiffstats
path: root/packages/contracts/src
diff options
context:
space:
mode:
authorAmir Bandeali <abandeali1@gmail.com>2018-08-29 04:25:05 +0800
committerAmir Bandeali <abandeali1@gmail.com>2018-08-29 04:25:05 +0800
commitf225f9e7c8f59a0ea04f6c9b07493a0458c4f502 (patch)
treeed994e001182e7109723af7c94ec99b6ff20bca8 /packages/contracts/src
parent14fdb71a716cb95bc1f6933db9057d23f3c41909 (diff)
downloaddexon-0x-contracts-f225f9e7c8f59a0ea04f6c9b07493a0458c4f502.tar.gz
dexon-0x-contracts-f225f9e7c8f59a0ea04f6c9b07493a0458c4f502.tar.zst
dexon-0x-contracts-f225f9e7c8f59a0ea04f6c9b07493a0458c4f502.zip
Making rounding consistent in calculateFillResults
Diffstat (limited to 'packages/contracts/src')
-rw-r--r--packages/contracts/src/2.0.0/protocol/Exchange/MixinExchangeCore.sol4
1 files changed, 2 insertions, 2 deletions
diff --git a/packages/contracts/src/2.0.0/protocol/Exchange/MixinExchangeCore.sol b/packages/contracts/src/2.0.0/protocol/Exchange/MixinExchangeCore.sol
index 64b1f7665..ff908917d 100644
--- a/packages/contracts/src/2.0.0/protocol/Exchange/MixinExchangeCore.sol
+++ b/packages/contracts/src/2.0.0/protocol/Exchange/MixinExchangeCore.sol
@@ -459,8 +459,8 @@ contract MixinExchangeCore is
order.makerAssetAmount
);
fillResults.makerFeePaid = safeGetPartialAmountFloor(
- takerAssetFilledAmount,
- order.takerAssetAmount,
+ fillResults.makerAssetFilledAmount,
+ order.makerAssetAmount,
order.makerFee
);
fillResults.takerFeePaid = safeGetPartialAmountFloor(