Gable offers XRD flash loans as its main lending feature. Flash loans are loans that are issued and returned within a single (same) transaction. Before you get started it is advised to read the documentation for borrowers on Gable platform.
This operation constructs a transaction that interacts with the flash loan component twice: (1) to acquire the flash loan and (2) to repay the flash loan. However, without additional modifications, this transaction will fail.
To achieve the desired outcome, you need to expand and tailor this transaction to align with your specific use case.
Disclaimer: This function performs a basic flash loan transaction, by acquiring the flash loan and repaying it, without any intermediate operations. Therefore, by using this function, you will forfeit the interest rate associated with the loan. It is advised to utilize this function solely for testing purposes.