Deposit
Aave V2 Action Plugin - Deposit
Description
Deposits a certain amount
of an asset
into the protocol, minting the same amount
of corresponding aTokens, and transferring them to the onBehalfOf
address.
Method
deposit(address, uint256, address, uint16)
Input Parameters
No required parameters.
Method Parameters
Name | Plugin Type | Description |
---|---|---|
asset |
| Address of the underlying asset |
amount |
| Amount deposited |
onBehalfOf |
| Address whom will receive the aTokens. |
referralCode (optional) |
| No longer supported by Aave |
Returned Values
No value returned
Example
Example with initParams
Example without initParams
Learn more
Learn more about Aave V2 deposit function here
Last updated