Skip to main content

ILendMidnightToVaultCallback

Git Source - Generated with forge doc

Inherits: ISellCallback

Title: ILendMidnightToVaultCallback

Interface of the callback that deposits lender exit proceeds into an ERC-4626 vault.

Events

VaultDeposited

event VaultDeposited(
address indexed lender,
bytes32 indexed sourceMarketId,
address indexed vault,
uint256 assets,
uint256 shares,
uint256 fee
);

Structs

CallbackData

Data encoded in the offer's callbackData.

struct CallbackData {
address vault;
uint256 feeRate;
address feeRecipient;
}

Properties

NameTypeDescription
vaultaddressThe ERC-4626 vault to deposit the proceeds into.
feeRateuint256The fee rate on sellerAssets, in WAD (at most MAX_PERCENTAGE_FEE_RATE = 0.01e18 = 1%).
feeRecipientaddressThe address receiving the fee; address(0) does not disable the fee, only feeRate == 0 does.