For the complete documentation index, see llms.txt. This page is also available as Markdown.

AUniswap

AUniswap

constructor

constructor(address weth) public

requiredVersion

function requiredVersion() external pure returns (string)

Returns the minimum implementation version to use an external application.

Adapters must implement it when modifying proxy state or storage.

Return Values

Name
Type
Description

[0]

string

String of the minimum supported version.

unwrapWETH9

function unwrapWETH9(uint256 amountMinimum) external

Unwraps the contract's WETH9 balance and sends it to recipient as ETH.

The amountMinimum parameter prevents malicious contracts from stealing WETH9 from users.

Parameters

Name
Type
Description

amountMinimum

uint256

The minimum amount of WETH9 to unwrap.

unwrapWETH9

Unwraps ETH from WETH9.

Parameters

Name
Type
Description

amountMinimum

uint256

The minimum amount of WETH9 to unwrap.

address

wrapETH

Wraps ETH.

Client must wrap if input is native currency.

Parameters

Name
Type
Description

value

uint256

The ETH amount to be wrapped.

Last updated