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.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"ilk": "<ilk>",
"collateralAmount": "<collateralAmount>",
"drawAmount": "<drawAmount>"
},
"name": "deposit_and_mint"
}
}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 |