How to work with the smart contract of Aave flashloan and how to swap between token?
- aTokens Aave
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?
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](https://github.com/aave/aave-v3-periphery/blob/ca184e5278bcbc10d28c3dbbc604041d7cfac50b/contracts/adapters/paraswap/ParaSwapLiquiditySwapAdapter.sol#L45) For overall Aave flashloan guide refer docs 👉🏻 [here](https://docs.aave.com/developers/guides/flash-loans)