function allocateTreasury(MintableTokenAllocator _allocator) public onlyOwner {
        require(icoEndTime < block.timestamp, 'ICO is not ended');
        require(isBountySent, 'Bounty is not sent');
        require(isTeamSent, 'Team vesting is not created');
        require(MAX_TREASURY_TOKENS >= _allocator.tokensAvailable(), 'Unsold tokens are not burned');

        _allocator.allocate(treasuryAddress, _allocator.tokensAvailable());
    }