WithdrawFrom
Compound V3 Action Plugin - WithdrawFrom
Description
The withdraw method is used to withdraw collateral that is not currently supporting an open borrow. Withdraw is also used to borrow the base asset from the protocol if the account has supplied sufficient collateral. It can also be called from an allowed manager address.
With withdrawFrom
method user can set src
and to
address
Method
withdrawFrom(address, address, address, uint256)
Input Parameters
Name | Plugin Type | Description |
---|---|---|
to |
| Comet address |
Method Parameters
Name | Plugin Type | Description |
---|---|---|
src |
| The address of the account to withdraw or borrow on behalf of. |
to |
| The address to send the withdrawn or borrowed asset. |
asset |
| The address of the asset that is being withdrawn or borrowed in the transaction. |
amount |
| The amount of the asset to withdraw or borrow. |
Returned Values
No returned values
Example
Example with initParams
Example without initParams
Learn more
Learn more about Compound V3 withdraw method here
Last updated