mirror of
https://github.com/Instadapp/dsa-connectors-old.git
synced 2024-07-29 22:47:46 +00:00
added events to instapoolFee
This commit is contained in:
parent
1c5472c0c7
commit
aaa99ff3a4
|
@ -6,6 +6,10 @@ interface IndexInterface {
|
||||||
}
|
}
|
||||||
|
|
||||||
contract Helpers {
|
contract Helpers {
|
||||||
|
|
||||||
|
event LogChangeFee(uint256 _fee);
|
||||||
|
event LogChangeFeeCollector(address _feeCollector);
|
||||||
|
|
||||||
address public constant instaIndex = 0x2971AdFa57b20E5a416aE5a708A8655A9c74f723;
|
address public constant instaIndex = 0x2971AdFa57b20E5a416aE5a708A8655A9c74f723;
|
||||||
uint256 public fee;
|
uint256 public fee;
|
||||||
address public feeCollector;
|
address public feeCollector;
|
||||||
|
@ -18,12 +22,14 @@ contract Helpers {
|
||||||
function changeFee(uint256 _fee) external isChief {
|
function changeFee(uint256 _fee) external isChief {
|
||||||
require(fee <= 2 * 10 ** 15, "Fee is more than 0.2%");
|
require(fee <= 2 * 10 ** 15, "Fee is more than 0.2%");
|
||||||
fee = uint64(_fee);
|
fee = uint64(_fee);
|
||||||
|
emit LogChangeFee(_fee);
|
||||||
}
|
}
|
||||||
|
|
||||||
function changeFeeCollector(address _feeCollector) external isChief {
|
function changeFeeCollector(address _feeCollector) external isChief {
|
||||||
require(feeCollector != _feeCollector, "Same-feeCollector");
|
require(feeCollector != _feeCollector, "Same-feeCollector");
|
||||||
require(_feeCollector != address(0), "feeCollector-is-address(0)");
|
require(_feeCollector != address(0), "feeCollector-is-address(0)");
|
||||||
feeCollector = _feeCollector;
|
feeCollector = _feeCollector;
|
||||||
|
emit LogChangeFeeCollector(_feeCollector);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user