Files
magpie/docs
yetone cc588e7829 keys: a typed balance may be below 0, as a key the vendor let overdraw reads (AlanWang1027713 on X)
The balance a user types to calibrate a key (GUI pill, keyownbalance, magpie
provider key-balance) was refused below 0 with 'a balance is an amount from 0',
while the card itself already shows an overdrawn key as ≈-$1.84 after spending.
So a user whose vendor page said -1.84 could not type what it says. The bound is
now -1,000,000 to 1,000,000 in both currencies, in the GUI, the CLI parser and
checkOwnBalance (which also guards what is read from disk). A sign may come
before the currency's (-$1.84, -¥5) as well as after it. Credit that expires
stays above 0 (a grant is never negative). Refusal text and its zh, zh-TW, ja, de
strings say the new range.

Run (wsl-run, mote's disk is full): go test -run Own ./internal/provider green;
red on the old checkOwnBalance/ParseOwnBalance (5 parse cases fail). Not tried:
a real overdrawn key; macOS/Windows.
2026-11-11 16:33:41 +08:00
..