ILendingPool

Methods

deposit

function deposit(address asset, uint256 amount, address onBehalfOf, uint16 referralCode) external nonpayable

Deposits an amount of underlying asset into the reserve, receiving in return overlying aTokens. - E.g. User deposits 100 USDC and gets in return 100 aUSDC

Parameters

withdraw

function withdraw(address asset, uint256 amount, address to) external nonpayable returns (uint256)

Withdraws an amount of underlying asset from the reserve, burning the equivalent aTokens owned E.g. User has 100 aUSDC, calls withdraw() and receives 100 USDC, burning the 100 aUSDC

Parameters

Returns

Last updated