LogoLogo
  • Overview
  • The Aera Approach
  • Aera Protocol in One Page
  • Contact Us
  • Solutions
  • Aera for Treasury Management
  • Core Concepts
  • BaseVault and core interactions
  • Guardians and Strategies
  • Operations and submit()
  • For Advanced Users
  • Entry/Exit with Provisioner
  • For Vault Owners
  • Fee Vaults
  • Merkle Trees
  • Using Configurable Hooks
  • Building Custom Hooks
  • Cross-chain Deployments
  • The Protocol
    • Oracle Registry
    • Security
    • Core
      • Auth2Step
      • BaseFeeCalculator
      • BaseVault
      • BaseVaultDeployer
      • BaseVaultFactory
      • CallbackHandler
      • Constants
      • DelayedFeeCalculator
      • FeeVault
      • FeeVaultDeployer
      • HasNumeraire
      • MultiDepositorVault
      • MultiDepositorVaultDeployDelegate
      • MultiDepositorVaultFactory
      • PriceAndFeeCalculator
      • Provisioner
      • SingleDepositorVault
      • SingleDepositorVaultDeployDelegate
      • SingleDepositorVaultFactory
      • Sweepable
      • VaultAuth
      • Whitelist
      • IAuth2Step
      • IBaseFeeCalculator
      • IBaseVault
      • IBaseVaultDeployer
      • IBaseVaultFactory
      • IBeforeTransferHook
      • ICallbackHandler
      • IDelayedFeeCalculator
      • IFeeCalculator
      • IFeeVault
      • IFeeVaultDeployer
      • IHasNumeraire
      • IMultiDepositorVault
      • IMultiDepositorVaultFactory
      • IPriceAndFeeCalculator
      • IProvisioner
      • ISingleDepositorVault
      • ISubmitHooks
      • ISingleDepositorVaultFactory
      • ISweepable
      • IVaultDeployDelegate
      • IWhitelist
      • CalldataExtractor
      • CalldataReaderLib
      • Pipeline
    • Periphery
      • Executor
      • OracleRegistry
      • IExecutor
      • IOracleRegistry
      • HooksLibrary
  • gtUSDa
  • Integrating with gtUSDa
  • Links
    • Website
    • GitHub
  • V2 (ARCHIVE)
    • Introduction
    • The Aera Approach
    • How Aera V2 Works
    • Guides
      • 🏦Treasury
        • Using the Factory
        • Operating your Vault
          • Vault operation via Gnosis Safe
        • Managing the asset registry
        • Managing hooks
      • 🤖Vault Guardians
      • 💹Fee Recipient
      • 💻Developers
    • Concepts
      • Vault Assets
      • Objective Function
      • Vault Guardian
      • Vault Operation
    • Use Cases
      • For Treasuries
      • FAQ
    • Contracts
      • Security
      • AeraV2Factory
      • AeraVaultModulesFactory
      • AeraVaultV2
      • AeraVaultAssetRegistry
      • AeraVaultHooks
      • GitHub
  • UI
Powered by GitBook
On this page
  1. The Protocol
  2. Core

ISweepable

PreviousISingleDepositorVaultFactoryNextIVaultDeployDelegate

Last updated 6 hours ago

CtrlK
  • Functions
  • sweep
  • Events
  • Sweep
  • Errors
  • Aera__FailedToSendNativeToken

Interface for contracts that can recover tokens to a designated recipient

Functions

sweep

Withdraw any tokens accidentally sent to contract

function sweep(address token, uint256 amount) external;

Parameters

Name
Type
Description

token

address

Token address to withdraw or zero address for the chain's native token

amount

uint256

Amount to withdraw

Events

Sweep

Emitted when sweep is called

event Sweep(address indexed token, uint256 amount);

Parameters

Name
Type
Description

token

address

Token address or zero address if recovering the chain's native token

amount

uint256

Withdrawn amount of token

Errors

Aera__FailedToSendNativeToken

Emitted when sweep of the native token has failed

error Aera__FailedToSendNativeToken();