VaultRequestHandler
VaultRequestHandler
Addresses
| Chain | Address |
|---|---|
| Arbitrum Sepolia | 0xd0c1f03EDE30E57fB700f49c08112Fc95CD85159 |
| Base Sepolia | 0x7C0f96Ad43318004Bfd2aaebEFB5e90bA0c039D5 |
| Base Mainnet | 0xb0A0Bf41e4e34D5Cf8215471D4a22e7125c6ab61 |
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
| Name | Type | Description |
|---|---|---|
shares | Shares | request permission to redeem shares from account. If a request already exists, the new shares must be at least as large |
account | address | Address from which to redeem shares. Sender must be this address or its manager. |
receiver | address | Instantly redeem to this address if possible. If 0x00, do not instantly redeem. Ignored if instant redeems are unavailable. |
minAssets | uint256 | Slippage 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
| Name | Type | Description |
|---|---|---|
account | address | Address of request holder |
Events
WithdrawRequested
event WithdrawRequested(address caller, address owner, struct IVaultDomain.WithdrawRequest withdrawRequest)