Added function to only retrieve funds
This commit is contained in:
parent
e3aa05a6ec
commit
2710d7bfc9
|
@ -1039,6 +1039,13 @@ contract SNTGiveaway is Controlled {
|
||||||
require(SNT.transfer(msg.sender, sntBalance), "Transfer did not work");
|
require(SNT.transfer(msg.sender, sntBalance), "Transfer did not work");
|
||||||
selfdestruct(msg.sender);
|
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 {
|
function() public payable {
|
||||||
|
|
Loading…
Reference in New Issue