Update registry.sol

This commit is contained in:
Thrilok kumar 2020-08-30 18:29:41 +05:30 committed by GitHub
parent 3a9287ebb4
commit a426722e57
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -149,7 +149,7 @@ contract Registry {
function updateWithdrawalFee(address _pool, uint _newFee) external isMaster {
require(isPool[_pool], "not-pool");
require(_newFee < 5 ** 16, "insure-fee-limit-reached");
require(_newFee < 5 * 10 ** 16, "insure-fee-limit-reached"); // max 5%
require(withdrawalFee[_pool] != _newFee, "same-pool-fee");
withdrawalFee[_pool] = _newFee;
emit LogUpdateWithdrawalFee(_pool, _newFee);