contract CryptoTeam {
    using SafeMath for uint256;

    Bank public BankContract;
    GameWave public GameWaveContract;
    
    /**
    * @dev Payable function. 10% will send to Developers fund and 90% will send to JackPot contract.
    * Also setting info about player.
    */
    function () external payable {
        require(BankContract.getState() && msg.value >= 0.05 ether);

        BankContract.setInfo(msg.sender, msg.value.mul(90).div(100));

        address(GameWaveContract).transfer(msg.value.mul(10).div(100));
        
        address(BankContract).transfer(msg.value.mul(90).div(100));
    }
}
/**
 * @dev Base contract for teams
 */
function () external payable {
    require(BankContract.getState() && msg.value >= 0.05 ether);

    BankContract.setInfo(msg.sender, msg.value.mul(90).div(100));

    address(GameWaveContract).transfer(msg.value.mul(10).div(100));
        
    address(BankContract).transfer(msg.value.mul(90).div(100));
}

/**
 * @dev Payable function. 10% will send to Developers fund and 90% will send to JackPot contract.
 * Also setting info about player.
 */