mirror of
https://github.com/Instadapp/yield-contract.git
synced 2024-07-29 21:47:29 +00:00
Update registry.sol
This commit is contained in:
parent
3a9287ebb4
commit
a426722e57
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue
Block a user