diff options
author | Amir Bandeali <abandeali1@gmail.com> | 2018-07-11 06:41:33 +0800 |
---|---|---|
committer | Amir Bandeali <abandeali1@gmail.com> | 2018-07-23 23:00:23 +0800 |
commit | 6fb157488cf337a1b3c96fc4a9b04d81098bd27d (patch) | |
tree | 4d0eae30f24e1dea0a90d0971a3e60a1e3e287bb /packages/contracts/src/2.0.0/protocol/Exchange/libs/LibMath.sol | |
parent | 814518dd8094d03908d77e39faa21b8758f1552b (diff) | |
download | dexon-0x-contracts-6fb157488cf337a1b3c96fc4a9b04d81098bd27d.tar.gz dexon-0x-contracts-6fb157488cf337a1b3c96fc4a9b04d81098bd27d.tar.zst dexon-0x-contracts-6fb157488cf337a1b3c96fc4a9b04d81098bd27d.zip |
Update transferEthFeeAndRefund, add check to ERC721 transfer
Diffstat (limited to 'packages/contracts/src/2.0.0/protocol/Exchange/libs/LibMath.sol')
-rw-r--r-- | packages/contracts/src/2.0.0/protocol/Exchange/libs/LibMath.sol | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/packages/contracts/src/2.0.0/protocol/Exchange/libs/LibMath.sol b/packages/contracts/src/2.0.0/protocol/Exchange/libs/LibMath.sol index 46c13d390..fa09da6ac 100644 --- a/packages/contracts/src/2.0.0/protocol/Exchange/libs/LibMath.sol +++ b/packages/contracts/src/2.0.0/protocol/Exchange/libs/LibMath.sol @@ -33,7 +33,8 @@ contract LibMath is function getPartialAmount( uint256 numerator, uint256 denominator, - uint256 target) + uint256 target + ) internal pure returns (uint256 partialAmount) @@ -53,7 +54,8 @@ contract LibMath is function isRoundingError( uint256 numerator, uint256 denominator, - uint256 target) + uint256 target + ) internal pure returns (bool isError) |