Callbacks
A callback is a piece of code that is passed as an argument to another function. The purpose of a callback is to be run during the execution of the function it is attached to.
Morpho has callbacks on the following functions:
supply
supplyCollateral
repay
liquidate
Developers can leverage callbacks to execute custom logic between the accounting of these functions and the actual transfer of assets, allowing for more advanced operations to occur on Morpho.
For more information and examples, feel free to visit the technical guide of callbacks.