deposit_and_mint
Deposit collateral to mint USDD, automatically reusing an existing vault if available or opening a new one in a single transaction.
Instructions
Deposit collateral and mint USDD. If cdpId is omitted, reuses an existing vault for the ilk if one exists; otherwise opens a new vault and funds it in one transaction.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ilk | Yes | ||
| collateralAmount | Yes | ||
| drawAmount | Yes | ||
| cdpId | No | ||
| transferFrom | No | For ERC20 collaterals, whether proxy action should pull from wallet. Default: true | |
| network | No | Target network. Default: tron |