File tree 2 files changed +6
-1
lines changed
2 files changed +6
-1
lines changed Original file line number Diff line number Diff line change @@ -101,10 +101,11 @@ contract Minter is IMinter {
101
101
emit VeRateChanged (_rate);
102
102
}
103
103
104
- /// @notice Withdraw fund
104
+ /// @inheritdoc IMinter
105
105
function withdraw (address payable _recipcient , uint256 _amount ) external {
106
106
if (msg .sender != team) revert NotTeam ();
107
107
_recipcient.transfer (_amount);
108
+ emit Withdraw (msg .sender , _recipcient, _amount);
108
109
}
109
110
110
111
receive () external payable {
Original file line number Diff line number Diff line change @@ -18,6 +18,7 @@ interface IMinter {
18
18
event WeeklyChanged (uint256 weekly );
19
19
event VeRateChanged (uint256 rate );
20
20
event Donation (address indexed donor , uint256 amount );
21
+ event Withdraw (address indexed operator , address indexed recipcient , uint256 amount );
21
22
22
23
/// @notice Interface of Voter.sol
23
24
function voter () external view returns (IVoter);
@@ -67,6 +68,9 @@ interface IMinter {
67
68
/// @notice Change ve rate of emission.
68
69
function changeVeRate (uint256 _rate ) external ;
69
70
71
+ /// @notice Withdraw fund from DAO
72
+ function withdraw (address payable _recipcient , uint256 _amount ) external ;
73
+
70
74
/// @notice Donate fund to DAO
71
75
function donate () external payable ;
72
76
}
You can’t perform that action at this time.
0 commit comments