Skip to main content

Parameter Structs

FlashParams contains the token addresses, amounts to borrow, and three fee tiers (source pool + two arb pools):
FlashCallbackData is passed through to the callback. poolKey (from the PoolAddress library) identifies the source pool:

Calling Flash

Compute the pool address from the pool key, then call flash with the callback data abi-encoded: