EmergencyQueue

Introduction

Forms may be put in a paused status by the EmergencyAdmin. This stops all deposits from being processed, but withdrawals (users burning SuperPositions) are then put into an EmergencyQueue. This contract serves to handle those withdrawal requests.

Core Concepts

Broadly, withdrawals are queued when Forms are paused, and can then be executed by the EmergencyAdmin.

queueWithdrawal

This function is intended to be called by Forms that are currently paused, allowing them to queue up withdrawal requests for exit. It handles the initialization of the withdrawal process.

function queueWithdrawal(
    InitSingleVaultData memory data_,
) external;
namedescription

data_

executeQueuedWithdrawal

This function is designed to be used by an EmergencyAdmin. It processes a single withdrawal that has been previously queued.

function executeQueuedWithdrawal(uint256 id_) external;
namedescription

id_

uint256 id of the withdrawal to process

Last updated