Do you have a copy of your contract? You Agent should provide this to you once you sign.
Ask your Agent to cover the primary contingencies of the purchase contract!
The three primary contingencies of the CAR Residential Purchase Agreement [ Para 3H Loan; Para 3I; Appraisal, and Para 14B; Inspection(s)] require "active removal" in writing; as opposed to a "passive removal" where a date simply passes and automatically removes the contingency.
I would suggest you comprehensively read Para 14 A, B, & C (pay close attention to 14C3). Finally, I would study 14F regarding the release of deposit funds!