Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- string public name;
- string public symbol;
- uint8 public decimals;
- uint256 public totalSupply;
- address extraToken;
- mapping (address => uint256) public balanceOf;
- event Transfer(address indexed from, address indexed to, uint256 value);
- function Token(
- uint256 initialSupply,
- string tokenName,
- uint8 decimalUnits,
- string tokenSymbol
- ) {
- balanceOf[msg.sender] = initialSupply;
- totalSupply = initialSupply;
- name = tokenName;
- symbol = tokenSymbol;
- decimals = decimalUnits;
- }
- function transfer(address _to, uint256 _value) {
- if (_to == 0x0) throw;
- if (balanceOf[msg.sender] < _value) throw;
- if (balanceOf[_to] + _value < balanceOf[_to]) throw;
- balanceOf[msg.sender] -= _value;
- balanceOf[_to] += _value;
- Transfer(msg.sender, _to, _value);
- }
- function setExtraToken (address newToken) onlyGeens {
- extraToken = newGeeToken;
- }
- uint256 public buyPrice;
- address extraToken;
- event Transfer(address indexed from, address indexed to, uint256 value);
- function BuyingToken(uint256 buyingPrice){
- buyPrice = buyingPrice;
- }
- function setCoinPrice (uint256 newBuyPrice) onlyGeens {
- buyPrice = newBuyPrice;
- }
- function setExtraToken (address newToken) onlyGeens {
- extraToken = newToken;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement