Redeem
Compound V2 Action Plugin - Redeem
Description
The redeem function converts a specified quantity of cTokens into the underlying asset, and returns them to the user.
Method
redeem(uint256)
Input Parameters
Name | Plugin Type | Solidity Type | Description |
---|---|---|---|
to |
|
| cToken address |
Method Parameters
Name | Plugin Type | Solidity Type | Description |
---|---|---|---|
redeemTokens |
|
| Amount to redeem |
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 Redeem method here
Last updated