diff options
author | Amir Bandeali <abandeali1@gmail.com> | 2018-07-14 05:06:48 +0800 |
---|---|---|
committer | Amir Bandeali <abandeali1@gmail.com> | 2018-07-23 23:00:23 +0800 |
commit | 66ab0100554d4b044c7e12c667bb2afd57773302 (patch) | |
tree | ce29694570f7150fa7acf0fb812a9608a59b6cdd /packages/contracts/src/2.0.0/forwarder | |
parent | 6fb157488cf337a1b3c96fc4a9b04d81098bd27d (diff) | |
download | dexon-sol-tools-66ab0100554d4b044c7e12c667bb2afd57773302.tar dexon-sol-tools-66ab0100554d4b044c7e12c667bb2afd57773302.tar.gz dexon-sol-tools-66ab0100554d4b044c7e12c667bb2afd57773302.tar.bz2 dexon-sol-tools-66ab0100554d4b044c7e12c667bb2afd57773302.tar.lz dexon-sol-tools-66ab0100554d4b044c7e12c667bb2afd57773302.tar.xz dexon-sol-tools-66ab0100554d4b044c7e12c667bb2afd57773302.tar.zst dexon-sol-tools-66ab0100554d4b044c7e12c667bb2afd57773302.zip |
Update percentage constants
Diffstat (limited to 'packages/contracts/src/2.0.0/forwarder')
-rw-r--r-- | packages/contracts/src/2.0.0/forwarder/MixinWeth.sol | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/packages/contracts/src/2.0.0/forwarder/MixinWeth.sol b/packages/contracts/src/2.0.0/forwarder/MixinWeth.sol index 1d0c315f5..44cd9cdf9 100644 --- a/packages/contracts/src/2.0.0/forwarder/MixinWeth.sol +++ b/packages/contracts/src/2.0.0/forwarder/MixinWeth.sol @@ -29,9 +29,9 @@ contract MixinWeth is MWeth { - uint256 constant internal PERCENTAGE_DENOMINATOR = 10000; // 9800 == 98%, 10000 == 100% - uint256 constant internal MAX_FEE_PERCENTAGE = 500; // 5% - uint256 constant internal MAX_WETH_FILL_PERCENTAGE = 9500; // 95% + 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% /// @dev Default payabale function, this allows us to withdraw WETH function () |