def vault(chain, team_multisig, token, unlock_time):
    """Deploy a loaded vault contract and move all tokens there."""
    args = [
        team_multisig,
        token.address,
        unlock_time
    ]

    contract, hash = chain.provider.deploy_contract('TimeVault', deploy_args=args)

    # Load all tokens to the vault
    token.transact({"from": team_multisig}).transfer(contract.address, 1000000)

    return contract