MintERC20
Compound V2 Action Plugin - MintERC20
Description
The mint function transfers an asset into the protocol, which begins accumulating interest based on the current Supply Rate for the asset. The user receives a quantity of cTokens equal to the underlying tokens supplied, divided by the current Exchange Rate
Method
mint(uint256)
Input Parameters
Name | Plugin Type | Solidity Type | Description |
---|---|---|---|
to |
|
| cToken address Note: do not use cETH with this plugin |
Method Parameters
Name | Plugin Type | Solidity Type | Description |
---|---|---|---|
mintAmount |
|
| Amount to mint |
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 deposit/mint ERC20 method here
Last updated