You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 3439226
Browse filesBrowse the repository at this point in the historyBrowse files
fix(shield-swap): swap_many takes expected_out; share the position decoder
Two findings from a second review pass.
swap_many's refusal message told callers to "quote it yourself and pass
expected_out" — and swap_many had no expected_out parameter, so the advice
was impossible to follow. It now accepts one, which both makes the message
true and gives callers with their own price source (or an unreachable API) a
way through.
find_position_plaintext matched any dict whose `pool` field equalled the
target, so a record of another type carrying that field would be returned as
a position and then spent as one. That is the same defect fixed in
_owned_from_record last commit; its sibling was left behind. Both now go
through decode_position_record, with a test using a lookalike record.
The agent page passed its compactness budget again. It had been squeezed to
134 chars of headroom, so the cap moves 24k → 26k deliberately rather than a
third squeeze, with the reason recorded alongside the earlier raises. The new
paragraph is also written tighter; the page sits at 24130 with 1870 spare.
237 shield-swap (+2), pyright clean.
0 commit comments