diff options
author | Amir Bandeali <abandeali1@gmail.com> | 2018-07-18 02:32:44 +0800 |
---|---|---|
committer | Amir Bandeali <abandeali1@gmail.com> | 2018-07-23 23:00:23 +0800 |
commit | 799ff2a5c392383c8b245ae53057593acc2534ce (patch) | |
tree | 5899d3843420c36e0e0c750f3ac47a7aab3b1e91 /packages/contracts/src/2.0.0/forwarder/MixinConstants.sol | |
parent | ec5f768f9b9a333fc577e0885cd15f261997a367 (diff) | |
download | dexon-sol-tools-799ff2a5c392383c8b245ae53057593acc2534ce.tar.gz dexon-sol-tools-799ff2a5c392383c8b245ae53057593acc2534ce.tar.zst dexon-sol-tools-799ff2a5c392383c8b245ae53057593acc2534ce.zip |
Fix rounding error issues, use different logic when makerAsset is ZRX
Diffstat (limited to 'packages/contracts/src/2.0.0/forwarder/MixinConstants.sol')
-rw-r--r-- | packages/contracts/src/2.0.0/forwarder/MixinConstants.sol | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/packages/contracts/src/2.0.0/forwarder/MixinConstants.sol b/packages/contracts/src/2.0.0/forwarder/MixinConstants.sol index 4f95c796b..e430aba41 100644 --- a/packages/contracts/src/2.0.0/forwarder/MixinConstants.sol +++ b/packages/contracts/src/2.0.0/forwarder/MixinConstants.sol @@ -28,7 +28,10 @@ contract MixinConstants is bytes4 constant internal ERC20_DATA_ID = bytes4(keccak256("ERC20Token(address)")); bytes4 constant internal ERC721_DATA_ID = bytes4(keccak256("ERC721Token(address,uint256,bytes)")); uint256 constant internal MAX_UINT = 2**256 - 1; - + uint256 constant internal PERCENTAGE_DENOMINATOR = 10**18; + uint256 constant internal MAX_FEE_PERCENTAGE = 5 * PERCENTAGE_DENOMINATOR / 100; // 5% + uint256 constant internal MAX_WETH_FILL_PERCENTAGE = 95 * PERCENTAGE_DENOMINATOR / 100; // 95% + constructor ( address _exchange, address _etherToken, |