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
| Name | Type | Description |
|---|---|---|
vault | address | The ERC-4626 vault to deposit the proceeds into. |
feeRate | uint256 | The fee rate on sellerAssets, in WAD (at most MAX_PERCENTAGE_FEE_RATE = 0.01e18 = 1%). |
feeRecipient | address | The address receiving the fee; address(0) does not disable the fee, only feeRate == 0 does. |