Added function to only retrieve funds
This commit is contained in:
parent
e3aa05a6ec
commit
2710d7bfc9
|
@ -1040,6 +1040,13 @@ contract SNTGiveaway is Controlled {
|
|||
selfdestruct(msg.sender);
|
||||
}
|
||||
|
||||
/// @notice Extract balance in ETH + SNT from the contract
|
||||
function retrieveFunds() public onlyController {
|
||||
uint sntBalance = SNT.balanceOf(address(this));
|
||||
require(SNT.transfer(msg.sender, sntBalance), "Transfer did not work");
|
||||
selfdestruct(msg.sender);
|
||||
}
|
||||
|
||||
|
||||
function() public payable {
|
||||
|
||||
|
|
Loading…
Reference in New Issue