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
  • Phase 0: Route Generation and Selection
  • Phase 1: Withdrawing from Vaults and Swapping to Target Token

Was this helpful?

  1. E2E Flows

Same-chain Withdrawal

Last updated 11 months ago

Was this helpful?

Phase 0: Route Generation and Selection

  1. User selects vaults to withdraw from ( must all be on the same chain), a target token, and the amount to withdraw from each vault

  2. User requests routes from the Superform API

  3. User selects a route for each vault

  4. User approves contract to burn selected (if needed)

Phase 1: Withdrawing from Vaults and Swapping to Target Token

Atomic Phase

  1. directWithdrawFromVault is called and vault shares are redeemed from the target vault for the underlying tokens

  2. Underlying tokens may be swapped or bridged at this point into the target token if the target token is not the underlying token

  3. Target token is sent to the user

User calls singleDirectSingleVaultWithdraw. The function burns the user designated amount of . The function parameters are complex; therefore, using the Superform API to generate valid function parameters is encouraged

SuperPositions
SuperPositions
SuperPosition
SuperPositions