N.Y. Environmental Conservation Law § 51-0305
1. The commissioner, in the name of the state, may enter into contracts with municipalities having power to construct, operate and maintain sewage treatment works, and any such municipality may enter into a contract with the commissioner concerning eligible projects. Any such contract may include such provisions as may be agreed upon by the parties thereto, and shall include, in substance, the following provisions: a. Current estimate of the reasonable cost of the project as determined by the commissioner at the time of execution of the contract. The commissioner shall not be precluded by section two hundred twenty of this title from determining a reasonable cost for any project enumerated in such section different from the estimated cost of such section. b. An agreement by the commissioner to pay to the municipality, during the progress of construction subject to final computation and determination of the total state grant upon completion of the entire project reflecting the project cost, a portion of the non-federal share of the cost of any project, phase or portion thereof approved for a federal treatment works construction grant, determined by the following formulae: