AMENDMENT NO. 2 dated as of September 27, 2018 to the MASTER REPURCHASE AGREEMENT dated as of August 21, 2017