Skip to content

Commit 72ea53b

Browse files
committed
chore(stitch): bump version to 0.1.23
- Update monorepo source reference to ba9ef009ff9e793f3eafd66f1f36187bf086a015 - Bump stitch-bot version from 0.1.22 to 0.1.23 in Cargo.toml and Cargo.lock - Make feed staleness window configurable via FEED_STALENESS_SECS env var with 1-day default to support local development where oracle data doesn't refresh
1 parent 5cde0f8 commit 72ea53b

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-
3b368a514f5d196dd5e30e17c3dd83556dfc6fdb
1+
ba9ef009ff9e793f3eafd66f1f36187bf086a015

.textile-stitch-release-version

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
0.1.22
1+
0.1.23

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.22"
3+
version = "0.1.23"
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
@@ -40,6 +40,12 @@ const positiveIntEnv = (name, fallback) => {
4040
}
4141
const FEED_WAIT_SECONDS = positiveIntEnv('FEED_WAIT_SECONDS', 600)
4242
const FEED_PROBE_TIMEOUT_MS = positiveIntEnv('FEED_PROBE_TIMEOUT_MS', 8000)
43+
// The local feed is a static seeded rate (the oracle is flat — see
44+
// refresh_threshold_bps below) and nothing refreshes its observedAt while the
45+
// stack runs, so a tight staleness window makes the bot skip every pool ~1
46+
// minute after the last seed. Default to a day so a local stack quotes all day;
47+
// override with FEED_STALENESS_SECS to exercise real staleness handling.
48+
const FEED_STALENESS_SECS = positiveIntEnv('FEED_STALENESS_SECS', 86400)
4349

4450
const addrs = JSON.parse(
4551
readFileSync(`${CRATE}../constants/src/addresses.localhost.json`)
@@ -296,7 +302,7 @@ tick_interval_secs = 5
296302
297303
[feed]
298304
url = "${FEED_BASE}?pair=cngn-usdt"
299-
staleness_secs = 60
305+
staleness_secs = ${FEED_STALENESS_SECS}
300306
`
301307
for (const p of pools) {
302308
toml += `

0 commit comments

Comments
 (0)