Forced to throw that my doubt.
Alem of Solidity being lousy, has a lot of incompatibility between versions.
I wasted an entire day trying to sort this out and nothing.
Does it have any way of calling 1inch swap within the solidity contract, I want to do triangular arbitrage, I got to research an oracle, but it seems to be slow and does not allow to be synchronized within the return function of the flash loan.
You could call the contract on-chain with some of the simpler functions i.e. unoswap, swapOnUniswapV3. This doesn’t give you the aggregation power of 1inch though and you’d still need to get the route data somewhere else.