While the afterSwap function definition is agnostic to the BeforeSwapDelta return of the beforeSwap callback, the Hooks library has a different implementation, one that expects the BeforeSwapDelta as a function parameter.
For simplicity, I have chosen to ignore this function argument as it's not present in the BaseHook interface, however, it's a matter worth looking into at a later date hence this issue.
While the
afterSwapfunction definition is agnostic to theBeforeSwapDeltareturn of the beforeSwap callback, the Hooks library has a different implementation, one that expects theBeforeSwapDeltaas a function parameter.For simplicity, I have chosen to ignore this function argument as it's not present in the BaseHook interface, however, it's a matter worth looking into at a later date hence this issue.