add event
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user