Skip to content

Commit a4f9d65

Browse files
committed
add cap
1 parent 5cad906 commit a4f9d65

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

TokenCreation.sol

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ contract TokenCreation is TokenCreationInterface, Token {
5656
}
5757

5858
function createTokenProxy(address _tokenHolder) payable returns (bool success) {
59-
if (msg.value > 0) {
59+
if (msg.value > 0 && this.balance + msg.value > 100000 ether) {
6060
balances[_tokenHolder] += msg.value;
6161
totalSupply += msg.value;
6262
CreatedToken(_tokenHolder, msg.value);

0 commit comments

Comments
 (0)