Strategies

A strategy is a CC3 policy. Overview lists yours. View opens the live page. The canvas is a draft you can edit after the create transaction.

What gets stored on-chain

createStrategy writes a policy on AffestStrategyManager. The tuple includes the vault, stable and risk assets, trigger asset, minimum trigger amount, signal type, TCTC and ETH weights in basis points, execution mode, per-action and weekly caps, slippage cap, expiry, and cooldown.

Affest maps TCTC to the vault stable asset and ETH to the risk asset in the current testnet pair. Trigger asset must be a real ERC-20. The manager rejects address(0).

Overview

My strategies is a table. Current value and 24h are per row, not a copy of the whole wallet. Each row uses that strategy's TCTC/ETH weights. If you set an amount, the row tracks that amount against the CoinGecko spots captured at set time.

ControlWhat it does
ViewOpens the live strategy page. Pause, resume, and proof status live there.
⋯ Edit canvasReopens the saved draft in the builder.
⋯ RenameChanges the local draft name. On-chain policy is unchanged.
⋯ Set amountSets how much USD this row tracks, with spot baselines.

Amount

Two strategies should not both claim the whole bag. On create, fill Amount this strategy tracks, or use ⋯ → Set amount later. Current value then follows allocatedUsd times the mix return from those baselines. Without an amount, the row still uses the strategy weights against live holdings, which is an implied mix, not a second copy of every dollar.

Create

  1. Open Strategies and compose blocks. Weight sits at the top. Add Asset, If/Else, or Filter with +.
  2. Both assets have to appear across the canvas. An If/Else needs a complete condition and TCTC or ETH in Then and Else.
  3. Optionally set the USD amount.
  4. Click Create strategy and sign on CC3.

After the tx, View sits next to Create strategy. The canvas is written to localStorage under affest.strategy.drafts, keyed by the new strategy id. Edit canvas later loads that draft. Names come from the draft, not from the manager.

Pause and resume

Pause and resume are owner-signed CC3 calls. They do not need a proof. An MCP agent can tell you to pause. It cannot submit the tx. Emergency pause is also independent of any credential on Agents.

Templates

Overview also shows starter mixes you can drop onto the canvas. They are drafts, not live strategies, until you create. They still have to pass the same completeness rules.