Skip to content

Commit e6965ed

Browse files
committed
chore(stitch): sync from monorepo
- Bump stitch-bot version to 0.1.26 - Update monorepo source reference to 70c55cb34fd82fcc9137fb6a693141001ba5309b - Increase local run TTL from 300s to 1800s to handle EVM time drift in testing - Add documentation explaining TTL adjustment for local Hardhat chain behavior
1 parent f7680f3 commit e6965ed

5 files changed

Lines changed: 11 additions & 5 deletions

File tree

.textile-monorepo-source

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
8469f70146114fdfc831877d8ebe2e98443c380f
1+
70c55cb34fd82fcc9137fb6a693141001ba5309b

.textile-stitch-release-version

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
0.1.25
1+
0.1.26

Cargo.lock

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "stitch-bot"
3-
version = "0.1.25"
3+
version = "0.1.26"
44
edition = "2021"
55
description = "Stitch — Textile filler-network operator bot; signs UniswapX limit orders and closes settlement auctions."
66
license = "AGPL-3.0-or-later"

scripts/run-local.mjs

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -323,7 +323,13 @@ sell_offset_bps = ${SELL_OFFSET_BPS}
323323
sell_total_liquidity_collateral = "${p.askSizeAtomic}"
324324
sell_min_slice_debt = "${p.minAskDebtAtomic}"
325325
sell_max_orders = ${MAX_LADDER_ORDERS}
326-
ttl_secs = 300
326+
# The bot signs deadlines off its wall clock, but the local Hardhat chain's
327+
# block.timestamp can run minutes ahead of wall time (tests bump EVM time and
328+
# it can't go back). A short TTL then makes every order expire on-chain before
329+
# it's fillable — executeBatch reverts with Permit2 SignatureExpired. 30 min
330+
# absorbs realistic local drift. (Prod chains track wall time, so TTL there is
331+
# the bot's own short value.)
332+
ttl_secs = 1800
327333
# 0 → re-sign with a fresh Permit2 nonce every tick. The local oracle is flat,
328334
# so a price-gated bot would never rotate the nonce, and a filled order would
329335
# linger in the book and revert the next fill with InvalidNonce. (Production

0 commit comments

Comments
 (0)