add event

This commit is contained in:
owen05
2021-09-14 22:02:07 +08:00
parent 4b60736a7b
commit 6086f2ac04
8 changed files with 134 additions and 54 deletions

View File

@@ -29,6 +29,8 @@ contract Controller is InitializableOwnable {
//==================== Event =====================
event SetEmergencyWithdraw(address filter, bool isOpen);
event SetFilterAdminFeeRateInfo(address filterAdmin, uint256 nftInFee, uint256 nftOutFee, bool isOpen);
event SetGlobalParam(uint256 nftInFee, uint256 nftOutFee);
//==================== Ownable ====================
@@ -44,11 +46,15 @@ contract Controller is InitializableOwnable {
isOpen: isOpen
});
filterAdminFeeRates[filterAdminAddr] = feeRateInfo;
emit SetFilterAdminFeeRateInfo(filterAdminAddr, nftInFeeRate, nftOutFeeRate, isOpen);
}
function setGlobalParam(uint256 nftInFeeRate, uint256 nftOutFeeRate) external onlyOwner {
_GLOBAL_NFT_IN_FEE_RATE_ = nftInFeeRate;
_GLOBAL_NFT_OUT_FEE_RATE_ = nftOutFeeRate;
emit SetGlobalParam(nftInFeeRate, nftOutFeeRate);
}
function setEmergencyWithdraw(address filter, bool isOpen) external onlyOwner {