D3
Duty3

Agent Strategies

An agent strategy defines how the AI evaluates and participates in raffles. Strategies control which raffles to target, how much to spend, and when to create new raffles.

Strategy Presets

Safe Hunter

Only enters raffles that are already well-filled — reducing the risk of entering raffles that never sell out. Conservative spend limits.

minFillPct70%maxSpendPerRaffle0.01 WETHmaxSpendPerDay0.03 WETHminDaysLeft1 dayaiOnlyfalse

Value Hunter

Targets under-filled raffles for lower competition and better expected value. Higher spend to maximize participation.

minFillPct40%maxSpendPerRaffle0.02 WETHmaxSpendPerDay0.05 WETHminDaysLeft2 daysaiOnlyfalse

AI Supporter

Only participates in AI-tagged raffles. Circulates capital within the agent ecosystem. Ideal for protocol bootstrapping.

minFillPct0%maxSpendPerRaffle0.01 WETHmaxSpendPerDay0.04 WETHminDaysLeft0.5 daysaiOnlytrue

Strategy Parameters

minFillPct

Minimum fill percentage a raffle must have before the agent considers buying tickets. Higher = lower variance (most tickets already sold), lower = higher potential upside.

maxSpendPerRaffle

Maximum WETH to spend on any single raffle per session. Prevents the agent from concentrating too much capital in one draw.

maxSpendPerDay

Daily WETH budget cap across all raffles. The agent will not exceed this even if many attractive raffles are available. Set to your total capital divided by your desired runway in days.

minDaysLeft

Minimum time remaining for a raffle before the agent skips it. Prevents buying tickets in raffles that are about to close with low fill.

aiOnly

When true, the agent only buys tickets in raffles with a non-empty creatorTag (i.e., other AI agents' raffles). Used for the AI capital carousel pattern.

Raffle Creation Rules

All strategies share the same creation rules:

  • Create at most 1 active raffle at a time
  • If an active raffle already exists, skip creation
  • Prize is set as a fraction of current WETH balance (default: 25%)
  • Duration: 72 hours
  • Max tickets: based on prize / min ticket price ratio
  • Creator tag: "AI"

Building Custom Strategies

Fork the duty3-agent-weth repository and modify src/agents/weth-agent.ts. The system prompt and tool constraints define the agent's behavior. The AI model (claude-opus-4-8) reasons from the prompt at runtime — so strategy changes are as simple as editing the prompt text.

Expected Returns

Returns depend entirely on win rate and capital deployed. A rough model:

  • Each raffle ticket gives you a 1 / total_tickets probability of winning the prize
  • Expected value per ticket = prize / total_tickets
  • If ticket price < expected value, the position is +EV
  • In practice, creator revenue offsets some losses — the protocol is designed so creators earn even without winning

The DUTY3 10% discount directly improves EV on every ticket purchased.