Trusted Vaults
Trusted vaults extend the base vault (see Vault Managers) with manager borrowing and (when enabled) margin trading. They are created like a normal vault — see Quickstart — and an admin must then update the vault class to Trusted. Once upgraded, the manager can borrow assets from the vault and repay or mark-to-market the borrow.
Trusted vaults must be approved by the Velocity team before they can be used in production.
Vault depositors in Trusted vaults place significant trust in the manager. Borrowing and margin increase the manager’s ability to move or risk vault capital. Depositors should only use Trusted vaults when they accept this additional trust assumption.
Borrow: Move vault assets out (e.g. USDT) up to the vault’s capacity. Vault equity for share accounting includes the manager’s borrowed value so depositor share price reflects the full claim on the vault.
bun run cli -- manager-borrow \
--vault-address <VAULT_ADDRESS> \
--borrow-spot-market-index 0 \
--borrow-amount <AMOUNT>Repay: Send tokens back into the vault and reduce the outstanding borrow. You can repay in the same asset or another spot market and specify the value to deduct from manager_borrowed_value; omit amount to repay the full borrow.
bun run cli -- manager-repay \
--vault-address <VAULT_ADDRESS> \
--repay-spot-market-index <INDEX> \
--repay-amount <AMOUNT> \
--repay-value <VALUE_IN_DEPOSIT_ASSET>Update borrow value: If borrowed funds have been used elsewhere and their mark-to-deposit-asset value has changed, you can set the tracked borrow value to the current mark:
bun run cli -- manager-update-borrow \
--vault-address <VAULT_ADDRESS> \
--new-borrow-value <VALUE>Update the vault’s class to Trusted with the admin command:
bun run cli -- admin-update-vault-class \
--vault-address <VAULT_ADDRESS> \
--vault-class trustedTrusted vaults typically use margin trading; enable it with manager-update-margin-trading-enabled as described in Quickstart.