Skip to main content

Reference

Interfaces, signatures, parameters, and generated references.

Lookup friendly
TOC available

NativeWrapper

Git Source - Generated with forge doc

Inherits: ImmutableState

Used for wrapping and unwrapping native

State Variables​

WETH9​

The address for WETH9

IWETH9 public immutable WETH9;

Functions​

constructor​

constructor(IWETH9 _weth9);

_wrap​

The amount should already be <= the current balance in this contract.

function _wrap(uint256 amount) internal;

_unwrap​

The amount should already be <= the current balance in this contract.

function _unwrap(uint256 amount) internal;

receive​

receive() external payable;

Errors​

InvalidEthSender​

Thrown when an unexpected address sends ETH to this contract

error InvalidEthSender();