Skip to main content

IChromaticFlashLoanCallback.sol

IChromaticFlashLoanCallback

Interface for a contract that handles flash loan callbacks in the Chromatic protocol. Flash loans are loans that are borrowed and repaid within a single transaction. This interface defines the function signature for the flash loan callback.

flashLoanCallback

function flashLoanCallback(uint256 fee, bytes data) external

Handles the flash loan callback after a flash loan has been executed.

  • Parameters:

    NameTypeDescription
    feeuint256The fee amount charged for the flash loan.
    databytesAdditional data associated with the flash loan.