IL2Pool

Git Source

Author: Aave

Defines the basic extension interface for an L2 Aave Pool.

Functions

supply

Calldata efficient wrapper of the supply function on behalf of the caller

the shortenedAmount is cast to 256 bits at decode time, if type(uint128).max the value will be expanded to type(uint256).max

assetId is the index of the asset in the reservesList.

function supply(bytes32 args) external;

Parameters

NameTypeDescription
argsbytes32Arguments for the supply function packed in one bytes32 96 bits 16 bits 128 bits 16 bits

supplyWithPermit

Calldata efficient wrapper of the supplyWithPermit function on behalf of the caller

the shortenedAmount is cast to 256 bits at decode time, if type(uint128).max the value will be expanded to type(uint256).max

assetId is the index of the asset in the reservesList.

function supplyWithPermit(bytes32 args, bytes32 r, bytes32 s) external;

Parameters

NameTypeDescription
argsbytes32Arguments for the supply function packed in one bytes32 56 bits 8 bits 32 bits 16 bits 128 bits 16 bits
rbytes32The R parameter of ERC712 permit sig
sbytes32The S parameter of ERC712 permit sig

withdraw

Calldata efficient wrapper of the withdraw function, withdrawing to the caller

the shortenedAmount is cast to 256 bits at decode time, if type(uint128).max the value will be expanded to type(uint256).max

assetId is the index of the asset in the reservesList.

function withdraw(bytes32 args) external returns (uint256);

Parameters

NameTypeDescription
argsbytes32Arguments for the withdraw function packed in one bytes32 112 bits 128 bits 16 bits

Returns

NameTypeDescription
<none>uint256The final amount withdrawn