How it works

The callback's checks

The Executor re-checks every condition on-chain and never reverts on a rule check, so every outcome is acknowledged and paid.

execute accepts only Reactive's callback proxy, and only for the Watcher's ID; anything else is rejected without an acknowledgement. Then, in this order, each check ends in an acknowledged skip with its reason, never a revert:

#CheckSkips with
1The request isn't a repeatDuplicate
2The Executor isn't pausedPaused
3The rule's version is the one the Watcher sawRule changed
4The rule is active and bound to this positionRule inactive · Rule moved
5It hasn't expired (by timestamp)Expired
6The network's gas price is under the rule's ceilingGas too high
7The owner's budget covers the worst-case feeBudget empty
8The owner still holds the position, and it's still approvedNot owner · Not allowed · Position closed
9The price hasn't drifted from the Watcher's tickDrift
10The trigger still holds (and the interval has passed)Price returned · Not yet
11The daily cap isn't reached (rules that act more than once)Daily cap

Then the action runs as one self-call inside try, with gas held back for the acknowledgement: done, or failed with its reason. There are 31 reasons in all, from "rule changed" to "the network's gas price was above the rule's ceiling"; each one the Executor acknowledges reaches the app's activity list and proof sheet in words (reason 30, "price came back during the wait", happens inside the Watcher, which clears the wait instead of calling back).

When a position is closed or sold elsewhere, its rules stop at once: the Executor subscribes to each position on the PositionManager and hears notifyBurn and notifyUnsubscribe.

Prices are bounded by a price limit on every swap (slippage) and by the rule's drift; nothing uses a caller-chosen router or calldata. New positions are always minted to the owner.

What the contract's owner can and can't do

The owner (the deployer) and a guardian hold a few switches. None of them reaches a position or a budget:

FunctionWhoWhat it does
setPausedowner or guardianStops actions only. Withdrawals, claims and leaving always work.
setWatcherownerNames the Watcher whose callbacks are accepted (a new generation of the Watcher).
setPeerownerThe Executor on another chain that a cross-chain Move goes to.
setRouteownerA bridge route (token in, token out, limits) for cross-chain Moves.
withdrawFloatownerTakes the house float only, never users' budgets or kept payouts.

There is no function that moves a position, sets a swap's router or calldata, or changes a rule you saved.

On this page