diff options
author | Amir Bandeali <abandeali1@gmail.com> | 2018-08-29 04:25:05 +0800 |
---|---|---|
committer | Amir Bandeali <abandeali1@gmail.com> | 2018-08-29 04:25:05 +0800 |
commit | f225f9e7c8f59a0ea04f6c9b07493a0458c4f502 (patch) | |
tree | ed994e001182e7109723af7c94ec99b6ff20bca8 /packages/contracts/src | |
parent | 14fdb71a716cb95bc1f6933db9057d23f3c41909 (diff) | |
download | dexon-0x-contracts-f225f9e7c8f59a0ea04f6c9b07493a0458c4f502.tar dexon-0x-contracts-f225f9e7c8f59a0ea04f6c9b07493a0458c4f502.tar.gz dexon-0x-contracts-f225f9e7c8f59a0ea04f6c9b07493a0458c4f502.tar.bz2 dexon-0x-contracts-f225f9e7c8f59a0ea04f6c9b07493a0458c4f502.tar.lz dexon-0x-contracts-f225f9e7c8f59a0ea04f6c9b07493a0458c4f502.tar.xz 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.sol | 4 |
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( |