Superform v1
  • Introduction
  • Components
    • Protocol
    • Keepers
    • API
    • App
  • E2E Flows
    • Same-chain Deposit
    • Cross-chain Deposit
    • Same-chain Withdrawal
    • Cross-chain Withdrawal
  • Periphery Contracts
    • SuperformRouter
      • SuperformRouterPlus
      • SuperformRouterPlusAsync
    • PayMaster
    • PaymentHelper
    • EmergencyQueue
    • SuperformFactory
    • Forms
      • ERC4626Form
      • ERC5115Form
      • ERC7540Form
    • SuperPositions
      • ERC1155A
    • RewardsDistributor
  • Core Contracts
    • State Registries
      • CoreStateRegistry
      • AsyncStateRegistry
      • PayloadHelper
    • AMB Implementations
      • LayerzeroImplementation
      • LayerzeroV2Implementation
      • WormholeARImplementation
      • HyperlaneImplementation
      • AxelarImplementation
    • Broadcasting
      • BroadcastRegistry
      • WormholeSRImplementation
    • Bridge Validators
      • LiFiValidator
      • SocketValidator
      • SocketOneInchValidator
      • DebridgeValidator (and forwarder)
      • OneInchValidator
    • DstSwapper
    • Settings
      • SuperRBAC
      • SuperRegistry
  • SuperVaults
    • SuperVaults
  • Resources
    • Deployment Addresses
    • Subgraphs
      • Protocol Level Entities
      • Form Related Entities
      • Deposits and Withdrawals
      • SuperPosition Events
      • External Entities
    • Infrastructure Integrations
    • Security & Audits
    • Protocol License
    • Glossary
    • Protocol Multisig
    • Superform Labs Socials
Powered by GitBook
On this page
  • Introduction
  • Core Concepts

Was this helpful?

  1. Periphery Contracts

EmergencyQueue

Last updated 1 year ago

Was this helpful?

Introduction

Forms may be put in a paused status by the EmergencyAdmin. This stops all deposits from being processed, but withdrawals (users burning ) 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;
name
description

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;
name
description

id_

uint256 id of the withdrawal to process

SuperPositions
InitSingleVaultData