T09 · Insecure Skill Coding Practices
- Location
SKILL.md:224- Finding
Real-Asset Transfers Do Not Universally Require Explicit User Consent
- Content
View full analysis
","to":"","token":"USDC","amount":1000} ``` **Transfer via sendAsset (main → sub):** ```json {"type":"sendAsset","destination":"","sourceDex":"spot","destinationDex":"spot","token":"USDC","amount":1000} ``` **Safety check before moving funds out of a trading account.** Any `sendAsset` / `subAccountTransfer` that pulls USDC OUT of a wallet (one trading account to another, or master to sub) lowers the source wallet's collateral. If that source wallet is running a live strategy, the withdrawal can raise liquidation risk on open positions or drop the balance below the strategy's reserved stake (`stake_amount × max_open_trades × buffer`). Before sending: 1. List the source wallet's live deployments — `GET /v2/deployment?status=running` — and check whether any has a `walletAddress` matching the source. 2. If one does, confirm with the user, and verify the **post-transfer** balance (current balance minus amount) still covers that strategy's reservation before transferring. If it would underfund the strategy, reduce the amount or move fu ...[truncated 2640 chars]- Remediation
View remediation
