Any such city desiring to avail itself of the provisions of §§ 5-39-410 and 5-39-420 shall by ordinance or resolution provide the terms and conditions upon which any such trust funds will be received and administered by it, and no such city shall be liable to account for any such trust funds so long as such city shall substantially comply with such terms and conditions.