Guides
DCA Intents
DCA Intent Guide
Set up automated dollar-cost averaging (DCA) strategies that execute via the AVNU aggregator.
What is DCA?
Dollar-Cost Averaging spreads a purchase across multiple time periods, reducing the impact of price volatility.
Example: Instead of buying 100 STRK at once, buy 10 STRK every day for 10 days.
Creating a DCA Intent
- Navigate to the DCA section
- Configure your intent:
| Parameter | Description | Options |
|---|---|---|
| Intent Type | Direction of the swap | DCA_IN, DCA_OUT, REBALANCE |
| Input Token | Token you're spending | Any supported token |
| Output Token | Token you're buying | Any supported token |
| Total Amount | Total to spend over the duration | Wei amount |
| Frequency | How often to execute | HOURLY, DAILY, WEEKLY |
| Duration | How long the DCA runs | 1-365 days |
-
Set optional parameters:
- Max Slippage (1-5000 bps): Maximum acceptable slippage per swap
- Price Bounds: Min/max price to execute (skip execution if outside bounds)
- Auto-Stake: Automatically stake output tokens in a vault
-
Sign the intent with your wallet
-
The executor automatically swaps at each interval
Managing Intents
| Action | Description |
|---|---|
| Pause | Temporarily stop executions |
| Resume | Restart a paused intent |
| Cancel | Permanently stop the intent |
| Update | Change slippage or price bounds |
Execution Details
- Swaps route through AVNU aggregator for best execution
- Each execution uses
amountPerExecution = totalAmount / totalExecutions - Executions are skipped if price is outside configured bounds
- Failed executions are retried on the next cycle
- The executor runs as a backend cron job (configurable interval)
Monitoring
View your intents on the DCA page:
- Status: Active, Paused, Completed, Cancelled, Failed
- Progress: Executions completed vs total
- Execution History: Each swap with price, amount, and transaction hash
- Next Execution: Countdown to next scheduled swap
Execution Modes
| Mode | Description |
|---|---|
| Production | Real on-chain swaps via executor wallet |
| Simulation | Dry run (no on-chain txs) when executor keys not configured |
Set EXECUTOR_PRIVATE_KEY and EXECUTOR_ADDRESS in environment to enable production mode.