Borrow
Aave V2 Action Plugin - Borrow
Description
Borrows amount
of asset
with interestRateMode
, sending the amount
to msg.sender
, with the debt being incurred by onBehalfOf
.
Method
borrow(address, uint256, uint256, uint16, address)
Input Parameters
No required parameters.
Method Parameters
Name | Plugin Type | Description |
---|---|---|
asset |
| Address of the underlying asset |
amount |
| Amount to be borrowed |
interestRateMode |
| The type of borrow debt. Stable - 1 Variable - 2 |
referralCode (optional) |
| No longer supported by Aave. 0 by default |
onBehalfOf |
| Address of user who will incur the debt |
Returned Values
No returned values
Example
Example with initParams
Example without initParams
Learn more
Learn more about Aave V2 borrow function here
Last updated