fix: a zero-minimum balance check never sets the output side (closes #649) #690

Merged
clawbot merged 1 commits from issue-649-zero-balance-check into next 2026-10-27 08:58:00 +01:00
1 Commits
Author SHA1 Message Date
sneak 7c456df556 fix: a zero-minimum balance check never sets the output side (closes #649)
check / check (push) Waiting to run
e2e / e2e-chrome (push) Waiting to run
e2e / e2e-firefox (push) Waiting to run
A BALANCE_CHECK_ERC20 of the sender with a zero minimum guarantees
nothing, and neither does one the router lets fail. Such a check set
Token Out and the minimum whenever the output side held no minimum.
After an UNWRAP_WETH that drops the minimum, a zero check of USDC
named USDC as Token Out. Such a check now sets neither line. A check
with a positive minimum is unchanged.

Model: opus-5-5
2026-10-27 07:32:53 +00:00