Skip to main content

VaultRequestHandler

VaultRequestHandler

Addresses

ChainAddress
Arbitrum Sepolia0xd0c1f03EDE30E57fB700f49c08112Fc95CD85159
Base Sepolia0x7C0f96Ad43318004Bfd2aaebEFB5e90bA0c039D5
Base Mainnet0xb0A0Bf41e4e34D5Cf8215471D4a22e7125c6ab61

Functions

initialize

function initialize(struct StorageInstance app_) external

makeRedeemRequest

Create or update a request to redeem shares from account. If instant redeems are available and receiver is set, immediately redeem shares from account.

function makeRedeemRequest(
Shares shares,
address account,
address receiver,
uint256 minAssets
) external returns (
uint64 duration,
uint64 beginsAt
)

Parameters

NameTypeDescription
sharesSharesrequest permission to redeem shares from account. If a request already exists, the new shares must be at least as large
accountaddressAddress from which to redeem shares. Sender must be this address or its manager.
receiveraddressInstantly redeem to this address if possible. If 0x00, do not instantly redeem. Ignored if instant redeems are unavailable.
minAssetsuint256Slippage parameter. If instant redeems are available, receiver is nonzero, and minAssets is nonzero, revert if the resulting instant redemption would yield less than minAssets. Ignored if instant redeems are unavailable.

clearRequestAndPenalty

Clear a user's request and penalty rate, since immediate withdraws have become available

function clearRequestAndPenalty(address account) internal

Parameters

NameTypeDescription
accountaddressAddress of request holder

Events

WithdrawRequested

event WithdrawRequested(address caller, address owner, struct IVaultDomain.WithdrawRequest withdrawRequest)