forked from BitcoinHEX/contract
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathHEX.sol
35 lines (29 loc) · 781 Bytes
/
HEX.sol
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
pragma solidity ^0.5.7;
import "./StakeableToken.sol";
contract HEX is StakeableToken {
constructor()
public
{
/* Add all Satoshis from UTXO snapshot to contract */
globals.unclaimedSatoshisTotal = uint64(FULL_SATOSHIS_TOTAL);
_mint(address(this), FULL_SATOSHIS_TOTAL * HEARTS_PER_SATOSHI);
}
/**
* @dev PUBLIC FACING: Contract fallback function
*/
function()
external
payable
{
/* Empty */
}
/**
* @dev PUBLIC FACING: Release any ETH that has been sent to the contract
*/
function flushTrappedEth()
external
{
require(address(this).balance != 0, "HEX: No trapped ETH");
TRAPPED_ETH_FLUSH_ADDR.transfer(address(this).balance);
}
}