VbETH

Git Source

Inherits: VaultBridgeToken

Author: See https://github.com/agglayer/vault-bridge

CAUTION! As-is, this contract MUST NOT be used on a network if the gas token is not ETH.

Functions

constructor

constructor();

initialize

function initialize(address initializer_, VaultBridgeToken.InitializationParameters calldata initParams)
    external
    initializer;

depositGasToken

deposit ETH to get vbETH

function depositGasToken(address receiver) external payable whenNotPaused nonReentrant returns (uint256 shares);

depositGasTokenAndBridge

deposit ETH to get vbETH and bridge to an L2

function depositGasTokenAndBridge(
    address destinationAddress,
    uint32 destinationNetworkId,
    bool forceUpdateGlobalExitRoot
) external payable whenNotPaused nonReentrant returns (uint256 shares);

mintWithGasToken

function mintWithGasToken(uint256 shares, address receiver)
    external
    payable
    whenNotPaused
    nonReentrant
    returns (uint256 assets);

_receiveUnderlyingTokenViaMsgValue

function _receiveUnderlyingTokenViaMsgValue(address from, uint256 assets) internal;

Errors

ContractNotSupportedOnThisNetwork

error ContractNotSupportedOnThisNetwork();

IncorrectMsgValue

error IncorrectMsgValue(uint256 msgValue, uint256 requestedAssets);