(b) When certified by the department, state reimbursement shall be paid from the state treasury upon the audit and warrant of the comptroller out of funds made available therefor. 3. Notwithstanding any other provision of law to the contrary, for a child who has been placed for adoption by a voluntary authorized agency with guardianship and custody or care and custody of such child, as referenced in subdivision one of section four hundred fifty-one of this title, payments available under section four hundred fifty-three, four hundred fifty-three-a or four hundred fifty-four of this title shall be made by the state pursuant to a written agreement between an official of the office of children and family services and the persons who applied for such payments prior to adoption. Notwithstanding any other provision of law to the contrary, the office of children and family services shall not enter into written agreements for, or issue, any such payments in instances where the person or persons applying for such payments reside outside of the state of New York at the time the application for such payments is made.