Velvet portfolio deployment#
Here are specific instructions to deploy a vault with Velvet Capital. The instructions have only Velvet specific bits. For full guide see Vault deployment.
Preface#
An automated trading Velvet vault consists of
Safe multisig wallet
Velvet Capital proprietary vault contracts for the share token and deposit flow management
Special integrations for whitelisted trading protocols like Enso
Velvet deployment#
Create a new private key for the oracle
Import this private key to Metamask or Rabby
Go to Velvet website
Manually create a portfolio
Configure vault based on this private key and portfolio contract address
Top up vault with some USDT/USDC
Example Velvet configuration#
Example env file for trade-executor Docker:
#
# This is the public environment variables file for a trade executor.
# This is only partial configuration.
#
# This is a vault based strategy
ASSET_MANAGEMENT_MODE="velvet"
#
# Strategy assets and metadata
#
STRATEGY_FILE=strategy/bnb-ath.py
# Port 3456 is mapped to the public IP on the host using Caddy
HTTP_ENABLED=true
# The trigger mode for the decide_trades()
MIN_GAS_BALANCE=0.01
GAS_BALANCE_WARNING_LEVEL=0.03
# mainly for TVL data since we have only daily candles
MAX_DATA_DELAY_MINUTES=1600
# Vault
# https://dapp.velvet.capital/ManagerVaultDetails/0x806b760f99ce80fa01bf9b3a8de6dd3590d4d1a9
VAULT_ADDRESS=0x806b760f99ce80fa01bf9b3a8de6dd3590d4d1a9
Preflight sequence#
See vault-deployment for full details.
Manually create vault
Deploy env file
Update docker-compose.yml
Update Caddy
trade-executor init
trade-executor check-universe
trade-executor check-wallet
trade-executor perform-test-trade –simulate
trade-executor perform-test-trade –no-simulate
Adjust strategy parameter thresholds for low launch capital amounts
trade-executor start