The borrower repays the loan along with a cost once the transaction completes. Typically, the payment is a little share of your loan amount of money. Alternatively, you could take a look at documentation from flash loan vendors like Aave to learn how to get going with coding flash loans. https://rowanycdde.laowaiblog.com/28585341/the-definitive-guide-to-flash-cash-loan