When Is the Best Time For a Smart Contract Audit?