The FlashCallbackData struct must contain the data we want to send to the callback. This includes poolKey, which expresses the sorted tokens returned by the PoolAddress library.
From this point, we are starting our function by assigning the appropriate parameters from the Flashparams (which we have declared in memory as params) to our variable poolKey
The next step is to declare pool as type IAlgebraPool, which allows us to call flash on the desired pool contract.
IAlgebraPool pool =IAlgebraPool(PoolAddress.computeAddress(poolDeployer, poolKey));
Calling Flash
Finally, we call flash on the previously declared pool. In the last parameter, we abi.encode the FlashCallbackData, which will be decoded in the callback and aimed at informing about the next steps of the particular transaction.