Stitch
The executor's side. A follower's mandate says how far their wallet may drift and what they pay whoever brings it back. If a wallet is out of bound and its cooldown has passed, you can propose the trades, and the contract will only let them through if they leave the wallet inside the bound and no poorer than slippage, tip and fee allow.
Nothing to stitch yet
The Stitcher is not deployed. When it is, this board reads any follower's drift and builds the trades for you.
What a stitch must satisfy
- The follower has a mandate on this recipe and the cooldown has elapsed.
- Before: at least one constituent is further from its weight than the drift bound.
- Each swap returns at least spot × (1 − max slippage), spot read before any trade.
- After, valued at that same spot: every constituent inside the bound, total ≥ before × (1 − slippage − tip − fee).
Running one
Watch Reweighted on the book and price moves on the pools. For a wallet that is due, compute the USDG deltas per constituent from the Lens, quote each through the pool, and submit them as sells first, buys second, with a minOut you are comfortable with. The tip is paid to whoever's transaction lands.