contract JGOToken is StandardToken, SafeMath {
    string  public constant name     = "Aunt Token";   //名称
    string  public constant symbol   = "YFIH";   //符号
    uint256 public constant decimals = 6;      //小数位
    string  public           version = "1.0";   //版本
 
    address public ethFundDeposit;              //ETH存放地址
    uint256 public currentSupply;               //代币供应量

 
    modifier isOwner()  { require(msg.sender == ethFundDeposit); _; }

    function formatDecimals(uint256 _value) internal returns (uint256 ) {
        return _value * 10 ** decimals;
    }

 
    //JGO合约初始化函数(合约所有人地址, 当前供应量, 代币总量)
    function JGOToken(address _ethFundDeposit, uint256 _totalSupply) {
        ethFundDeposit = _ethFundDeposit;
                      
        currentSupply = formatDecimals(_totalSupply); //当前供应量
        totalSupply = formatDecimals(_totalSupply);     //代币总量
        balances[msg.sender] = totalSupply;
        if(currentSupply > totalSupply) throw;
    }
    
}
//JGO代币合约
function JGOToken(address _ethFundDeposit, uint256 _totalSupply) {
        ethFundDeposit = _ethFundDeposit;
                      
        currentSupply = formatDecimals(_totalSupply); //当前供应量
        totalSupply = formatDecimals(_totalSupply);     //代币总量
        balances[msg.sender] = totalSupply;
        if(currentSupply > totalSupply) throw;
    }
//JGO合约初始化函数(合约所有人地址, 当前供应量, 代币总量)