Skip to content

Commit 8d838aa

Browse files
committed
refactor(scripts): remove oracle refresh logic and use feed prices directly
- Remove `ORACLE_REFRESH_SECONDS` config and the `refreshOracles()` function that periodically updated PushOracles on the local chain - Replace oracle-based pricing with direct calls to the app's `/api/price` endpoint via new `corridorPrice()` function - Change corridor configuration to use address key arrays with fallback support instead of single oracle addresses, allowing flexible token deployments - Add `pickAddress()` helper to resolve the first deployed token from a list of address keys - Move feed availability check to startup initialization before corridor resolution, ensuring the price endpoint is reachable before sizing any orders - Update error messages to clarify that tokens must be deployed and corridors registered in the database - Improve messaging for missing corridors to guide users toward seeding or manual registration
1 parent 3e6e9a3 commit 8d838aa

5 files changed

Lines changed: 113 additions & 195 deletions

File tree

.textile-monorepo-source

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
772ed39191739ff7ea253a1641fb4b79eef3e4a0
1+
b9b00d55850a2c74ed31121e1c7ed1f3d8433bf8

.textile-stitch-release-version

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
0.1.230
1+
0.1.231

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.230"
3+
version = "0.1.231"
44
edition = "2021"
55
description = "Stitch — Textile filler-network operator bot; quotes Swap via RFQ firm quotes and optionally fills resting limit orders."
66
license = "AGPL-3.0-or-later"

0 commit comments

Comments
 (0)