Automated CDP management for Indigo Protocol on Cardano. The bot automatically manages your Collateralized Debt Positions by adjusting collateral ratios based on your configured strategy.
IMPORTANT: This bot requires your wallet seed phrase to operate. For security reasons:
- Run locally only - Never deploy this bot to shared servers or cloud environments
- Your seed phrase never leaves your machine - The bot operates entirely within your local environment
- You are responsible for your wallet security - Keep your seed phrase and
.envfile secure - Intended for individual/institutional use - Each user must run their own instance
We strongly recommend running this bot on a dedicated, secure machine that you control.
- Monitors your CDPs every 2 minutes
- Calculates current collateral ratio (CR) for each CDP
- Takes action when CR moves outside your target range:
- CR < minCR: Deposits ADA to increase CR to targetCR
- CR > maxCR: Withdraws ADA to decrease CR to targetCR
- minCR ≤ CR ≤ maxCR: No action needed
packages/shared- Shared types and utilitiespackages/backend- Node.js backend API and bot services
# Navigate to backend
cd packages/backend
# Copy environment template
cp env.example .envRequired Configuration:
- Database credentials (In the pilot phase will be provided by Indigo team, then confiuration will be changed)
- Blockfrost API key (After pilot phase, It will be changed with Ogmios configuration)
- Your wallet seed phrase and strategy - please check disclaimer above.
Add your wallet configuration to packages/backend/.env:
# Replace 'addr1qys3t6znptaw4z' with first 20 chars of your wallet address
WALLET_SEEDPHRASE_addr1qys3t6znptaw4z=your 24 word seed phrase here
STRATEGY_addr1qys3t6znptaw4zy={"walletAddress":"your_full_wallet_address","enabled":true,"targetCR":160,"minCR":150,"maxCR":175,"enabledAssets":["iUSD"]}# From project root
npm install
npm run build
# Start the bot
npm run dev:backendThe bot will automatically start managing your CDPs based on your strategy.
Use the strategy CLI to manage your configurations:
See packages/backend/STRATEGY_CLI.md for detailed commands.