IEmergencyQueue

Git Source

SPDX-License-Identifier: Apache-2.0

Functions

queueWithdrawal

called by paused forms to queue up withdrawals for exit

function queueWithdrawal(InitSingleVaultData memory data_, address srcSender_) external;

Parameters

NameTypeDescription
data_InitSingleVaultDatais the single vault data passed by the user
srcSender_address

executeQueuedWithdrawal

alled by emergency admin to processed queued withdrawal

function executeQueuedWithdrawal(uint256 id_) external;

Parameters

NameTypeDescription
id_uint256is the identifier of the queued action

batchExecuteQueuedWithdrawal

called by emergency admin to batch process queued withdrawals

function batchExecuteQueuedWithdrawal(uint256[] memory ids_) external;

Parameters

NameTypeDescription
ids_uint256[]is the array of identifiers of the queued actions

queuedWithdrawalStatus

returns the execution status of an id in the emergency queue

function queuedWithdrawalStatus(uint256 id) external view returns (bool);

Parameters

NameTypeDescription
iduint256is the identifier of the queued action

Returns

NameTypeDescription
<none>boolboolean representing the execution status

Events

WithdrawalQueued

event WithdrawalQueued(
    address indexed srcAddress,
    address indexed refundAddress,
    uint256 indexed id,
    uint256 superformId,
    uint256 amount,
    uint256 srcPayloadId
);

WithdrawalProcessed

event WithdrawalProcessed(address indexed refundAddress, uint256 indexed id, uint256 superformId, uint256 amount);