After you file

You could wait to pay federal until you get the state refund deposited.  But actually the tax due was due back on April 15 so you are late and interest is accruing.   So even after you pay you might get a bill for interest to the date they get your payment.