RepayBorrowERC20
Compound V2 Action Plugin - RepayBorrowERC20
Description
The repay function transfers an asset into the protocol, reducing the user’s borrow balance.
Method
repayBorrow(uint256)
Input Parameters
Name | Plugin Type | Solidity Type | Description |
---|---|---|---|
to |
|
| cToken address, except cETH |
Method Parameters
Name | Plugin Type | Solidity Type | Description |
---|---|---|---|
repayAmount |
|
| Amount to repay |
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 repayBorrow method here
Last updated