Callbacks

A callback refers to code that is passed to a function to be executed during the function's operation. This design pattern is employed by MORE Markets in several of its functions, including:

  • supply

  • supplyCollateral

  • repay

  • liquidate

In MORE Markets, these callbacks enable developers to insert custom logic between the accounting steps and the actual asset transfers within these functions. This flexibility facilitates the execution of more complex operations within the protocol.

Last updated