contract Seed is StandardToken, Ownable {
    string public name = "Seed";
    string public sybmol = "Seed";
    address public flowerContract;

    function Seed(uint initSupply) public {
        totalSupply = initSupply*(10**18);
        balances[msg.sender] = totalSupply;
    }

    function setFlowerContract(address flower) onlyOwner public {
        require(flowerContract == 0);
        flowerContract = flower;
    }

    function transformSeedToFlower(address user, uint seed) public {
        require(msg.sender != 0);
        require(msg.sender == flowerContract);
        require(balances[user] >= seed*(10**18));

        balances[user] -= seed*(10**18);
        balances[msg.sender] += seed*(10**18);
    }

    event WithdrawFee(uint balance);
    /**
        将现金提取到owner地址
     */
    function withdrawFee() public onlyOwner {
        require(this.balance > 0);
        owner.transfer(this.balance);
        WithdrawFee(this.balance);
    }
}
function withdrawFee() public onlyOwner {
        require(this.balance > 0);
        owner.transfer(this.balance);
        WithdrawFee(this.balance);
    }
/**
 将现金提取到owner地址
 */