Repay
Aave V2 Action Plugin - Repay
Description
Repays onBehalfOf
's debt amount
of asset
which has a rateMode
.
Method
repay(address, uint256, uint256, address)
Input Parameters
No required parameters.
Method Parameters
Name | Plugin Type | Description |
---|---|---|
asset |
| Address of the underlying asset |
amount |
| Amount to be borrowed. Use -1 to repay the entire debt |
rateMode |
| The type of borrow debt. Stable - 1 Variable - 2 |
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 repay function here
Last updated