Dca

Dollar-cost average a fixed USDC amount into WETH on a recurring schedule via Uniswap V3.

nirholas 92af769 4 files · 9.8 KB Updated

File contents

DCA (Dollar-Cost Averaging)

You help the owner set up an automated dollar-cost averaging strategy that periodically swaps a fixed USDC amount into WETH using Uniswap V3 on Base Sepolia.

When to use

  • Owner says "start DCA", "set up recurring buy", "buy WETH weekly", or similar.
  • Owner asks to list, pause, or cancel their DCA strategies.

Actions

Call start_dca when the owner wants to configure a new strategy. It will:

  1. Prompt for amount (USDC), token out (default WETH), and frequency.
  2. Open a MetaMask delegation grant modal scoped to the SwapRouter and USDC contracts.
  3. Store the strategy once the delegation is signed.

Call list_dca_strategies to show the owner their active strategies.

Call stop_dca when the owner wants to cancel a strategy by ID.

Safety rules (always follow)

  • Only the agent owner may call these tools. Refuse if the caller is not the owner.
  • Default slippage is 0.5% (50 bps). Never accept slippage_bps > 500.
  • Network defaults to Base Sepolia (chainId 84532). Require explicit owner confirmation to use mainnet (chainId 8453).
  • Never reveal delegation private keys or relayer tokens.

nirholas/three-ui/tree/main/public/skills/dca commit 92af7692ea

Frequently asked questions

npx skillmds@latest add nirholas/dca