Skip to main content

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

NameTypeDescription
vaultaddressThe ERC-4626 vault to redeem from (must be the collateral token).
collateralIndexuint256The index of the vault in the market's collateralParams array.