Borrow
Compound V2 Action Plugin - Borrow
Description
The borrow function transfers an asset from the protocol to the user, and creates a borrow balance which begins accumulating interest based on the Borrow Rate for the asset.
Method
borrow(uint256)
Input Parameters
Name | Plugin Type | Solidity Type | Description |
---|---|---|---|
to |
|
| cToken address |
Method Parameters
Name | Plugin Type | Solidity Type | Description |
---|---|---|---|
borrowAmount |
|
| Borrowed amount |
Returned Values
Name | Plugin Type | Solidity Type | Description |
---|---|---|---|
result |
|
| If result is 0 - success |
Example
Example with initParams
Example without initParams
Learn more
Learn more about Compound V2 borrow method here
Last updated