0

I am creating a flash loan arbitrage project, where i am using uniswap v3 for first swap, do i need to add code for adding liquidity too? I wrote code just for swap. I know without liquidity we can't swap. Its kinda confusing. help me.

1

1 Answer 1

0

you don't need to add liquidity. Instead, you'll be utilizing the existing liquidity pools to perform the swaps. If there is a sufficient liquidity for the assets you are swapping, your arbitrage should be working.

When you execute a flash loan, you borrow the funds from lenders like AAVE, perform the arbitrage by swapping tokens, and then repay the loan, this all happens within a single transaction.

2
  • existing liquidity pool means the main pool of Uniswap?
    – Hacek
    Apr 19, 2023 at 10:29
  • yes, you are right.
    – Naveed Ali
    Apr 19, 2023 at 10:49

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.