Skip to content

K13.1: expire buys whose deposit never reaches 1Click - #136

Merged
MFrancis-dev merged 2 commits into
mainfrom
fix/buy-transfer-failed
Nov 8, 2026
Merged

MFrancis-dev merged 2 commits into
mainfrom
fix/buy-transfer-failed

Conversation

@MFrancis-dev

Copy link
Copy Markdown
Owner

First fix from the pre-launch review (ROADMAP Phase 13).

Problem: a buy still PENDING_DEPOSIT at 1Click counted as in flight forever, so scheduleBuys returned in_flight for that vault on every pass and the plan never bought again.

Fix: pollBuys marks it expired once it's 30 minutes old (quote deadline is 10 minutes, plus margin), with a note. Buys that 1Click has seen (KNOWN_DEPOSIT_TX or later) are never expired.

Tests: 3 new (expires and frees the plan; recent buy keeps waiting; seen deposit never expires). 134 total.

Also in this PR: the alternative demo video script (separate commit). Docs: README status, ARCHITECTURE §4.4, ROADMAP Phase 13 (new, issues #127–#135).

Closes #127

A buy still PENDING_DEPOSIT 30 minutes after it was sent counted as in flight
forever and blocked every later buy of the plan.

Closes #127
@MFrancis-dev
MFrancis-dev merged commit 0e673e0 into main Nov 8, 2026
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

K13.1 Expire buys whose deposit never reaches 1Click

2 participants