wrote a transaction script that allows lenders to quick invest with a total amount and max amount/investment