AMENDMENT NO. 3 dated as of December31, 2018 to the MASTER REPURCHASE AGREEMENT dated as of August 21, 2017