How to work with the smart contract of Aave flashloan and how to swap between token?

Expert

Hello, can someone help me with. I got the smart contract of Aave flashloan but i don't know how to work with and how to swap between token.

Can someone help o give a documentation of how to do it please?

Answers 1

The logic to swap between token will go in the executeOperation method of your flashloan contract. For reference you can checkout the code in liquiditySwapAdapter which used paraSwap for token swap 👉🏻 here

For overall Aave flashloan guide refer docs 👉🏻 here