Flash loans are a type of crypto lending where the loan needs to be repaid in the same transaction. It…