fix: a V4 step that spends some of its output currency shows no Min. received (closes #574) #667

Merged
clawbot merged 1 commits from issue-574-v4-spent-output-min into next 2026-10-21 07:34:27 +02:00
1 Commits
Author SHA1 Message Date
sneak c684386a28 fix: a V4 step that spends some of its output currency shows no Min. received (closes #574)
check / check (push) Waiting to run
e2e / e2e-chrome (push) Waiting to run
e2e / e2e-firefox (push) Waiting to run
A V4 step's Min. received was the sum of the minimums of the swap
actions that buy its output currency, even when another swap action in
the same step spends some of that currency. The user then receives
less than that figure. decodeV4Swap() now gives no minimum when a swap
action in the step also spends the output currency, as it already does
for other minimums it cannot state. A multi-hop action counts only the
currency it spends and the one it ends with, so a path through an
intermediate currency is not read as spending it.

Model: opus-5-5
2026-10-21 04:33:18 +00:00