0

Would it be possible to use a flash loan to flash loan?

Ex. I charge 10% for a flash loan. Someone asks my contract for money at 10% rate, so I go to Uniswap, get the money in a flash loan, and loan this user money in turn.

1 Answer 1

0

It can be done using a smart contract. the only condition with swap loans is that they are executed in a single transaction, so what you would need to do is have a function, which calls Uniswap's flash function, send the received tokens to the caller, and on the end return the tokens to the original loaner.

Flash loan contract doesn't care what you do with the tokens after you borrow them as long as you return the funds with the additional fee on the end of the transaction.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.