; and (II) complied with the applicant code of conduct for engagement with affected landowners established pursuant to subparagraph (B)(i). (ii) Requirement A permit holder that enters into a community benefit agreement described in subparagraph (A)(i)(II) shall be presumed to have complied with clause (i)(I). (D) Effect of community benefit agreement on eligibility for certain grants (i) In general For purposes of section 50152 of Public Law 117–169 (commonly known as the Inflation Reduction Act of 2022 ) ( 42 U.S.C. 18715a ), if the sponsor of a project for which a permit is sought under subsection (c) has entered into a community benefit agreement— (I) the sponsor and any applicable agreement entity (as defined in subsection (a)(2)(B)) that is eligible to apply for a grant under that section may jointly apply for such a grant; and (II) the sponsor may receive and use amounts made available pursuant to such a grant in accordance with— (aa) any applicable provisions of the applicable community benefit agreement; and (bb) any applicable rules or conditions established by the Secretary. (ii) Negotiated provisions A community benefit agreement may include provisions requiring the project sponsor— (I) to submit an application for a grant under section 50152 of Public Law 117–169 ( 42 U.S.C. 18715a ) on behalf of, or jointly with, the applicable agreement entity or any other entity eligible to apply for a grant under that section