-
Notifications
You must be signed in to change notification settings - Fork 2
/
ManagerToken.sol
38 lines (30 loc) · 1.04 KB
/
ManagerToken.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
36
37
38
pragma solidity ^0.4.13;
import '../node_modules/zeppelin-solidity/contracts/token/StandardToken.sol';
contract ManagerToken is StandardToken {
// Constants
string public name;
string public symbol;
uint public constant decimals = 18;
uint256 public startTotalSupply = 1000;
address public gvPlatform;
modifier gvPlatformOnly() {
require(msg.sender == gvPlatform);
_;
}
// Constructor
function ManagerToken(address _gvPlatform, string tokenName, string tokenSymbol) public{
require(_gvPlatform != 0);
gvPlatform = _gvPlatform;
name = tokenName;
symbol = tokenSymbol;
totalSupply = startTotalSupply;
balances[gvPlatform] = startTotalSupply;
}
function raiseLimit(uint256 tokenCount) public gvPlatformOnly() {
totalSupply += tokenCount;
balances[gvPlatform] += tokenCount;
}
function setStartTotalSupply(uint256 newStartTotalSupple) public gvPlatformOnly() {
startTotalSupply = newStartTotalSupple;
}
}