IMidnightWithdrawVaultSharesCallback
Git Source - Generated with forge doc
Inherits: IBuyCallback
Title: IMidnightWithdrawVaultSharesCallback
Interface of the callback that withdraws vault share collateral and redeems it to fund buy offers.
Enables borrowers to repay debt using vault share collateral.
Events
VaultSharesWithdrawn
event VaultSharesWithdrawn(
address indexed borrower,
bytes32 indexed marketId,
address indexed vault,
uint256 buyerAssets,
uint256 sharesWithdrawn
);
Structs
CallbackData
Data encoded in the offer's callbackData.
struct CallbackData {
address vault;
uint256 collateralIndex;
}
Properties
| Name | Type | Description |
|---|---|---|
vault | address | The ERC-4626 vault to redeem from (must be the collateral token). |
collateralIndex | uint256 | The index of the vault in the market's collateralParams array. |