Supply
Compound V3 Action Plugin - Supply
Description
The supply function transfers an asset to the protocol and adds it to the account’s balance. This function can be used to supply collateral, supply the base asset, or repay an open borrow of the base asset.
Method
supply(address, uint256)
Input Parameters
Name | Plugin Type | Description |
---|---|---|
to |
| Comet address |
Method Parameters
Name | Plugin Type | Description |
---|---|---|
asset |
| The address of the asset’s smart contract. |
amount |
| The amount of the asset to supply to Compound III expressed as an integer. |
Returned Values
No returned values
Example
Example with initParams
Example without initParams
Learn more
Learn more about Compound V3 supply method here
Last updated