Skip to content

Commit 5f81863

Browse files
committed
add withdraw event to Minter
1 parent 6922664 commit 5f81863

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

contracts/Minter.sol

+2-1
Original file line numberDiff line numberDiff line change
@@ -101,10 +101,11 @@ contract Minter is IMinter {
101101
emit VeRateChanged(_rate);
102102
}
103103

104-
/// @notice Withdraw fund
104+
/// @inheritdoc IMinter
105105
function withdraw(address payable _recipcient, uint256 _amount) external {
106106
if (msg.sender != team) revert NotTeam();
107107
_recipcient.transfer(_amount);
108+
emit Withdraw(msg.sender, _recipcient, _amount);
108109
}
109110

110111
receive() external payable {

contracts/interfaces/IMinter.sol

+4
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ interface IMinter {
1818
event WeeklyChanged(uint256 weekly);
1919
event VeRateChanged(uint256 rate);
2020
event Donation(address indexed donor, uint256 amount);
21+
event Withdraw(address indexed operator, address indexed recipcient, uint256 amount);
2122

2223
/// @notice Interface of Voter.sol
2324
function voter() external view returns (IVoter);
@@ -67,6 +68,9 @@ interface IMinter {
6768
/// @notice Change ve rate of emission.
6869
function changeVeRate(uint256 _rate) external;
6970

71+
/// @notice Withdraw fund from DAO
72+
function withdraw(address payable _recipcient, uint256 _amount) external;
73+
7074
/// @notice Donate fund to DAO
7175
function donate() external payable;
7276
}

0 commit comments

Comments
 (0)