Instadapp / flashloan-aggregator

Flashloan Aggregator on all major chains.
https://docs.instadapp.io/flashloan/flashloanAggregator
MIT License
53 stars 16 forks source link

Optimizing aave route #57

Open Vaibhav20201 opened 2 years ago

Vaibhav20201 commented 2 years ago

Currently we get the funds first in the FLA, then transfer them to the user. If we add the receiverAddress as the caller, then the funds will directly go to the caller. This will save some gas.

KaymasJain commented 2 years ago

Yes! But will keep it for future fixes.